@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Work+Sans:wght@300;400;500;600&display=swap");

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

:root {
    --color-primary: #c6a66b;
    --color-primary-dark: #b48f52;
    --color-bg: #f7f4ef;
    --color-surface: #ffffff;
    --color-text: #2b2620;
    --color-muted: #6e665b;
    --color-border: #e5ded3;
    --color-input-border: #d4d0c8;
    --color-contact-submit: #c2a673;
    --color-contact-submit-hover: #ad9462;
    --font-heading: "Cormorant Garamond", "Times New Roman", serif;
    --font-body: "Work Sans", Arial, sans-serif;
    --container-max: 1180px;
    --header-height: 9rem;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    margin-bottom: 1rem;
}

a {
    color: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.7);
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-nav {
    margin-left: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-link {
    text-decoration: none;
    padding: 0.25rem 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link.active::after {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 50%;
    height: 2px;
    background: var(--color-text);
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(130deg, #5b4b36, #c6a66b);
}

.page-hero {
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(135deg, rgba(198, 166, 107, 0.2), rgba(255, 255, 255, 0.6));
}

.section-lead {
    max-width: 65ch;
    font-size: 1.05rem;
    color: var(--color-muted);
}

body[data-page="leistungen"] .page-hero .section-lead {
    max-width: none;
}

.section .container > h3 {
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 12, 8, 0.45), rgba(16, 12, 8, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.75rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    margin-bottom: 1.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.info-card,
.contact-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.facilities-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin-top: 0.75rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.section-contact {
    background-color: var(--color-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.contact-info {
    padding: clamp(1.75rem, 4vw, 2.25rem);
    background: var(--color-surface);
    border-radius: 1.125rem;
    border: 1px solid rgba(229, 222, 211, 0.85);
    box-shadow: 0 10px 28px rgba(43, 38, 32, 0.06);
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 2.8vw, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
    color: var(--color-text);
    line-height: 1.2;
}

.contact-info p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
}

.contact-info p + p {
    margin-top: 0.65rem;
}

.contact-info a {
    text-decoration: underline;
    text-decoration-color: rgba(43, 38, 32, 0.25);
    text-underline-offset: 0.15em;
}

.contact-info a:hover {
    text-decoration-color: var(--color-primary);
}

.contact-form-wrap {
    padding: clamp(1.75rem, 4vw, 2.25rem);
    background: var(--color-surface);
    border-radius: 1.125rem;
    border: 1px solid rgba(229, 222, 211, 0.85);
    box-shadow: 0 10px 28px rgba(43, 38, 32, 0.06);
}

.status-message {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
}

.status-message.info {
    background: #d1ecf1;
    color: #0c5460;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#contactForm label {
    margin-top: 1.15rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text);
}

#contactForm label:first-of-type {
    margin-top: 0;
}

#contactForm input,
#contactForm textarea {
    margin-top: 0.35rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-input-border);
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-surface);
    color: var(--color-text);
    width: 100%;
}

#contactForm textarea {
    min-height: 7rem;
    resize: vertical;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(194, 166, 115, 0.2);
}

#contactForm .btn-contact-send {
    margin-top: 1.1rem;
    width: 100%;
    align-self: stretch;
    justify-content: center;
    cursor: pointer;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    background: var(--color-contact-submit);
    color: #fff;
}

#contactForm .btn-contact-send:hover {
    background: var(--color-contact-submit-hover);
}

#contactForm .btn-contact-send:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.form-note {
    margin-top: 0.65rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.45;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(198, 166, 107, 0.2);
}

.contact-form button {
    margin-top: 0.9rem;
    cursor: pointer;
}

.map-embed {
    height: 360px;
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.legal-section {
    text-align: left;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 600;
    margin-top: 2.25rem;
    margin-bottom: 0.65rem;
}

.legal-section h2:first-of-type {
    margin-top: 1.5rem;
}

.legal-section h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.15rem;
    margin-bottom: 0.45rem;
}

.legal-section p,
.legal-section ul {
    margin-bottom: 0.85rem;
}

.legal-section ul {
    padding-left: 1.35rem;
    list-style: disc;
}

.legal-section li {
    margin-bottom: 0.35rem;
}

.legal-section .legal-meta {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-muted);
}

.leistungen-sgb-headlines h2 + h2 {
    margin-top: 0.35rem;
}

.leistungen-sgb-headlines + h2 {
    margin-top: 2rem;
}

.site-footer {
    background-color: #1f1b16;
    color: #fff;
    text-align: center;
    padding: 2.25rem 1.5rem;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

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

.footer-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.footer-link:hover {
    opacity: 1;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(15, 15, 15, 0.95);
    color: #fff;
    padding: 1rem 1.5rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
}

.cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-link {
    color: #fff;
    text-decoration: underline;
}

.cookie-accept {
    border: none;
    background: #fff;
    color: #111;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
}

.cookie-accept:hover {
    background: #f1f1f1;
}

@media (max-width: 980px) {
    .split-grid,
    .contact-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-surface);
        max-height: 0;
        opacity: 0;
        overflow-y: auto;
        visibility: hidden;
        transform: translateY(-6px);
        transition: max-height 0.6s ease, opacity 0.35s ease, transform 0.35s ease;
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav.is-open {
        max-height: calc(100vh - var(--header-height));
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 1.5rem 1.5rem;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 7rem;
    }

    .header-inner {
        padding: 0.5rem 1rem;
    }

    .logo-link {
        width: 96px;
        height: 96px;
    }

    .section {
        padding: 3rem 0;
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-accept {
        align-self: flex-start;
    }
}
