/* ============================================================
   visit-magdeburg.de — Design Tokens v2
   Relaunch 2026 — lokal, kein Google Fonts
   ============================================================ */

/* Ubuntu — lokal aus /fonts/ */
@font-face { font-family:"Ubuntu"; font-style:normal; font-weight:300; font-display:swap;
  src:url("../../fonts/ubuntu-v19-latin-300.woff2") format("woff2"),
      url("../../fonts/ubuntu-v19-latin-300.woff") format("woff"); }
@font-face { font-family:"Ubuntu"; font-style:normal; font-weight:400; font-display:swap;
  src:url("../../fonts/ubuntu-v19-latin-regular.woff2") format("woff2"),
      url("../../fonts/ubuntu-v19-latin-regular.woff") format("woff"); }
@font-face { font-family:"Ubuntu"; font-style:italic; font-weight:400; font-display:swap;
  src:url("../../fonts/ubuntu-v19-latin-italic.woff2") format("woff2"),
      url("../../fonts/ubuntu-v19-latin-italic.woff") format("woff"); }
@font-face { font-family:"Ubuntu"; font-style:normal; font-weight:500; font-display:swap;
  src:url("../../fonts/ubuntu-v19-latin-500.woff2") format("woff2"),
      url("../../fonts/ubuntu-v19-latin-500.woff") format("woff"); }
@font-face { font-family:"Ubuntu"; font-style:italic; font-weight:500; font-display:swap;
  src:url("../../fonts/ubuntu-v19-latin-500italic.woff2") format("woff2"),
      url("../../fonts/ubuntu-v19-latin-500italic.woff") format("woff"); }
@font-face { font-family:"Ubuntu"; font-style:normal; font-weight:700; font-display:swap;
  src:url("../../fonts/ubuntu-v19-latin-700.woff2") format("woff2"),
      url("../../fonts/ubuntu-v19-latin-700.woff") format("woff"); }
@font-face { font-family:"Ubuntu"; font-style:italic; font-weight:700; font-display:swap;
  src:url("../../fonts/ubuntu-v19-latin-700italic.woff2") format("woff2"),
      url("../../fonts/ubuntu-v19-latin-700italic.woff") format("woff"); }

:root {
  /* Brand */
  --md-rot:      #e4032e;
  --md-rot-700:  #b0021f;
  /* Nur Textfarbe für kleine rote Schrift (Eyebrows, Kicker): auf --paper-2 erreicht
     --md-rot nur 4,38:1, dieser Ton 4,96:1 (Weiß 5,46:1). Optisch kaum zu unterscheiden.
     Entscheidung Eileen 24.10.2026, ersetzt für diese Fälle die Regel vom 27.08. */
  --md-rot-text: #d4022b;
  --md-rot-50:   #fff1f3;
  /* Akzentfarbe für Button-System (Style 1/3/4: Primary, Klein, roter Textlink).
     Default = Markenrot. Seiten mit redaktioneller Farbe (Themen --tm-farbe,
     Gastgeber --gg-farbe/--gg-cta) überschreiben --accent am jeweiligen
     Wrapper — dort NIE die Backend-Felder selbst anfassen, nur diese Brücke
     setzen. Details/weitere Kandidaten: CLAUDE.md "Button-System". */
  --accent: var(--md-rot);
  --mmkt-blau:   #003761;
  --tuerkis:     #4bb6c0;
  /* 19.09.2026 von #d39d1c abgedunkelt: der helle Ton kam als Text auf
     Weiss und als A14-Band mit weisser Schrift nur auf 2,4:1. Jetzt
     5,4:1 auf Weiss, 4,9:1 auf der grauen Flaeche, weiss auf Gold 5,4:1. */
  --gold:         #876512;
  --violett:     #ba0067;
  --gruen:       #6a8f3a;

  /* Neutrals */
  --ink:    #111111;
  --ink-2:  #2a2a2a;
  --ink-3:  #555555;
  /* #8a8a8a war 3.45:1 auf Weiß — unter AA (4.5:1). #6f6f6f: 5.02:1 auf --paper,
     4.56:1 auf --paper-2. Auf --paper-3 (4.21:1) nur für Großtext verwenden. */
  --ink-4:  #6f6f6f;
  --line:   #e6e4e0;
  --line-2: #d9d6d1;
  --paper:  #ffffff;
  --paper-2:#f4f4f2;
  --paper-3:#ecebe7;
  --bg:     #f4f4f2;

  /* Typo */
  --font-sans: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Spacing */
  --s-1:  4px;
  --s-2:  8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10:128px;

  /* Layout */
  --max:    1320px;
  --gutter:  32px;

  /* Radius — kantig, Marke */
  --r: 0;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible { outline: 2px solid var(--md-rot); outline-offset: 3px; }
button, a { font-family: inherit; }
button { cursor: pointer; border: 0; background: transparent; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 20px;
  z-index: 9999; font-weight: 500; font-size: 14px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---- Typography classes ---- */
/* Rot ist überall dasselbe: --md-rot (#e4032e), das MMKT-Rot.
   Entscheidung Eileen 27.08.2026 — die Marke hat genau einen Rotton; ein
   zweiter, dunklerer Ton als Textfarbe ist keine Markenfarbe.
   ⚠ Damit entfällt die Kontrast-Korrektur vom 28.07.2026: --md-rot erreicht auf
   Weiß 4.83:1 (AA erfüllt), auf --paper-2/--wash aber nur 4.38–4.47:1 und liegt
   dort knapp unter den 4.5:1 für Text unter 18,66px. Seit 24.10.2026 nutzen
   .eyebrow und die Startseiten-Kicker deshalb --md-rot-text (siehe :root).
   --md-rot-700 bleibt definiert und dient weiter dem Abdunkeln bei :hover —
   das ist ein Zustand, keine Farbe.

   .eyebrow ist die EINZIGE Quelle für die Eyebrow-Optik (Vorgabe Eileen
   27.08.2026). Seitenspezifische Regeln dürfen nur noch Farbe und Abstand
   setzen — keine eigene Größe, Stärke, Laufweite, Schrift oder Strichdicke. */
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--md-rot-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: currentColor; display: inline-block;
}
.eyebrow.no-rule::before { display: none; }
.h-display { font-weight:700; font-size:clamp(56px,8vw,112px); line-height:0.92; letter-spacing:-0.035em; }
.h-1       { font-weight:700; font-size:clamp(40px,5vw,64px);  line-height:1.0;  letter-spacing:-0.025em; }
.h-2       { font-weight:700; font-size:clamp(28px,3.2vw,40px);line-height:1.08; letter-spacing:-0.02em;  }
.h-3       { font-weight:500; font-size:20px; line-height:1.25; letter-spacing:-0.005em; }

/* ============================================================
   BUTTON-SYSTEM (Stufe 1, Council-Freigabe Eileen 16.08.2026)
   6 Kern-Styles: .btn.btn-primary · .btn.btn-ghost (+ --invert für
   Farbbänder) · .btn.btn-sm · .link · .link--ink · .icon-btn
   (components.css:91). Details/Konvention: CLAUDE.md "Button-System".
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; font-weight: 500; font-size: 15px;
  letter-spacing: 0.01em; border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  cursor: pointer;
}
.btn .arr,
.link .arr,
.link--ink .arr { transition: transform 200ms ease; }
.btn:hover .arr,
.link:hover .arr,
.link--ink:hover .arr { transform: translateX(4px); }

/* Style 1 — Primary: Akzentfarbe aus dem Backend (Fallback Markenrot).
   Hover zuerst als feste Fallback-Regel (--md-rot-700, alte Browser),
   danach color-mix — bei fehlender Unterstützung ist der Wert ungültig
   und die Kaskade behält die Fallback-Deklaration. */
.btn-primary { background: var(--accent, var(--md-rot)); color: #fff; border-color: var(--accent, var(--md-rot)); }
.btn-primary:hover { background: var(--md-rot-700); border-color: var(--md-rot-700); }
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent, var(--md-rot)) 100%, black 18%);
  border-color: color-mix(in srgb, var(--accent, var(--md-rot)) 100%, black 18%);
}

/* Style 2 — Ghost: dunkel auf hellem Grund */
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Style 2b — Ghost invert: weiß auf Farbflächen/Bildern (Hero, CTA-Bänder) */
.btn-ghost--invert { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost--invert:hover { background: #fff; color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }

/* Style 3 — Klein: Modifier auf .btn.btn-primary / .btn.btn-ghost, übernimmt
   ebenfalls --accent */
.btn-sm { padding: 11px 16px; font-size: 13px; gap: 8px; }

/* Style 4 — roter Textlink: Akzentfarbe aus dem Backend, unterstrichen, mit Pfeil.
   Keine opacity-Hover: Farbe wechselt, Pfeil schiebt. */
.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent, var(--md-rot)); font-weight: 500; font-size: 14px;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: color 140ms ease;
}
.link:hover { color: var(--md-rot-700); }
.link:hover { color: color-mix(in srgb, var(--accent, var(--md-rot)) 100%, black 18%); }

/* Style 5 — ink-Variante: fest auf --ink, unabhängig von --accent, Hover wird rot */
.link--ink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 500; font-size: 14px;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: color 140ms ease;
}
.link--ink:hover { color: var(--md-rot); }

/* „ab" vor einem Preis (php/preis.php → vm_preis_ab).
   Stadtführungen haben keinen Festpreis, der Wert ist der günstigste Tarif.
   Bewusst relativ (em) statt fester Größe: das Wort sitzt mal in einer
   30px-Preiszeile, mal in einem 12px-Badge und soll überall gleich wirken
   und ins Raster passen. */
.vm-ab {
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-right: 0.15em;
}

/* ---- Layout utils ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--s-9) 0; }
section.tight { padding: var(--s-8) 0; }
section.on-grey { background: var(--paper-2); }

/* ---- A11y util ---- */
.sr-only {
  position: absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
