/* --- 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: #37502b; /* Dunkelgrüner Akzent */
    --color-accent-soft: rgba(55, 80, 43, 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;
}

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 {
    text-decoration: none;
    color: var(--color-text);
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.3s;
}

/* 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.active {
    font-weight: 600;
}

/* --- 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(55, 80, 43, 0.2);
}

.btn-primary:hover {
    background-color: #203619;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 24px 60px rgba(55, 80, 43, 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-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1.15rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    max-width: 360px;
    width: min(92vw, 360px);
}

.hero .hero-card h1 {
    font-size: 1.7rem;
    text-align: right;
    line-height: 1.06;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
    color: #fdfcf8;
    margin-bottom: 0.15rem;
}

.hero .hero-card p {
    max-width: 620px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: right;
    font-weight: 400;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.92);
}

.hero-card .btn-primary {
    box-shadow: 0 12px 28px rgba(55, 80, 43, 0.24);
    padding: 0.72rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 999px;
}

/* --- 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/hero-background.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(26vh);
}

.hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    max-width: 860px;
    width: min(96%, 860px);
    text-align: center;
}

.hero-card h1 {
    font-size: 2.4rem;
    color: #fdfcf8;
    line-height: 1.04;
    letter-spacing: 0.01em;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
}

.hero-card p {
    color: rgba(255,255,255,0.92);
    max-width: 820px;
    margin: 0 auto 1.25rem;
    font-size: 1.05rem;
}


/* --- 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;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    overflow: visible;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    min-height: 260px;
    cursor: zoom-in;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    z-index: 1;
}

.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);
}

.gallery-grid img {
    will-change: transform;
}

.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(55, 80, 43, 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(55, 80, 43, 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(55, 80, 43, 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(55, 80, 43, 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(55, 80, 43, 0.85);
    box-shadow: 0 0 0 4px rgba(55, 80, 43, 0.12);
}


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

/* --- 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,
.hero-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) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1rem 0.75rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-links a {
        margin: 0;
        padding: 0.75rem 1rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        font-size: 0.95rem;
    }

    .nav-links a.btn-primary {
        width: auto;
        min-width: 48%;
        text-align: center;
    }

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

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

    .hero-card {
        width: min(96vw, 420px);
        padding: 1.4rem 1.3rem;
        max-width: 100%;
    }

    .hero-card h1 {
        font-size: 2.1rem;
        line-height: 1.08;
        text-align: center;
    }

    .hero-card p {
        font-size: 1rem;
        max-width: 100%;
        text-align: center;
    }

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

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

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .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 */
@media (max-width: 420px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 56px;
        right: 1rem;
        left: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.85rem;
        background: rgba(255,255,255,0.98);
        border-radius: 12px;
        box-shadow: 0 18px 50px rgba(0,0,0,0.12);
        z-index: 1200;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 260ms ease, transform 260ms ease, max-height 260ms ease;
    }

    body.nav-open .nav-links {
        max-height: 420px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        margin-left: 0;
        background: #ffffff;
        padding: 0.6rem 0.9rem;
        border-radius: 999px;
        text-align: center;
        color: var(--color-text);
        box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    }

    /* animated hamburger to X */
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        transition: transform 260ms ease, opacity 260ms ease, background-color 260ms ease;
    }
    body.nav-open .hamburger { background: transparent; }
    body.nav-open .hamburger::before { transform: rotate(45deg) translate(4px, 4px); }
    body.nav-open .hamburger::after { transform: rotate(-45deg) translate(4px, -4px); }
}

/* Contrast & button adjustments for accessibility */
.btn-primary {
    background-color: #2b4b2e; /* darker for contrast */
    box-shadow: 0 18px 44px rgba(43,75,46,0.24);
}
.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: center 18%;
        min-height: 88vh;
    }

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

    .hero-card {
        padding: 1.1rem 1rem;
        border-radius: 14px;
        box-shadow: 0 18px 46px rgba(0,0,0,0.18);
    }

    .hero-card h1 {
        font-size: 1.95rem;
    }

    .hero-card p {
        font-size: 0.96rem;
    }

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

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

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