/* Goodridge – Baustellenseite (baustelle.css)
   Eigenständig, ohne Skript. Werte aus dem Designsystem v5 der neuen Website
   (CI goodridge.com: Navy #101932, Signalrot #D01A1A nur für Hauptaktion und Leitung, Barlow, Radius 5px). */

/* ==========================================================================
   1. Schrift: Barlow 300–700, selbst gehostet
   ========================================================================== */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/barlow-300-latin-ext.woff2) format('woff2'); 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; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/barlow-300-latin.woff2) format('woff2'); 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: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400-latin-ext.woff2) format('woff2'); 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; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400-latin.woff2) format('woff2'); 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: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500-latin-ext.woff2) format('woff2'); 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; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500-latin.woff2) format('woff2'); 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: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600-latin-ext.woff2) format('woff2'); 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; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600-latin.woff2) format('woff2'); 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: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-700-latin-ext.woff2) format('woff2'); 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; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-700-latin.woff2) format('woff2'); 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; }

/* ==========================================================================
   2. Tokens (aus dem Designsystem v5, CI goodridge.com)
   ========================================================================== */
:root {
  --navy: #101932;
  --navy-80: #40475b;
  --ink: #23232a;
  --weiss: #ffffff;
  --grau: #ededed;
  --linie: #d9dbe1;
  --linie-stark: #b9bcc6;
  --rot: #d01a1a;
  --rot-hover: #b01414;
  --auf-navy-2: #dfe3ee;
  --auf-navy-linie: rgb(255 255 255 / 0.16);
  --auf-navy-rahmen: rgb(255 255 255 / 0.62);

  --schrift: Barlow, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1rem, 3.4vw, 2.5rem);
  --abschnitt: clamp(4rem, 8vw, 7.5rem);
  --inhalt: 1200px;
  --radius: 5px;

  --quart: cubic-bezier(0.25, 1, 0.5, 1);
  --quint: cubic-bezier(0.22, 1, 0.36, 1);
  --expo: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ==========================================================================
   3. Grundlagen
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--ink);
  font-family: var(--schrift);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ul, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
:is(.hero, .lesekopf, .fuss) :focus-visible { outline-color: var(--weiss); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 61;
  padding: 0.75rem 1rem; border-radius: var(--radius);
  background: var(--navy); color: var(--weiss); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--inhalt) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   4. Kopf
   ========================================================================== */
.kopf {
  position: relative; z-index: 40;
  background: var(--weiss);
  box-shadow: 0 1px 0 rgb(16 25 50 / 0.08);
}
.kopf-zeile {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 104px;
}
.marke { flex: 0 1 280px; min-width: 0; display: block; border-radius: 2px; }
.marke img { width: 100%; }

.kopf-kontakt { display: flex; align-items: center; gap: 1.75rem; flex: none; }
.kopf-zeiten { font-size: 0.9375rem; font-weight: 500; color: var(--navy-80); }
.kopf-tel {
  display: inline-flex; align-items: center; gap: 0.625rem;
  min-height: 46px; padding: 0 1rem;
  border: 1px solid var(--navy); border-radius: var(--radius);
  color: var(--navy); font-size: 1.0625rem; font-weight: 500; text-decoration: none;
  transition: background-color 200ms var(--quart), color 200ms var(--quart);
}
.kopf-tel .ico { width: 20px; height: 20px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .kopf-tel:hover { background: var(--navy); color: var(--weiss); }
}

/* ==========================================================================
   5. Knöpfe und Textlinks
   ========================================================================== */
.aktionen { display: flex; flex-wrap: wrap; gap: 0.875rem 1rem; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 46px; padding: 12px 20px;
  border: 1px solid currentColor; border-radius: var(--radius);
  font: 500 1.125rem/1.2 var(--schrift); text-decoration: none;
  transition: background-color 200ms var(--quart), color 200ms var(--quart),
              border-color 200ms var(--quart), transform 200ms var(--quart), box-shadow 200ms var(--quart);
}
.knopf .pfeil { width: 20px; height: 20px; flex: none; transition: transform 200ms var(--quart); }
.knopf:active { transform: scale(0.98); transition-duration: 120ms; }
.knopf--rot { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.knopf--hell { color: var(--weiss); }
.knopf--navy { color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover .pfeil { transform: translateX(3px); }
  .knopf--rot:hover { background: var(--rot-hover); border-color: var(--rot-hover); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgb(16 25 50 / 0.6); }
  .knopf--hell:hover { background: var(--weiss); border-color: var(--weiss); color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgb(0 0 0 / 0.6); }
  .knopf--navy:hover { background: var(--navy); border-color: var(--navy); color: var(--weiss); transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgb(16 25 50 / 0.55); }
}

.text-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  color: var(--navy); font-size: 1.0625rem; font-weight: 500;
  text-decoration: underline; text-decoration-color: rgb(16 25 50 / 0.6);
  text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  transition: text-decoration-color 200ms var(--quart);
}
.text-link .pfeil { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--quart); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: currentColor; }
  .text-link:hover .pfeil { transform: translateX(3px); }
}

/* ==========================================================================
   6. Bühne (Hero) mit Medienleitung
   ========================================================================== */
.hero {
  --hero-luft: clamp(3.5rem, 8vw, 7rem);
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--weiss);
  padding-block: var(--hero-luft);
}
.hero-raster {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-text { display: grid; gap: clamp(1.25rem, 2.4vw, 1.75rem); justify-items: start; }
.hero h1 {
  max-width: 9.5em;
  font-size: clamp(2.75rem, 1.2rem + 4.2vw, 5.375rem);
  font-weight: 700; line-height: 1.1; letter-spacing: normal;
  text-wrap: balance;
}
.hero .lead {
  max-width: 34em;
  color: var(--auf-navy-2);
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 300; line-height: 1.5;
}
.hero .aktionen { margin-top: 0.5rem; }

/* Die Leitung kommt aus der Unterkante der Bühne und endet an der Verschraubung */
.leitung-grafik {
  justify-self: end; align-self: end;
  width: 100%; max-width: 500px;
  margin-bottom: calc(-1 * var(--hero-luft));
}
.leitung-grafik svg { width: 100%; height: auto; }
.lg-koerper { stroke: rgb(255 255 255 / 0.10); }
.lg-geflecht { stroke: rgb(255 255 255 / 0.30); }
.lg-spur { stroke: var(--auf-navy-linie); }
.lg-fuell { stroke: var(--rot); stroke-dasharray: 1; stroke-dashoffset: 0; }
.lg-teil { fill: var(--navy); stroke: var(--auf-navy-rahmen); }
.lg-mutter { transform-box: fill-box; transform-origin: center; }
.lg-ziel { fill: var(--rot); }

@media (prefers-reduced-motion: no-preference) {
  .hero-text { animation: einlaufen 700ms var(--expo) both; }
  .lg-fuell { animation: fuellen 1600ms var(--expo) 300ms both; }
  .lg-mutter { animation: anziehen 500ms var(--quint) 1500ms both; }
  .lg-ziel { animation: ziel 400ms var(--quart) 1700ms both; }
}
@keyframes einlaufen { from { transform: translateX(-28px); } }
@keyframes fuellen { from { stroke-dashoffset: 1; } }
@keyframes anziehen { from { transform: rotate(-30deg); } }
@keyframes ziel { from { opacity: 0; } }

/* ==========================================================================
   7. Abschnitte, Überschriften, Datenblatt
   ========================================================================== */
.abschnitt { padding-block: var(--abschnitt); }
.abschnitt--grau { background: var(--grau); }
.spalten {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.abschnitt-kopf { display: grid; gap: 1.25rem; }
.h2 {
  color: var(--navy-80);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  font-weight: 600; line-height: 1.1;
  text-wrap: balance;
}
.fliesstext { max-width: 68ch; }
.fliesstext, .lese-text { hyphens: auto; overflow-wrap: break-word; }
.fliesstext p + p { margin-top: 1em; }

.datenblatt { border-bottom: 1px solid var(--linie); }
.datenblatt > div {
  display: grid; grid-template-columns: minmax(9rem, 32%) minmax(0, 1fr);
  gap: 0.5rem 1.5rem; padding-block: 1.125rem;
  border-top: 1px solid var(--linie);
}
.abschnitt--grau .datenblatt, .abschnitt--grau .datenblatt > div { border-color: var(--linie-stark); }
.datenblatt dt {
  padding-top: 0.2rem;
  color: var(--navy-80);
  font-size: 0.875rem; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.043em; text-transform: uppercase;
}
.datenblatt dd { font-size: 1.125rem; line-height: 1.5; }
.datenblatt dd strong { display: block; color: var(--navy); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.datenblatt dd a:not(.text-link) {
  color: var(--navy); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgb(16 25 50 / 0.6);
  text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) {
  .datenblatt dd a:not(.text-link):hover { text-decoration-color: currentColor; }
}
.datenblatt .text-link { margin-top: 0.5rem; }

/* ==========================================================================
   8. Rechtstexte (Impressum, Datenschutz)
   ========================================================================== */
.lesekopf { background: var(--navy); color: var(--weiss); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.lesekopf h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); font-weight: 700; line-height: 1.1; }
.lesekopf .zurueck { color: var(--auf-navy-2); text-decoration-color: rgb(223 227 238 / 0.45); margin-bottom: 1rem; }
.lese { padding-block: clamp(3rem, 6vw, 5rem) var(--abschnitt); }
.lese-zeile {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--linie);
}
.lese-zeile:first-child { border-top: 0; padding-top: 0; }
.lese-zeile h2 { color: var(--navy-80); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 600; line-height: 1.2; text-wrap: balance; }
.lese-text { max-width: 68ch; font-size: 1.125rem; }
.lese-text p + p, .lese-text p + ul, .lese-text ul + p, .lese-text address + p, .lese-text p + address { margin-top: 0.875em; }
.lese-text ul { padding-left: 1.25em; }
.lese-text li + li { margin-top: 0.375em; }
.lese-text a { color: var(--navy); font-weight: 500; text-decoration-color: rgb(16 25 50 / 0.6); text-underline-offset: 0.2em; }
.lese-text .datenblatt { margin-top: 1.25rem; }
.lese-stand { margin-top: 2rem; color: var(--navy-80); font-size: 1rem; }

/* ==========================================================================
   9. Fuß
   ========================================================================== */
.fuss { background: var(--navy); color: var(--weiss); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.fuss-oben {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem); align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--auf-navy-linie);
}
.fuss-marke { display: inline-block; border-radius: 2px; }
.fuss-marke img { width: 240px; }
.fuss-text { display: grid; gap: 1.25rem; justify-items: start; color: var(--auf-navy-2); font-size: 1.125rem; }
.fuss-text p { max-width: 52ch; }
.fuss-raster {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--auf-navy-linie);
}
.fuss-titel {
  margin-bottom: 0.75rem;
  font-size: 0.875rem; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.043em; text-transform: uppercase;
}
.fuss-raster address, .fuss-raster p { color: var(--auf-navy-2); font-size: 1.0625rem; }
.fuss-raster p { display: grid; gap: 0.25rem; justify-items: start; }
.fuss a { color: var(--weiss); text-decoration-color: rgb(255 255 255 / 0.45); text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) {
  .fuss a:hover { text-decoration-color: currentColor; }
}
.fuss-basis {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  padding-top: 1.5rem; color: var(--auf-navy-2); font-size: 0.9375rem;
}
.fuss-basis nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.fuss-basis nav a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss--schmal { padding-block: 1rem; }
.fuss--schmal .fuss-basis { align-items: center; padding-top: 0; }

/* ==========================================================================
   10. Umbrüche
   ========================================================================== */
@media (max-width: 1119px) {
  .kopf-zeile { min-height: 78px; }
  .marke { flex-basis: 243px; }
}
@media (max-width: 900px) {
  .hero-raster, .spalten, .fuss-oben, .lese-zeile { grid-template-columns: minmax(0, 1fr); }
  .leitung-grafik { max-width: 300px; }
}
@media (max-width: 760px) {
  .kopf-zeiten { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .kopf-zeile { gap: 1rem; }
  .kopf-tel { width: 46px; padding: 0; justify-content: center; }
  .kopf-tel-nr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .datenblatt > div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .leitung-grafik { max-width: 200px; margin-top: -1rem; }
}
@media (max-width: 479px) {
  .aktionen { width: 100%; }
  .knopf { width: 100%; justify-content: space-between; text-align: left; }
  .fuss-marke img { width: 200px; }
}

/* Hochkontrast: Systemfarben statt fester Töne */
@media (forced-colors: active) {
  .knopf, .kopf-tel { border-color: ButtonText; }
  .lg-fuell { stroke: Highlight; }
  .lg-ziel { fill: Highlight; }
  .fuss-marke img { forced-color-adjust: none; background-color: #101932; padding: 6px; }
  .lg-teil { stroke: CanvasText; fill: Canvas; }
}

@media print {
  .hero, .lesekopf, .fuss { background: none; color: #000; }
  .leitung-grafik, .skip-link { display: none; }
}
