/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --cream: #f7f3ee;
    --warm-white: #fdfaf6;
    --sage: #7a9e7e;
    --sage-dark: #5a7a5e;
    --terracotta: #b5714a;
    --brown: #4a3728;
    --text: #2e2018;
    --text-muted: #7a6a5a;
    --border: #e0d5c8;

    /* New Footer Palette matching the warm tones */
    --footer-bg: #d96f32;
    --footer-text: var(--border);
    --footer-heading: var(--warm-white);
    --footer-border: rgba(224, 213, 200, 0.15);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ===== BASE ===== */
body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--warm-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; }
a { text-decoration: none; color: inherit; }
a:hover { color: var(--sage-dark); }
img { max-width: 100%; display: block; }

.container {
    width: 92%;
    max-width: 1080px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
header {
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    gap: 20px;
}
.site-logo {
    display: flex;
    align-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--brown);
    letter-spacing: 0.02em;
    white-space: nowrap;
    gap: 2px;
}
.site-logo-icon { height: 32px; width: auto; margin-right: 1px; }
.site-logo span { font-style: italic; font-weight: 300; color: var(--sage); margin-left: 6px; }

nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
nav ul li a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 0;
    border-bottom: 1.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
nav ul li a:hover {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
    text-decoration: none;
}

/* ===== HERO ===== */
.hero {
    background-color: var(--warm-white);
    background-image: linear-gradient(rgba(253,250,246,0.8), rgba(247,243,238,0.88)), url('hintergrund.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0 130px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.hero-content { max-width: 600px; margin: 0 auto; }
.hero-eyebrow {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 16px;
    font-weight: 500;
}
.hero h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 300;
    line-height: 1.15;
    color: var(--brown);
    margin-bottom: 24px;
}
.hero h2 em { font-style: italic; color: var(--terracotta); }
.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== GALLERY ===== */
.gallery-section {
    padding: 70px 0 80px;
    background: var(--warm-white);
    border-top: 1px solid var(--border);
}
.gallery-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 400;
    color: var(--brown);
    text-align: center;
    margin-bottom: 36px;
}
.gallery-outer {
    position: relative;
    padding: 0 56px;
}
.gallery-viewport {
    overflow: hidden;
    border-radius: 8px;
}
.gallery-track {
    display: flex;
    gap: 14px;
    will-change: transform;
    /* transition removed! JS will handle it now */
}
.gallery-track img {
    flex: 0 0 calc(33.333% - 10px);
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--brown);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(74,55,40,0.25);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.gallery-btn:hover {
    background: var(--terracotta);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(181,113,74,0.4);
}
.gallery-btn:active { transform: translateY(-50%) scale(0.96); }
.gallery-btn:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: default;
    box-shadow: none;
    transform: translateY(-50%);
}
.gallery-btn svg {
    width: 20px; height: 20px;
    stroke: currentColor; stroke-width: 2.5;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}
.gallery-btn-prev { left: 0; }
.gallery-btn-next { right: 0; }

/* ===== CONTENT PAGES ===== */
.content { padding: 70px 0; min-height: 30vh; }
.content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px; font-weight: 400;
    color: var(--brown); margin-bottom: 20px;
}
.content p { color: var(--text-muted); margin-bottom: 14px; }

/* ===== IMPRESSUM ===== */
.impressum-page { padding: 70px 0; }
.impressum-page h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 44px; font-weight: 400;
    color: var(--brown); margin-bottom: 10px;
}
.impressum-page .page-intro {
    font-size: 14px; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--sage);
    margin-bottom: 50px; font-weight: 500;
}
.impressum-page h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px; font-weight: 600;
    color: var(--brown); margin: 40px 0 15px 0;
}
.impressum-page p { color: var(--text-muted); margin-bottom: 15px; font-size: 16px; line-height: 1.8; }
.impressum-page a { color: var(--sage-dark); }
.impressum-page a:hover { color: var(--terracotta); text-decoration: underline; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 60px 0; }

/* ===== CONTACT FORM ===== */
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: 5px;
    background: var(--warm-white);
    font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 300;
    color: var(--text); outline: none; resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(122,158,126,0.12);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--text-muted); line-height: 1.5; cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 16px; height: 16px; margin-top: 2px;
    flex-shrink: 0; accent-color: var(--sage-dark); cursor: pointer;
}
.contact-form button {
    align-self: flex-start; background: var(--sage); color: #fff; border: none;
    padding: 12px 28px; border-radius: 5px;
    font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
    transition: background 0.2s, transform 0.15s; margin-top: 5px;
}
.contact-form button:hover { background: var(--sage-dark); transform: translateY(-1px); }

.contact-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.contact-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ===== FEEDBACK PAGE ===== */
.feedback-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.feedback-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: 10px; padding: 50px 60px; text-align: center; max-width: 460px; }
.feedback-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 400; color: var(--brown); margin-bottom: 14px; }
.feedback-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
.btn-back { display: inline-block; background: var(--sage); color: #fff !important; padding: 12px 28px; border-radius: 5px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s; }
.btn-back:hover { background: var(--sage-dark); text-decoration: none !important; }


/* ===== NEW WARM FOOTER ===== */
html, body { min-height: 100%; }

.footer-wave-wrapper { display: block; line-height: 0; background: var(--warm-white); }
.footer-wave-wrapper svg { display: block; width: 100%; }

/* Hide mobile wave by default */
.wave-mobile { display: none !important; }

footer {
    background: var(--footer-bg);
    padding: 50px 0 0 0;
    border-top: none;
    margin-bottom: 0;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}
.site-footer-col h3 {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--footer-heading);
    margin-bottom: 20px;
}
.site-footer-col p {
    font-size: 15px;
    color: var(--footer-text);
    line-height: 1.8;
}
.site-footer-col a {
    color: var(--footer-text);
    font-weight: 400;
    transition: color 0.2s;
}
.site-footer-col a:hover { color: #fff; }
.site-footer-col ul { list-style: none; }
.site-footer-col ul li { margin-bottom: 12px; }
.site-footer-col ul li a {
    color: var(--footer-text);
    font-size: 15px;
}
.site-footer-col ul li a:hover { color: #fff; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--footer-text);
    color: var(--footer-text) !important;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 14px;
    margin-top: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-outline:hover {
    background: var(--footer-text);
    color: var(--footer-bg) !important;
}

.copyright-inner {
    border-top: 1px solid var(--footer-border);
    padding: 24px 0 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    color: var(--footer-text);
}
.copyright-inner a { color: var(--footer-text); transition: color 0.2s; }
.copyright-inner a:hover { color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .hero { padding: 90px 0; }
    .site-footer-grid { grid-template-columns: 1fr; gap: 30px; } 
    .feedback-card { padding: 36px 28px; }
    nav ul { gap: 4px 14px; }
    .gallery-track img { height: 180px; }
    .gallery-outer { padding: 0 44px; }
    .copyright-inner { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
    
    /* Swap the waves on mobile! */
    .wave-desktop { display: none !important; }
    .wave-mobile { display: block !important; }

    /* Center the footer content on mobile */
    .site-footer-col { text-align: center; }
}