/* Zimmerei Jens N. Nielsen – statischer Nachbau der Framer-Seite (Projekt 4ZKsuzpdKCaXllgVThph)
   Breakpoints wie in Framer: Startseite Desktop ab 1200 px, Unterseiten Desktop ab 1440 px (Tablet 810–1439, siehe _build/css.py), Phone bis 809 px. */

/* Wie bei Framer: Sora 500 kommt aus einer eigenen statischen Datei (Fontshare), alle anderen Schnitte aus der variablen Google-Datei */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/sora-500-fontshare.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 501 800; font-display: swap;
  src: url("/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 501 800; font-display: swap;
  src: url("/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 499; font-display: swap;
  src: url("/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 499; font-display: swap;
  src: url("/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #13264d;      /* rgb(19, 38, 77) – Schrift Navigation hell */
  --blau: #243481;      /* rgb(36, 52, 129) – Überschriften, Icons */
  --gelb: #ffbe0b;      /* rgb(255, 190, 11) – Knöpfe, Akzent */
  --strich: #f7b843;    /* Unterstreichung aktuelle Seite (Linkstil „Nav Foto“/„Nav Hell“) */
  --grau-text: #5e6979;
  --feld: #f8fafc;
  --feld-rand: #e9eef5;
  --linie: #d9d9d9;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #000; font-family: "Sora", sans-serif; font-size: 16px; line-height: 1.2; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gelb); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 5px; background: var(--gelb); color: #000; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------------- Navigation ---------------- */
.nav { position: relative; z-index: 20; width: 100%; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 1440px; margin: 0 auto; padding: 0 50px; }
.nav-logo { display: flex; align-items: center; gap: 15px; width: 261px; height: 63px; flex: none; }
.nav-logo img { width: 63px; height: 63px; border-radius: 50%; flex: none; }
.nav-foto .nav-logo img { box-shadow: 0 2px 10px rgba(0, 0, 0, .28); }
.nav-logo span { font-size: 20px; font-weight: 700; line-height: 24px; white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-menu a, .nav-panel a { position: relative; font-weight: 600; white-space: nowrap; }
.nav-menu a { font-size: 16px; line-height: 19.2px; }
/* aktuelle Seite: gelb unterstrichen; beim Überfahren schiebt sich derselbe Strich unter die anderen Punkte */
.nav-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 1px; background: var(--strich); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease); }
.nav-menu a[aria-current="page"]::after, .nav-menu a:hover::after { transform: scaleX(1); }
.nav-contact { position: relative; display: block; width: 204px; height: 54px; flex: none; }
.nav-contact img { position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 100%; border: 2px solid #fff; object-fit: cover; transition: transform .35s var(--ease); }
.nav-contact:hover img { transform: scale(1.06); }
.nav-mail, .nav-reach { position: absolute; left: 64px; font-size: 10px; line-height: 12px; white-space: nowrap; }
.nav-mail { top: 12px; font-weight: 800; }
.nav-reach { top: 29px; font-weight: 400; }
.burger { display: none; position: relative; width: 30px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; flex: none; }
.burger span { position: absolute; left: 0; width: 30px; height: 2px; background: currentColor; transition: transform .4s var(--ease), opacity .25s ease; }
.burger span:nth-child(1) { top: 1px; } .burger span:nth-child(2) { top: 9px; } .burger span:nth-child(3) { top: 17px; }
.burger::before { content: ""; position: absolute; inset: -12px; }
.nav-panel { display: none; }

/* über dem Foto (Startseite) */
.nav-foto { position: absolute; left: 0; top: 0; padding-top: 20px; color: #fff; }
/* helle Seiten */
.nav-hell { padding: 10px 0; background: #fff; color: var(--navy); box-shadow: inset 0 -2px 0 #f1f1f1; }
.nav-hell .nav-contact img { border-color: #fff; }

/* ---------------- Footer ---------------- */
.foot { width: 100%; font-size: 12px; font-weight: 600; line-height: 14.4px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 1350px; margin: 0 auto; padding: 0 45px 34px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 22px; }
.foot a { transition: opacity .2s ease; }
.foot a:hover { opacity: .7; }
.foot p { text-align: center; text-wrap: balance; }
.foot-foto { position: absolute; left: 0; bottom: 0; color: #fff; }
.foot-foto .foot-in { max-width: 1440px; }
.foot-hell { max-width: 1350px; margin: 0 auto; box-shadow: inset 0 1px 0 var(--linie); }
.foot-hell .foot-in { padding-top: 30px; padding-bottom: 30px; }

/* ---------------- Startseite ---------------- */
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; background: #fff; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Framer „Filter“: weicher Verlauf nur hinter dem Textblock */
.hero-shade { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1.5; background: radial-gradient(48% 42% at 50% 50%, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .2) 55%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.hero-content { position: absolute; left: 50%; top: 222px; width: 528px; height: 285px; margin-left: -264px; color: #fff; text-align: center; }
.hero-logo { position: absolute; left: 211px; top: 0; width: 107px; height: 107px; border-radius: 50%; box-shadow: 0 6px 22px rgba(0, 0, 0, .32); }
.hero h1 { position: absolute; left: 0; right: 0; top: 136px; font-size: 40px; font-weight: 700; line-height: 48px; white-space: nowrap; }
.hero-sub { position: absolute; left: 0; right: 0; top: 205px; font-size: 16px; font-weight: 600; line-height: 19.2px; white-space: nowrap; }
.hero-sub span { color: var(--gelb); }
.hero-actions { position: absolute; left: 50%; top: 249px; height: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 15px; border-radius: 5px; font-size: 16px; font-weight: 400; line-height: 19.2px; white-space: nowrap; transition: transform .3s var(--ease), background-color .25s ease, color .25s ease; }
.btn:hover { transform: translate3d(0, -2px, 0); }
.btn:active { transform: none; }
.btn-gelb { background: var(--gelb); color: #000; }
.btn-gelb:hover { background: #ffc933; }
.btn-rahmen { box-shadow: inset 0 0 0 1px #fff; color: #fff; }
.btn-rahmen:hover { background: #fff; color: var(--navy); }
.hero-actions .btn-gelb { position: absolute; top: 0; right: 24px; }
.hero-actions .btn-rahmen { position: absolute; top: 0; left: 0; }

/* ---------------- Projekte ---------------- */
.galerie { padding: 96px 64px 104px; }
.galerie-in, .galerie-grid { max-width: 1280px; margin: 0 auto; }
.galerie h1 { padding-bottom: 40px; color: var(--blau); font-size: 36px; font-weight: 600; line-height: 1.2; }
.galerie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.g-item { display: flex; flex-direction: column; gap: 10px; }
.g-bild { position: relative; height: 340px; border-radius: 14px; overflow: hidden; background: #eef1f6; cursor: zoom-in; }
.g-bild img, .ueber-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.g-bild:hover img { transform: scale(1.05); }
.g-item figcaption { color: var(--blau); font-size: 15px; font-weight: 500; line-height: 18px; }
.ueber { display: flex; align-items: center; justify-content: center; gap: 64px; max-width: 1440px; margin: 0 auto; padding: 80px 64px; }
.ueber-bild { flex: none; width: 45%; aspect-ratio: 3142 / 2338; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.ueber-bild:hover img { transform: scale(1.03); }
.ueber-text { display: flex; flex-direction: column; gap: 20px; width: 48.02%; }
.ueber h2 { color: var(--blau); font-size: 28px; font-weight: 700; line-height: 1.2; }
.ueber p { font-size: 16px; line-height: 24px; }

/* ---------------- Kontakt ---------------- */
.kontakt-page { display: flex; flex-direction: column; min-height: 100vh; }
/* Kontakt (Marco 06.10.): eine Sektion auf dem hellgrauen Grund, links Infos, rechts Formular */
.kontakt { display: flex; align-items: center; flex: 1 1 auto; padding: 64px 32px; background: var(--feld); }
.k-wrap { display: grid; grid-template-columns: 428px 500px; justify-content: center; align-items: center; gap: 96px; width: 100%; max-width: 1100px; margin: 0 auto; }
.k-inhalt { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.k-kopf { display: flex; flex-direction: column; gap: 5px; }
.k-kopf h1 { color: var(--blau); font-size: 20px; font-weight: 600; line-height: 24px; }
.k-kopf p { color: #5a5a5a; font-size: 15px; line-height: 18px; }
.k-karten { display: flex; flex-direction: column; gap: 10px; }
.k-karte { position: relative; display: block; width: 100%; height: 74px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #e6ecf4; transition: transform .3s var(--ease), box-shadow .3s ease; }
a.k-karte { cursor: pointer; }
a.k-karte:hover, a.k-karte:focus-visible { transform: translate3d(0, -2px, 0); box-shadow: inset 0 0 0 1px var(--blau), 0 10px 22px rgba(19, 38, 77, .10); outline: none; }
.k-icon { position: absolute; left: 20px; top: 12px; display: grid; place-items: center; width: 51px; height: 50px; border-radius: 10px; background: #e0e6f1; transition: background-color .25s ease; }
a.k-karte:hover .k-icon { background: #d3dcee; }
.k-icon svg { display: block; overflow: visible; }
.k-label { position: absolute; left: 91px; top: 19px; color: #5f718a; font-size: 12px; font-weight: 600; line-height: 15px; }
.k-wert { position: absolute; left: 91px; right: 52px; top: 35px; overflow: hidden; text-overflow: ellipsis; font-size: 16px; line-height: 21px; white-space: nowrap; }
a.k-karte .k-wert { color: var(--blau); text-decoration: underline; text-decoration-color: rgba(36, 52, 129, .3); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
a.k-karte:hover .k-wert { text-decoration-color: var(--blau); }
/* Pfeil rechts: zeigt, dass die Karte ein Link ist */
.k-pfeil { position: absolute; right: 18px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--gelb); color: #000; transition: transform .3s var(--ease); }
.k-pfeil svg { width: 14px; height: 14px; }
a.k-karte:hover .k-pfeil { transform: translate3d(3px, 0, 0); }
.k-karte-map { height: 166px; overflow: hidden; background: #f2f4f7; box-shadow: inset 0 0 0 1px #dfe6ef; }

/* Zwei-Klick-Karte (wie Framer-Komponente MapConsent) */
.map { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; padding: 16px; color: #3a3f45; text-align: center; cursor: pointer; background: #f2f4f7 radial-gradient(circle at 50% 38%, rgba(36, 52, 129, .07), transparent 60%); transition: background-color .25s ease; }
.map:hover { background-color: #e9edf3; }
.map-pin { display: block; margin-bottom: 2px; color: var(--blau); }
.map button { padding: 10px 18px; line-height: normal; border: 0; border-radius: 8px; background: #1f2a36; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .3s var(--ease), background-color .2s ease; }
.map button:hover { background: #2c3a4a; transform: translate3d(0, -1px, 0); }
.map span { max-width: 360px; font-size: 12px; line-height: 1.4; cursor: auto; }
.map a { text-decoration: underline; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.k-karte-map:has(iframe) .map { padding: 0; cursor: auto; }
.k-karte-map:has(iframe) { height: 260px; }

/* Formular */
.form { position: relative; width: 500px; height: 550px; }
.form-karte { position: absolute; inset: 0; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px #f5f7fa, 0 8px 18px rgba(0, 0, 0, .05), 0 32px 32px rgba(0, 0, 0, .04), 0 72px 43px rgba(0, 0, 0, .02), 0 128px 51px rgba(0, 0, 0, .01); }
.form-in { position: absolute; left: 26px; top: 22px; width: 449px; height: 506px; }
.feld { position: absolute; left: 0; width: 449px; }
.feld-name { top: 0; width: 212px; }
.feld-mail { top: 0; left: 237px; width: 212px; }
.feld-betreff { top: 106px; }
.feld-nachricht { top: 214px; }
.form label { display: block; margin: -4px 0 5px; color: #1f3557; font-size: 16px; font-weight: 600; line-height: 25px; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea { display: block; width: 100%; height: 53px; margin: 0; padding: 0 14px; border: 1px solid var(--feld-rand); border-radius: 10px; background-color: var(--feld); color: #000; font-size: 16px; line-height: 25px; outline: none; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.form textarea { height: 127px; padding: 13px 14px; resize: none; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='7' viewBox='-1 -1 14 7' fill='none'%3E%3Cpath d='M12 0L6 5L0 0' stroke='%23677080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 5px; cursor: pointer; }
.form ::placeholder { color: var(--grau-text); opacity: 1; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #d5deea; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blau); background-color: #fff; box-shadow: 0 0 0 3px rgba(36, 52, 129, .12); }
.zustimmung { position: absolute; left: 0; top: 397px; display: flex; align-items: center; gap: 11px; width: 439px; }
.form .zustimmung label { margin: 0; color: var(--grau-text); font-size: 12px; font-weight: 400; line-height: 16px; cursor: pointer; }
.zustimmung a { text-decoration: none; }
.zustimmung a:hover { text-decoration: underline; text-underline-offset: 2px; }
.zustimmung input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 17px; height: 17px; margin: 0; border: 1px solid #e8edf4; border-radius: 100%; background: #fff; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.zustimmung input::after { content: ""; width: 7px; height: 7px; border-radius: 100%; background: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.zustimmung input:hover { border-color: #c6d0de; }
.zustimmung input:checked { border-color: var(--blau); background: var(--blau); }
.zustimmung input:checked::after { transform: scale(1); }
.senden { position: absolute; left: 0; top: 453px; display: flex; align-items: center; justify-content: space-between; width: 212px; height: 53px; padding: 0 23px; border: 0; border-radius: 10px; background: var(--gelb); color: #000; font-size: 16px; font-weight: 600; line-height: 25px; cursor: pointer; transition: transform .3s var(--ease), background-color .2s ease; }
.senden svg { transition: transform .3s var(--ease); }
.senden:hover { background: #ffc933; transform: translate3d(0, -2px, 0); }
.senden:hover svg { transform: translate3d(3px, 0, 0); }
.form-hinweis { position: absolute; left: 0; right: 0; top: 522px; color: var(--grau-text); font-size: 12px; line-height: 18px; }
.form-hinweis:empty { display: none; }
.form-hinweis a { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.form:has(.form-hinweis:not(:empty)) { height: 590px; }
.form:has(.form-hinweis .kopieren) { height: 628px; }
.senden[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-danke { position: absolute; inset: 22px 26px; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.form-danke svg { width: 56px; height: 56px; color: var(--gelb); }
.form-danke h2 { color: var(--blau); font-size: 22px; font-weight: 700; line-height: 1.2; }
.form-danke p { max-width: 340px; color: #3a3f45; font-size: 15px; line-height: 1.5; }
.form.gesendet .form-in { visibility: hidden; }
.form.gesendet .form-danke { display: flex; animation: rise .5s var(--ease) both; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kopieren { display: inline-block; margin: 6px 0 0;  padding: 3px 10px; border: 1px solid var(--feld-rand); border-radius: 6px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 600; cursor: pointer; }
.kopieren:hover { border-color: var(--blau); }

/* ---------------- Rechtstexte ---------------- */
.legal { display: flex; flex-direction: column; gap: 26px; max-width: 820px; margin: 0 auto; padding: 140px 24px 110px; }
.legal h1 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; font-size: 38px; font-weight: 700; line-height: 1.2; }
.legal h2 { font-size: 18px; font-weight: 700; line-height: 1.2; }
.legal p { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.legal a { text-decoration: none; }
.legal a:hover { text-decoration: underline; text-underline-offset: 2px; }
.seite { display: flex; flex-direction: column; min-height: 100vh; }
.seite > main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }

/* ---------------- Datenschutz-Einstellungen (Einwilligung) ---------------- */
.consent { position: fixed; left: 24px; bottom: 24px; z-index: 40; width: min(440px, calc(100vw - 32px)); padding: 22px 22px 20px; border-radius: 16px; background: #fff; color: var(--navy); box-shadow: 0 0 0 1px rgba(19, 38, 77, .06), 0 18px 50px rgba(19, 38, 77, .22); opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .3s ease, transform .4s var(--ease); }
.consent.sichtbar { opacity: 1; transform: none; }
.consent h2 { margin-bottom: 8px; color: var(--blau); font-size: 17px; font-weight: 700; line-height: 1.25; }
.consent p { color: #3a3f45; font-size: 13.5px; line-height: 1.5; }
.consent p a { color: var(--blau); text-decoration: underline; text-underline-offset: 2px; }
.consent-wahl { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--feld); font-size: 13px; line-height: 1.4; }
.consent-wahl label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent-wahl input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blau); }
.consent-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent-knoepfe button { flex: 1 1 auto; min-height: 42px; padding: 0 16px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
/* Zustimmen und Ablehnen gleich gewichtet */
.consent-ja, .consent-nein, .consent-speichern { background: var(--navy); color: #fff; }
.consent-ja:hover, .consent-nein:hover, .consent-speichern:hover { background: var(--blau); }
.consent-mehr { flex-basis: 100%; min-height: 34px !important; background: none; color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }
.consent[hidden], .consent [hidden] { display: none !important; }
.foot-cookie { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: opacity .2s ease; }
.foot-cookie:hover { opacity: .7; }
html.menu-offen { overflow: hidden; }

/* ---------------- Lightbox ---------------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9, 18, 38, .92); color: #fff; overflow: hidden; }
.lb[open] { display: flex; align-items: center; justify-content: center; animation: lbIn .3s ease both; }
.lb::backdrop { background: transparent; }
.lb figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: calc(100vw - 160px); }
.lb img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: lbImg .35s var(--ease) both; }
.lb figcaption { font-size: 15px; font-weight: 500; line-height: 22px; color: rgba(255, 255, 255, .92); text-align: center; }
.lb-count { margin-left: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.lb button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 9999px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s ease; }
.lb button:hover, .lb button:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }
.lb button svg { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbImg { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ---------------- Bewegung (nur mit JS und ohne reduzierte Bewegung) ---------------- */
.fx [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s ease, transform .8s var(--ease); transition-delay: var(--d, 0s); }
.fx [data-reveal].in { opacity: 1; transform: none; }
.fx .hero-bg img { animation: settle 2.4s var(--ease) both; }
.fx .hero-content > * { animation: rise .9s var(--ease) both; }
.fx .hero-content > h1 { animation-delay: .1s; }
.fx .hero-content > .hero-sub { animation-delay: .22s; }
.fx .hero-content > .hero-actions { animation-delay: .34s; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

/* ================= Tablet 810–1199 ================= */
@media (max-width: 1199.98px) {
  .nav-bar { padding: 0 32px; }
  .nav-menu, .nav-contact { display: none; }
  .nav-logo { width: auto; }
  .burger { display: block; }
  /* Menü (Marco 06.10.): Vollbild, große fette Links, gestaffelt einfliegend */
  .nav-bar { position: relative; z-index: 2; }
  .nav-panel { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 110px 32px 40px; background: #fff; color: var(--navy); visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .45s; }
  .nav-panel a:not(.nav-panel-kontakt a) { align-self: flex-start; font-size: 44px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .3s ease, transform .3s var(--ease), color .2s ease; }
  .nav-panel > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 4px; border-radius: 2px; background: var(--strich); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease); }
  .nav-panel > a[aria-current="page"]::after, .nav-panel > a:hover::after { transform: scaleX(1); }
  .nav-panel > a:hover { color: var(--blau); }
  .nav-panel-kontakt { display: flex; flex-direction: column; gap: 6px; margin-top: 34px; padding-top: 22px; border-top: 1px solid #e6ecf4; font-size: 15px; line-height: 1.4; opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .3s ease, transform .3s var(--ease); }
  .nav-panel-kontakt a { align-self: flex-start; color: var(--blau); font-weight: 600; }
  .nav.offen { color: var(--navy); }
  .nav.offen .nav-panel { visibility: visible; opacity: 1; transition: opacity .35s ease, visibility 0s; }
  .nav.offen .nav-panel > a, .nav.offen .nav-panel-kontakt { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--ease), color .2s ease; transition-delay: calc(.08s + var(--i, 0) * .07s); }
  .nav.offen .burger span:nth-child(1) { transform: translate3d(0, 8px, 0) rotate(45deg); }
  .nav.offen .burger span:nth-child(2) { opacity: 0; }
  .nav.offen .burger span:nth-child(3) { transform: translate3d(0, -8px, 0) rotate(-45deg); }
  .nav-foto { transition: color .3s ease; }
  .nav-foto.offen .nav-logo img { box-shadow: none; }

  .foot-in { padding: 0 32px 28px; }
  .foot-hell .foot-in { padding-top: 26px; padding-bottom: 26px; }

  .hero-content { top: 415px; }
  .hero-shade { height: 100%; aspect-ratio: auto; background: radial-gradient(62% 30% at 50% 560px, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, 0) 100%); }

  .galerie { padding: 72px 40px 80px; }
  .galerie h1 { font-size: 30px; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .g-bild { height: 260px; }
  .ueber { flex-direction: column; gap: 32px; padding: 56px 32px; }
  .ueber-bild, .ueber-text { width: 100%; }

  .ueber-bild, .ueber-text { max-width: 746px; }
}











/* ==== ERZEUGT: Tablet 1200–1439 nur Unterseiten (_build/css.py) ==== */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  body:not(.home) .nav-bar { padding: 0 32px; }
  body:not(.home) .nav-menu, body:not(.home) .nav-contact { display: none; }
  body:not(.home) .nav-logo { width: auto; }
  body:not(.home) .burger { display: block; }
  body:not(.home) .nav-bar { position: relative; z-index: 2; }
  body:not(.home) .nav-panel { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 110px 32px 40px; background: #fff; color: var(--navy); visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .45s; }
  body:not(.home) .nav-panel a:not(.nav-panel-kontakt a) { align-self: flex-start; font-size: 44px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .3s ease, transform .3s var(--ease), color .2s ease; }
  body:not(.home) .nav-panel > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 4px; border-radius: 2px; background: var(--strich); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease); }
  body:not(.home) .nav-panel > a[aria-current="page"]::after, body:not(.home) .nav-panel > a:hover::after { transform: scaleX(1); }
  body:not(.home) .nav-panel > a:hover { color: var(--blau); }
  body:not(.home) .nav-panel-kontakt { display: flex; flex-direction: column; gap: 6px; margin-top: 34px; padding-top: 22px; border-top: 1px solid #e6ecf4; font-size: 15px; line-height: 1.4; opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .3s ease, transform .3s var(--ease); }
  body:not(.home) .nav-panel-kontakt a { align-self: flex-start; color: var(--blau); font-weight: 600; }
  body:not(.home) .nav.offen { color: var(--navy); }
  body:not(.home) .nav.offen .nav-panel { visibility: visible; opacity: 1; transition: opacity .35s ease, visibility 0s; }
  body:not(.home) .nav.offen .nav-panel > a, body:not(.home) .nav.offen .nav-panel-kontakt { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--ease), color .2s ease; transition-delay: calc(.08s + var(--i, 0) * .07s); }
  body:not(.home) .nav.offen .burger span:nth-child(1) { transform: translate3d(0, 8px, 0) rotate(45deg); }
  body:not(.home) .nav.offen .burger span:nth-child(2) { opacity: 0; }
  body:not(.home) .nav.offen .burger span:nth-child(3) { transform: translate3d(0, -8px, 0) rotate(-45deg); }
  body:not(.home) .nav-foto { transition: color .3s ease; }
  body:not(.home) .nav-foto.offen .nav-logo img { box-shadow: none; }
  body:not(.home) .foot-in { padding: 0 32px 28px; }
  body:not(.home) .foot-hell .foot-in { padding-top: 26px; padding-bottom: 26px; }
  body:not(.home) .hero-content { top: 415px; }
  body:not(.home) .hero-shade { height: 100%; aspect-ratio: auto; background: radial-gradient(62% 30% at 50% 560px, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, 0) 100%); }
  body:not(.home) .galerie { padding: 72px 40px 80px; }
  body:not(.home) .galerie h1 { font-size: 30px; }
  body:not(.home) .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  body:not(.home) .g-bild { height: 260px; }
  body:not(.home) .ueber { flex-direction: column; gap: 32px; padding: 56px 32px; }
  body:not(.home) .ueber-bild, body:not(.home) .ueber-text { width: 100%; }
  body:not(.home) .ueber-bild, body:not(.home) .ueber-text { max-width: 746px; }
}
/* ==== ENDE ERZEUGT ==== */

/* ================= Phone bis 809 ================= */
@media (max-width: 809.98px) {
  .nav-bar { padding: 0 16px; }
  .foot-in { flex-direction: column; justify-content: flex-start; gap: 10px; padding: 0 16px 24px; }
  .foot-hell .foot-in { padding-top: 24px; padding-bottom: 24px; }
  .foot p { width: 100%; }

  .hero-content { left: 20px; right: 20px; width: auto; height: 318px; margin-left: 0; top: 270px; }
  .hero-logo { left: 50%; margin-left: -53.5px; }
  .hero h1 { top: 120px; white-space: normal; text-wrap: balance; }
  .hero-sub { top: 228px; white-space: normal; text-wrap: balance; }
  .hero-actions { left: 0; right: 0; top: 282px; }
  .hero-actions .btn-gelb { left: 0; right: auto; }
  .hero-actions .btn-rahmen { left: auto; right: 0; }
  .hero-shade { background: radial-gradient(80% 32% at 50% 58%, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, 0) 100%); }

  .galerie { padding: 56px 20px 64px; }
  .galerie h1 { font-size: 24px; }
  .galerie-grid { grid-template-columns: 1fr; gap: 20px; }
  .g-bild { height: 240px; }
  .ueber { gap: 24px; padding: 40px 20px; }
  .ueber h2 { font-size: 24px; }

}

/* Kontakt + Formular nach tatsächlicher Breite */
@media (max-width: 1099.98px) {
  .kontakt { padding: 48px 24px 56px; }
  .k-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .k-wert { right: 48px; }
  .k-pfeil { right: 14px; }
  /* Footer: Links und Copyright mittig in zwei Zeilen statt umbrechender Reihe */
  .foot-in { flex-direction: column; justify-content: flex-start; gap: 10px; }
  .form { width: 100%; height: auto; }
  .form-in { position: relative; left: 0; top: 0; width: 100%; height: auto; display: flex; flex-direction: column; gap: 14px; padding: 20px; }
  .feld, .zustimmung, .senden { position: relative; left: 0; top: 0; width: 100%; }
  .feld-name, .feld-mail { width: 100%; left: 0; }
  .senden { padding: 0 20px 0 23px; }
  .form-hinweis { position: static; }
  .form:has(.form-hinweis:not(:empty)), .form:has(.form-hinweis .kopieren) { height: auto; }
  .form-danke { position: absolute; inset: 20px; }
  .form.gesendet .form-in { visibility: hidden; }
}
@media (max-width: 809.98px) {
  .consent { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .kontakt { padding: 40px 16px 56px; }
  .k-wrap { grid-template-columns: 1fr; gap: 32px; }
  .nav-panel { padding: 100px 24px 32px; }
  .nav-panel > a { font-size: 38px !important; }
}

@media (max-width: 389.98px) {
  .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; height: auto; }
  .hero-actions .btn-gelb, .hero-actions .btn-rahmen { position: static; }
}

@media (hover: none) {
  .btn:hover, .senden:hover, a.k-karte:hover, .map button:hover, a.k-karte:hover .k-pfeil { transform: none; }
  .g-bild:hover img, .ueber-bild:hover img, .nav-contact:hover img { transform: none; }
  .nav-menu a:not([aria-current="page"]):hover::after { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .fx [data-reveal] { opacity: 1; transform: none; }
}
.home { position: relative; min-height: 100vh; }
