/* ZENTRUM104 Neuenhof */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2"); }
/* Layout: Petrol-Hero über volle Breite (Petrol-Hero: Logo links, Text rechts) → Eckdaten → Angebot → Bewerbung → Kontakt in Petrol */
:root {
  --petrol: #005573;
  --petrol-deep: #00435B;
  --gold: #DDC182;
  --gold-text: #9A7A2C;      /* Gold für Text auf Weiss (Kontrast) */
  --paper: #FFFFFF;
  --mist: #EBF1F4;           /* 8 % #005573 auf Weiss */
  --ink: #1D3540;
  --muted: #3F535B;
  --line: #D6DEDF;
  --error: #B3261E;
  --font: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem; --step-0: 1.0625rem; --step-1: 1.3rem; --step-2: 1.7rem; --step-3: clamp(2.1rem, 5vw, 3.4rem); --step-4: clamp(2.6rem, 7vw, 5.2rem);
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--step-0); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem/1 var(--font); padding: .9em 1.4em; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn-gold { background: var(--gold); color: var(--petrol-deep); }
.btn-gold:hover { background: #E6CF9B; }
.btn-line { border-color: currentColor; color: var(--paper); background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.1); }
.btn-small { padding: .65em 1.1em; font-size: .95rem; }

/* Hero */
.hero { position: relative; background: var(--petrol); color: var(--paper); }
.bezug-hero { display: none; }
.angebot-top { display: flex; justify-content: space-between; align-items: center; gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(32px, 5vw, 56px); }
.angebot-top .head { margin-bottom: 0; }
.bezug { order: 2; flex: none; width: clamp(150px, 16vw, 220px); height: auto; margin-right: clamp(0px, 3vw, 48px); }
.hero-inner { display: grid; grid-template-columns: clamp(240px, 26vw, 360px) minmax(0, 1fr); justify-items: start; text-align: left; align-items: start; gap: clamp(36px, 4.5vw, 64px); padding-block: clamp(56px, 7vw, 104px); }
.hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 3vw, 32px); min-width: 0; width: 100%; }
.hero h1 { font-weight: 800; font-size: clamp(1.6rem, 2.9vw, 2.55rem); white-space: nowrap; text-transform: uppercase; color: var(--gold); letter-spacing: -.005em; line-height: 1; }
.hero .offer { font-size: clamp(1.5rem, 2.9vw, 2.6rem); font-weight: 500; line-height: 1.18; }
.hero-brand { display: flex; justify-content: flex-start; min-width: 0; width: 100%; }
.hero-brand img.logo { width: 100%; height: auto; }
.badge { align-self: flex-start; margin-top: 8px; display: inline-block; text-decoration: none; transform: rotate(-8deg); border: 4px solid var(--gold); border-radius: 999px; padding: .6em 1.5em .65em; white-space: nowrap; background: var(--paper); color: var(--petrol); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.05; text-align: center; box-shadow: 0 10px 24px rgba(0,67,91,.22); transition: transform .25s ease; }
.badge:hover { transform: rotate(-4deg) scale(1.04); }

/* Visualisierung */
.split { display: block; }


/* Facts */
.facts { background: var(--mist); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.facts dl > div { padding: 26px 24px 26px 0; display: grid; gap: 4px; }
.facts dl > div + div { border-left: 1px solid rgba(0,85,115,.25); padding-left: 24px; }
.facts dt { font-size: var(--step--1); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 600; font-size: var(--step-1); color: var(--petrol); }

/* Angebot */
section.block { padding-block: clamp(56px, 9vw, 112px); }
.head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { font-size: var(--step-3); font-weight: 800; color: var(--petrol); }
.head p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; font-weight: 300; }
.z104 { font-weight: 400; white-space: nowrap; }
.z104 b { font-weight: 800; }
.head .eyebrow { color: var(--gold); font-weight: 600; }
.units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.unit { position: relative; border-top: 4px solid var(--gold); background: var(--mist); padding: 28px 26px 30px; display: grid; gap: 14px; align-content: start; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.unit:hover, .unit:focus-within { transform: scale(1.03); box-shadow: 0 18px 36px -18px rgba(0,67,91,.35); }
.unit a::after { content: ""; position: absolute; inset: 0; }
.unit a:focus-visible { outline: none; }
.unit:has(a:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.unit .size { font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--petrol); line-height: 1; letter-spacing: -.02em; }
.unit .size small { font-size: .38em; font-weight: 500; letter-spacing: 0; margin-left: .25em; }
.unit h3 { font-size: var(--step-1); font-weight: 600; color: var(--petrol); }
.unit p { color: var(--muted); }
.unit a { font-weight: 600; color: var(--petrol); text-underline-offset: 4px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }


/* Bewerbung */
.apply { background: var(--mist); }
.apply-aside .eyebrow, .apply-aside .req { color: var(--petrol); }
.apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.apply-aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); display: grid; gap: 18px; }
.apply-aside h2 { font-size: var(--step-3); font-weight: 800; color: var(--petrol); }
.apply-aside p { color: var(--muted); }
.apply-aside .note { font-size: var(--step--1); border-left: 3px solid var(--gold); padding-left: 14px; }
form { background: var(--paper); padding: clamp(22px, 4vw, 44px); display: grid; gap: 34px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(0,67,91,.35); min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
legend { padding: 0; margin-bottom: 16px; font-size: var(--step-1); font-weight: 600; color: var(--petrol); display: flex; align-items: baseline; gap: 14px; }
legend .n { font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--gold); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row.r3 { grid-template-columns: 1fr 2fr; }
.row.r-plz { grid-template-columns: 1fr 2fr; }
.field { display: grid; gap: 6px; min-width: 0; }
label, .lbl { font-size: .95rem; font-weight: 500; color: var(--petrol); }
.req { color: var(--gold-text); }
#objekt-lbl { font-size: 1.2rem; font-weight: 600; color: var(--petrol); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px; padding: .75em .85em; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(0,85,115,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.err { color: var(--error); font-size: .875rem; min-height: 0; }
.err:empty { display: none; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: grid; gap: 2px; height: 100%; padding: 16px 16px 18px; border: 1.5px solid var(--line); border-radius: 8px; transition: border-color .15s, background .15s; }
.choice b { font-size: 1.35rem; font-weight: 800; color: var(--petrol); }
.choice em { font-style: normal; font-size: .9rem; color: var(--muted); }
.choice input:checked + span { border-color: var(--petrol); background: rgba(0,85,115,.06); box-shadow: inset 0 0 0 1px var(--petrol); }
.choice input:checked + span b::after { content: " ✓"; color: var(--gold-text); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.inline label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--muted); }
.check input { margin-top: .25em; width: 18px; height: 18px; accent-color: var(--petrol); flex: none; }
input[type=radio] { accent-color: var(--petrol); width: 18px; height: 18px; }
.hint { font-size: .875rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-row { display: flex; justify-content: center; min-height: 65px; }
.submit-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; border-top: 1px solid var(--line); padding-top: 26px; }
.submit-row .btn { background: var(--petrol); color: var(--paper); font-size: 1.2rem; padding: 1em 2.4em; }
.submit-row .btn:hover { background: var(--petrol-deep); }
.submit-row .btn[disabled] { opacity: .6; cursor: progress; }
.done { background: var(--paper); padding: clamp(28px, 5vw, 52px); display: grid; gap: 16px; border-top: 4px solid var(--gold); }
.done h3 { font-size: var(--step-2); font-weight: 800; color: var(--petrol); }
.done p { color: var(--muted); }
.done pre { white-space: pre-wrap; font: 400 .9rem/1.5 var(--font); background: var(--mist); padding: 16px; margin: 0; max-height: 280px; overflow: auto; }
.done .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.done .btn-p { background: var(--petrol); color: var(--paper); }
.done .btn-o { border-color: var(--petrol); color: var(--petrol); background: transparent; }

/* Kontakt / Footer */
.contact { background: var(--petrol); color: var(--paper); padding-block: clamp(48px, 8vw, 96px) 28px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.contact .procasa { width: 260px; height: auto; }
.contact .label { color: var(--gold); font-weight: 800; margin-top: 26px; }
.contact address { font-style: normal; line-height: 1.6; font-size: var(--step-1); font-weight: 300; }
.contact address a { text-decoration: none; border-bottom: 1px solid rgba(221,193,130,.6); }
.contact address a:hover { color: var(--gold); }
.contact .big { font-size: clamp(1.8rem, 3.6vw, 3rem); overflow-wrap: anywhere; font-weight: 800; color: var(--gold); text-transform: uppercase; line-height: 1; }
.contact .cta { display: flex; justify-content: flex-end; }
.contact .footer-logo { width: min(300px, 100%); height: auto; }
.legal { margin-top: clamp(40px, 6vw, 72px); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: var(--step--1); color: rgba(255,255,255,.7); }
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: rgba(255,255,255,.85); text-decoration: none; border-bottom: 1px solid rgba(221,193,130,.6); }
.legal-links a:hover { color: var(--gold); }
.check a { color: var(--petrol); text-decoration-color: var(--gold); text-underline-offset: 3px; }
#dsg-dialog { width: min(760px, calc(100% - 32px)); max-height: min(85vh, 900px); padding: 0; border: 0; border-top: 4px solid var(--gold); background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,67,91,.5); }
#dsg-dialog::backdrop { background: rgba(0,67,91,.6); }
.dlg-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.dlg-title { font-weight: 600; color: var(--petrol); font-size: var(--step-1); }
.dlg-close { font: 400 2rem/1 var(--font); color: var(--petrol); background: none; border: 0; cursor: pointer; padding: 0 4px; }
#dsg-dialog .dlg-body { padding: 20px 24px 32px; }
.dlg-body h1 { display: none; }
/* Rechtliche Unterseiten */
.thanks .eyebrow { margin-bottom: 10px; }
.legal-page .thanks-actions { margin-top: 36px; }
.legal-page a.btn-petrol { background: var(--petrol); color: var(--paper); text-decoration: none; }
.legal-page a.btn-petrol:hover { background: var(--petrol-deep); }
.page-top { background: var(--petrol); color: var(--paper); }
.page-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; flex-wrap: wrap; }
.page-top img { width: 150px; height: auto; }
.page-top a.back { color: var(--paper); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--gold); }
.page-top a.back:hover { color: var(--gold); }
.legal-page { padding-block: clamp(48px, 7vw, 96px); }
.legal-page .wrap > * { max-width: 46rem; }
.legal-page h1 { hyphens: auto; overflow-wrap: break-word; font-size: clamp(1.8rem, 5vw, 3.4rem); font-weight: 800; color: var(--petrol); margin-bottom: 12px; }
.legal-page h2 { font-size: var(--step-1); font-weight: 600; color: var(--petrol); margin: 40px 0 10px; }
.legal-page p, .legal-page li, .legal-page address { color: var(--ink); font-style: normal; line-height: 1.6; }
.legal-page p + p, .legal-page address + p { margin-top: 10px; }
.legal-page { overflow-wrap: break-word; hyphens: auto; }
.legal-page ul { padding-left: 1.2em; margin: 8px 0 0; display: grid; gap: 4px; }
.legal-page a { color: var(--petrol); text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.legal-page .stand { color: var(--muted); font-size: var(--step--1); margin-top: 48px; }
.ph { background: #FFF3C4; padding: 0 .25em; border-radius: 3px; }

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); }
  .hero-brand img.logo { width: min(280px, 72%); }
  .hero .offer { font-size: clamp(1.5rem, 4.5vw, 2.3rem); }
  .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-brand { justify-content: center; }
  .hero-main { align-items: center; }
  .hero .badge { align-self: center; }
  .units { grid-template-columns: 1fr; }
  .angebot-top { display: block; }
  .angebot-top::after { content: ""; display: block; clear: both; }
  .bezug { float: right; width: clamp(100px, 22vw, 150px); margin: -8px 0 12px 16px; }
  .angebot-top .head { display: block; }
  .angebot-top .head > * + * { margin-top: 14px; }
  .apply-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact .cta { justify-content: center; }
  .contact-grid { text-align: center; justify-items: center; }
  .contact .procasa { margin-inline: auto; }
  .legal { justify-content: center; text-align: center; }
  .legal-links { justify-content: center; width: 100%; }
  .contact .footer-logo { width: min(240px, 70%); }
  .apply-aside { position: static; }
}
@media (max-width: 640px) {
  .bezug-hero { display: block; position: absolute; z-index: 1; top: 12px; right: 12px; width: 92px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
  .hero-inner { padding-top: 104px; }
  .angebot-top .bezug { display: none; }
  .hero h1 { white-space: normal; font-size: clamp(1.9rem, 9vw, 3rem); }
  .facts dl { grid-template-columns: 1fr; }
  .facts dl > div { padding: 16px 0; }
  .facts dl > div + div { border-left: 0; border-top: 1px solid rgba(0,85,115,.25); padding-left: 0; }
  .row, .row.r3, .row.r-plz { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
}
