/* ============================================
   PROJEKT: Dr. Tobias Robischon – Übergangsseite Wahl 2027
   Mobile-First – Basis = Smartphone. Media Queries am Ende.
   Farben nach ÜWG-Motiv „Gemeinsam sind wir Michelstadt" (20_Eingang, gemessen 2026-11-27).
   Neues ÜWG-CI evtl. abweichend — dann nur Block 2 anpassen.
   ============================================ */

/* --- 1. Schriften (lokal, OFL) --- */
@font-face {
  font-family: 'Literata';
  src: url('/fonts/literata-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/fonts/literata-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3-v20-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3-v20-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('/fonts/barlow-semi-condensed-v16-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('/fonts/barlow-semi-condensed-v16-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --- 2. Custom Properties --- */
:root {
  /* ÜWG-Palette (aus dem Plakatmotiv) */
  --uewg-blau:    #0250a2;   /* Hauptfarbe, Kontrast auf Weiß 7,9:1 */
  --uewg-himmel:  #0194da;
  --uewg-gruen:   #9bc21b;
  --uewg-gelb:    #ffe500;
  --uewg-orange:  #f59201;
  --uewg-rot:     #e6342a;
  --uewg-lila:    #ab699e;

  /* Rollen */
  --tinte:        var(--uewg-blau);   /* Überschriften, Linien, Flächen */
  --tinte-hell:   #0a5fb8;            /* Hover auf Blau */
  --tinte-tief:   #013a75;            /* Fuß */
  --sandstein:    #a85600;            /* Akzenttext (Orange abgedunkelt, 5,3:1 auf Weiß) */
  --sandstein-hell: var(--uewg-gelb); /* Akzent auf Blau (6,2:1) */
  --papier:       #ffffff;
  --papier-dunkel:#eaf2fa;
  --flaeche:      #f1f6fb;            /* abgesetzte Sektionen */
  --regenbogen: linear-gradient(90deg,
      var(--uewg-lila) 0 20%, var(--uewg-blau) 20% 40%, var(--uewg-gruen) 40% 60%,
      var(--uewg-gelb) 60% 80%, var(--uewg-rot) 80% 100%);
  --text:         #1f2a33;
  --text-leise:   #50606c;
  --weiss:        #ffffff;
  --linie:        rgb(2 80 162 / .14);

  --font-titel: 'Literata', Georgia, 'Times New Roman', serif;
  --font-text:  'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --font-label: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;

  --raum-s: 1rem;
  --raum-m: clamp(1.5rem, 3vw, 2.5rem);
  --raum-l: clamp(3rem, 7vw, 6rem);
  --breite: 72rem;
  --header-h: 4rem;
  --radius: 4px;
  --schatten: 0 1px 2px rgb(2 40 90 / .08), 0 12px 32px -12px rgb(2 40 90 / .3);
}

/* --- 3. Reset & Basis --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, .4vw + .95rem, 1.1875rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--papier);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-titel); color: var(--tinte); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 3vw + .75rem, 2.75rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.4rem); font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--tinte); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--sandstein); }
:focus-visible { outline: 3px solid var(--sandstein); outline-offset: 3px; border-radius: 2px; }
.icon { flex: none; vertical-align: -.2em; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--tinte); color: var(--weiss); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: .75rem; color: var(--weiss); }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  font-family: var(--font-label); font-weight: 600; font-size: .95rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sandstein); margin-bottom: .6rem;
}

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font-family: var(--font-label); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
  color: var(--weiss); background: var(--tinte); border: 2px solid var(--tinte);
  border-radius: var(--radius); text-decoration: none;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.knopf:hover { background: #013d7c; border-color: #013d7c; color: var(--weiss); box-shadow: var(--schatten); }
.knopf--rand { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf--rand:hover { background: var(--papier-dunkel); border-color: var(--tinte); color: var(--tinte); }
.knopf--klein { min-height: 44px; padding: .45rem 1rem; font-size: 1rem; white-space: nowrap; }
.ab-tablet { display: none; }

/* --- 4. Kopf (immer sichtbar) --- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--papier);
  box-shadow: 0 1px 0 var(--linie);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--regenbogen); }
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marke { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.marke__name { font-family: var(--font-titel); font-weight: 750; font-size: clamp(1.05rem, 3.5vw + .3rem, 1.2rem); color: var(--tinte); white-space: nowrap; }
.marke__titel {
  font-family: var(--font-label); font-weight: 600; font-size: clamp(.66rem, 1.6vw + .3rem, .78rem); white-space: nowrap;
  letter-spacing: .1em; text-transform: uppercase; color: var(--sandstein); margin-top: .2rem;
}
.site-header__aktionen { display: flex; align-items: center; gap: .75rem; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.social--kopf { display: none; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--tinte);
}
.social a:hover { background: var(--papier-dunkel); color: var(--sandstein); }

/* --- 5. Hero --- */
.hero { position: relative; background: var(--tinte); }
.hero__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 30%; }
.hero__wrap { position: relative; }
.hero__karte {
  position: relative;
  margin: -2.5rem 0 0;
  padding: 1.75rem 1.4rem 2rem;
  background: var(--papier);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  overflow: hidden;
}
.hero__karte::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--regenbogen); }
.hero__wahl {
  display: inline-flex; align-items: flex-start; gap: .5rem;
  font-family: var(--font-label); font-weight: 600; font-size: 1rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--sandstein);
}
.hero__titel {
  font-size: clamp(2.6rem, 8vw + .5rem, 4.75rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1;
  margin: .3rem 0 1.1rem;
}
.hero__text { font-size: 1.1em; max-width: 34em; }
.hero__unterschrift {
  font-family: var(--font-titel); font-style: italic; font-weight: 500;
  font-size: 1.25rem; color: var(--tinte); margin-bottom: 1.5rem;
}
.hero__knoepfe { display: flex; flex-direction: column; gap: .75rem; }

/* --- 6. Eckdaten --- */
.eckdaten { padding: var(--raum-l) 0 calc(var(--raum-l) * .6); }
.eckdaten__liste { list-style: none; margin: 0 auto; display: grid; gap: 1.75rem; }
.eckdaten__punkt { display: grid; align-content: start; gap: .3rem; padding-top: 1rem; border-top: 2px solid var(--tinte); }
.eckdaten__zahl {
  font-family: var(--font-titel); font-weight: 800; font-size: clamp(2.25rem, 4vw + 1rem, 3.25rem);
  line-height: 1; color: var(--tinte); font-variant-numeric: lining-nums tabular-nums;
}
.eckdaten__text { color: var(--text-leise); max-width: 22em; }
.eckdaten__punkt:nth-child(2) { border-top-color: var(--uewg-gruen); }
.eckdaten__punkt:nth-child(3) { border-top-color: var(--uewg-orange); }
.eckdaten__punkt { border-top-width: 4px; }

/* --- 7. Vorschau --- */
.vorschau { padding: var(--raum-l) 0; background: var(--flaeche); }
.vorschau__raster { display: grid; gap: var(--raum-m); }
.vorschau__intro p:last-child { max-width: 30em; }
.vorschau__liste { list-style: none; margin: 0; padding: 0; counter-reset: vorschau; display: grid; gap: 1rem; }
.vorschau__punkt {
  counter-increment: vorschau;
  position: relative;
  padding: 1.4rem 1.4rem 1.2rem 4.4rem;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(2 40 90 / .06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.vorschau__punkt:hover { box-shadow: var(--schatten); }
.vorschau__punkt::before {
  content: counter(vorschau, decimal-leading-zero);
  position: absolute; left: 1.3rem; top: 1.25rem;
  font-family: var(--font-label); font-weight: 700; font-size: 1.6rem; color: var(--tinte);
}
.vorschau__punkt h3 { margin-bottom: .3rem; }
.vorschau__punkt p { margin: 0; color: var(--text-leise); }

/* --- 8. Kontakt --- */
.kontakt { background: var(--tinte); color: #eef4fb; padding: var(--raum-l) 0; }
.kontakt h2 { color: var(--weiss); }
.kontakt a { color: var(--weiss); }
.kontakt a:hover { color: var(--sandstein-hell); }
.kontakt :focus-visible, .site-footer :focus-visible { outline-color: var(--uewg-gelb); }
.kontakt__raster { display: grid; gap: var(--raum-m); }
.kontakt__mail {
  overflow-wrap: anywhere;
  font-family: var(--font-titel); font-weight: 600; font-size: clamp(1.15rem, 1.5vw + .8rem, 1.5rem);
  word-break: break-word;
}
.kontakt__mail .icon { color: var(--sandstein-hell); }
.kanaele { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.kanal {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem; min-height: 64px;
  border: 1px solid rgb(255 255 255 / .22); border-radius: var(--radius);
  text-decoration: none; transition: background-color .2s ease, border-color .2s ease;
}
.kanal .icon { grid-row: 1 / 3; width: 28px; height: 28px; color: var(--uewg-gelb); }
.kanal__name { font-family: var(--font-label); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; }
.kanal__handle { font-size: .95rem; color: #cfe0f2; }
.kontakt .kanal:hover { background: var(--tinte-hell); border-color: rgb(255 255 255 / .45); color: var(--weiss); }

/* --- 9. Textseiten (Impressum, Datenschutz, 404) --- */
.textseite { padding: var(--raum-l) 0; }
.textseite h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
.textseite h2 { font-size: clamp(1.35rem, 1.2vw + 1rem, 1.7rem); margin-top: 2rem; }
.textseite h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.textseite__inhalt { max-width: 46rem; }
.textseite address { font-style: normal; margin-bottom: 1em; }
.textseite ul { padding-left: 1.2em; }
.hinweis-entwurf {
  padding: 1rem 1.25rem; margin-bottom: 2rem;
  background: #fff4d6; border-left: 4px solid #b7791f; border-radius: var(--radius);
}

/* --- 10. Fuß --- */
.site-footer { background: var(--tinte-tief); color: #cfe0f2; padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer__inner { display: grid; gap: 1rem; }
.site-footer__hinweis { margin: 0; max-width: 44em; }
.site-footer__recht { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer a { color: var(--weiss); text-decoration: none; display: inline-block; padding: .5rem 0; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--sandstein-hell); text-decoration: underline; }

/* --- 11. Bewegung reduzieren --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* --- 12. Tablet (ab 576/768px) --- */
@media (min-width: 576px) {
  .hero__knoepfe { flex-direction: row; flex-wrap: wrap; }
  .eckdaten__liste { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
@media (min-width: 768px) {
  :root { --header-h: 4.75rem; }
  .wrap { padding: 0 2rem; }
  .marke__name { font-size: 1.45rem; }
  .marke__titel { font-size: .85rem; }
  .social--kopf { display: flex; }
  .nur-mobil { display: none; }
  .ab-tablet { display: inline; }
  .hero { min-height: min(82vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
  .hero__bild { position: absolute; inset: 0; }
  .hero__bild picture, .hero__bild img { width: 100%; height: 100%; }
  .hero__bild img { aspect-ratio: auto; object-position: 72% 28%; }
  .hero__wrap { padding-top: 6rem; padding-bottom: 3rem; }
  .hero__karte { margin: 0; max-width: 36rem; padding: 2.5rem 2.5rem 2.25rem; }
  .kanaele { grid-template-columns: 1fr; }
}

/* --- 13. Desktop (ab 992px) --- */
@media (min-width: 992px) {
  .hero__wrap { padding-bottom: 4.5rem; }
  .hero__karte { max-width: 38rem; }
  .vorschau__raster { grid-template-columns: 5fr 7fr; align-items: start; gap: 4rem; }
  .vorschau__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
  .kontakt__raster { grid-template-columns: 7fr 5fr; align-items: center; gap: 4rem; }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
}
