/*
  Gestaltung der Platzhalter-Seite. Angelehnt an die neue Webseite (web/src/styles/global.css):
  gleiche Farben, Schriften und Formen, aber ohne Umschalter für Hell/Dunkel (folgt nur dem Gerät).
*/

@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('/schriften/barlow-condensed-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans Variable';
  font-weight: 300 800;
  font-display: swap;
  src: url('/schriften/open-sans-latin-wght-normal.woff2') format('woff2');
}

:root {
  --rot: #f60019;
  --rot-text: #b5121b;
  --rot-flaeche: #c8001a;
  --rot-flaeche-hover: #a30016;
  --anthrazit: #1f2328;
  --text: #23272c;
  --text-leise: #59606a;
  --hintergrund: #ffffff;
  --flaeche: #f4f4f5;
  --linie: #e2e3e6;
  --schrift-text: 'Open Sans Variable', system-ui, sans-serif;
  --schrift-titel: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --abstand: 1rem;
  --breite: 60rem;
  --radius: 0.75rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --rot-text: #ff6b70;
    --text: #e9eaec;
    --text-leise: #a9afb7;
    --hintergrund: #16181b;
    --flaeche: #202328;
    --linie: #31353b;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }
body {
  margin: 0; min-height: 100%;
  display: flex; flex-direction: column;
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--hintergrund);
}
main { flex: 1; }

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-top: 1.5em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

a { color: var(--rot-text); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }

.huelle { width: min(100% - 2 * var(--abstand), var(--breite)); margin-inline: auto; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; height: 4rem; }
.kopf a { color: var(--text); }

/* Einstieg */
.einstieg { padding: 4rem 0 3rem; }
.dachzeile {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--schrift-titel); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--rot-text); margin-bottom: 0.75rem;
}
.dachzeile::before {
  content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--rot);
  animation: pulsieren 2s ease-in-out infinite;
}
@keyframes pulsieren { 50% { opacity: 0.3; } }
.einstieg p { max-width: 38rem; font-size: 1.15rem; color: var(--text-leise); }

/* Kacheln */
.abschnitt { padding: 3rem 0; background: var(--flaeche); }
.abschnitt h2 { margin-top: 0; }
.kacheln { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.kachel {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.4rem; border-radius: var(--radius);
  background: var(--hintergrund); border: 1px solid var(--linie);
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
a.kachel:hover { border-color: var(--rot); transform: translateY(-2px); }
.kachel h3 { margin: 0; }
.kachel p { margin: 0; color: var(--text-leise); font-size: 0.97rem; overflow-wrap: anywhere; }
.kachel__icon { width: 2.5rem; height: 2.5rem; padding: 0.5rem; border-radius: 0.6rem; background: var(--flaeche); color: var(--rot-text); }
.kachel__mehr { margin-top: auto; padding-top: 0.4rem; font-weight: 700; color: var(--rot-text); }

/* Textseiten (Impressum, Datenschutz) */
.inhalt { max-width: 46rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.inhalt ul { padding-left: 1.2rem; }

/* Fuß */
.fuss { margin-top: 3rem; padding: 2rem 0; background: var(--anthrazit); color: #d9dbde; font-size: 0.95rem; }
.fuss a { color: #ffffff; }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.fuss ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.fuss p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
