/* ---------- Schrift (lokal, keine externen Dienste) ---------- */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("/fonts/Manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/fonts/Manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/fonts/Manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700 800; font-display: swap; src: url("/fonts/Manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("/fonts/Fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 300 700; font-style: italic; font-display: swap; src: url("/fonts/Fraunces-Italic.woff2") format("woff2"); }

/* ---------- Farben und Maße ---------- */
:root {
  --bg: #f6f3ec;
  --bg-2: #ece7db;
  --surface: #fffdf8;
  --text: #15201a;
  --muted: #5e6a63;
  --line: #ddd7c9;
  --line-2: #cfc8b7;
  --ink: #0f2a1f;
  --ink-2: #163b2c;
  --on-ink: #f3efe5;
  --accent: #b4762b;
  --accent-dark: #8c5917;
  --accent-soft: #f1e4cf;
  --biesinger: #31307a; --wintec: #1f7fc4; --bgv: #c8102e; --faaslott: #2f7f86; --vuv: #2f6b4b; --immo: #a77b2f;
  --shadow: 0 1px 2px rgba(20, 30, 25, .04), 0 18px 48px -24px rgba(20, 30, 25, .25);
  --radius: 10px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1310;
    --bg-2: #161c18;
    --surface: #141a16;
    --text: #e9ece7;
    --muted: #9aa59d;
    --line: #262e29;
    --line-2: #333d37;
    --ink: #0a110d;
    --ink-2: #10201a;
    --on-ink: #e9ece7;
    --accent: #d7a65d;
    --accent-dark: #e4b974;
    --accent-soft: #2a2416;
    --biesinger: #8b8af0; --wintec: #5cb2ef; --bgv: #f0697c; --faaslott: #6cc3c9; --vuv: #6fbf93; --immo: #d9ad60;
    --shadow: 0 0 0 1px rgba(255,255,255,.04), 0 24px 60px -28px rgba(0,0,0,.8);
  }
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px; font-weight: 450;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "kern";
}
img { max-width: 100%; display: block; }
a { color: inherit; }
main { flex: 1; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
h1, h2, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; font-variation-settings: "opsz" 144, "SOFT" 30; }
h3 { font-weight: 700; letter-spacing: -.012em; }
.small { font-size: 14px; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.kicker { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .18em; font-size: 11.5px; font-weight: 700; color: var(--accent-dark); margin: 0 0 16px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.top-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; font-size: 16px; }
.mark { width: 36px; height: 36px; border-radius: 9px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .02em; font-variation-settings: "opsz" 24; }
@media (prefers-color-scheme: dark) { .mark { background: var(--on-ink); color: var(--ink); } }
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; color: var(--muted); transition: color .15s, background .15s; }
.top-nav a:hover { color: var(--text); background: var(--bg-2); }
.top-nav a[aria-current="page"] { color: var(--text); }
.top-nav .nav-cta { margin-left: 8px; color: var(--text); border: 1px solid var(--line-2); padding: 8px 16px; border-radius: 999px; }
.top-nav .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--line-2); background: transparent; color: var(--text); transition: background .18s, color .18s, border-color .18s, transform .18s; cursor: pointer; }
.btn:hover { border-color: var(--text); transform: translateY(-1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  .btn.primary { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
  .btn.primary:hover { background: #fff; border-color: #fff; }
}

/* ---------- Hero ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 84px 20px 64px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(54px, 8vw, 104px); line-height: .98; letter-spacing: -.03em; margin: 0 0 26px; font-weight: 450; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-dark); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 540px; margin: 0 0 28px; font-weight: 450; }
.hero-fields { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0 0 36px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--text); }
.hero-fields li + li::before { content: "·"; margin: 0 10px; color: var(--accent); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 480px; }
.hero-frame { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 57% 28%; border-radius: 6px; }
.hero-frame::after { content: ""; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
.hero-frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--line-2); border-radius: 6px; z-index: -1; }
.hero-photo figcaption { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.hero-photo figcaption strong { font-weight: 600; color: var(--text); }

/* ---------- Kennzahlen ---------- */
.facts { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.facts-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.facts div { padding: 26px 28px 26px 0; }
.facts div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--serif); font-weight: 450; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; font-variation-settings: "opsz" 72; }
.facts span { color: var(--muted); font-size: 14px; }

/* ---------- Haltung ---------- */
.ethos { max-width: var(--wrap); margin: 0 auto; padding: 96px 20px 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; }
.ethos blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; letter-spacing: -.012em; text-wrap: balance; font-variation-settings: "opsz" 96, "SOFT" 50; }
.ethos blockquote footer { margin-top: 22px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.principles li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.principles i { font-style: normal; font-family: var(--serif); font-size: 14px; color: var(--accent-dark); padding-top: 3px; }
.principles strong { display: block; font-size: 16px; margin-bottom: 4px; }
.principles p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Abschnitte ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 112px 20px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.section-head h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; max-width: 520px; }
.section-head .note { margin-top: 14px; font-size: 13.5px; display: inline-flex; gap: 10px; align-items: center; color: var(--muted); }
.section-head .note::before { content: ""; width: 20px; height: 8px; border-radius: 2px; background: #14181b; flex: none; }

/* ---------- Unternehmen ---------- */
.companies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.company { --c: var(--biesinger); position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 28px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.company:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.c-wintec { --c: var(--wintec); } .c-bgv { --c: var(--bgv); } .c-faaslott { --c: var(--faaslott); } .c-vuv { --c: var(--vuv); } .c-immo { --c: var(--immo); }
.company-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.company-mark { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; flex: none; font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--on-ink); background: var(--ink); font-variation-settings: "opsz" 24; position: relative; }
.company-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 2px solid var(--surface); }
.company-mark.small-mark { font-size: 12.5px; letter-spacing: .03em; font-family: var(--sans); font-weight: 800; }
.company h3 { font-size: 19px; }
.company-head p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.company > p { margin: 0 0 16px; font-size: 15.5px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 14.5px; color: var(--text); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 10px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.company-meta { color: var(--muted); font-size: 13.5px; margin: auto 0 10px !important; padding-top: 10px; border-top: 1px solid var(--line); }
.company-meta a { color: inherit; font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link { font-weight: 700; font-size: 14.5px; color: var(--text); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; align-self: flex-start; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .15s; }
.link::after { content: "→"; color: var(--accent-dark); transition: transform .15s; }
.link:hover { border-color: var(--text); }
.link:hover::after { transform: translateX(3px); }

/* ---------- Projekte ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s, border-color .25s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-2); }
.pcard-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); cursor: zoom-in; overflow: hidden; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard-cover img { transform: scale(1.03); }
.pcard-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10, 16, 13, .28)); pointer-events: none; }
.pcard-count { position: absolute; z-index: 1; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 20, 17, .72); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); }
.pcard-count::before { content: ""; width: 13px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 3px -3px 0 -1px rgba(15,20,17,.72), 3px -3px 0 .5px currentColor; }
.pcard-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.pcard-body { padding: 24px 28px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -.02em; margin-bottom: 10px; font-variation-settings: "opsz" 48; }
.pcard-body > p:not(.project-meta) { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; }
.pcard-more { margin-top: auto; align-self: flex-start; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--line-2); padding: 0 0 2px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: border-color .15s; }
.pcard-more::after { content: "→"; color: var(--accent-dark); transition: transform .15s; }
.pcard-more:hover { border-color: var(--text); }
.pcard-more:hover::after { transform: translateX(4px); }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.project-meta a { color: var(--muted); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.project-meta a:hover { color: var(--text); }
.status { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { color: #1d6b3b; border-color: color-mix(in srgb, #1d6b3b 35%, transparent); }
.status.intern { color: #33337a; border-color: color-mix(in srgb, #33337a 35%, transparent); }
.status.dev { color: var(--accent-dark); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
@media (prefers-color-scheme: dark) {
  .status.live { color: #8fe0ae; }
  .status.intern { color: #b9baf6; }
}

/* ---------- Bildansicht ---------- */
html.no-scroll { overflow: hidden; }
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0f0d; color: #eef2ef; display: none; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.viewer[open] { display: grid; }
.viewer::backdrop { background: #0b0f0d; }
.v-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.v-top strong { font-family: var(--serif); font-weight: 500; font-size: 20px; margin-right: 12px; letter-spacing: -.01em; }
.v-top span { color: #9fb0a6; font-size: 14px; }
.v-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; flex: none; }
.v-close:hover { background: rgba(255,255,255,.14); }
.v-stage { position: relative; display: grid; place-items: center; padding: 4px 72px; min-height: 0; touch-action: pan-y; }
.v-stage img { position: absolute; top: 4px; bottom: 4px; left: 76px; right: 76px; width: calc(100% - 152px); height: calc(100% - 8px); object-fit: contain; transition: opacity .2s; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.v-stage img.swap { opacity: .25; }
.v-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.v-nav:hover { background: rgba(255,255,255,.18); }
.v-nav.prev { left: 12px; }
.v-nav.next { right: 12px; }
.viewer.single .v-nav, .viewer.single .v-thumbs { display: none; }
.v-caption { max-width: 820px; width: 100%; margin: 0 auto; padding: 16px 20px 6px; text-align: center; }
.v-caption h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.v-caption p { margin: 0; color: #c3cec7; font-size: 15px; }
.v-thumbs { display: flex; gap: 8px; justify-content: center; padding: 12px 16px 18px; overflow-x: auto; scrollbar-width: none; }
.v-thumbs::-webkit-scrollbar { display: none; }
.v-thumbs button { position: relative; flex: none; width: 92px; height: 58px; padding: 0; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: #1b221e; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.v-thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.v-thumbs button span { position: absolute; left: 4px; bottom: 3px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.v-thumbs button:hover { opacity: .85; }
.v-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
@media (max-width: 640px) {
  .v-stage img { left: 8px; right: 8px; width: calc(100% - 16px); }
  .v-nav { top: auto; bottom: 10px; transform: none; width: 44px; height: 44px; background: rgba(0,0,0,.55); }
  .v-caption h4 { font-size: 18px; }
  .v-caption p { font-size: 14px; }
  .v-thumbs { justify-content: flex-start; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .v-thumbs button { width: 70px; height: 46px; }
}

/* ---------- Kontakt ---------- */
.contact { padding-bottom: 96px; }
.contact-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; padding: 56px; border-radius: 14px; background: var(--ink); color: var(--on-ink); }
.contact-card::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.contact-card::after { content: ""; position: absolute; right: -40px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.contact-card .kicker { color: var(--accent); }
.contact-card h2 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 16px; letter-spacing: -.02em; }
.contact-card p { margin: 0 0 18px; color: #c6cfc8; font-size: 17px; max-width: 480px; }
.contact-card strong { color: #fff; }
.contact-card a { color: #fff; font-weight: 600; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; }
.contact-card .btn.primary { margin-top: 8px; background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); text-decoration: none; }
.contact-card .btn.primary:hover { background: #fff; border-color: #fff; }
.contact-data { position: relative; align-self: center; border-left: 1px solid rgba(255,255,255,.14); padding: 6px 0 6px 32px; }
.contact-data p { font-size: 16px; margin-bottom: 14px; }
.contact-data p:last-child { margin-bottom: 0; }
.contact-data .tel { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; }

/* ---------- Fußzeile ---------- */
.foot { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 28px 20px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line-2); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.foot-brand .mark { width: 26px; height: 26px; border-radius: 6px; font-size: 11px; }

/* ---------- Einblenden ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.wrap.notfound { max-width: 600px; margin: 0 auto; padding: 120px 20px; text-align: center; }
.wrap.notfound h1 { font-size: 44px; margin-bottom: 12px; }

/* ---------- Rechtstexte und Kontaktformular ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 20px 88px; width: 100%; }
.legal h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 18px; letter-spacing: -.025em; }
.legal h2 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 36px 0 8px; letter-spacing: -.01em; }
.legal p { margin: 0 0 12px; }
.legal a { color: var(--text); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.legal-lead { font-size: 18px; color: var(--muted); margin-bottom: 30px !important; }
.contact-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.cf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: 13.5px; }
.contact-form label span[aria-hidden] { color: var(--accent-dark); }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 500; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.cf-hint { margin: -6px 0 0 !important; font-size: 13px; color: var(--muted); }
.cf-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; font-size: 14px !important; }
.cf-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.cf-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-error { color: #b83a3a; min-height: 1.3em; margin: 0 !important; font-weight: 600; font-size: 14px; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: default; transform: none; }
.cf-done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.cf-done h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 28px; }
.contact-form[hidden], .cf-done[hidden] { display: none !important; }
.contact-form label:not(.cf-check) { display: flex; flex-wrap: wrap; column-gap: 4px; row-gap: 6px; }
.contact-form label:not(.cf-check) > input, .contact-form label:not(.cf-check) > textarea { flex-basis: 100%; }

/* ---------- Datenschutz und Impressum im Fenster ---------- */
.doc-dialog { width: min(820px, calc(100vw - 24px)); max-height: min(88vh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; }
.doc-dialog[open] { display: flex; flex-direction: column; }
.doc-dialog::backdrop { background: rgba(10, 14, 12, .62); backdrop-filter: blur(3px); }
.doc-body.legal { padding: 36px 38px 44px; margin: 0; max-width: none; overflow-y: auto; outline: none; overscroll-behavior: contain; }
.doc-body.legal h1 { font-size: clamp(28px, 4vw, 38px); padding-right: 40px; }
.doc-close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.doc-close:hover { background: var(--bg-2); }

/* ---------- Tablet und Handy ---------- */
@media (min-width: 1100px) { .companies { grid-template-columns: repeat(3, minmax(0, 1fr)); } .company { padding: 28px 26px 26px; } }
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 48px; }
  .hero-photo { justify-self: start; max-width: 520px; }
  .facts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ethos { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 80px; }
  .section { padding-top: 88px; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-card { grid-template-columns: minmax(0, 1fr); padding: 40px; }
  .contact-data { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 24px 0 0; }
  .pgrid { gap: 18px; }
}
@media (max-width: 640px) {
  .top-inner { padding: 12px 16px; }
  .top-nav a { padding: 8px 9px; font-size: 14px; }
  .top-nav .nav-cta { padding: 7px 12px; margin-left: 2px; }
  .brand span:last-child { display: none; }
  .hero { padding: 40px 16px 48px; gap: 36px; }
  .hero h1 { font-size: clamp(50px, 15vw, 64px); }
  .hero-frame::before { inset: 10px -8px -10px 10px; }
  .hero-fields { gap: 8px 18px; }
  .hero-fields li + li::before { content: none; }
  .facts, .section, .ethos { padding-left: 16px; padding-right: 16px; }
  .facts div { padding: 20px 16px 20px 0; }
  .facts div + div { padding-left: 16px; }
  .facts div:nth-child(3) { padding-left: 0; }
  .companies { grid-template-columns: minmax(0, 1fr); }
  .company { padding: 24px 22px 22px; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pcard-body { padding: 20px 20px 22px; }
  .pcard h3 { font-size: 25px; }
  .contact { padding-bottom: 64px; }
  .contact-card { padding: 30px 24px; border-radius: 12px; }
  .foot { padding: 24px 16px 36px; flex-direction: column; align-items: flex-start; }
  .cf-row { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 20px; }
  .legal { padding: 40px 16px 64px; }
  .doc-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .doc-body.legal { padding: 24px 18px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .pcard:hover { transform: none; }
}
