/* ---------- Schriften (lokal, variable) ---------- */
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/opensans-latin.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Megrim";
    src: url("../fonts/megrim.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- Variablen ---------- */
:root {
    --c-text: #747474;
    --c-body: #000;
    --c-head: #333;
    --c-line: #dcdcdc;
    --c-btn: #d1e990;
    --c-btn-hover: #bfd978;
    --c-btn-text: #54770f;
    --c-footer: #212326;
    --c-fb: #027aea;
    --f-head: "Raleway", Arial, Helvetica, sans-serif;
    --f-body: "Open Sans", Arial, Helvetica, sans-serif;
    --f-logo: "Megrim", "Raleway", sans-serif;
    --header-h: 65px;
    --header-top-h: 65px;
    --c-line2: #e0dede;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 65px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 400 16px/1.9 var(--f-body);
    color: var(--c-text);
    background: #fff;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.4em; }
.center { text-align: center; }
.block p.center:has(> .btn) { margin: 0 0 1em; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: #fff; color: #000; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible { outline: 2px solid var(--c-btn-text); outline-offset: 3px; }

/* ---------- Kopfzeile ---------- */
.site-header {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
    height: var(--header-top-h);
    transition: height .25s, background-color .25s;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 40px);
    background: rgba(255, 255, 255, .4);
}
body:not(.ws-home) .site-header { background: rgba(33, 35, 38, .92); }
.site-header__logo img { height: 55px; width: auto; transition: height .25s; }
.site-header.is-stuck {
    position: fixed; height: 65px; background: rgba(33, 35, 38, .92);
}
.site-header.is-stuck .site-header__toggle span { background: #fff; }
@media (min-width: 900px) {
    :root { --header-top-h: 125px; }
    .site-header { padding-left: 64px; padding-right: 64px; }
    .site-header__logo img { height: 63px; }
    .site-header.is-stuck .site-header__logo img { height: 55px; }
}

.site-header__toggle {
    background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; padding: 10px 9px;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.site-header__toggle span {
    display: block; height: 2px; background: #333; transition: transform .25s, opacity .25s;
}
body:not(.ws-home) .site-header__toggle span { background: #fff; }
.site-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.site-nav[hidden] { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 10px 0; }
.site-nav a {
    display: block; padding: 12px clamp(16px, 4vw, 40px);
    font: 600 14px/1.4 var(--f-head); letter-spacing: 2px; text-transform: uppercase;
    color: var(--c-head); text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus-visible { background: #f2f2f2; color: var(--c-btn-text); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: #333; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__text {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; color: #fff;
    padding: 0 16px;
}
.hero__head, .hero__cap { margin: 0; background: rgba(0, 0, 0, .4); }
.hero__head {
    font: 400 clamp(13px, 1.6vw, 20px)/1.4 var(--f-head); letter-spacing: 2px;
    padding: 14px 30px 0;
}
.hero__cap {
    font: 400 clamp(36px, 7.7vw, 111px)/1.2 var(--f-logo); letter-spacing: 2px;
    padding: 6px 30px 14px;
}

/* ---------- Bereiche ---------- */
.block { background: #fff; padding: 72px 16px 60px; }
.block--intro { padding-top: 56px; padding-bottom: 28px; }
.block--page { padding-top: 60px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap--narrow { max-width: 819px; }
.wrap + .wrap { margin-top: 0; }
.block p { color: var(--c-body); }
.entry p, .entry li { color: var(--c-text); }
@media (min-width: 900px) { .block p { line-height: 2.5; } .block--intro p { line-height: 2.2; } }
.block--intro p { color: var(--c-text); }

.intro-title {
    margin: 0 0 1em; text-align: center;
    font: 400 22px/1.4 var(--f-head); letter-spacing: 2px; color: var(--c-head);
}
.titlebar { margin-top: var(--header-top-h); padding: 60px 16px; background: #c5e1a5; }
.page-title {
    font: 400 clamp(24px, 2.4vw, 34.5px)/1.3 var(--f-head); letter-spacing: 2px;
    color: var(--c-head); text-transform: uppercase; margin: 0;
}

.line-title {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 80px 0 57px;
    font: 400 clamp(20px, 2.07vw, 30px)/1.22 var(--f-head); letter-spacing: 2px;
    color: var(--c-head); text-align: center;
}
.line-title:first-child { margin-top: 0; }
.wrap + .wrap > .line-title:first-child { margin-top: 80px; }
.line-title::before, .line-title::after { content: ""; flex: 1; min-width: 20px; height: 1px; background: var(--c-line2); }
.line-title span { max-width: 80%; }

/* ---------- Banner mit festem Hintergrund ---------- */
.banner {
    position: relative; height: 336px; overflow: hidden; clip-path: inset(0);
    display: flex; align-items: center; justify-content: center; background: #444;
}
.banner__img { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; object-fit: cover; max-width: none; }
.banner__title {
    position: relative; z-index: 1; margin: 0; width: 100%; padding: 0 3%;
    display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
    font: 400 clamp(20px, 2.07vw, 30px)/1.22 var(--f-head); letter-spacing: 2px; color: #333;
    white-space: pre-line;
}
.banner__title::before, .banner__title::after { content: ""; flex: 1; height: 1px; background: var(--c-line2); }
.banner--dark .banner__title { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: block; width: 100%; cursor: pointer; text-align: center; text-decoration: none;
    border: 1px solid #9dba60; color: var(--c-btn-text);
    background: linear-gradient(to top, #aad75d, #d1e990);
    font: 600 18px/21px var(--f-head); letter-spacing: 4px; text-transform: uppercase;
    padding: 17px 20px;
}
.btn:hover, .btn:focus-visible { background: linear-gradient(to top, #bfe27e, #dcf0a8); }

/* ---------- Galerien ---------- */
.gallery { display: grid; gap: 5px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
    .gallery--4 { grid-template-columns: repeat(4, 1fr); }
    .gallery--5 { grid-template-columns: repeat(5, 1fr); }
}
.gallery__item { display: block; overflow: hidden; background: #eee; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .35s; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); opacity: .9; }

/* ---------- Lightbox ---------- */
.lb {
    position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92);
    display: none; align-items: center; justify-content: center;
}
.lb.is-open { display: flex; }
.lb img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.lb button {
    position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
    font-size: 40px; line-height: 1; width: 56px; height: 56px; opacity: .8;
}
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb__close { top: 10px; right: 10px; }
.lb__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font: 400 14px var(--f-head); }

/* ---------- FAQ ---------- */
.faq { margin: 0 0 2em; }
.faq details { border-bottom: 1px solid var(--c-line2); }
.faq summary {
    list-style: none; cursor: pointer; padding: 10px 40px 10px 4px; position: relative;
    font: 400 16px/35px var(--f-head); letter-spacing: 2px; color: var(--c-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    font: 400 24px/1 var(--f-head); color: var(--c-btn-text);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 4px 10px; }

/* ---------- Sonstiges ---------- */
.social { text-align: center; }
.social__fb {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: #027aea; color: #fff; border-radius: 3px;
}
.social__fb:hover { filter: brightness(1.1); }

.promo { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; justify-content: center; margin-top: 50px; }
.promo img { width: 300px; height: auto; }
.promo p { margin: 0; line-height: 1.5; }

.entry h2 { font: 600 20px/1.4 var(--f-head); color: var(--c-head); margin: 2em 0 .6em; letter-spacing: 1px; }
.entry h3 { font: 600 17px/1.4 var(--f-head); color: var(--c-head); margin: 1.6em 0 .5em; }
.entry a { color: var(--c-btn-text); }
.entry ul { padding-left: 1.2em; }

.site-footer { background: var(--c-footer); color: #bfbfbf; text-align: center; padding: 38px 16px; font-size: 13px; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { margin: 0 .6em; opacity: .5; }

@media (max-width: 640px) {
    .block { padding: 44px 16px; }
    .banner { height: 240px; }
    .btn { font-size: 15px; letter-spacing: 3px; padding: 16px 20px; }
    .line-title { gap: 10px; margin: 56px 0 32px; }
    .faq summary { letter-spacing: 0; }
    .line-title::before, .line-title::after { min-width: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__slide, .gallery__item img, .site-header__toggle span { transition: none; }
}

/* Eingeloggte Admins: feste Kopfzeile unter der Admin-Leiste */
body.admin-bar .site-header.is-stuck { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header.is-stuck { top: 46px; } }
@media (min-width: 900px) { .entry p, .entry li { line-height: 2.5; } }

/* Kontakt-Seiten: niedrigerer Hero mit Foto */
.hero--page { height: 60vh; height: 60svh; min-height: 380px; }
.hero--page .hero__cap { font-size: clamp(32px, 6vw, 90px); font-weight: 400; margin: 0; }

/* ---------- Kontaktformular (Plugin ws-site) ---------- */
.ws-form{max-width:640px;margin:0 auto}
.ws-form p{margin:0 0 1.2em}
.ws-form label{display:block;margin:0 0 .35em;font:600 13px/1.4 "Raleway",Arial,sans-serif;letter-spacing:1.5px;text-transform:uppercase;color:#333}
.ws-form input[type=text],.ws-form input[type=email],.ws-form input[type=tel],.ws-form textarea{width:100%;padding:14px 16px;font:400 16px/1.4 "Open Sans",Arial,sans-serif;color:#333;background:#f7f7f7;border:1px solid #d6d6d6;border-radius:0;box-sizing:border-box}
.ws-form input:focus,.ws-form textarea:focus{outline:2px solid #54770f;outline-offset:0;background:#fff}
.ws-form textarea{resize:vertical;min-height:140px}
.ws-form__hp{position:absolute;left:-9999px;height:1px;width:1px;overflow:hidden}
.ws-form__privacy{font-size:13px;line-height:1.6;color:#747474}
.ws-form__privacy a{color:#54770f}
.ws-form__submit{text-align:center}
.ws-form__error{margin:0 0 1.2em;padding:12px 16px;border-left:4px solid #b32d2e;background:#fbeaea;color:#8a1f20}
.ws-form__error p{margin:0}
.ws-form--done{padding:24px;text-align:center;background:#f1f8e0;border:1px solid #d1e990;color:#3b550b}

/* ---------- Karte ---------- */
.map { position: relative; margin: 0 0 40px; }
.map__canvas { height: 450px; background: #e8e8e8; z-index: 1; }
.map__canvas[hidden] { display: none; }
.map__consent {
    min-height: 450px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 30px 20px; text-align: center; background: #f2f2f2; border: 1px solid var(--c-line2);
}
.map__consent[hidden] { display: none; }
.map__consent p { margin: 0 0 .6em; max-width: 520px; line-height: 1.6 !important; }
.map__consent .btn { width: auto; min-width: 260px; margin-top: 10px; }
.map__link { font-size: 13px; }
.map__link a { color: var(--c-btn-text); }
@media (max-width: 640px) { .map__canvas, .map__consent { min-height: 360px; height: 360px; } }
