/* CAWLabel - Projektseite
   Farben aus der Anwendung selbst: das Blau der Navigationsleiste und der
   Statuszeile. Keine Abhaengigkeiten, keine Webfonts - die Seite soll auch
   offline und aus einem Dateifreigabedienst heraus funktionieren. */

:root {
  --blau: #1a74c3;
  --blau-hell: #48bcf5;
  --blau-dunkel: #12548f;
  --text: #1c2430;
  --text-leise: #5b6673;
  --linie: #dde3ea;
  --flaeche: #f5f7fa;
  --weiss: #ffffff;
  --breite: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
}

.huelle {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Kopf ------------------------------------------------------------- */

header {
  background: linear-gradient(160deg, var(--blau-dunkel), var(--blau));
  color: var(--weiss);
  padding: 48px 0 56px;
}

.kopfzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.kopfzeile img {
  height: 56px;
  background: var(--weiss);
  padding: 8px 14px;
  border-radius: 8px;
}

header h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 650;
}

header .anriss {
  font-size: 1.2rem;
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

/* --- Sprachumschalter -------------------------------------------------- */

.sprachen {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px;
  border-radius: 999px;
}

.sprachen button {
  border: 0;
  background: transparent;
  color: var(--weiss);
  font: inherit;
  font-size: 0.95rem;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sprachen button:hover { background: rgba(255, 255, 255, 0.18); }

.sprachen button[aria-pressed="true"] {
  background: var(--weiss);
  color: var(--blau-dunkel);
  font-weight: 600;
}

/* --- Kennzahlen -------------------------------------------------------- */

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--linie);
  border: 1px solid var(--linie);
  border-radius: 10px;
  overflow: hidden;
  margin: -28px auto 0;
  max-width: var(--breite);
  position: relative;
  box-shadow: 0 6px 24px rgba(18, 84, 143, 0.12);
}

.kennzahl {
  background: var(--weiss);
  padding: 22px 18px;
  text-align: center;
}

.kennzahl .wert {
  display: block;
  font-size: 1.9rem;
  font-weight: 650;
  color: var(--blau-dunkel);
  line-height: 1.1;
}

.kennzahl .bezeichnung {
  display: block;
  font-size: 0.86rem;
  color: var(--text-leise);
  margin-top: 4px;
}

/* --- Abschnitte -------------------------------------------------------- */

section { padding: 56px 0; }

section.getoent { background: var(--flaeche); }

h2 {
  font-size: 1.8rem;
  margin: 0 0 8px;
  font-weight: 650;
}

h2 + .untertitel {
  color: var(--text-leise);
  margin: 0 0 32px;
  max-width: 65ch;
}

h3 {
  font-size: 1.12rem;
  margin: 0 0 6px;
  font-weight: 620;
}

p { margin: 0 0 16px; }

/* --- Funktionsraster --------------------------------------------------- */

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 22px 24px;
}

.karte p { margin: 0; color: var(--text-leise); font-size: 0.97rem; }

/* --- Bild mit Text ----------------------------------------------------- */

.zeile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.zeile:last-child { margin-bottom: 0; }

.zeile.gedreht > figure { order: 2; }

.zeile figure { margin: 0; }

.zeile img,
.galerie img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--linie);
  border-radius: 8px;
}

.zeile figcaption,
.galerie figcaption {
  font-size: 0.85rem;
  color: var(--text-leise);
  margin-top: 8px;
}

/* --- Galerie ----------------------------------------------------------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.galerie figure { margin: 0; }

/* --- Technik ----------------------------------------------------------- */

.technik {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.technik dl { margin: 0; }

.technik dt {
  font-weight: 620;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blau);
  margin-bottom: 4px;
}

.technik dd {
  margin: 0 0 14px;
  color: var(--text-leise);
  font-size: 0.97rem;
}

/* --- Fuss -------------------------------------------------------------- */

footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  padding: 32px 0;
  font-size: 0.92rem;
}

footer p { margin: 0; }

/* --- Sprachsteuerung ---------------------------------------------------- */

/* Englisch ist die Vorgabe; body.de schaltet auf Deutsch um.

   Wichtig: Die Selektoren beginnen bei body. Ohne das trifft [lang="de"]
   auch das html-Element - das Skript setzt dort die Sprache - und blendet
   damit die gesamte Seite aus.

   !important ist hier bewusst gesetzt: Die Sprachauswahl muss jede
   Darstellungsregel ueberstimmen. Ohne das gewinnt etwa
   .kennzahl .bezeichnung { display: block } nach Spezifitaet, und beide
   Sprachfassungen stehen uebereinander. */
body [lang="de"] { display: none !important; }

body.de [lang="en"] { display: none !important; }
body.de [lang="de"] { display: revert !important; }

/* --- Schmale Bildschirme ------------------------------------------------ */

@media (max-width: 780px) {
  header { padding: 32px 0 40px; }
  header h1 { font-size: 1.9rem; }
  .zeile { grid-template-columns: 1fr; gap: 20px; }
  .zeile.gedreht > figure { order: 0; }
  .kennzahlen { margin-top: 0; border-radius: 0; border-left: 0; border-right: 0; }
  section { padding: 40px 0; }
}

/* --- Druck --------------------------------------------------------------- */

@media print {
  .sprachen { display: none; }
  header { background: var(--blau-dunkel); }
  section.getoent { background: transparent; }
}
