@charset "UTF-8";

/* Basis-Styles */
:root {
    --header_height: 80px;
    --primary-color: #0345bf;
    --text-color: #252525;
    --bg-color: #fff;
    --hero-title-font: "Pacifico", "Segoe Script", "Brush Script MT", cursive;
    --belegungsplan-month-col: clamp(130px, 15vw, 170px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fff;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

html {
    background: #fff;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

body.no-scroll {
    overflow: hidden;
}

a {
    transition: color 400ms, background-color 400ms;
    text-decoration: none;
    color: var(--text-color);
}

a:hover, a:focus, a:active {
    color: var(--primary-color);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Utilities (Bootstrap-like) */
.text-center {
    text-align: center;
}

.gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
}

.gallery-viewer.is-open {
    display: block;
}

.gallery-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.gallery-viewer__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-viewer__nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-viewer__nav[disabled] {
    opacity: 0.35;
    cursor: default;
}

.gallery-viewer__prev {
    left: 14px;
}

.gallery-viewer__next {
    right: 14px;
}

.gallery-viewer__prev::before,
.gallery-viewer__next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid rgba(255, 255, 255, 0.95);
    transform-origin: center;
}

.gallery-viewer__prev::before {
    transform: translate(-35%, -50%) rotate(135deg);
}

.gallery-viewer__next::before {
    transform: translate(-65%, -50%) rotate(-45deg);
}

.gallery-viewer__img {
    max-width: min(100%, 1200px);
    max-height: calc(100vh - 80px);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    background: #111;
    margin: 0;
}

.gallery-viewer__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.gallery-viewer__close::before,
.gallery-viewer__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.95);
    transform-origin: center;
}

.gallery-viewer__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gallery-viewer__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 991px) {
    .gallery-viewer__nav {
        width: 44px;
        height: 44px;
    }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col, .col-auto, .col-md-6, .col-md-12 {
    padding: 0 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-auto {
    flex: 0 0 auto;
}

.col {
    flex: 1;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.align-items-center {
    align-items: center;
}

.text-end {
    text-align: right;
}

/* Header */
#sp-header {
    height: var(--header_height);
    width: 100%;
    position: relative;
    z-index: 99;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
    background: #fff;
    animation: spFadeIn 0.5s;
}

#sp-header .row.align-items-center {
    height: var(--header_height);
}

#sp-header .logo {
    height: var(--header_height);
    display: inline-flex;
    margin: 0;
    align-items: center;
}

#sp-header .logo a {
    font-size: 24px;
    line-height: 1;
    margin: 0;
    padding: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

#sp-header .logo-image {
    max-height: 60px;
    width: auto;
    height: auto;
}

#sp-header .logo-text {
    color: var(--primary-color);
}

/* Navigation */
#sp-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 16px; /* Abstand zum Logo */
}

.sp-megamenu-parent {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    width: auto;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px; /* gleicher Abstand links/rechts */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #02379a; /* Königsblau (dunkler) */
}

.sp-megamenu-parent > li {
    display: inline-block;
    position: relative;
    padding: 0;
}

.sp-megamenu-parent > li.has-submenu {
    position: relative;
}

.sp-megamenu-parent > li .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 0ms linear 150ms;
}

.sp-megamenu-parent > li.has-submenu:hover .submenu,
.sp-megamenu-parent > li.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 150ms ease, transform 150ms ease, visibility 0ms;
}

.sp-megamenu-parent > li .submenu a {
    display: block;
    padding: 10px 15px;
    line-height: 1.2;
    color: var(--text-color);
    white-space: nowrap;
}

.sp-megamenu-parent > li .submenu a:hover,
.sp-megamenu-parent > li .submenu a:focus {
    background: rgba(3, 69, 191, 0.08);
    color: var(--primary-color);
}

.sp-megamenu-parent > li > a {
    display: inline-block;
    padding: 10px 14px;
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1;
    border-radius: 999px;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.sp-megamenu-parent > li.active > a {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

#offcanvas-toggler {
    display: none;
    align-items: center;
    height: var(--header_height);
    line-height: var(--header_height);
    font-size: 20px;
    cursor: pointer;
}

.burger-icon {
    width: 25px;
    cursor: pointer;
}

.burger-icon > span {
    display: block;
    height: 2px;
    background-color: #000;
    margin: 5px 0;
    transition: background-color 0.3s ease-in, opacity 0.3s ease-in, transform 0.3s ease-in;
}

/* Main Content */
.body-wrapper {
    position: relative;
    transition: 0.4s;
    backface-visibility: hidden;
    background: #fff;
}

.body-innerwrapper {
    overflow-x: hidden;
}

#sp-main-body {
    padding: 100px 0;
    min-height: calc(100vh - var(--header_height) - 200px);
    background: #fff;
}

/* Startseite: Hero direkt vor dem Content – kein "grauer Streifen" durch Main-Padding */
.hero-section + .body-wrapper {
    background: #fff;
}

.hero-section + .body-wrapper #sp-main-body {
    padding-top: 0;
}

/* Hero Section mit Parallax */
.hero-section {
    position: relative;
    height: 100vh; /* Fallback */
    height: 100svh; /* Mobile: stabile Viewport-Höhe */
    height: 100dvh; /* Mobile: dynamische Viewport-Höhe */
    min-height: 600px;
    background: #fff;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../images/Haus/außen/20210724_150905.jpg');
    background-color: #fff;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    will-change: background-position;
}

@supports (background-position: center calc(10% + 1px)) {
    .hero-background {
        background-position: center calc(25% + var(--hero-parallax-y, 0px));
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-section.is-image-loaded::before {
    background: transparent;
}

.hero-content {
    position: absolute;
    top: calc(var(--header_height) - 56px);
    left: clamp(72px, 13vw, 220px);
    z-index: 2;
    padding: 20px;
    text-align: left;
    max-width: min(520px, calc(100vw - 40px));
}

.hero-title {
    font-size: 6rem;
    font-family: var(--hero-title-font);
    font-weight: 400;
    margin: 0 0 16px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1.4s ease-out;
}

.hero-subtitle {
    font-size: 1.85rem;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.4s ease-out;
    max-width: clamp(34ch, 55vw, 56ch);
    text-wrap: balance;
}

.hero-subtitle > span {
    display: block;
    white-space: nowrap;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-110px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(110px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
    background: #fff;
}

/* Startseite Bildleiste */
.home-images-section {
    padding: 30px 0 60px;
    background: #fff;
}

.home-images-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
    margin-top: 10px;
}

.home-image-card {
    margin: 0;
    text-align: center;
}

.home-image-card a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-image-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
}

/* Lage: Aufzählungen bündig zu Fließtext */
.lage-list {
    margin: 0;
    padding-left: 0;
    list-style-position: inside;
}

.lage-list li {
    margin: 0;
    padding: 4px 0;
}

.home-image-card a:hover,
.home-image-card a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    border-color: rgba(3, 69, 191, 0.35);
    outline: none;
}

.home-image-card a:hover img,
.home-image-card a:focus-visible img {
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.03);
}

.home-image-card figcaption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #555;
}

.home-images-note {
    margin-top: 18px;
    text-align: center;
    color: #666;
    font-size: 0.98rem;
}

.home-images-note a,
.home-images-note a:visited {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    color: #555;
}

.btn-location {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-location:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-location i {
    margin-right: 8px;
}

/* Tabs Section */
.tabs-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Aktivitäten & Umgebung (Layout wie Screenshots, im Stil der Startseite) */
.activity-band {
    padding: 44px 0;
}

.activity-band--white {
    background: #fff;
}

.activity-band--gray {
    background: #f8f9fa;
}

.activity-page-head {
    text-align: center;
    margin-bottom: 26px;
}

.activity-intro {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.activity-panels {
    margin-top: 0;
}

.activity-divider {
    display: none;
}

.activity-panels__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
}

.activity-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

.activity-tabs-nav {
    display: inline-flex;
    gap: 8px;
    padding: 12px 12px 0;
}

.activity-tab-button {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #eef1f4;
    color: #333;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.activity-tab-button.active {
    background: #dfe4ea;
    border-color: rgba(0, 0, 0, 0.18);
    color: var(--text-color);
}

.activity-tabs-content {
    padding: 14px 18px 18px;
}

.activity-tab-pane {
    display: none;
}

.activity-tab-pane.active {
    display: block;
}

.activity-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    color: #555;
    line-height: 1.55;
}

.activity-list li {
    margin: 6px 0;
}

.activity-list a,
.activity-list a:visited {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.activity-accordion {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.activity-accordion:first-child {
    border-top: none;
}

.activity-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    color: #333;
    background: #fbfbfd;
    position: relative;
}

.activity-accordion summary::-webkit-details-marker {
    display: none;
}

.activity-accordion summary::after {
    content: "›";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 18px;
    color: #777;
    transition: transform 180ms ease;
}

.activity-accordion[open] summary::after {
    transform: translateY(-50%) rotate(-90deg);
}

.activity-accordion__body {
    padding: 10px 18px 16px;
    background: #fff;
}

.activity-image-strip {
    margin-top: 0;
}

.activity-image-strip--secondary {
    margin-top: 0;
}

.activity-longtext .section-text {
    max-width: 1100px;
}

.activity-longtext {
    text-align: left;
}

.activity-longtext-title {
    margin-top: 0;
    margin-bottom: 18px;
}

.activity-cta {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.activity-cta__grid {
    display: grid;
    grid-template-columns: minmax(0, 1100px);
    gap: 18px 24px;
    align-items: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.activity-cta__text {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.activity-cta__text .section-text {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    max-width: 1100px;
}

.activity-cta__title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
}

.activity-cta__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.activity-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease, background-color 180ms ease, color 180ms ease;
}

.activity-cta__btn:hover,
.activity-cta__btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    border-color: rgba(3, 69, 191, 0.95);
    background: rgba(3, 69, 191, 0.95);
    color: #fff;
    filter: none;
    outline: none;
}

@media (max-width: 991px) {
    .activity-cta__grid {
        grid-template-columns: 1fr;
    }

    .activity-cta__actions {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .activity-intro,
    .activity-longtext {
        text-align: left;
    }

    .activity-intro.section-text,
    .activity-longtext .section-text,
    .activity-cta .section-text {
        text-align: justify;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
}

.activity-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.activity-image-card {
    margin: 0;
    text-align: center;
}

.activity-image-card a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.activity-image-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
}

.activity-image-card a:hover,
.activity-image-card a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    border-color: rgba(3, 69, 191, 0.35);
    outline: none;
}

.activity-image-card a:hover img,
.activity-image-card a:focus-visible img {
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.03);
}

.activity-image-card figcaption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #555;
}

.tabs-header {
    text-align: center;
    margin-bottom: 40px;
}

.tabs-header i {
    font-size: 3rem;
    color: #999;
    margin-bottom: 20px;
}

.tabs-header h2 {
    font-size: 2rem;
    margin: 10px 0;
    color: var(--text-color);
}

.tabs-subtitle {
    color: #666;
    font-size: 1rem;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-button:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: #fff;
}

.tabs-content {
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    margin-bottom: 10px;
    line-height: 1.55;
    color: #555;
}

.tab-pane ul {
    list-style: none;
    padding: 0;
}

.tab-pane ul li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.55;
    color: #555;
}

.tab-pane ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.tab-pane a,
.tab-pane a:visited,
.tab-pane a:hover,
.tab-pane a:focus,
.tab-pane a:active {
    color: var(--primary-color);
}

.tab-pane a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Footer */
#sp-footer {
    font-size: 14px;
    padding: 0;
    background: #1a1a2e;
    color: #fff;
}

#sp-footer .container-inner {
    padding: 50px 0 30px;
}

#sp-footer .footer-top {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
}

#sp-footer .footer-top {
    align-items: start;
}

@media (max-width: 991px) {
    #sp-footer .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 575px) {
    #sp-footer .footer-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

#sp-footer .footer-top > [class*="col-"] {
    padding: 0;
    max-width: none;
    flex: initial;
}

#sp-footer h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

#sp-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sp-footer .footer-menu li {
    margin-bottom: 10px;
    line-height: 1.6;
}

#sp-footer .footer-menu li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

#sp-footer .footer-menu li a:hover {
    color: #fff;
}

.footer-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.footer-gallery img {
    transition: transform 0.3s;
}

.footer-gallery img:hover {
    transform: scale(1.1);
}

/* Scroll to Top Button */
.sp-scroll-up {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.sp-scroll-up:hover,
.sp-scroll-up:active,
.sp-scroll-up:focus {
    color: #fff;
    background: #0230a0;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.sp-scroll-up.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* Contact Info */
.sp-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-contact-info li {
    display: inline-block;
    margin: 0 10px 0 0;
    font-size: 90%;
    white-space: nowrap;
}

.sp-contact-info li i,
.sp-contact-info li span {
    margin: 0 3px;
}

/* Social Icons */
ul.social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

ul.social-icons > li {
    display: inline-block;
    line-height: 1.5;
}

ul.social-icons > li:not(:last-child) {
    margin-right: 20px;
}

ul.social-icons a {
    color: #9c9c9c;
    font-size: 18px;
}

ul.social-icons a:hover {
    color: var(--primary-color);
}

/* Offcanvas Menu */
.offcanvas-overlay {
    background: rgba(0, 0, 0, 0.7);
    bottom: 0;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
    visibility: hidden;
    transition: 0.4s;
    backdrop-filter: blur(10px);
}

.offcanvas-active .offcanvas-overlay {
    visibility: visible;
    opacity: 1;
}

.offcanvas-menu {
    width: 300px;
    height: 100%;
    position: fixed;
    top: 0;
    right: -300px;
    overflow-y: auto;
    transition: all 0.4s;
    z-index: 10000;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
}

.offcanvas-active .offcanvas-menu {
    right: 0;
}

.offcanvas-menu .close-offcanvas {
    position: absolute;
    top: 25px;
    right: 15px;
    z-index: 1;
    font-size: 24px;
    color: var(--text-color);
}

.offcanvas-menu .offcanvas-inner {
    padding: 60px 25px 25px;
}

.offcanvas-menu .offcanvas-inner ul.menu {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

.offcanvas-menu .offcanvas-inner ul.menu > li {
    border-bottom: 1px solid rgba(32, 31, 31, 0.1);
    padding: 0;
    margin: 0;
}

.offcanvas-menu .offcanvas-inner ul.menu > li > a {
    display: block;
    font-size: 18px;
    padding: 15px 0;
    line-height: 18px;
    opacity: 0.7;
    transition: 0.3s;
}

.offcanvas-menu .offcanvas-inner ul.menu > li > a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.offcanvas-menu .offcanvas-inner ul.menu > li.has-submenu .menu-item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
}

.offcanvas-menu .offcanvas-inner ul.menu > li.has-submenu .menu-item-row > a {
    display: block;
    padding: 0;
    font-size: 18px;
    line-height: 18px;
    opacity: 0.7;
    transition: 0.3s;
}

.offcanvas-menu .offcanvas-inner ul.menu > li.has-submenu .menu-item-row > a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.offcanvas-menu .offcanvas-inner ul.menu > li.has-submenu .submenu-arrow {
    appearance: none;
    border: none;
    background: transparent;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--text-color);
}

.offcanvas-menu .offcanvas-inner ul.menu > li.has-submenu .submenu-arrow::before {
    content: "▾";
    font-size: 14px;
    opacity: 0.7;
    transition: transform 150ms ease;
}

.offcanvas-menu .offcanvas-inner ul.menu > li.submenu-open .submenu-arrow::before {
    transform: rotate(180deg);
}

.offcanvas-menu .offcanvas-inner ul.menu > li.has-submenu > ul.submenu {
    display: none;
    list-style: none;
    padding: 0 0 10px 0;
    margin: 0;
}

.offcanvas-menu .offcanvas-inner ul.menu > li.submenu-open > ul.submenu {
    display: block;
}

.offcanvas-menu .offcanvas-inner ul.menu > li.has-submenu > ul.submenu a {
    display: block;
    padding: 10px 0 10px 15px;
    font-size: 16px;
    opacity: 0.85;
}

.offcanvas-menu .offcanvas-inner ul.menu > li.has-submenu > ul.submenu a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Belegungsplan Styles */
.belegungsplan-wrap {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    overflow: auto;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    -webkit-overflow-scrolling: touch;
}

.tabelle {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.tabelle thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f6f7fb;
    color: #2a2f3a;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tabelle thead th:first-child {
    left: 0;
    z-index: 6;
    text-align: left;
}

.tabelle tbody th {
    position: sticky;
    left: 0;
    z-index: 4;
    background: #f6f7fb;
    color: #2a2f3a;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    padding: 6px 8px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    width: var(--belegungsplan-month-col);
}

.tabelle tbody td {
    text-align: center;
    padding: 0;
    width: clamp(10px, 2.1vw, 22px);
    height: clamp(14px, 1.7vw, 18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    background: #bfeec7; /* frei */
    cursor: pointer;
    transition: transform 120ms ease, filter 120ms ease, background-color 120ms ease;
}

.tabelle tbody tr:hover td {
    filter: brightness(0.98);
}

.tabelle tbody td:hover {
    filter: brightness(0.95);
}

.tabelle tbody td:active {
    transform: scale(0.97);
}

.tabelle tbody td.x {
    background: #ff9fb0; /* belegt */
}

.tabelle tbody td.a {
    background-image: linear-gradient(to top left, rgba(255, 77, 109, 0.70), transparent);
}

.tabelle tbody td.e {
    background-image: linear-gradient(to bottom right, rgba(255, 77, 109, 0.70), transparent);
}

.tabelle tbody tr td:first-of-type {
    border-left: none;
}

.tabelle tbody tr:first-child td,
.tabelle tbody tr:first-child th {
    border-top: none;
}

.tabelle tbody tr td:last-child,
.tabelle thead th:last-child {
    border-right: none;
}

.tabelle tbody tr:last-child td,
.tabelle tbody tr:last-child th {
    border-bottom: none;
}

.tabelle tbody td[colspan] {
    background: #fff8b8 !important;
    color: #2a2f3a;
    font-weight: 700;
    text-align: center;
    padding: 12px 10px;
    height: auto;
}

.save-cell {
    width: var(--belegungsplan-month-col);
    min-width: var(--belegungsplan-month-col);
}

.save-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.save-btn:hover {
    border-color: rgba(3, 69, 191, 0.35);
    box-shadow: 0 10px 25px rgba(3, 69, 191, 0.12);
    transform: translateY(-1px);
}

.save-btn:active {
    transform: translateY(0);
}

.belegungsplan-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 12px 0 0;
    color: #555;
    font-size: 14px;
}

.legend-item {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 30000;
}

.cookie-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    background: rgba(22, 24, 28, 0.92);
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.cookie-banner__text {
    flex: 1 1 360px;
    font-size: 14px;
    line-height: 1.35;
    opacity: 0.95;
}

.cookie-banner__text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-btn {
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: transform 120ms ease, filter 120ms ease, background-color 120ms ease;
}

.cookie-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.cookie-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cookie-btn--primary {
    background: rgba(3, 69, 191, 0.95);
    color: #fff;
    border-color: rgba(3, 69, 191, 0.95);
}

/* Map embed (DSGVO: load on consent/click) */
.map-embed {
    margin-top: 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f6f7fb;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.map-embed__placeholder {
    padding: 18px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(3, 69, 191, 0.08), rgba(0, 0, 0, 0.02));
}

.map-embed__placeholder-inner {
    max-width: 780px;
}

.map-embed__placeholder p {
    margin-top: 8px;
    margin-bottom: 0;
    color: #333;
    opacity: 0.9;
}

.map-embed__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-top: 12px;
}

.map-embed__link {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 575px) {
    .map-embed iframe {
        height: 340px;
    }
}

.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: inline-block;
}

.legend-swatch.is-free {
    background: #bfeec7;
}

.legend-swatch.is-booked {
    background: #ff9fb0;
}

@media (max-width: 991px) {
    .belegungsplan-wrap {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .tabelle {
        width: 100%;
    }

    .tabelle tbody td {
        width: clamp(9px, 2.4vw, 20px);
        height: clamp(12px, 2.0vw, 16px);
    }
}

@media (max-width: 575px) {
    .tabelle {
        width: 100%;
    }
}

/* Animations */
@keyframes spFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spFadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    :root {
        --header_height: 70px;
    }
    
    .sp-megamenu-parent {
        display: none;
    }
    
    #offcanvas-toggler {
        display: flex !important;
    }
    
    #sp-header .logo {
        height: var(--header_height);
    }

    #sp-header .logo-image {
        max-height: 52px;
    }
    
    #sp-main-body {
        padding: 50px 0;
    }

    /* Startseite: kein Streifen zwischen Hero und Content (Mobile überschreibt sonst padding-top) */
    .hero-section + .body-wrapper {
        background: #fff;
    }

    .hero-section + .body-wrapper #sp-main-body {
        padding-top: 0;
        background: #fff;
    }
    
    .col-md-6, .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .text-end {
        text-align: left;
    }
    
    .hero-section {
        min-height: 100svh;
        min-height: 100dvh;
    }
    
    .hero-content {
        top: calc(var(--header_height) - 36px);
        left: 44px;
        padding: 14px;
        max-width: calc(100vw - 36px);
    }
    
    .hero-title {
        font-size: 3.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.35rem;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        text-align: left;
    }

    .home-images-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .home-image-card img {
        height: 150px;
    }

    .activity-panels__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .activity-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .activity-image-card img {
        height: 240px;
    }
    
    .sp-scroll-up {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .hero-subtitle > span {
        white-space: normal;
    }

    .home-images-grid {
        grid-template-columns: 1fr;
    }

    .home-image-card img {
        height: 180px;
    }
}

@media (max-width: 575px) {
    :root {
        --header_height: 64px;
    }
    
    #sp-header {
        height: var(--header_height);
    }
    
    #sp-header .logo {
        height: var(--header_height);
    }
    
    #sp-header .logo a {
        font-size: 18px;
    }
}

