/* Design des Mandanten DLA.
   Farben und Schrift aus dla-design-system (tokens/colors.css, tokens/fonts.css) und wie auf der bisherigen
   WordPress-Website: Weiß, Schwarz, Signalgrün #70E61C, Roboto (Roboto Black für Überschriften), Hell- und Dunkelmodus.
   Roboto liegt selbst gehostet im Theme (OFL), ohne Abruf bei Google Fonts. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
}

:root {
  --dla-white: #FFFFFF;
  --dla-gray-100: #F2F2F2;
  --dla-black: #000000;
  --dla-green: #70E61C;
  --dla-green-700: #54B40F;

  --flaeche: #ffffff;
  --flaeche-gedaempft: #f2f2f2;
  --karte: #ffffff;
  --text: #0a0a0a;
  --text-leise: #555555;
  --akzent: var(--dla-green);
  --akzent-text: #3d8a07;
  --akzent-hell: #e8ffd0;
  --linie: #dddddd;
  --schrift: "Roboto", system-ui, sans-serif;
  --schrift-ueberschrift: "Roboto", system-ui, sans-serif;
  --gewicht-ueberschrift: 900;
}

:root[data-modus="dunkel"] {
  --flaeche: #0a0a0a;
  --flaeche-gedaempft: #1f1f1f;
  --karte: #141414;
  --text: #f0f0f0;
  --text-leise: #aaaaaa;
  --akzent-text: #8fff3c;
  --akzent-hell: #1a3a00;
  --linie: #2e2e2e;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { transition: background-color .2s, color .2s; }

h1, h2 { letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin: 0 0 1.5rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
a { color: var(--akzent-text); }

.sprungmarke { position: absolute; left: -999px; }
.sprungmarke:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--flaeche); padding: .5rem 1rem; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 5;
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  padding: .75rem 0;
}
.kopf-zeile { display: flex; align-items: center; gap: 1.5rem; }
.logo { display: block; line-height: 0; }
.logo img { height: 2.5rem; width: auto; }
.logo-dunkel, :root[data-modus="dunkel"] .logo-hell { display: none; }
:root[data-modus="dunkel"] .logo-dunkel { display: block; }

.hauptmenue { margin-left: auto; }
.hauptmenue ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.hauptmenue a { color: var(--text); text-decoration: none; font-weight: 500; }
.hauptmenue a:hover, .hauptmenue a:focus { color: var(--akzent-text); }

.modus-schalter {
  border: 1px solid var(--linie); background: transparent; color: var(--text);
  border-radius: 999px; width: 2.5rem; height: 2.5rem; cursor: pointer; font-size: 1.1rem;
}
.modus-mond, :root[data-modus="dunkel"] .modus-sonne { display: none; }
:root[data-modus="dunkel"] .modus-mond { display: inline; }

/* Inhalt: Seiten bestehen aus Abschnitten über die volle Breite */
.inhalt { padding: 0; }
/* Die Überschrift einer Seite steht im Inhalt (Block .seitentitel); der Titel ist nur der Name im Admin (placement.json). */
.seitentitel { padding-top: 3rem; }
.inhalt h1 { margin-bottom: 0; }

.abschnitt { padding: 3.5rem 0; }
.abschnitt-gedaempft { background: var(--flaeche-gedaempft); }
.schmal { max-width: 48rem; }
.abschnitt-einleitung { color: var(--text-leise); max-width: 48rem; margin-top: -0.75rem; }

.einstieg-raster { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: center; }
.einstieg-text { font-size: 1.25rem; }
.einstieg-logo { text-align: center; }
:root[data-modus="dunkel"] .einstieg-logo img { content: url("/media/dla_logo_white.svg"); }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.karte {
  background: var(--karte); border: 1px solid var(--linie); border-top: 4px solid var(--akzent);
  border-radius: 6px; padding: 1.5rem;
}
.karte p:last-child { margin-bottom: 0; }
.weiter { font-weight: 700; text-decoration: none; }
.weiter::after { content: " →"; }

.leitsatz { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; text-align: center; margin: 0 0 2rem; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.25rem; text-align: center; }
.kennzahl p { margin: 0; }
.zahl { font-size: 2.5rem; font-weight: 900; color: var(--akzent-text); line-height: 1.1; }

/* Referenzen */
.referenzen { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.referenz { background: var(--karte); border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; padding-bottom: 1rem; }
.referenz > :not(.referenz-bild) { padding: 0 1.25rem; }
.referenz-bild { margin: 0 0 1rem; aspect-ratio: 16 / 10; background: var(--flaeche-gedaempft); }
.referenz-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.referenz .branche {
  display: inline-block; margin: 0 1.25rem .5rem; padding: .1rem .6rem;
  background: var(--akzent-hell); color: var(--text); border-radius: 999px; font-size: .85rem;
}

/* Kontakt & About */
.kontakt-wege { display: flex; flex-wrap: wrap; gap: 1rem; }
.knopf {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 6px; font-weight: 700; text-decoration: none;
  background: var(--akzent); color: var(--dla-black); border: 2px solid var(--akzent);
}
.knopf:hover { background: var(--dla-green-700); border-color: var(--dla-green-700); }
.knopf-zweit { background: transparent; color: var(--text); }
.profil-raster { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: center; }
.unterzeile { font-weight: 700; color: var(--akzent-text); margin-top: -1rem; }
.profil-links { display: flex; gap: 1.25rem; font-weight: 700; }
.profil-bild img { border-radius: 6px; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.haken { list-style: none; padding: 0; }
.haken li { padding-left: 1.75rem; position: relative; margin-bottom: .5rem; }
.haken li::before { content: "✓"; position: absolute; left: 0; color: var(--akzent-text); font-weight: 900; }

/* Impressum, Datenschutzerklärung */
.rechtstext h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.rechtstext { overflow-wrap: anywhere; }

/* Fuß */
.fuss {
  background: var(--dla-black);
  color: var(--dla-white);
  border-top: 4px solid var(--dla-green);
  padding: 2rem 0;
}
.fuss a { color: var(--dla-white); }
.fuss-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.fuss-logo { height: 2.25rem; width: auto; }
.fuss-kontakt, .fuss-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; }
.fuss-links { margin-left: auto; }

@media (max-width: 48rem) {
  .einstieg-raster, .profil-raster, .zwei-spalten { grid-template-columns: 1fr; }
  .einstieg-logo { order: -1; }
  .einstieg-logo img { max-width: 12rem; }
  .kopf-zeile { flex-wrap: wrap; gap: .75rem 1rem; }
  .hauptmenue { order: 3; width: 100%; margin-left: 0; }
  .modus-schalter { margin-left: auto; }
  .fuss-links { margin-left: 0; }
}
