/* ============================================
   Ferienhotel Zwotatal - Custom Stylesheet
   ============================================ */

/* --- Self-Hosted Google Fonts --- */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #2C5F5F;
    --color-primary-dark: #1E4444;
    --color-primary-light: #3A7A7A;
    --color-secondary: #8B6914;
    --color-secondary-light: #C49A1E;
    --color-accent: #E8F0E8;
    --color-bg: #FAFAF8;
    --color-bg-alt: #F0EFEB;
    --color-text: #2D3436;
    --color-text-light: #636E72;
    --color-white: #FFFFFF;
    --color-overlay: rgba(44, 95, 95, 0.65);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --navbar-height: 90px; /* updated dynamically by JS */
}

/* --- Base Styles --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Navbar --- */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition);
    background-color: transparent;
    z-index: 1050;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    transition: color var(--transition);
}

.navbar.scrolled .navbar-brand {
    color: var(--color-primary-dark);
}

.navbar-brand img {
    height: 60px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: height var(--transition);
}

.navbar.scrolled .navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: color var(--transition);
    position: relative;
    white-space: nowrap;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--color-text);
}

.navbar-nav .nav-link:hover {
    color: var(--color-secondary-light);
}

.navbar-nav .nav-link.active {
    color: var(--color-white);
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    color: var(--color-primary);
}

.navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--color-primary);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background-color: var(--color-secondary-light);
    border-radius: 1px;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.6rem;
    transition: all var(--transition);
    background-color: rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .navbar-toggler {
    border-color: rgba(45, 52, 54, 0.3);
    background-color: rgba(0, 0, 0, 0.05);
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.7);
}

.navbar.scrolled .navbar-toggler:focus {
    border-color: var(--color-primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 52, 54, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Pages without hero get a solid navbar */
.navbar-solid {
    background-color: var(--color-primary-dark);
}

.navbar-solid.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
}

/* --- Desktop Centered-Logo Navbar (>= 992px) --- */
.navbar-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav-left,
.navbar-nav-right {
    flex: 1;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-nav-left {
    justify-content: flex-end;
}

.navbar-nav-right {
    justify-content: flex-start;
}

.navbar-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin: 0 1.25rem;
    transition: color var(--transition);
}

.navbar-brand-center img {
    height: 100px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: height var(--transition);
}

.navbar.scrolled .navbar-brand-center img {
    height: 70px;
}

.navbar-brand-center .navbar-brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-white);
    margin-top: 0.2rem;
    white-space: nowrap;
    transition: color var(--transition);
}

.navbar.scrolled .navbar-brand-center .navbar-brand-text {
    color: var(--color-primary-dark);
}

/* CTA pill button for "Anfrage" */
.nav-link-cta {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-radius: 50px;
    padding: 0.4rem 1.1rem !important;
    font-weight: 600;
    transition: all var(--transition);
}

.nav-link-cta:hover {
    background-color: var(--color-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 95, 95, 0.35);
}

.navbar.scrolled .nav-link-cta {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
}

.navbar.scrolled .nav-link-cta:hover {
    background-color: var(--color-primary-dark) !important;
    color: var(--color-white) !important;
}

/* CTA pill should not show the active underline */
.navbar-nav .nav-link.nav-link-cta.active::after {
    display: none;
}

/* Desktop nav link spacing: 992–1199px (tight) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-desktop .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.45rem;
    }

    .navbar-desktop .nav-link-cta {
        padding: 0.35rem 0.8rem !important;
        font-size: 0.8rem;
    }

    .navbar-brand-center {
        margin: 0 0.75rem;
    }

    .navbar-brand-center .navbar-brand-text {
        font-size: 0.7rem;
    }
}

/* Desktop nav link spacing: 1200px+ (comfortable) */
@media (min-width: 1200px) {
    .navbar-desktop .nav-link {
        font-size: 0.88rem;
        padding: 0.5rem 0.65rem;
    }

    .navbar-desktop .nav-link-cta {
        padding: 0.4rem 1.1rem !important;
        font-size: 0.88rem;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: var(--navbar-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        var(--color-overlay) 50%,
        rgba(30, 68, 68, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Page Hero (smaller, for subpages) */
.page-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: var(--navbar-height);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        var(--color-overlay) 100%
    );
    z-index: 1;
}

.page-hero .hero-content {
    z-index: 2;
}

.page-hero .hero-content h1 {
    font-size: 2.8rem;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    border-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Sections --- */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-dark {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* --- Cards --- */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    overflow: hidden;
    background: var(--color-white);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.feature-card.h-100 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Offer / Price Cards --- */
.offer-card {
    border: 2px solid transparent;
    transition: all var(--transition);
}

.offer-card:hover {
    border-color: var(--color-primary-light);
}

.offer-card .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.price-highlight {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 700;
}

.price-highlight small {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-weight: 400;
}

/* --- Price Table --- */
.price-table {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.price-table thead {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.price-table thead th {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.price-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.price-table tbody tr:hover {
    background-color: var(--color-accent);
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.modal-lightbox .modal-content {
    background: transparent;
    border: none;
}

.modal-lightbox .modal-body {
    padding: 0;
    text-align: center;
}

.modal-lightbox .modal-body img {
    max-height: 85vh;
    max-width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.modal-lightbox .btn-close {
    position: absolute;
    top: -2rem;
    right: 0;
    filter: invert(1);
    opacity: 0.8;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: -1.5rem;
}

.lightbox-next {
    right: -1.5rem;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 0.5rem;
    }
    .lightbox-next {
        right: 0.5rem;
    }
}

.modal-lightbox .lightbox-caption {
    color: var(--color-white);
    text-align: center;
    padding: 1rem;
    font-size: 0.95rem;
}

/* --- Forms --- */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 95, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}

.form-check-label {
    font-weight: 400;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 0;
}

.footer h5 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.footer p {
    color: rgba(255, 255, 255, 0.75);
}

.footer a:hover {
    color: var(--color-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links li a::before {
    content: '\203A';
    margin-right: 0.5rem;
    color: var(--color-secondary);
}

.footer-contact li {
    list-style: none;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact i {
    color: var(--color-secondary);
    margin-top: 0.2rem;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: var(--color-white);
}

/* --- Booking Badge --- */
.booking-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 0.85rem;
    color: var(--color-text);
    transition: all var(--transition);
}

.booking-badge:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--color-text);
}

.footer .booking-badge,
.footer .booking-badge:hover {
    color: var(--color-text);
}

/* --- Map Container --- */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Content Image --- */
.content-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.content-img:hover {
    box-shadow: var(--shadow-md);
}

/* --- Image Carousels --- */
#impressionenCarousel .carousel-control-prev,
#impressionenCarousel .carousel-control-next,
#zimmerCarousel .carousel-control-prev,
#zimmerCarousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.8;
}

#impressionenCarousel .carousel-control-prev:hover,
#impressionenCarousel .carousel-control-next:hover,
#zimmerCarousel .carousel-control-prev:hover,
#zimmerCarousel .carousel-control-next:hover {
    opacity: 1;
}

#impressionenCarousel .carousel-control-prev,
#zimmerCarousel .carousel-control-prev {
    left: -1.5rem;
}

#impressionenCarousel .carousel-control-next,
#zimmerCarousel .carousel-control-next {
    right: -1.5rem;
}

@media (max-width: 768px) {
    #impressionenCarousel .carousel-control-prev,
    #zimmerCarousel .carousel-control-prev {
        left: -0.5rem;
    }
    #impressionenCarousel .carousel-control-next,
    #zimmerCarousel .carousel-control-next {
        right: -0.5rem;
    }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Event Card --- */
.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    margin-bottom: 1.25rem;
}

.event-card:hover {
    box-shadow: var(--shadow-md);
}

.event-date {
    min-width: 70px;
    text-align: center;
    padding: 0.5rem;
    background: var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1;
    font-family: var(--font-heading);
}

/* --- Alternating Content Sections --- */
.content-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.content-block.reversed {
    flex-direction: row-reverse;
}

.content-block .text-content {
    flex: 1;
}

.content-block .image-content {
    flex: 1;
}

.content-block .image-content img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
}

/* --- Info List with Icons --- */
.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-bg-alt);
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li i {
    color: var(--color-primary);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(30, 68, 68, 0.95);
        padding: 1rem;
        border-radius: var(--radius-sm);
        margin-top: 0.5rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .navbar.scrolled .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
    }

    .navbar-brand {
        flex-wrap: nowrap;
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .navbar.scrolled .navbar-brand img {
        height: 36px;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .content-block,
    .content-block.reversed {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 80vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .page-hero {
        min-height: 30vh;
    }

    .page-hero .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }

    .event-card {
        flex-direction: column;
        gap: 1rem;
    }

    .footer {
        text-align: center;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline-primary,
    .btn-light {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .price-table {
        font-size: 0.85rem;
    }

    .price-table thead th,
    .price-table tbody td {
        padding: 0.6rem 0.5rem;
    }
}

/* --- Map Consent Placeholder --- */
.map-consent-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-alt);
    border: 2px dashed var(--color-primary-light);
    border-radius: var(--radius-md);
    text-align: center;
    width: 100%;
}

.map-consent-content {
    padding: 2rem 1rem;
}

.map-consent-content > i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.map-consent-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.map-consent-remember {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    cursor: pointer;
    gap: 0.25rem;
}

.map-consent-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 1.25rem 1.5rem;
    z-index: 1060;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner-text {
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-banner-text a {
    color: var(--color-secondary-light);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--color-white);
}

.cookie-banner-btn {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.cookie-banner-btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-banner-btn {
        width: 100%;
    }
}

/* --- Print --- */
@media print {
    .navbar, .footer, .back-to-top, .hero::before {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 1.5rem 0;
    }
}
