/* bluce OHG – Stylesheet
   VOICE    seriös, klar, kühl: ein Ingenieurbüro mit Handschrift
   IDEA     der Lichtplan: Hallenschnitt, Lichtkegel, Isolux-Linien
   PICTURE  Hallenschnitt im Hero (Tag, Eisblau) und im Lux-Regler (Nacht, Schiefer, kaltweißes Licht)
   COLOUR   kühles Weiß als Grund, Eisblau für den Hero, Tinte Blaugrau, klares Blau als Akzent
   TYPE     Systemschriften (keine externen Requests): Grotesk fett, Serif kursiv als ruhige Stimme
   LAYOUT   mobil zuerst, Bänder in voller Breite, Inhalt max. 1240 px */

:root {
  --bg: #FFFFFF;     /* Seitengrund */
  --bg2: #FFFFFF;    /* abgesetzte Bänder */
  --card: #FFFFFF;   /* Textflächen */
  --line: #D3DCE4;   /* Linien auf hell */
  --ice: #DDEAF2;    /* Hero */
  --ink: #111111;    /* Überschriften, dunkle Flächen */
  --txt: #1C1C1C;    /* Fließtext */
  --mut: #555555;    /* Nebentext */
  --acc: #1663D6;    /* Akzent */
  --night: #0B121A;  /* Lux-Regler, Footer */
  --night2: #121C26;
  --nline: #243240;
  --glow: #BFE3FF;   /* kaltweißes Licht */
  --nt: #C9D4DE;     /* Text auf Nacht */
  --nm: #8E9CAA;     /* Nebentext auf Nacht */
  --w: 1240px;
  --r: 6px;
  --pad: max(5vw, 18px);
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--txt); font: 17px/1.6 var(--sans); overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 52px); color: var(--ink); }
h3 { color: var(--ink); }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 2px; }
.lux :focus-visible, .site-footer :focus-visible { outline-color: var(--glow); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--w), calc(100% - 2 * var(--pad))); margin-inline: auto; }
.band { padding-block: clamp(64px, 9vw, 128px); }
.label { display: block; color: var(--acc); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.intro { font-size: 19px; }
.ph-note { display: inline-block; font-size: 14px; border: 1.5px dashed currentColor; padding: 6px 12px; border-radius: 3px; margin: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; font-weight: 800; font-size: 25px; letter-spacing: -.035em; line-height: 1; min-height: 44px; }
.logo .mark { width: auto; height: 44px; flex: none; }
.logo .lf { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 5px; border: 1.5px solid currentColor; border-radius: 3px; }
.menu-btn { display: none; }
.js .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: var(--ink); color: #fff; border: 0; border-radius: var(--r); font: 700 16px var(--sans); cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
[aria-expanded="true"] .burger { background: transparent; }
[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav { flex-basis: 100%; padding-bottom: 18px; }
.js .nav { display: none; }
.js .nav.open { display: block; }
.nav a { display: flex; align-items: center; min-height: 50px; text-decoration: none; font-weight: 700; font-size: 21px; border-top: 1px solid var(--line); }
.nav-util a { font-size: 16px; font-weight: 600; min-height: 46px; }
.nav a:hover { color: var(--acc); }
.nav a[aria-current="page"] { color: var(--acc); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
@media (min-width: 1000px) {
  .bar { flex-wrap: nowrap; }
  .js .menu-btn { display: none; }
  .nav, .js .nav { display: flex; flex: 1; align-items: center; justify-content: space-between; padding: 0; margin-left: 56px; }
  .nav ul { display: flex; gap: 32px; }
  .nav a { border: 0; font-size: 17px; min-height: 44px; }
  .nav-util ul { gap: 22px; }
  .nav-util a { font-size: 14px; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: var(--r); font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--acc); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-y { background: var(--acc); color: #fff; }
.btn-y:hover { background: var(--ink); }

/* Hero */
.hero { background: #FFFFFF; color: var(--ink); padding-block: clamp(48px, 8vw, 120px); border-bottom: 1px solid var(--line); }
.hero, .page-hero { position: relative; overflow: hidden; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
/* bl-Logo als Hintergrund: Vektor, in jeder Größe scharf */
.hero-mark { position: absolute; z-index: 0; top: 0; right: -18vw; height: 78%; width: auto; color: #EEF1F4; pointer-events: none; }
@media (min-width: 700px) { .hero-mark { right: -4vw; height: 88%; } }
@media (min-width: 1100px) { .hero-mark { right: max(4vw, calc((100vw - 1240px) / 2)); height: 100%; color: #E8ECF0; } }
.kicker { font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(52px, 10vw, 140px); line-height: 1; letter-spacing: -.045em; margin-bottom: clamp(28px, 4vw, 56px); }
.hero-grid { display: grid; }
.hero-text { max-width: 640px; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; font-weight: 500; color: var(--ink); }
.claim { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; margin: 24px 0 28px; padding-top: 20px; border-top: 2px solid currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hall { color: var(--ink); }
.cone { opacity: 0; animation: lightOn 1.4s ease-out forwards; }
@keyframes lightOn { to { opacity: 1; } }

/* Abschnittsköpfe */
.head { display: grid; gap: 12px 56px; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } .head p { margin: 0; } }

/* Leistungen */
.cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.panel { background: var(--card); color: var(--txt); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.panel h3 { font-size: 26px; margin-bottom: 6px; }
.sub { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--mut); margin-bottom: 20px; }
.ico { width: 52px; height: 52px; margin-bottom: 24px; color: var(--acc); }
.ticks li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 11px; height: 10px; background: var(--acc); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }

/* Lux-Regler */
.lux { background: var(--night); color: var(--nt); }
.lux h2 { color: #fff; }
.lux .label { color: var(--glow); }
.lux-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .lux-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 56px; } }
.lux-fig { --l: .62; margin: 0; background: var(--night2); border: 1px solid var(--nline); border-radius: var(--r); padding: clamp(8px, 2vw, 24px); }
.lux-fig .hall { color: #4F6172; }
.lux-fig .cone { animation: none; opacity: calc(.04 + var(--l) * .96); transition: opacity .35s; }
.lux-fig .pool { opacity: calc(var(--l) * .95); transition: opacity .35s; }
.readout { font-size: clamp(68px, 9vw, 116px); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: #fff; text-shadow: 0 0 40px rgba(191,227,255,.45); white-space: nowrap; margin: 0; font-variant-numeric: tabular-nums; }
.readout small { font-size: .38em; letter-spacing: 0; margin-left: .15em; }
.task { font-size: 21px; color: var(--glow); font-weight: 600; min-height: 2.7em; margin: 14px 0 22px; line-height: 1.3; }
.range-wrap { display: none; }
.js .range-wrap { display: block; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #2A3A4A, var(--glow)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #2A3A4A, var(--glow)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: #fff; border: 4px solid var(--night); box-shadow: 0 0 0 2px var(--glow), 0 0 24px rgba(191,227,255,.7); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--night); box-shadow: 0 0 0 2px var(--glow); }
.scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--nm); font-variant-numeric: tabular-nums; }
.note { font-size: 14px; color: var(--nm); margin-top: 24px; max-width: 56ch; }

/* Ablauf */
.steps li { position: relative; padding: 0 0 36px 44px; border-left: 2px solid var(--line); margin-left: 12px; }
.steps li::before { content: ""; position: absolute; left: -13px; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid var(--acc); box-shadow: 0 0 0 6px rgba(22,99,214,.12), 0 0 26px 6px rgba(22,99,214,.18); }
.steps li:last-child { border-color: transparent; padding-bottom: 0; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 16px; margin: 0; }
@media (min-width: 900px) {
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li, .steps li:last-child { border-left: 0; border-top: 2px solid var(--line); margin: 0; padding: 44px 0 0; }
  .steps li::before { left: 0; top: -13px; }
}

/* Zielgruppen */
.groups { display: grid; gap: 32px 48px; }
@media (min-width: 760px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group { border-top: 1px solid var(--line); padding-top: 22px; }
.group p { margin: 0; }
.alt { background: var(--bg2); }
.band + .band { border-top: 1px solid var(--line); }
.lux, .band + .lux, .lux + .band { border-top: 0; }

/* Kontakt */
.contact { background: var(--card); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.cdata { display: grid; gap: 18px; margin: 32px 0 0; }
.cdata dt { font-size: 14px; font-weight: 700; color: var(--mut); }
.cdata dd { margin: 2px 0 0; font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; color: var(--ink); }
.cdata a { text-decoration-thickness: 2px; }
.contact .ticks { margin-bottom: 20px; }
.contact .small { font-size: 15px; color: var(--mut); }

/* Unterseiten */
.page-hero { background: #FFFFFF; border-bottom: 1px solid var(--line); color: var(--ink); padding-block: clamp(44px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(48px, 8vw, 108px); line-height: .95; letter-spacing: -.04em; }
.page-hero .lead { max-width: 46ch; }
.crumbs { font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.crumbs a { display: inline-block; padding-block: 8px; }
.cta { border-top: 1px solid var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0; max-width: 20ch; }

/* Projekte */
.filters { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.js .filters { display: flex; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 600 16px var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--acc); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.count { font-size: 15px; color: var(--mut); margin-bottom: 20px; }
.projects { display: grid; gap: 16px; }
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.project { display: flex; flex-direction: column; background: var(--card); color: var(--txt); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.project[hidden] { display: none; }
.project img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project .tx { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project p { font-size: 16px; }
.cat { align-self: flex-start; font-size: 14px; font-weight: 700; background: #E3EEFB; color: #0F4FAF; padding: 3px 10px; border-radius: 3px; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: auto 0 0; font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { color: var(--mut); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }

/* Referenzen */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.logos img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
.logos li.logo-rps { background: #012A40; border-color: #012A40; }
.logos li.logo-conti { background: #151821; border-color: #151821; }
.logos li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.quotes { display: grid; gap: 16px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { margin: 0; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2vw, 25px); line-height: 1.4; }
.quote p { color: var(--ink); }
.quote footer { font-size: 15px; font-weight: 600; color: var(--mut); }

/* Über uns */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; } }
.split img { width: 100%; border-radius: var(--r); }
.split img.portrait { max-width: 460px; justify-self: center; border-radius: 0; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 28px; margin: 28px 0 0; border-top: 1px solid var(--line); padding-top: 20px; }
.kv dt { color: var(--mut); }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }

/* Rechtstexte */
.legal { background: var(--card); color: var(--txt); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 5vw, 64px); max-width: 880px; }
.legal h2 { color: var(--ink); font-size: clamp(24px, 3vw, 30px); margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 19px; margin: 1.4em 0 .4em; }
.legal p, .legal li { font-size: 16px; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: .3em; }
.legal .ph-note { margin-bottom: 28px; }

/* Footer */
.site-footer { background: var(--night); color: var(--nt); padding-block: 56px 28px; font-size: 16px; }
.foot { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); } }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer p { color: var(--nm); }
.ftitle { font-size: 14px; font-weight: 700; color: var(--nm); margin-bottom: 6px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: #fff; }
.site-footer ul a:hover { text-decoration: underline; color: var(--glow); }
.site-footer address { font-style: normal; color: var(--nt); line-height: 1.7; }
.fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--nline); font-size: 14px; color: var(--nm); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.fine p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cone { opacity: 1; }
  .lux-fig .cone { opacity: calc(.04 + var(--l) * .96); }
}

/* Projekte: Reiter mit Bild und Beschreibung */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 700 16px var(--sans); cursor: pointer; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabpanel { display: grid; gap: 28px; align-items: start; }
.tabpanel + .tabpanel { margin-top: 56px; }
.js .tabpanel + .tabpanel { margin-top: 0; }
.tabpanel[hidden] { display: none; }
@media (min-width: 960px) { .tabpanel { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; } }
.tabpanel .tx { padding-top: 4px; }
.tabpanel .tx p { font-size: 17px; }
.pic { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg2); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
