/* =========================
   BASISFARBEN & TOKENS
========================= */
:root {
    --bg: #ffffff;
    --text: #1c1b1b;
    --muted: #5a5f6b;

    /* Brand (hell, elegant) */
    --accent: #e7d2b9;        /* Button-HG */
    --accent-hover: #f4e6d3;  /* Button-Hover */

    /* Header & Footer in Beige */
    --header-bg: #ffedca;
    --footer-bg: #ffedca;
    --footer-fg: #111216;

    /* Surfaces */
    --soft: #faf8f4;

    --shadow: 0 6px 18px rgba(0,0,0,.06);
    --radius: 18px;
    --max: 1200px;

    /* Zusätze */
    --radius-sm: 10px;
    --radius-lg: 24px;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;

    /* UI Komfort */
    color-scheme: light;
    accent-color: #b78b3f;

    /* Sticky-Header Offset für Anker-Links */
    scroll-padding-top: 84px;
}

/* =========================
   RESET & TYPOGRAFIE
========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: 20px;
}

.section { padding: 60px 0; }
.section--beige { background: var(--soft); }

h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
/* skalierende Typografie */
h1{ font-size: clamp(2rem, 2.6vw, 3rem); }
h2{ font-size: clamp(1.5rem, 1.8vw, 2.2rem); }

.eyebrow {
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 8px;
}

.lead { font-size: clamp(1.05rem, 1.2vw, 1.25rem); color: var(--muted); }

/* Fließtext-Links wieder sichtbar */
p a{ text-decoration: underline; text-underline-offset: 2px; }
p a:hover{ text-decoration-thickness: 2px; }

/* =========================
   ACCESSIBILITY / FOCUS
========================= */
:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}
a:focus-visible, .btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,0,0,.12);
}

/* Screenreader Utility */
.visually-hidden{
    position:absolute !important; height:1px; width:1px; overflow:hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* =========================
   SKIP-LINK
========================= */
.skip-link {
    position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
    position: fixed; left: 20px; top: 20px; width: auto; height: auto;
    padding: 10px 14px; background: #000; color: #fff; border-radius: 8px; z-index: 2000;
}

/* =========================
   BUTTONS (vereinheitlicht)
========================= */
.btn{
    --btn-bg: var(--accent);
    --btn-fg: #333;
    --btn-bd: #e3d4b5;
    --btn-bg-hover: var(--accent-hover);

    appearance: none;
    border: 1px solid var(--btn-bd);
    background: var(--btn-bg);
    color: var(--btn-fg);
    padding: .75rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-bd: var(--accent);
}

.btn--wide{ padding: .75rem 1.4rem; }

/* Unterstreichung überall sicher entfernen */
.btn, .btn:link, .btn:visited, .btn:hover, .btn:focus { text-decoration: none !important; }

/* =========================
   HEADER (modern, beige)
========================= */
.header--modern{
    background: var(--header-bg);
    color: var(--text);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    overflow: visible;
}

.header__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.6rem;
    max-width: var(--max);
    margin: auto;
}

.nav__list{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0; padding: 0;
}
.nav__list a{
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: .02em;
    transition: opacity .2s;
    text-transform: uppercase;
    font-size: .9rem;
}
.nav__list a:hover { opacity: .7; }
/* Kein Layout-Shift durch border-bottom */
.nav__list a.is-active { box-shadow: inset 0 -2px 0 rgba(0,0,0,.5); padding-bottom: 2px; }

.logo--header{ display: inline-flex; align-items: center; justify-content: center; }
.logo__img{ height: 52px; width: auto; }

/* Mobile Toggle */
.mobile-toggle{
    background: none; border: 0; cursor: pointer;
    display: none; position: relative; width: 34px; height: 22px;
}
.hamburger, .hamburger::before, .hamburger::after{
    content:""; display:block; background:#333;
    height:2px; border-radius:2px; width:100%;
    position:absolute; transition:.3s ease;
}
.hamburger{ top:50%; transform:translateY(-50%); }
.hamburger::before{ top:-8px; }
.hamburger::after{ top:8px; }
.mobile-toggle.is-active .hamburger{ background: transparent; }
.mobile-toggle.is-active .hamburger::before{ transform: rotate(45deg) translate(4px,4px); }
.mobile-toggle.is-active .hamburger::after{ transform: rotate(-45deg) translate(4px,-4px); }

/* Mobile Nav (Overlay) */
.mobile-nav{
    position: fixed; inset: 0;
    background: var(--header-bg);
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    transform: translateX(-100%); transition: .3s ease; z-index: 998;
}
.mobile-nav.is-active{ transform: none; }
.mobile-nav__list{
    list-style: none; margin: 0; padding: 0;
    text-align: center; display: flex; flex-direction: column; gap: 1.5rem;
}
.mobile-nav__list a{
    color: #111; text-decoration: none; font-size: 1.2rem; font-weight: 400;
}
.mobile-nav__list a:hover{ opacity:.8; }

/* Scroll-Fix bei offenem Menü (iOS Bounce vermeiden) */
body.menu-open { overflow: hidden; position: fixed; inset: 0; }

/* =========================
   HERO (mit optionalem Hintergrundbild)
========================= */
.hero {
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    background-color: #fff7e2;     /* Fallback */
    background-size: cover;
    background-position: center;
}
.hero__overlay {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    padding: 38px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 760px;
}
.hero__overlay h1 { margin: 0 0 8px; font-weight: 800; }
.hero__overlay h2 { margin: 0 0 10px; font-weight: 700; font-size: 1.15rem; }
.hero__cta { margin-top: 14px; }

/* =========================
   ABOUT
========================= */
.about { background: var(--soft); }

.section-header { text-align: center; max-width: 820px; margin: 0 auto 28px; }
.section-title { font-size: 2rem; font-weight: 800; }
.section-subtitle { font-size: 1.15rem; color: var(--muted); }

.about__row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 40px; max-width: 1000px; margin: 0 auto 60px;
}
.about__col { flex: 1; min-width: 300px; }
.about__image img { border-radius: 8px; box-shadow: var(--shadow); }

.about--plain { background: var(--bg); }

/* =========================
   GALLERY
========================= */
.gallery-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
}
.gallery-item { aspect-ratio: 1; overflow: hidden; opacity: 0; transform: translateY(20px); animation: fadeIn .5s ease forwards; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; cursor: pointer; }

/* Hover nur auf Geräten mit Hover */
@media (hover: hover){
    .gallery-item img:hover { transform: scale(1.05); }
}

@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.gallery-item:nth-child(1) { animation-delay: .1s; }
.gallery-item:nth-child(2) { animation-delay: .2s; }
.gallery-item:nth-child(3) { animation-delay: .3s; }

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.85);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 2000;
    pointer-events: none;
}
.lightbox.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

.lightbox-content {
    max-width: 90%; max-height: 85%;
    border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.close {
    position: absolute; top: 24px; right: 28px;
    color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
    opacity: .85; transition: opacity .2s ease;
}
.close:hover { opacity: 1; }

/* =========================
   PROMO / TERMIN
========================= */
.promo { background: var(--soft); }
.promo__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 100px;
    align-items: center;
}
.promo__media {
    width: 260px; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
    background: #fff; box-shadow: var(--shadow);
}
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }

/* =========================
   FOOTER (beige)
========================= */
.footer--modern{
    background: var(--footer-bg);
    color: var(--footer-fg);
    padding: 48px 0 32px;
}
.footer--modern a{ color: var(--footer-fg); text-decoration: none; }
.footer--modern a:hover{ opacity:.9; }

.fbrand__img{ height: 54px; width: auto; }

.fgrid{
    display:grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
    gap:28px; align-items:start; margin-bottom:28px;
}
@media (max-width: 1024px){ .fgrid{ grid-template-columns: 1fr 1fr; gap:22px; } }
@media (max-width: 640px){ .fgrid{ grid-template-columns: 1fr; gap:18px; } }

.fcol__title{
    text-transform: uppercase; letter-spacing:.06em;
    font-size:.85rem; color: #333; margin:0 0 10px;
}
.ftime{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.ftime em { font-style: normal; opacity: .75; font-size: .95em; }

.faddr{ font-style: normal; margin:0 0 8px; }
.fcontact a{ border-bottom: 1px dashed rgba(0,0,0,.25); }
.fcontact a:hover{ border-bottom-color: transparent; }

.fsocial{ display:flex; gap:10px; margin-bottom:12px; }
.fsocial__btn{
    width:42px; height:42px; border-radius:999px; display:grid; place-items:center;
    background: #fff; color:#000; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
    transition: transform .15s ease, background .2s ease;
}
/* Hover nur auf Geräten mit Hover */
@media (hover: hover){
    .fsocial__btn:hover{ transform: translateY(-2px); background:#fff; }
}

.btn--wide{
    display:inline-block; padding:.75rem 1.4rem; border-radius:999px;
    background: var(--accent); border:1px solid #e3d4b5; color:#333;
    box-shadow:var(--shadow); font-weight:600; text-align:center;
}
.btn--wide:hover{ background: var(--accent-hover); }

.flinks{
    display:flex; justify-content:center; gap:18px; flex-wrap:wrap; margin-top:22px;
}
.flink{
    background: rgba(255,255,255,.6); border:1px solid rgba(0,0,0,.06);
    padding:12px 22px; border-radius:999px; color:#000; font-weight:500;
    transition: background .2s ease;
}
.flink:hover{ background: #fff; }

/* =========================
   IMPRESSUM & SEITENBANNER (konsolidiert)
========================= */

/* --- Banner nur Bild (konsolidiert) --- */
.banner-only {
    width: 100%;
    position: relative;
    overflow: hidden;
    line-height: 0;
}
.banner-only img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 380px;
}
@media (max-width: 768px) {
    .banner-only img { max-height: 280px; }
}

/* --- Überschrift unter Banner (konsolidiert) --- */
.heading-under-banner {
    background: var(--soft);
    text-align: center;
    padding: clamp(40px, 6vw, 60px) 20px;
}
.heading-under-banner .container {
    max-width: 900px;
    margin: 0 auto;
}
.heading-under-banner .eyebrow {
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    margin-bottom: 10px;
}
.heading-under-banner .section-title {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 10px;
}
.heading-under-banner .section-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
}

/* --- Impressum-Inhalt --- */
.impressum-section {
    background: #fff;
    padding: 60px 20px 80px;
    color: var(--text);
    font-family: "Roboto", sans-serif;
}
.impressum-section .container {
    max-width: 820px;
    margin: 0 auto;
}
.impressum-section h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 10px;
    font-weight: 700;
}
.impressum-section p {
    line-height: 1.7;
    margin: 8px 0;
    color: var(--text);
}
.impressum-section a {
    color: #007bff;
    text-decoration: none;
}
.impressum-section a:hover {
    text-decoration: underline;
}
/* --- Zurück-Button --- */
.impressum-section .btn { margin-top: 20px; }

/* =========================
   PARTNER PAGE – ADD-ON
========================= */

/* Kartenlayout */
.partner{
    background:#fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding:24px;
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:24px;
}
.partner + .partner{ margin-top:20px; }

/* Logo/Medienfeld */
.partner__media{
    aspect-ratio: 4/3;
    border-radius:12px;
    background: var(--tile, #faf5ea); /* nutzt vorhandene Variable, fallback beige */
    display:grid;
    place-items:center;
    padding:16px;
}
.partner__media img{
    width:auto; height:auto;
    max-width:min(220px, 80%);
    max-height: clamp(80px, 12vw, 140px);
    object-fit:contain;
}

/* Texte */
.partner__content{ display:grid; gap:16px; }
.partner__title{ font-size:1.8rem; color:#333; margin:0; }
.partner__subtitle{ color: var(--muted, #666a73); margin:0; }

/* Kontaktkarte innerhalb der Partner-Box */
.contact-card{
    background:#fff;
    border:1px solid #efefef;
    border-radius:12px;
    box-shadow: var(--shadow);
    padding:16px 18px;
}
.contact-card__row{ margin:0 0 10px; }
.contact-card a{ color:#1a1a1a; text-decoration:none; }
.contact-card a:hover{ text-decoration:underline; }

/* Buttons in Kontaktkarten – hell/beige Stil */
.contact-card a.btn{
    --btn-bg: #f6e6c8 !important;
    --btn-bd: #ead7af !important;
    --btn-fg: #2b2b2b !important;

    background: var(--btn-bg) !important;
    border: 1px solid var(--btn-bd) !important;
    color: var(--btn-fg) !important;
    display:inline-flex;
    align-items:center; justify-content:center;
    padding:10px 18px;
    border-radius:999px;
    font-weight:600;
    text-decoration:none !important;
    box-shadow: var(--shadow);
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.contact-card a.btn:hover{
    background: #efd9ad !important;
    border-color: #e3c993 !important;
    transform: translateY(-1px);
}
.contact-card a.btn:active{ transform: translateY(0); }

/* Abschnitt mit zartem Beige */
.section--soft{ background: var(--soft, #fff7e6); }

/* Responsiv */
@media (max-width: 960px){
    .partner{ grid-template-columns:1fr; }
}

/* =========================
   404 PAGE STYLING
========================= */

.section--soft .eyebrow {
    color: #8a6b2f;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.section--soft .section-title {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 12px;
}
.section--soft .section-subtitle {
    color: var(--muted, #666a73);
    font-size: 1.1rem;
}
.section--soft .btn {
    background: var(--btn-bg, #f6e6c8);
    border: 1px solid var(--btn-border, #ead7af);
    color: var(--btn-text, #2b2b2b);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 22px;
    margin: 4px;
    transition: background-color .2s ease, transform .1s ease;
}
.section--soft .btn:hover {
    background: var(--btn-hover-bg, #efd9ad);
    transform: translateY(-1px);
}
.section--soft .btn--ghost {
    background: transparent;
    border: 1px dashed var(--btn-border, #ead7af);
    color: #111;
}
.section--soft .btn--ghost:hover {
    background: var(--tile, #faf5ea);
}

/* Bild unterhalb der Fehlermeldung */
.media--centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}
.media--centered img {
    max-width: 500px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    transition: transform .3s ease;
}
@media (hover: hover){
    .media--centered img:hover { transform: scale(1.02); }
}

/* Kleine Animation beim Einblenden */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}
.section--soft .container { animation: fadeInUp .6s ease both; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px){
    .promo__card{ column-gap: 50px; }
}

@media (max-width: 900px){
    .nav--primary{ display: none; } /* sicherstellen, dass die Klasse existiert oder entfernen */
    .mobile-toggle{ display: block; }
    .promo__card{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
    .about__row{ flex-direction: column; }
    .gallery-grid{ grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .hero { min-height: 420px; }
}

/* Motion-Reduktion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Optional: Datenreduktion */
@media (prefers-reduced-data: reduce){
    .gallery-item img{ transition: none; }
}

/* ============ ABOUT (Plain, Beispiel-Stil) ============ */
.about--plain { background: var(--bg); }

.about--plain .about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.about--plain .about__image { max-width: 420px; }
.about--plain .profile-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.about--plain .title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.about--plain .subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 20px;
}

.about--plain .text { color: #555; margin-bottom: 16px; }

/* LIST — falls du Qualifikationen o.ä. nutzt */
.about--plain .list { padding: 0; margin: 16px 0; list-style: none; display: grid; gap: 10px; }
.about--plain .list li { margin: 0; padding-left: 20px; position: relative; color: #555; }
.about--plain .list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

@media (min-width: 900px) {
    .about--plain .about__grid {
        grid-template-columns: 0.9fr 1.4fr;
        align-items: start;
    }
}

/* ===== Lightbox Slider UI ===== */
.lightbox__nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.5);
    background: rgba(0,0,0,.25);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
    opacity: .95;
}
.lightbox__nav:hover,
.lightbox__nav:focus-visible{
    background: rgba(0,0,0,.35);
    border-color: rgba(255,255,255,.9);
    transform: translateY(-50%) scale(1.04);
}
.lightbox__prev{ left: 24px; }
.lightbox__next{ right: 24px; }

.lightbox__counter{
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Kleinere Screens: Buttons näher an den Rand und nicht zu groß */
@media (max-width: 640px){
    .lightbox__nav{ width: 40px; height: 40px; }
    .lightbox__prev{ left: 12px; }
    .lightbox__next{ right: 12px; }
}

.map__actions {
    display: flex;
    justify-content: center; /* zentriert horizontal */
    margin-top: 16px;        /* optionaler Abstand nach oben */
}

.map__actions .map__link {
    text-align: center;      /* falls der Button breiter ist */
}

/* ===== iOS/Apple Devices: Baseline Fixes ===== */
html {
    -webkit-text-size-adjust: 100%;
}

:root {
    /* Safe areas (iPhone Notch) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

/* Tap-Highlight & smoother scroll on iOS containers */
a, button { -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* iOS Input-Zoom verhindern (mind. 16px) */
input, select, textarea {
    font-size: 16px;
}

/* ===== Viewport/Hero ===== */
/* Vermeide 100vh auf iOS (Toolbars) – nutze svh/dvh */
.hero {
    min-height: min(70svh, 620px);
}

/* ===== Sticky Header & Safe Area ===== */
.header--modern {
    padding-top: max(0px, var(--safe-top));
}

/* Header-Inner behält sein Padding; wir fügen keinen doppelten Rand hinzu */
.header__inner {
    /* nichts weiter nötig – safe-top sitzt am Header selbst */
}

/* ===== Mobile Nav Overlay ===== */
.mobile-nav {
    /* Volle Fläche + Safe Areas + scrollfähig */
    padding: calc(var(--safe-top) + 16px) max(16px, var(--safe-left))
    calc(var(--safe-bottom) + 24px) max(16px, var(--safe-right));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Wenn Menü offen: nur scroll sperren (fixed + inset auf iOS führt zu Sprüngen) */
body.menu-open {
    overflow: hidden;
    position: static; /* war: fixed; inset:0; -> führt auf iOS oft zu Layout-Jumps */
}

/* Mobile Toggle: größere Touch-Fläche */
.mobile-toggle {
    width: 40px; height: 28px;
}

/* ===== Lightbox (iPhone/iPad) ===== */
.lightbox {
    padding: calc(var(--safe-top) + 12px) 12px calc(var(--safe-bottom) + 12px);
    -webkit-overflow-scrolling: touch;
}

.lightbox-content {
    max-width: 94vw;
    max-height: 86svh; /* statt 85% -> stabiler mit Toolbar */
    object-fit: contain;
}

/* Close-Button nicht in die Notch drücken */
.close {
    top: calc(var(--safe-top) + 12px);
    right: calc(var(--safe-right) + 16px);
}

/* ===== Gallery: sehr kleine Phones auf 1 Spalte runter ===== */
@media (max-width: 380px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ===== Promo-Layout: enger auf Phones ===== */
@media (max-width: 768px) {
    .promo__card { row-gap: 18px; }
    .promo__media { width: min(240px, 70vw); margin: 0 auto; }
}

/* ===== Footer: Touch-Komfort & Safe-Area unten ===== */
.footer--modern {
    padding-bottom: calc(32px + var(--safe-bottom));
}

/* ===== iPad Portrait/Landscape Tweaks ===== */
/* iPad Portrait (768–1024) */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav__list { gap: 1.1rem; }
    .section { padding: 48px 0; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .about__row { gap: 28px; }
    .hero__overlay { max-width: 820px; padding: 34px 26px; }
}

/* iPad Pro Landscape (1024–1366) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .section { padding: 56px 0; }
    .promo__card { column-gap: 72px; }
}

/* ===== Safe-Area für Buttons am unteren Rand (z.B. CTAs im Overlay) ===== */
.btn--wide,
.cta-row .btn {
    margin-bottom: max(4px, var(--safe-bottom));
}

/* ===== Scroll Snap/Overflow-Helfer (falls später genutzt) ===== */
.scroller,
.mobile-nav,
.lightbox {
    -webkit-overflow-scrolling: touch;
}

/* ===== Optionale Korrektur: .nav--primary nur ausblenden, wenn vorhanden ===== */
@media (max-width: 900px) {
    .nav--primary { display: none; } /* ok, falls die Klasse existiert */
    .mobile-toggle { display: block; }
}

/* ===== Hero Hintergrund-Image: bessere Deckung auf Phones ===== */
@media (max-width: 768px) {
    .hero { background-position: 50% 35%; }
}

/* ===== About Plain: iPad Typo leicht vergrößern ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .about--plain .title { font-size: 2.2rem; }
    .about--plain .subtitle { font-size: 1.25rem; }
}

/* ===== Touch-Ziele: Social Buttons minimal größer auf kleinen Phones ===== */
@media (max-width: 420px) {
    .fsocial__btn { width: 46px; height: 46px; }
}

/* =========================
   ABOUT INTRO (zentriert, modern)
========================= */
.about--intro {
    background: var(--soft);
    padding: clamp(56px, 8vw, 96px) 0;
}

.about--intro .intro {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.about--intro .intro .eyebrow {
    margin-bottom: 12px;
    letter-spacing: .12em;
}

.about--intro .intro__title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--text);
}

.about--intro .intro__subtitle {
    font-size: clamp(1.1rem, 1.4vw, 1.5rem);
    color: var(--muted);
    margin: 0 0 16px;
}

.about--intro .intro__lead {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0 0 16px;
}

.about--intro .intro__text {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.about--intro .intro__text p {
    margin: 0;
    color: var(--text);
}

.about--intro .cta-row {
    justify-content: center;
    margin-top: 22px;
}

@media (max-width: 640px) {
    .about--intro {
        padding: 48px 0;
    }
    .about--intro .intro__title {
        font-size: 2rem;
    }
}

/* =========================
   ANGEBOT – Text oben, Bilder unten
========================= */
.offer {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(20px, 3vw, 28px);
    margin: 0 auto clamp(28px, 5vw, 44px);
    max-width: 1000px;
}

.offer__header {
    text-align: center;
    margin-bottom: 18px;
}
.offer__title {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 800;
}
.offer__sub {
    color: var(--muted);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    margin: 0;
}

/* Einspaltig: erst Text, dann Bilder */
.offer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vw, 22px);
}

.offer__content h3 { margin: 0 0 10px; font-size: 1.25rem; }
.offer__content p { margin: 0 0 12px; }
.offer__list { margin: 0 0 6px 1.1rem; }
.offer__list li { margin: 6px 0; }

/* =========================
   ANGEBOT – grössere & höhere Bilder
========================= */
.offer__media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.offer__media .thumb {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4; /* höher: 3:4 statt 5:4 */
    background: #f7f7f7;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.offer__media .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

/* Hover-Effekt */
@media (hover: hover) {
    .offer__media .thumb:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.1);
    }
    .offer__media .thumb:hover img {
        transform: scale(1.05);
    }
}

/* Mobile: weniger Spalten, dafür hohe Bilder */
@media (max-width: 900px) {
    .offer__media {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media (max-width: 600px) {
    .offer__media {
        grid-template-columns: 1fr;
    }
}

/* =========================
   ABOUT INTRO – Hintergrund weiss
========================= */
.about--intro {
    background: #fff !important;
}

/* =========================
   Impressum – Button "Zurück zur Startseite"
========================= */
.impressum-section .btn {
    color: black; /* weisser Text */
    text-decoration: none;
    background: var(--accent, #d2a679); /* beige-goldene Hauptfarbe */
    border: none;
    border-radius: var(--radius, 8px);
    padding: 10px 22px;
    display: inline-block;
    font-weight: 600;
    transition: background 0.25s ease;
}

.impressum-section .btn:hover,
.impressum-section .btn:focus {
    background: var(--accent-hover, #c4935e);
    color: #fff;
}

/* =========================
   404 Seite – Layout & Button
========================= */
.section-404,
.section[style*="70vh"] {
    background: #fff;
    color: var(--text);
    padding: clamp(60px, 8vw, 120px) 0;
}

.section-404 .btn,
.section[style*="70vh"] .btn {
    background: var(--accent, #d2a679);
    color: black;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: var(--radius, 8px);
    display: inline-block;
    font-weight: 600;
    transition: background 0.25s ease;
}

.section-404 .btn:hover,
.section[style*="70vh"] .btn:hover {
    background: var(--accent-hover, #c4935e);
}










