/* UNI Projekt GmbH – Stylesheet
   Farben aus dem Logo (Plan-Blau) und der Baustelle (Graphit, Beton). */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jakarta-regular.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jakarta-500.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/jakarta-600.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/jakarta-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/inter-300.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-regular.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff2) format("woff2"); }

:root {
  --graphit: #232323;
  --graphit-2: #1f232c;
  --beton: #eaeaeb;
  --papier: #f7f7f7;
  --blau: #2946f3;
  --blau-tief: #1d35c9;
  --linie: #e4e4e4;
  --text-2: #717580;

  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Inter", system-ui, sans-serif;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--papier); color: var(--graphit);
  font: 400 17px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; }
::selection { background: var(--blau); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blau); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: "Plus Jakarta Sans", var(--f-sans); margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 46ch; }
.label {
  font: 500 12.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
}
.label--blau { color: var(--blau); }

/* Maßlinie: Abschnittskopf wie eine Bemaßung im Plan */
.mass { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.mass::before, .mass::after { content: ""; height: 11px; border-left: 1px solid currentColor; }
.mass span { order: 0; }
.mass i { flex: 1; height: 1px; background: currentColor; opacity: .5; order: 1; }
.mass::after { order: 2; }
.mass { color: var(--blau); font: 500 12.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.abschnitt--dunkel .mass, .seitenkopf .mass { color: #9eabff; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 6px;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 600 15px/1 var(--f-sans); text-decoration: none; letter-spacing: .02em;
  border: 1.5px solid var(--blau); background: var(--blau); color: #fff; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--blau-tief); border-color: var(--blau-tief); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--graphit); color: #fff; border-color: var(--graphit); }
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.kopf__logo img { height: 56px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; padding: 10px 14px; font-weight: 500; font-size: 15px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--blau); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; min-height: 42px; }
.nav .btn::after { display: none; }
.menu-btn { display: none; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; color: var(--graphit); }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 76px 0 0; background: var(--papier); flex-direction: column; align-items: stretch; padding: 24px var(--gut); gap: 0;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
  .nav.offen { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav a { font-size: 1.6rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--linie); }
  .nav a::after { display: none; }
  .nav .btn { margin: 24px 0 0; justify-content: center; font-size: 16px; min-height: 54px; }
}

/* ---------- Hero mit Bautafel ---------- */
.hero { position: relative; background: var(--graphit); color: #fff; overflow: hidden; }
.hero__bild { position: absolute; inset: 0; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,35,44,.92) 0%, rgba(31,35,44,.55) 55%, rgba(31,35,44,.2) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: end; min-height: min(86vh, 780px); padding-top: 96px; padding-bottom: 72px; }
.hero h1 { margin: 18px 0 24px; }
.hero h1 em { font-style: normal; color: #9eabff; }
.hero .lead { color: rgba(255,255,255,.82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--ghost:hover { background: #fff; color: var(--graphit); border-color: #fff; }

.bautafel { background: var(--papier); color: var(--graphit); border-top: 10px solid var(--blau); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.bautafel__kopf { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1.5px solid var(--graphit); }
.bautafel__kopf strong { font-family: "Plus Jakarta Sans", var(--f-sans); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 15px; }
.bautafel dl { margin: 0; }
.bautafel__zeile { display: grid; grid-template-columns: 116px 1fr; border-bottom: 1px solid var(--linie); }
.bautafel__zeile:last-child { border-bottom: 0; }
.bautafel dt { padding: 13px 0 13px 22px; font: 500 11px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.bautafel dd { margin: 0; padding: 11px 22px 11px 0; font-weight: 600; font-size: 15px; line-height: 1.45; }
.bautafel dd a { text-decoration: none; }
.bautafel dd a:hover { color: var(--blau); }

@media (max-width: 940px) {
  .hero__bild::after { background: linear-gradient(180deg, rgba(31,35,44,.9) 0%, rgba(31,35,44,.75) 60%, rgba(31,35,44,.5) 100%); }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 72px; padding-bottom: 48px; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(72px, 10vw, 128px) 0; }
.abschnitt--beton { background: var(--beton); }
.abschnitt--dunkel { background: var(--graphit); color: #fff; }
.abschnitt--dunkel .lead, .abschnitt--dunkel .label { color: rgba(255,255,255,.7); }
.kopfzeile { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: 56px; }
@media (max-width: 800px) { .kopfzeile { grid-template-columns: 1fr; margin-bottom: 40px; } }

/* Leistungsbereiche */
.bereiche { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linie); border: 1px solid var(--linie); }
.bereich { background: var(--papier); display: flex; flex-direction: column; text-decoration: none; transition: background .25s var(--ease); }
.bereich__bild { aspect-ratio: 4/3; overflow: hidden; }
.bereich__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bereich:hover .bereich__bild img { transform: scale(1.04); }
.bereich__text { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bereich__text p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.bereich__mehr { margin-top: auto; padding-top: 8px; color: var(--blau); font-weight: 600; font-size: 15px; }
.bereich:hover { background: #fff; }
@media (max-width: 980px) { .bereiche { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bereiche { grid-template-columns: 1fr; } }

/* Ablauf */
.ablauf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.ablauf li { padding: 28px 28px 0 0; border-top: 1.5px solid rgba(255,255,255,.3); position: relative; counter-increment: s; }
.ablauf li::before { content: "Schritt " counter(s); display: block; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #9eabff; margin-bottom: 18px; }
.ablauf li::after { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--blau); }
.ablauf h3 { margin-bottom: 10px; }
.ablauf p { color: rgba(255,255,255,.72); font-size: 15.5px; }
@media (max-width: 900px) { .ablauf { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .ablauf { grid-template-columns: 1fr; } }

/* Bildband Projekte */
.bildband { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 12px; }
.bildband figure { margin: 0; position: relative; overflow: hidden; background: var(--beton); }
.bildband figure:first-child { grid-row: span 2; }
.bildband img { width: 100%; height: 100%; object-fit: cover; }
.bildband figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--papier); padding: 6px 10px; font: 400 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) { .bildband { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 180px 180px; } .bildband figure:first-child { grid-column: span 2; grid-row: auto; } }

/* CTA-Band */
.cta { background: var(--blau); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 16ch; }
.cta .btn { background: #fff; color: var(--graphit); border-color: #fff; }
.cta .btn:hover { background: var(--graphit); color: #fff; border-color: var(--graphit); }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta__aktionen { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.seitenkopf { background: var(--graphit); color: #fff; padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.seitenkopf::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.seitenkopf .wrap { position: relative; }
.seitenkopf h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-top: 14px; }
.seitenkopf .lead { color: rgba(255,255,255,.75); margin-top: 18px; }
.brotkrumen { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.brotkrumen a { text-decoration: none; }
.brotkrumen a:hover { color: #fff; }

/* Leistungen-Detail */
.leistung { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--linie); }
.leistung:last-child { border-bottom: 0; }
.leistung__bild { position: sticky; top: 108px; align-self: start; }
.leistung__bild img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.leistung h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.punkte { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1.5px solid var(--graphit); }
.punkte li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--linie); }
.punkte strong { font-weight: 600; }
.punkte span { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 860px) { .leistung { grid-template-columns: 1fr; } .leistung__bild { position: static; } .leistung__bild img { aspect-ratio: 16/10; } .punkte li { grid-template-columns: 1fr; gap: 4px; } }

/* Projekte-Galerie */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter button { font: 500 14px/1 var(--f-sans); padding: 12px 16px; background: transparent; border: 1.5px solid var(--linie); cursor: pointer; color: var(--graphit); transition: border-color .2s, background .2s, color .2s; }
.filter button:hover { border-color: var(--graphit); }
.filter button[aria-pressed="true"] { background: var(--graphit); border-color: var(--graphit); color: #fff; }
.filter sup { font-family: var(--f-mono); font-size: 10px; margin-left: 4px; opacity: .7; }
.galerie { columns: 3 300px; column-gap: 12px; }
.galerie button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: var(--beton); cursor: zoom-in; break-inside: avoid; position: relative; overflow: hidden; }
.galerie img { width: 100%; transition: transform .5s var(--ease), opacity .3s; }
.galerie button:hover img { transform: scale(1.03); }
.galerie button[hidden] { display: none; }
.galerie button span { position: absolute; left: 10px; bottom: 10px; background: var(--papier); padding: 5px 8px; font: 400 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }

.lightbox { position: fixed; inset: 0; background: rgba(12,14,16,.94); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 56px 16px; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; }
.lightbox:not([open]) { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 52px; height: 52px; font-size: 26px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-zu { top: 12px; right: 12px; }
.lightbox .lb-zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-vor { right: 12px; top: 50%; transform: translateY(-50%); }

/* Über uns / Team */
.zweispalt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .zweispalt { grid-template-columns: 1fr; } }
.fakten { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linie); border: 1px solid var(--linie); margin-top: 32px; }
.fakten div { background: var(--papier); padding: 22px; }
.fakten strong { display: block; font-size: 1.15rem; margin-top: 6px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { background: var(--papier); border-top: 4px solid var(--blau); padding: 28px; }
.person__kuerzel { font-family: "Plus Jakarta Sans", var(--f-sans); width: 64px; height: 64px; display: grid; place-items: center; border: 1.5px solid var(--graphit); font-weight: 600; font-size: 20px; margin-bottom: 22px; }
.person h3 { font-size: 1.35rem; }
.person .label { margin: 6px 0 20px; display: block; }
.person a { display: block; text-decoration: none; padding: 8px 0; border-top: 1px solid var(--linie); font-size: 15.5px; overflow-wrap: anywhere; }
.person a:hover { color: var(--blau); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); }
@media (max-width: 900px) { .kontakt { grid-template-columns: 1fr; } }
.kanal { display: block; text-decoration: none; padding: 20px 0; border-bottom: 1px solid var(--linie); }
.kanal:first-of-type { border-top: 1.5px solid var(--graphit); }
.kanal strong { display: block; font-size: 1.2rem; margin-top: 4px; }
a.kanal:hover strong { color: var(--blau); }

.formular { background: #fff; border: 1px solid var(--linie); padding: clamp(24px, 4vw, 44px); }
.feldreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .feldreihe { grid-template-columns: 1fr; } }
.feld { margin-bottom: 20px; }
.feld label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.feld label small { font-weight: 400; color: var(--text-2); }
.feld input, .feld select, .feld textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--graphit); background: var(--papier);
  border: 1.5px solid var(--linie); border-radius: 0; padding: 13px 14px; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.feld select { background-image: linear-gradient(45deg, transparent 50%, var(--graphit) 50%), linear-gradient(135deg, var(--graphit) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.feld textarea { min-height: 150px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--blau); background: #fff; }
.feld [aria-invalid="true"] { border-color: #c62828; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); margin: 4px 0 24px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blau); flex: none; }
.honig { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.meldung { margin-top: 20px; padding: 14px 16px; font-size: 15px; border-left: 4px solid; }
.meldung[hidden] { display: none; }
.meldung--ok { background: #eceffe; border-color: var(--blau); }
.meldung--fehler { background: #fdecea; border-color: #c62828; }
.btn[disabled] { opacity: .6; cursor: wait; }

.karte { margin-top: 32px; background: var(--beton); aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; padding: 24px; border: 1px solid var(--linie); }
.karte iframe { width: 100%; height: 100%; border: 0; }
.karte p { font-size: 14.5px; color: var(--text-2); max-width: 36ch; margin: 0 auto 16px; }

/* ---------- Rechtstexte ---------- */
.recht { max-width: 760px; }
.recht h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 56px 0 18px; padding-top: 24px; border-top: 1.5px solid var(--graphit); }
.recht h2:first-child { margin-top: 0; }
.recht h3 { font-size: 1.1rem; margin: 32px 0 10px; }
.recht p, .recht li { color: #33373c; }
.recht ul { padding-left: 1.2em; }
.recht a { color: var(--blau); overflow-wrap: anywhere; }
.recht table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 20px; }
.recht th, .recht td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.recht th { font: 400 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.recht-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; }
.recht-toc { position: sticky; top: 108px; align-self: start; font-size: 14.5px; }
.recht-toc ol { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1.5px solid var(--graphit); }
.recht-toc a { display: block; padding: 9px 0; border-bottom: 1px solid var(--linie); text-decoration: none; }
.recht-toc a:hover { color: var(--blau); }
@media (max-width: 900px) { .recht-layout { grid-template-columns: 1fr; gap: 32px; } .recht-toc { position: static; } }

/* ---------- Footer ---------- */
.fuss { background: var(--graphit); color: rgba(255,255,255,.75); padding: 72px 0 28px; font-size: 15px; }
.fuss__raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.fuss img { height: 64px; width: auto; margin-bottom: 18px; }
.fuss h3 { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 9px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss__unten { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.fuss__unten nav { display: flex; gap: 20px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linkbtn:hover { color: #fff; }
@media (max-width: 900px) { .fuss__raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss__raster { grid-template-columns: 1fr; } }

/* ---------- Cookie-Banner ---------- */
.cookie { position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; max-width: 520px; background: var(--papier); color: var(--graphit);
  border-top: 6px solid var(--blau); box-shadow: 0 24px 60px -12px rgba(0,0,0,.4); padding: 24px; transform: translateY(20px); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
.cookie.sichtbar { transform: none; opacity: 1; }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1.15rem; margin-bottom: 10px; text-transform: none; }
.cookie p { font-size: 14.5px; color: var(--text-2); }
.cookie a { color: var(--blau); }
.cookie__optionen { border-top: 1px solid var(--linie); margin: 14px 0 18px; }
.cookie__optionen[hidden] { display: none; }
.cookie__opt { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.cookie__opt input { width: 20px; height: 20px; accent-color: var(--blau); flex: none; margin-top: 1px; }
.cookie__opt strong { display: block; color: var(--graphit); font-size: 15px; }
.cookie__opt span { color: var(--text-2); }
.cookie__aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__aktionen .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; font-size: 14px; padding: 0 16px; }

/* ---------- Bewegung ---------- */
.einblenden { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.einblenden.da { opacity: 1; transform: none; }
.hero .einblenden { transition-duration: .9s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .einblenden { opacity: 1; transform: none; }
}
.fuss .msv { display: inline-flex; align-items: center; gap: 8px; }
.fuss .msv img { width: 16px; height: auto; margin: 0; opacity: .7; transition: opacity .2s; }
.fuss .msv:hover img { opacity: 1; }
.fuss .social { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-top: 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; transition: border-color .2s, color .2s; }
.fuss .social:hover { border-color: #fff; color: #fff; }

/* Startbildschirm wie auf der alten Seite: Vollbild, zentriert, schlicht */
.hero--start .hero__bild img { opacity: 1; animation: heroZoom 7s ease-out both; }
.hero--start .hero__bild::after { background: rgba(31,35,44,.55); }
.hero--start .wrap { grid-template-columns: 1fr; justify-items: center; align-items: center; text-align: center; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); padding-top: 64px; padding-bottom: 64px; }
.hero__marke { display: inline-block; font-size: 22px; padding-bottom: 6px; margin: 0 0 30px; border-bottom: 1px solid rgba(255,255,255,.35); }
.hero--start h1 { margin: 0 auto; max-width: 14ch; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; text-shadow: 0 10px 40px rgba(0,0,0,.35); }
.hero--start .hero__cta { justify-content: center; margin-top: 40px; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .hero--start .hero__bild img { animation: none; } }
.abschnitt.intro { padding-bottom: 0; }

/* ---------- Effekte ---------- */
/* Startbildschirm: Einstieg in Stufen */
.hero--start .einblenden { opacity: 1; transform: none; }
.hero__marke { animation: heroUp .8s var(--ease) .1s both; position: relative; border-bottom: 0; }
.hero__marke::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.5); transform-origin: left; animation: linie 1s var(--ease) .5s both; }
.hero--start h1 { animation: heroUp 1s var(--ease) .3s both; }
.hero--start .hero__cta { animation: heroUp .9s var(--ease) .6s both; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero__scroll::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: #fff; animation: scrollHint 2s ease-in-out infinite; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes linie { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes scrollHint { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

/* Header bekommt beim Scrollen Schatten */
.kopf { transition: box-shadow .3s var(--ease); }
.kopf.gescrollt { box-shadow: 0 8px 30px -12px rgba(0,0,0,.18); }

/* Maßlinie zeichnet sich beim Erscheinen */
.mass i { transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
.mass.da i, .da .mass i, .seitenkopf .mass i { transform: scaleX(1); }

/* Gestaffeltes Erscheinen in Rastern */
.bereiche > :nth-child(3n+2), .ablauf > :nth-child(2), .team > :nth-child(2), .bildband > :nth-child(2) { transition-delay: .1s; }
.bereiche > :nth-child(3n+3), .ablauf > :nth-child(3), .team > :nth-child(3), .bildband > :nth-child(3) { transition-delay: .2s; }
.ablauf > :nth-child(4), .bildband > :nth-child(4) { transition-delay: .3s; }
.bildband > :nth-child(5) { transition-delay: .4s; }

/* Bilder öffnen sich wie ein Vorhang */
.bildband figure.einblenden { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.bildband figure.einblenden.da { clip-path: inset(0 0 0 0); }
.bildband img { transition: transform .8s var(--ease); }
.bildband figure:hover img { transform: scale(1.05); }

/* Karten heben sich leicht an */
.bereich, .person { transition: background .25s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.bereich:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(31,35,44,.35); position: relative; z-index: 1; }
.person:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(31,35,44,.3); }
.bereich__mehr { transition: letter-spacing .3s var(--ease); }
.bereich:hover .bereich__mehr { letter-spacing: .02em; }

/* Ablauf: Marker pulsiert beim Erscheinen */
.ablauf li.da::after { animation: puls 1.2s var(--ease) both; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(41,70,243,.7); } 100% { box-shadow: 0 0 0 14px rgba(41,70,243,0); } }

@media (prefers-reduced-motion: reduce) {
  .hero__marke, .hero__marke::after, .hero--start h1, .hero--start .hero__cta, .ablauf li.da::after, .hero__scroll::after { animation: none !important; }
  .mass i { transform: none; }
  .bildband figure.einblenden { clip-path: none; }
}

/* ---------- Header: transparent auf der Startseite ---------- */
.logo-weiss { display: none; }
.startseite .kopf { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease); }
.startseite .kopf .logo-farbe { display: none; }
.startseite .kopf .logo-weiss { display: block; }
.startseite .kopf .nav a:not(.btn) { color: #fff; }
.startseite .kopf .menu-btn { color: #fff; }
.startseite .kopf.gescrollt { background: rgba(255,255,255,.96); border-bottom-color: var(--linie); color: var(--graphit); }
.startseite .kopf.gescrollt .logo-farbe { display: block; }
.startseite .kopf.gescrollt .logo-weiss { display: none; }
.startseite .kopf.gescrollt .nav a:not(.btn), .startseite .kopf.gescrollt .menu-btn { color: var(--graphit); }
.startseite .hero--start .wrap { min-height: 100vh; min-height: 100svh; padding-top: 110px; }
.startseite .kopf::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(0,0,0,.35), transparent); pointer-events: none; transition: opacity .3s; z-index: -1; }
.startseite .kopf.gescrollt::before { opacity: 0; }

/* ---------- Mobiles Menü: Vollbild, dunkel ---------- */
@media (max-width: 940px) {
  .kopf { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.97); }
  .kopf .wrap { height: 68px; }
  .kopf__logo img { height: 46px; }
  .menu-btn { position: relative; z-index: 2; border-radius: 6px; }
  .menu-btn:focus:not(:focus-visible) { outline: none; }
  .kopf__logo { position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; height: 100vh; height: 100dvh; background: var(--graphit); padding: 110px var(--gut) 40px; justify-content: flex-start; overflow-y: auto; z-index: 1; }
  .nav a:not(.btn) { color: #fff !important; font-family: "Plus Jakarta Sans", var(--f-sans); font-size: 2rem; font-weight: 500; letter-spacing: -.02em; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12);
    opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s; }
  .nav a[aria-current="page"]:not(.btn) { color: #9eabff !important; }
  .nav.offen a { opacity: 1; transform: none; }
  .nav.offen a:nth-child(2) { transition-delay: .05s; } .nav.offen a:nth-child(3) { transition-delay: .1s; }
  .nav.offen a:nth-child(4) { transition-delay: .15s; } .nav.offen a:nth-child(5) { transition-delay: .2s; }
  .nav .btn { margin-top: 32px; opacity: 0; transition: opacity .4s var(--ease) .25s; }
  .nav.offen .btn { opacity: 1; }
  .nav__info { display: block !important; margin-top: auto; padding-top: 32px; color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.8; }
  .nav__info a { color: #fff !important; font-size: 15px !important; font-weight: 500 !important; padding: 0 !important; border: 0 !important; opacity: 1 !important; transform: none !important; display: inline !important; }
  /* Menü offen: Kopf wird dunkel, Logo weiß */
  body.menu-offen .kopf { background: var(--graphit) !important; border-bottom-color: transparent !important; color: #fff !important; }
  body.menu-offen .kopf .logo-farbe { display: none !important; }
  body.menu-offen .kopf .logo-weiss { display: block !important; }
  body.menu-offen .menu-btn { color: #fff !important; }
}
.nav__info { display: none; }
@media (max-width: 940px) {
  .nav { background: var(--blau); }
  body.menu-offen .kopf { background: var(--blau) !important; }
  .nav a:not(.btn) { border-bottom-color: rgba(255,255,255,.22); }
  .nav a[aria-current="page"]:not(.btn) { color: #fff !important; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
  .nav .btn { background: #fff; color: var(--blau); border-color: #fff; }
  .nav .btn:hover { background: var(--graphit); color: #fff; border-color: var(--graphit); }
  .nav__info { color: rgba(255,255,255,.8); }
}

/* ---------- Mobile wie die alte Seite: blauer Header, weißes Logo, große Typo ---------- */
.hero--start .btn { text-transform: uppercase; letter-spacing: .06em; font-weight: 500; min-height: 54px; padding: 0 28px; }
@media (max-width: 940px) {
  .kopf, .startseite .kopf, .startseite .kopf.gescrollt { background: var(--blau) !important; border-bottom-color: transparent !important; color: #fff; }
  .startseite .kopf::before { display: none; }
  .kopf .wrap { height: 84px; }
  .kopf__logo img { height: 58px; }
  .kopf .logo-farbe, .startseite .kopf.gescrollt .logo-farbe { display: none !important; }
  .kopf .logo-weiss, .startseite .kopf.gescrollt .logo-weiss { display: block !important; }
  .menu-btn, .startseite .kopf.gescrollt .menu-btn { color: #fff !important; }
  .menu-btn span { width: 28px; }
  .menu-btn span:nth-child(2) { width: 20px; margin-left: auto; margin-right: 10px; }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { width: 28px; }
  .nav { padding-top: 120px; }
  body:not(.startseite) main { padding-top: 0; }
  .startseite main { padding-top: 0; }
  .startseite .hero--start .wrap { padding-top: 120px; }
  .hero__marke { font-size: 24px; margin-bottom: 36px; }
  .hero--start h1 { font-size: clamp(3.1rem, 13vw, 4rem); line-height: 1.12; max-width: 9ch; }
  .hero--start .hero__cta { flex-direction: column; align-items: center; margin-top: 44px; }
  .hero--start .btn { width: min(100%, 300px); justify-content: center; font-size: 16px; }
  /* allgemeine Typo auf dem Handy etwas größer */
  body { font-size: 17.5px; }
  h2 { font-size: clamp(2.1rem, 8.5vw, 2.6rem); }
  .lead { font-size: 1.15rem; }
  .seitenkopf h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
}
/* Kompakterer mobiler Header + Menü */
@media (max-width: 940px) {
  .kopf .wrap { height: 64px; }
  .kopf__logo img { height: 42px; }
  .menu-btn { width: 44px; height: 44px; }
  .menu-btn span { width: 24px; }
  .menu-btn span:nth-child(2) { width: 16px; margin-right: 10px; }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { width: 24px; }
  .nav { padding-top: 88px; }
  .nav a:not(.btn) { font-size: 1.45rem; padding: 12px 0; }
  .nav .btn { margin-top: 24px; min-height: 48px; font-size: 15px; }
  .nav__info { font-size: 14px; }
  .startseite .hero--start .wrap { padding-top: 96px; }
}
@media (max-width: 600px) { .intro .btn { width: 100%; justify-content: center; min-height: 54px; } }

/* ---------- Header Desktop: Logo links, Menü mittig, Button rechts ---------- */
@media (min-width: 941px) {
  .kopf .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1440px; height: 92px; }
  .kopf__logo img { height: 62px; }
  .nav { display: contents; }
  .nav__links { display: flex; gap: 8px; justify-self: center; }
  .nav a:not(.btn) { font-size: 16px; padding: 10px 16px; }
  .nav a::after { left: 16px; right: 16px; }
  .nav .btn { justify-self: end; margin-left: 0; min-height: 46px; padding: 0 24px; }
  .startseite .kopf .wrap { height: 104px; }
  .startseite .kopf.gescrollt .wrap { height: 80px; }
  .startseite .kopf.gescrollt .kopf__logo img { height: 52px; }
  .kopf .wrap, .kopf__logo img { transition: height .3s var(--ease); }
  .startseite .kopf::before { inset: 0 0 -60px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
}
@media (max-width: 940px) { .nav__links { display: contents; } }
/* Startfoto heller, wie auf der alten Seite */
.hero--start .hero__bild::after { background: rgba(31,35,44,.42); }

/* ---------- Laufband mit Leistungen ---------- */
.laufband { overflow: hidden; background: var(--blau); color: #fff; padding: 22px 0; }
.laufband__spur { display: flex; width: max-content; animation: laufen 40s linear infinite; }
.laufband span { font-family: "Plus Jakarta Sans", var(--f-sans); font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.02em; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.laufband span::after { content: ""; width: 8px; height: 8px; background: rgba(255,255,255,.55); transform: rotate(45deg); margin-right: -28px; }
.laufband:hover .laufband__spur { animation-play-state: paused; }
@keyframes laufen { to { transform: translateX(-50%); } }

/* ---------- Vorteile ---------- */
.vorteile-abschnitt { background: #fff; }
.vorteile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vorteil { border: 1px solid var(--linie); border-radius: 10px; padding: 30px 26px; background: var(--papier); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.vorteil::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--blau); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.vorteil:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -28px rgba(41,70,243,.45); border-color: transparent; }
.vorteil:hover::before { transform: scaleX(1); }
.vorteil svg { width: 44px; height: 44px; color: var(--blau); padding: 10px; background: #eceffe; border-radius: 10px; margin-bottom: 22px; transition: transform .4s var(--ease), background .3s, color .3s; }
.vorteil:hover svg { transform: rotate(-6deg) scale(1.08); background: var(--blau); color: #fff; }
.vorteil h3 { margin-bottom: 10px; }
.vorteil p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.vorteile > :nth-child(2) { transition-delay: .1s; } .vorteile > :nth-child(3) { transition-delay: .2s; } .vorteile > :nth-child(4) { transition-delay: .3s; }
@media (max-width: 1000px) { .vorteile { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vorteile { grid-template-columns: 1fr; } }

/* ---------- Allgemeine Abschnitts-Animationen ---------- */
.auto-ein { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.auto-ein.da { opacity: 1; transform: none; }
.kopfzeile .lead.auto-ein { transition-delay: .15s; }
.punkte li.auto-ein { transform: translateX(-16px); }
.punkte li.auto-ein.da { transform: none; }
.leistung__bild { overflow: hidden; border-radius: 4px; }
.leistung__bild img { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); transform: scale(1.08); }
.leistung__bild.da img { clip-path: inset(0 0 0 0); transform: none; }
.seitenkopf h1, .seitenkopf .lead, .seitenkopf .brotkrumen { animation: heroUp .9s var(--ease) both; }
.seitenkopf h1 { animation-delay: .1s; } .seitenkopf .lead { animation-delay: .25s; }
.cta h2 { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.cta .btn { transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.cta .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
@media (prefers-reduced-motion: reduce) {
  .laufband__spur, .seitenkopf h1, .seitenkopf .lead, .seitenkopf .brotkrumen { animation: none !important; }
  .auto-ein { opacity: 1; transform: none; }
  .leistung__bild img { clip-path: none; transform: none; }
}
.fuss .socials { display: flex; gap: 10px; margin-top: 14px; }
.fuss .socials .social { margin-top: 0; }
.fuss .social img { width: 18px; height: auto; margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1.5px solid var(--graphit); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: "Plus Jakarta Sans", var(--f-sans); font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eceffe; color: var(--blau); font-size: 20px; font-weight: 400; transition: transform .3s var(--ease), background .2s, color .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--blau); color: #fff; }
.faq summary:hover { color: var(--blau); }
.faq details p { color: var(--text-2); margin: 0; padding: 0 44px 24px 0; animation: heroUp .4s var(--ease) both; }
.faq-abschnitt { background: #fff; }
.faq-abschnitt .lead { margin-top: 20px; }
a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 561px) { .cookie { left: auto; right: 24px; bottom: 24px; } }

/* ---------- Kontaktformular: Gruppen ---------- */
.formular__hinweis { color: var(--text-2); font-size: 14.5px; margin-bottom: 26px; }
.gruppe { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.gruppe + .gruppe { padding-top: 22px; border-top: 1px solid var(--linie); }
.gruppe legend { padding: 0; margin-bottom: 18px; font: 600 12.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blau); }
.feldreihe--anrede { grid-template-columns: 160px 1fr; }
.feldreihe--plz { grid-template-columns: 140px 1fr; }
@media (max-width: 600px) { .feldreihe--anrede, .feldreihe--plz { grid-template-columns: 1fr; } }
