/* Baustellen-Seite zeigert.de · Gestaltung nach Markenauftritt V4 Meisterhand */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/Jost-Variable.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/Jost-Variable-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blau: #0F4F84;
  --mittelblau: #2569A3;
  --tiefblau: #023562;
  --lichtblau: #8FB5DA;
  --tinte: #142231;
  --grau: #56636F;
  --flaeche: #EDF2F7;
  --text-2: rgba(255, 255, 255, .86);
  --linie: rgba(255, 255, 255, .22);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Jost", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
  background: var(--tiefblau);
  -webkit-font-smoothing: antialiased;
}
/* Verlauf der Marke mit feinem Bauplan-Raster */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 40%, rgba(37, 105, 163, .55), rgba(2, 53, 98, 0) 60%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(135deg, #2569A3 0%, #105287 42%, #023562 100%);
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.seite {
  width: 100%;
  max-width: 1480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px) clamp(16px, 4vw, 56px) 28px;
  display: flex;
  flex-direction: column;
}

/* Kopf */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { display: block; width: clamp(168px, 19vw, 264px); height: auto; }
.logo a { display: block; }
.kopf-tel {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.kopf-tel:hover { background: #fff; color: var(--blau); }
.sym { width: 22px; height: 22px; flex: none; display: block; }

/* Bühne */
.buehne {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 4fr) minmax(0, 8.5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(20px, 4vh, 48px) 0 clamp(20px, 3vh, 32px);
}
h1 {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.punkt { color: var(--lichtblau); }
.lead {
  margin: 0 0 24px;
  max-width: 33em;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.kontakt {
  list-style: none;
  margin: 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--lichtblau);
  display: grid;
  gap: 10px;
}
.kontakt a {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  font-weight: 500;
  text-decoration: none;
}
.kontakt a span { border-bottom: 1px solid transparent; transition: border-color .2s; }
.kontakt a:hover span { border-color: currentColor; }
.kontakt .sym { color: var(--lichtblau); }

/* Bauzeichnung */
.baustelle { min-width: 0; margin-right: clamp(-40px, -2vw, 0px); }
.szene-rahmen { position: relative; }
.szene { display: block; width: 100%; height: auto; overflow: visible; }
/* Bis baustelle.js den Aufbau vorbereitet hat, bleibt die Zeichnung verborgen (ohne Skript nach 2,5 s sichtbar) */
.szene:not(.bereit) { visibility: hidden; animation: sichtbar 0s 2.5s forwards; }
@keyframes sichtbar { to { visibility: visible; } }
.szene .l { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.szene .lf { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.szene .ls { fill: rgba(255, 255, 255, .06); }
.szene .sch { fill: url(#schraffur); }
.szene .sonne-kern { fill: rgba(255, 255, 255, .16); }
.szene text { font-family: "Jost", Arial, sans-serif; }
.szene .mass { font-size: 15px; fill: rgba(255, 255, 255, .72); }
.szene .raum { font-size: 15px; fill: rgba(255, 255, 255, .6); font-style: italic; }
.szene .schild { font-size: 26px; font-weight: 600; fill: var(--blau); letter-spacing: -.01em; }
.szene .wagen { fill: rgba(15, 79, 132, .92); }
.szene .wagen-text { font-size: 21px; font-weight: 600; fill: #fff; }
.szene .rad-reifen { fill: var(--tiefblau); }
.szene .led { fill: var(--lichtblau); }
.szene .balken { fill: var(--lichtblau); transform-box: fill-box; transform-origin: 50% 100%; }

/* Leitungen: Grundlinie und laufender Fluss */
.szene .rohr { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .3; }
.szene .fluss { fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 11; opacity: 0; transition: opacity 1.2s; }
.szene .vl { stroke: #fff; }
.szene .rl { stroke: var(--lichtblau); }
.szene .sol { stroke: #fff; }
.szene .tw { stroke: #BCD3EA; }
.szene .kae { stroke: var(--lichtblau); }
.szene .kae.fluss { stroke-dasharray: 2 7; }
.szene .strahl { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.4; stroke-dasharray: 3 12; opacity: 0; transition: opacity 1.2s; }
.szene .luft { fill: none; stroke: var(--lichtblau); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 14; opacity: 0; }
.szene .welle { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.szene .tropfen { stroke: #BCD3EA; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.szene .blitz { opacity: 0; }
.szene .glanz { opacity: 0; }
.szene .einblenden { opacity: 0; transition: opacity .8s; }
.szene.live .einblenden { opacity: 1; }

/* Laufende Bewegung erst nach dem Aufbau */
.live .fluss { opacity: 1; animation: fliessen 1.1s linear infinite; }
.live .rl.fluss { animation-duration: 1.4s; }
.live .tw.fluss { animation-duration: .9s; }
.live .kae.fluss { animation-duration: 1.6s; }
.live .strahl { opacity: 1; animation: strahlen 1.6s linear infinite; }
.live .luft { animation: luft 2.4s ease-in-out infinite; }
.live .welle { animation: welle 2.8s ease-in-out infinite; }
.live .tropfen { animation: tropfen .95s linear infinite; }
.live .rotor { animation: drehen 1.2s linear infinite; }
.live .rotor-schnell { animation-duration: .7s; }
.live .sonnenstrahlen { animation: drehen 40s linear infinite; }
.live .glanz { animation: glanz 6s ease-in-out infinite; }
.live .blitz { animation: blitz 1.6s linear infinite; }
.live .blitz-wagen { animation-duration: 2.4s; animation-delay: .4s; }
.live .led { animation: led 2s steps(1) infinite; }
.live .balken { animation: balken 1.8s ease-in-out infinite; }
.live .schluessel { animation: schluessel 2.6s ease-in-out infinite; }
.live .wolke { animation: wolke 26s ease-in-out infinite alternate; }
.live .wolke-2 { animation-duration: 34s; animation-direction: alternate-reverse; }

#transporter { transform: translateX(-300px); }
.szene.anfahrt #transporter { transform: translateX(-34px); transition: transform 2.8s cubic-bezier(.25, .6, .25, 1); }
.szene.faehrt .rad { animation: drehen .5s linear infinite; }

@keyframes fliessen { to { stroke-dashoffset: -18; } }
@keyframes strahlen { to { stroke-dashoffset: -15; } }
@keyframes luft { 0% { opacity: 0; stroke-dashoffset: 24; } 30% { opacity: .9; } 100% { opacity: 0; stroke-dashoffset: -24; } }
@keyframes welle { 0% { opacity: 0; transform: translateY(6px); } 35% { opacity: .85; } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes tropfen { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(74px); } }
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes glanz { 0%, 55% { opacity: 0; transform: translateX(0); } 60% { opacity: 1; } 95% { opacity: 1; transform: translateX(270px); } 100% { opacity: 0; transform: translateX(270px); } }
@keyframes blitz { 0%, 46%, 100% { opacity: .08; } 8%, 18% { opacity: 1; } 13% { opacity: .3; } }
@keyframes led { 0%, 70% { opacity: 1; } 71%, 100% { opacity: .25; } }
@keyframes balken { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes schluessel { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }
@keyframes wolke { from { transform: translateX(-30px); } to { transform: translateX(60px); } }


/* Fuß */
.fuss {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 18px 40px;
  padding-top: 22px;
  border-top: 1px solid var(--linie);
}
.claim { margin: 0; font-size: clamp(1.45rem, 2vw, 1.9rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.claim-sub { margin: 6px 0 0; color: var(--text-2); }
.fuss-rechts { text-align: right; }
.fuss nav { display: flex; gap: 22px; justify-content: flex-end; }
.fuss nav a { text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.fuss nav a:hover { border-color: #fff; }
.copy { margin: 8px 0 0; font-size: .86rem; color: rgba(255, 255, 255, .72); }

/* Rechtstexte */
.blatt { flex: 1; padding: clamp(28px, 5vh, 56px) 0; }
.blatt article {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  background: #fff;
  color: var(--tinte);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(2, 30, 60, .35);
}
.blatt h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 24px; color: var(--blau); }
.blatt h2 { margin: 30px 0 8px; font-size: 1.12rem; font-weight: 600; color: var(--tinte); }
.blatt p { margin: 0 0 12px; line-height: 1.65; color: #2b3a48; }
.blatt article a { color: var(--blau); }
.blatt .stand { margin-top: 28px; color: var(--grau); }
.blatt .zurueck { max-width: 820px; margin: 20px auto 0; }
.zurueck a { color: #fff; font-weight: 500; }

/* Schmale Bildschirme */
@media (max-width: 980px) {
  .buehne { grid-template-columns: 1fr; }
  .baustelle { margin: 0 calc(-1 * clamp(4px, 2vw, 24px)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .kopf-tel span { display: none; }
  .kopf-tel { padding: 10px; }
  .szene .raum, .szene .mass, .szene .bemassung { display: none; }
  .fuss-rechts { text-align: left; }
  .fuss nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .szene *, .szene.live * { animation: none !important; transition: none !important; }
  .szene .fluss, .szene .strahl { opacity: 1; }
  .szene .welle, .szene .luft { opacity: .6; }
  #transporter { transform: translateX(-34px); }
}
