/* --- LOKAL EINGEBUNDENE SCHRIFTARTEN (statt Google Fonts CDN) --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/inter-latin-300-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
}

/* --- BASIS-EINSTELLUNGEN --- */
:root {
    --color-bg: #FDFBF7; /* Warmes Off-White */
    --color-bg-alt: #F3F1EC; /* Leichtes Beige für Kontrast */
    --color-primary: #758668; /* Salbeigrün */
    --color-primary-hover: #5A694F;
    --color-accent: #203619; /* Dunkelgrüner Akzent */
    --color-accent-soft: rgba(32, 54, 25, 0.18);
    --color-text: #2C332A; /* Sehr dunkles Grün/Grau für weicheren Kontrast als Schwarz */
    --color-panel: rgba(255, 255, 255, 0.72);
    --color-panel-dark: rgba(255, 255, 255, 0.5);
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 400;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; font-weight: 300; }

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

.text-center { text-align: center; }
.bg-light { background-color: var(--color-bg-alt); }
.section { padding: 6rem 0; }

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(253, 251, 247, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.45);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--color-text);
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--color-text);
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0.1rem;
    right: 0.1rem;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 999px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-links a.btn-primary::after {
    display: none;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--color-text);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
    transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: white !important;
    padding: 0.95rem 1.9rem;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 18px 40px rgba(32, 54, 25, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 24px 60px rgba(32, 54, 25, 0.35);
}

.btn-large {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.glass-panel {
    background: var(--color-panel);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
    border-radius: 24px;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 1rem;
    overflow: hidden;
    color: white;
    background: linear-gradient(180deg, rgba(44, 51, 42, 0.28), rgba(44, 51, 42, 0.55)), url('images/aussenansicht.webp') center/cover no-repeat;
    background-size: cover;
}

/* soft vignette layer for mood and readability */
.hero-vignette {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(1000px 480px at 50% 30%, rgba(0,0,0,0.14) 0%, transparent 40%),
            radial-gradient(800px 400px at 50% 85%, rgba(0,0,0,0.40) 0%, transparent 45%),
      linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 20%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12rem 1rem 0.5rem;
    transform: translateY(22vh);
}

.hero-claim {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    max-width: 640px;
    text-align: center;
}

.hero-claim h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 3rem;
    color: #fdfcf8;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4), 0 4px 26px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.35);
    margin: 0;
}

.hero-claim .btn-primary {
    padding: 0.9rem 2.3rem;
    font-size: 0.95rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
}


/* --- LAYOUTS --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-content img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.card,
.contact-form,
.contact-info {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.card {
    padding: 2.5rem 2rem;
    border-radius: 24px;
}

.contact-form,
.contact-info {
    padding: 3rem;
    border-radius: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.slideshow {
    max-width: 900px;
    margin: 3rem auto 0;
}

.slideshow__viewport {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-bg-alt);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.slideshow__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    cursor: zoom-in;
    transition: opacity 0.5s ease;
}

.slideshow__image.active {
    opacity: 1;
    pointer-events: auto;
}

.slideshow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-text);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.slideshow__nav svg {
    width: 20px;
    height: 20px;
    display: block;
}

.slideshow__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.slideshow__nav--prev {
    left: 1rem;
}

.slideshow__nav--next {
    right: 1rem;
}

.slideshow__counter {
    position: absolute;
    z-index: 5;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.gallery-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 10, 15, 0.92);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gallery-modal img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
    image-rendering: auto;
    cursor: zoom-out;
    transform: scale(0.94);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-modal.active img {
    transform: scale(1);
    opacity: 1;
}

.gallery-modal .close-button {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}


.calendar-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.calendar-card {
    width: 100%;
    max-width: 920px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(44, 51, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 1rem;
    overflow: hidden;
}

.calendar-widget {
    background: #faf8f2;
    border: 1px solid rgba(32, 54, 25, 0.08);
    border-radius: 16px;
    padding: 1rem;
}

.calendar-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.calendar-widget__title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    color: var(--color-accent);
}

.calendar-widget__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(44, 51, 42, 0.7);
}

.calendar-widget__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(44, 51, 42, 0.75);
}

.legend-dot {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.legend-dot.available {
    background: #e7e4da;
}

.legend-dot.booked {
    background: var(--color-accent);
}

.calendar-widget__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.calendar-widget__month {
    font-weight: 600;
    color: var(--color-accent);
    text-align: center;
    flex: 1;
}

.calendar-nav {
    border: 1px solid rgba(32, 54, 25, 0.12);
    background: white;
    color: var(--color-accent);
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    font-size: 0.85rem;
}

.calendar-nav:hover {
    background: rgba(32, 54, 25, 0.08);
    transform: translateY(-1px);
}

.calendar-nav--today {
    font-size: 0.78rem;
    padding: 0 0.8rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.calendar-grid__weekday,
.calendar-day {
    text-align: center;
    border-radius: 10px;
    padding: 0.35rem 0;
    font-size: 0.82rem;
}

.calendar-grid__weekday {
    color: rgba(44, 51, 42, 0.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-day {
    border: 1px solid rgba(32, 54, 25, 0.08);
    background: #f7f4ee;
    color: var(--color-text);
}

.calendar-day.is-muted {
    opacity: 0.45;
    background: transparent;
    border-color: transparent;
}

.calendar-day.is-booked {
    background: var(--color-accent);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}


.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(44, 51, 42, 0.12);
    border-radius: 16px;
    font-family: var(--font-main);
    background-color: rgba(255, 255, 255, 0.72);
    color: var(--color-text);
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: rgba(32, 54, 25, 0.85);
    box-shadow: 0 0 0 4px rgba(32, 54, 25, 0.12);
}


/* --- FOOTER --- */
footer {
    padding: 3rem 0;
    background-color: #2C332A;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-row p {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.impressum-trigger {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #cfcfcf;
    font-family: var(--font-main);
    font-size: 0.82rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.impressum-trigger:hover,
.impressum-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 560px) {
    .footer-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 560px) and (max-width: 1300px) {
    footer .footer-row {
        padding-right: 5.5rem;
    }
}

/* --- IMPRESSUM-MODAL --- */
.info-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(10, 12, 10, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.info-modal__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--color-bg);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.info-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(44, 51, 42, 0.08);
    border: none;
    color: var(--color-text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.info-modal__close:hover {
    background: rgba(44, 51, 42, 0.16);
}

/* --- ANIMATIONEN --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s ease-out, transform 0.85s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-scale {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-scale.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover,
.contact-form:hover {
    transform: translateY(-4px);
    transition: transform 0.25s ease;
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    color: rgba(44, 51, 42, 0.82);
}

/* --- RESPONSIVE DESIGN (Für Handys) --- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 216px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        min-height: 95vh;
        padding-top: 5.75rem;
        background-position: center top;
    }

    .hero-inner {
        padding: 8rem 0.75rem 2rem;
        transform: translateY(19vh);
    }

    .hero-claim {
        max-width: 92vw;
        gap: 1.5rem;
    }

    .hero-claim h1 {
        font-size: 2.5rem;
        line-height: 1.12;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    .btn-large {
        padding: 1rem 0;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-content img {
        min-height: 220px;
    }

    .slideshow__nav {
        width: 38px;
        height: 38px;
    }

    .slideshow__nav svg {
        width: 17px;
        height: 17px;
    }

    .card,
    .contact-form,
    .contact-info {
        padding: 2rem;
    }

    .calendar-widget__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-widget__controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .calendar-widget__month {
        width: 100%;
        margin-top: 0.5rem;
        font-size: 0.95rem;
    }

    .calendar-nav {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.65rem;
        font-size: 0.85rem;
    }

    .calendar-grid__weekday,
    .calendar-day {
        padding: 0.35rem 0;
        font-size: 0.72rem;
    }

    .input-group input,
    .input-group textarea {
        padding: 0.95rem;
    }

    footer {
        padding: 2.5rem 0;
        font-size: 0.85rem;
    }
}

/* Mobile nav behaviour: hamburger + pill menu.
   Widened to 1024px so it also covers iPad portrait (768-1024px) and iPhone
   landscape (up to ~932px) — the inline nav links don't fit on one line in
   that range and were wrapping onto an ugly, tall second row. */
@media (max-width: 1024px) {
    html {
        scroll-padding-top: 80px;
    }

    .navbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 1rem 1rem 0.75rem;
    }

    .nav-toggle { display: flex; order: -1; }

    .nav-links a::after {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 56px;
        right: 1rem;
        left: 1rem;
        width: auto;
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        padding: 0.85rem;
        background: linear-gradient(155deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.36));
        backdrop-filter: blur(26px) saturate(180%);
        -webkit-backdrop-filter: blur(26px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.65);
        border-radius: 20px;
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
        z-index: 1200;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top center;
        transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    }

    body.nav-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        margin-left: 0;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.55);
        padding: 0.65rem 0.9rem;
        border-radius: 999px;
        text-align: center;
        color: var(--color-text);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    }

    .nav-links a.btn-primary {
        width: 100%;
        min-width: 0;
        background: var(--color-accent);
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 10px 26px rgba(32, 54, 25, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    /* animated hamburger to X: both bars converge on the shared center, then rotate around it */
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        transition: transform 260ms ease, top 260ms ease, opacity 260ms ease, background-color 260ms ease;
    }
    body.nav-open .hamburger { background: transparent; }
    body.nav-open .hamburger::before { top: 0; transform: rotate(45deg); }
    body.nav-open .hamburger::after { top: 0; transform: rotate(-45deg); }
}

/* Contrast & button adjustments for accessibility */
.btn-primary:hover, .nav-links a.btn-primary:hover {
    background-color: #17311a;
}

/* Slight typographic scale adjustments */
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
body { font-size: 16px; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    body { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-links, .hamburger, .hamburger::before, .hamburger::after {
        transition: none !important;
    }
}

/* --- IPHONE-SPEZIFISCHE FEINANPASSUNGEN (z. B. iPhone 12/13/14) --- */
@media (max-width: 420px) and (orientation: portrait) {
    .navbar {
        padding: 0.6rem 0.9rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    }

    .logo {
        font-size: 1.05rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.45rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 5.25rem;
        background-position: 30% 18%;
        min-height: 100svh;
    }

    .hero-inner {
        padding: 6.5rem 0.5rem 1.25rem;
        transform: translateY(17.5vh);
    }

    .hero-claim h1 {
        font-size: 2.3rem;
    }

    .btn-primary {
        padding: 0.9rem 0;
        font-size: 0.95rem;
    }

    .image-content img {
        min-height: 180px;
    }

    .impressum-grid p {
        font-size: 0.95rem;
        line-height: 1.45;
    }
}

/* --- IPAD-LANDSCAPE-OPTIMIERUNG (iPad mini/Air/Pro quer, ca. 1024–1366px) --- */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .container {
        padding: 0 2.5rem;
    }

    .section {
        padding: 4.5rem 0;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-inner {
        padding: 8rem 1rem 1rem;
        transform: translateY(21vh);
    }

    .hero-claim {
        max-width: 700px;
    }

    .split-layout {
        gap: 3rem;
    }

    /* 2x2-Raster statt schiefem 3+1-Umbruch bei 4 Karten/Bildern */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .image-content img {
        min-height: 280px;
    }

    .calendar-card {
        max-width: 100%;
    }
}

/* --- PHONES IM QUERFORMAT (niedrige Viewport-Höhe) ---
   Die Innenabstände/Verschiebung des Hero-Bereichs sind für hohe Hochformat-
   Viewports gedacht; bei kurzen Landscape-Höhen schoben sie den Button aus
   dem sichtbaren Bereich. */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100svh;
        padding-top: 4.5rem;
    }

    .hero-inner {
        padding: 0 1rem;
        transform: translateY(0);
    }

    .hero-claim {
        gap: 0.85rem;
    }

    .hero-claim h1 {
        font-size: 1.6rem;
        line-height: 1.15;
    }

    .hero-claim .btn-primary {
        padding: 0.65rem 1.6rem;
        font-size: 0.85rem;
    }
}

/* --- ZURÜCK-NACH-OBEN BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 8rem;
    right: 0;
    width: 32px;
    height: 56px;
    border-radius: 14px 0 0 14px;
    border: none;
    background: var(--color-accent);
    box-shadow: -6px 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateX(14px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease, width 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.back-to-top:hover {
    background: #17311a;
    width: 36px;
}

.back-to-top.launch {
    transition: transform 0.55s cubic-bezier(0.3, 0, 0.4, 1), opacity 0.4s ease 0.15s, visibility 0.55s;
    transform: translateY(-70px);
    opacity: 0;
    visibility: visible;
}

.back-to-top svg {
    width: 16px;
    height: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.15s linear, visibility 0.15s linear;
    }

    .back-to-top.launch {
        transition: opacity 0.15s linear;
        transform: none;
    }
}
