/* ==========================================================
   Baustellenseite asgutachter.de
   Eigenstaendig, ohne Bauschritt. Farb- und Schriftrollen
   sind aus src/styles/tokens.css uebernommen, damit die
   Uebergangsseite und die spaetere Website dieselbe Sprache
   sprechen.
   ========================================================== */

@font-face {
  font-family: 'Archivo VF';
  src: url('/schrift/archivo.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif VF';
  src: url('/schrift/serif.woff2') format('woff2-variations');
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --navy:        #0E2542;
  --navy-tief:   #0A1B2E;
  --navy-hell:   #14304F;
  --blau:        #2267B2;
  --blau-tief:   #174B85;
  --gold:        #F9D600;
  --papier:      #F4F6F9;
  --weiss:       #FFFFFF;
  --tinte:       #0F1B2A;
  --text-leise:  #44566B;
  --text-still:  #5A6B7C;
  --hell-leise:  #B4C6D8;
  --hell-still:  #8DA5BF;
  --linie:       #D9E1EA;
  --linie-dunkel:#16304C;

  --titel: 'Source Serif VF', Georgia, 'Times New Roman', serif;
  --text:  'Archivo VF', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r2: 8px; --r3: 12px; --r4: 16px; --r5: 24px; --r6: 32px; --r7: 48px; --r8: 64px;
  --rand: clamp(16px, 4vw, 56px);
  --mass: 1340px;
  --abschnitt: clamp(48px, 8vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

a { color: var(--blau); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--gold);
  border-radius: 2px;
}

.mass { max-width: var(--mass); margin-inline: auto; padding-inline: var(--rand); }

/* --- Warnband: das einzige Baustellenzeichen, das wir uns erlauben --- */
.warnband {
  height: 10px;
  background: repeating-linear-gradient(
    45deg, var(--gold) 0 14px, var(--navy-tief) 14px 28px);
}

/* --- Kopfbereich, dunkel, mit Reissbrett-Raster --- */
.kopf {
  position: relative;
  background: var(--navy);
  color: var(--weiss);
  overflow: hidden;
}
.kopf::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(120% 90% at 22% 12%, #000 25%, transparent 78%);
  pointer-events: none;
}
.kopf > * { position: relative; }

.marke {
  display: flex; align-items: center; gap: var(--r3);
  padding-block: var(--r5);
  border-bottom: 1px solid var(--linie-dunkel);
}
.marke img { width: 46px; height: 46px; display: block; }
.marke b { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.marke span { display: block; font-size: 13px; color: var(--hell-still); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }

.haupt { padding-block: clamp(40px, 7vw, 84px) clamp(40px, 7vw, 80px); }

.feldname {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 var(--r4);
  display: flex; align-items: center; gap: var(--r3);
}
.feldname::after {
  content: ''; flex: 1; height: 1px; max-width: 160px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1 {
  font-family: var(--titel);
  font-weight: 600;
  font-size: clamp(38px, 7.2vw, 88px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 var(--r5);
  max-width: 18ch;
}
h1 em { font-style: normal; color: var(--gold); }

.anriss {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--hell-leise);
  max-width: 56ch;
  margin: 0 0 var(--r7);
}

/* --- Kontaktkacheln --- */
.kontakt { display: grid; gap: var(--r3); grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }

.kachel {
  display: block; text-decoration: none; color: inherit;
  background: var(--navy-hell);
  border: 1px solid var(--linie-dunkel);
  border-left: 4px solid var(--blau);
  padding: var(--r5);
  min-height: 112px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.kachel:hover { background: #1A3A5E; border-left-color: var(--gold); transform: translateY(-2px); }
.kachel .art { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--hell-still); }
.kachel .wert {
  display: block; margin-top: var(--r2);
  font-size: clamp(21px, 2.4vw, 27px); font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  color: var(--weiss); word-break: break-word;
}
.kachel .zusatz { display: block; margin-top: 2px; font-size: 14px; color: var(--hell-still); }
/* E-Mail-Adressen sind breit. Ohne eigene Groesse bricht die Adresse auf
   dem Bildschirm mitten im Wort um - und eine zerrissene Adresse ist
   genau die Angabe, die niemand mehr abtippt. */
.kachel .wert--adresse { font-size: clamp(17px, 1.5vw, 20px); letter-spacing: 0; }
.kachel--signal { border-left-color: var(--gold); }

.merksatz {
  margin: var(--r5) 0 0; font-size: 15px; color: var(--hell-still);
}

/* --- Helle Baender --- */
.band { padding-block: var(--abschnitt); }
.band--weiss { background: var(--weiss); border-bottom: 1px solid var(--linie); }

h2 {
  font-family: var(--titel); font-weight: 600;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.15;
  letter-spacing: -.01em; margin: 0 0 var(--r5); color: var(--navy);
}

.leistungen { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .leistungen { grid-template-columns: 1fr; } }
.leistungen li {
  padding: var(--r4) var(--r5) var(--r4) 0;
  border-top: 1px solid var(--linie);
  font-size: 17px; color: var(--text-leise);
  display: flex; gap: var(--r3); align-items: baseline;
}
.leistungen .nr {
  font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 700;
  color: var(--blau); letter-spacing: .08em; flex: none; min-width: 2.2em;
}

.gebiet { margin: var(--r6) 0 0; font-size: 15px; color: var(--text-still); }

/* --- Nachweise --- */
.nachweise { display: flex; flex-wrap: wrap; gap: var(--r2); margin: 0; padding: 0; list-style: none; }
.nachweise li {
  border: 1px solid var(--linie); background: var(--papier);
  padding: 9px var(--r4); font-size: 14px; color: var(--text-leise);
  font-weight: 500;
}

/* --- Fusszeile --- */
.fuss { background: var(--navy-tief); color: var(--hell-still); padding-block: var(--r7); font-size: 15px; }
.fuss a { color: var(--hell-leise); }
.fuss-reihe { display: flex; flex-wrap: wrap; gap: var(--r5); justify-content: space-between; align-items: flex-start; }
.fuss address { font-style: normal; line-height: 1.7; }
.fuss nav { display: flex; gap: var(--r5); flex-wrap: wrap; }

/* --- Rechtsseiten --- */
.recht { max-width: 68ch; padding-block: var(--abschnitt); }
.recht h1 { font-size: clamp(28px, 4vw, 44px); color: var(--navy); max-width: none; margin-bottom: var(--r6); }
.recht h2 {
  font-family: var(--text); font-size: 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  margin: var(--r6) 0 var(--r2); color: var(--navy);
}
.recht p, .recht li { color: var(--text-leise); }
.zurueck { display: inline-block; margin-top: var(--r7); font-weight: 600; }
