/* VielRespektZentrum — shared tokens + responsive rules.
   Bestands-Blockpartials tragen ihr Design noch als style="" (Prototyp-treu);
   hier stehen die Globals und die Regeln, die nicht inline stehen können.

   Ab Masterplan Phase 7 kommt darunter die V2-Klassenschicht: neue Bausteine
   werden ausschließlich über Klassen gestylt (`vrz-<bereich>-<teil>`, deutsch,
   wie static/css/events.css es als Pilot vorgemacht hat). Ziel der Schicht ist,
   am Ende 'unsafe-inline' aus style-src streichen zu können.

   Regel beim Erweitern (Playbook design-app-export-uebernehmen, Schritt 4):
   breite Grundregeln niedrig halten und gezielt überschreiben — Ausnahmen nie
   per :not() in die Grundregel hineinschreiben. */

:root {
  --cream: #FBF6EE;
  --ink: #2B211C;
  --terracotta: #C7462A;
  --petrol: #2C7A6B;
  --gold: #F4B824;
  --muted: #5c4d42;
  --muted-2: #8a7d70;
  --line: #ece0d0;
  --navy: #1f2a4a;
  --brown: #6E4636;

  /* --- V2-Schicht (Phase 7) ------------------------------------------- */
  --weiss: #fff;
  --sand: #f0e7db;          /* Trennlinien auf Creme, weicher als --line */
  --creme-2: #fbf6ee;       /* Füllung von Marken/Pillen auf Weiß */
  --ink-2: #48392f;         /* Fließtext auf hellem Grund, dunkler als --muted */
  --hinweis-bg: #fdf4e2;    /* Hinweiskästen (gelb) */
  --hinweis-line: #f0dcae;
  --warn-bg: #fbe9e4;       /* Platzhalter/Warnung (rot) */
  --warn-ink: #9d3520;
  --breite: 1180px;         /* Satzspiegel aller öffentlichen Sektionen */
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 22px;
  --schatten-karte: 0 10px 30px rgba(110, 70, 54, 0.06);
  --ziel: 44px;             /* Mindestgröße eines Tippziels (WCAG 2.5.5) */
  --akzent: var(--terracotta);
}

/* Akzentfarben als benannte Klassen statt als Hex-Wert im Blockinhalt: die
   Redaktion wählt „gold", nicht „#F4B824" — und ein zweiter Standort tauscht
   die Palette an genau einer Stelle (Whitelabel-Regel, Masterplan). */
.vrz-akzent-terracotta { --akzent: var(--terracotta); }
.vrz-akzent-gold       { --akzent: var(--gold); }
.vrz-akzent-petrol     { --akzent: var(--petrol); }
.vrz-akzent-gruen      { --akzent: #4CAF3E; }
.vrz-akzent-violett    { --akzent: #5B57C9; }
.vrz-akzent-navy       { --akzent: var(--navy); }
.vrz-akzent-rose       { --akzent: #D46AA8; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
::placeholder { color: #9c8f82; }

/* Untermenü unter „Angebote". Anders als der Rest der Navigation kann das nicht
   inline stehen: Positionierung, das [hidden]-Attribut und :hover/:focus-visible
   brauchen echte Regeln. Auf- und Zuklappen macht static/js/site.js. */
.vrz-nav-item { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.vrz-submenu-toggle {
  background: none; border: none; cursor: pointer; padding: 5px 6px;
  line-height: 1; font-size: 12px; color: #8a7d70; border-radius: 7px;
}
.vrz-submenu-toggle:hover { background: #f0e7db; color: #48392f; }
.vrz-submenu-toggle[aria-expanded="true"] { background: #ece0d0; color: #48392f; }
.vrz-submenu {
  position: absolute; top: calc(100% + 14px); left: -14px; z-index: 70;
  min-width: 260px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(110, 70, 54, 0.16);
}
.vrz-submenu[hidden] { display: none; }
/* Die 14px Abstand zum Menüpunkt sind für den Zeiger ein Loch: Auf dem Weg nach
   unten verlässt er den Punkt, das Menü klappt unter ihm zu und ist nicht zu
   erreichen. Dieser Streifen überbrückt die Lücke, ohne sichtbar zu sein. */
.vrz-submenu::before {
  content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.vrz-submenu a {
  display: block; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: #48392f;
}
.vrz-submenu a:hover, .vrz-submenu a:focus-visible { background: var(--cream); color: var(--terracotta); }

/* Im Burger-Menü als eingerückte Liste, ohne eigenes Ausklappen. */
.vrz-submenu-mobil { margin: 0; padding: 0 0 0 16px; list-style: none; border-left: 2px solid var(--line); }
.vrz-submenu-mobil a {
  display: block; padding: 11px 6px; border-bottom: 1px solid #f0e7db;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted);
}

/* Responsive grid helpers used by block partials (ported 1:1 from the prototype). */
@media (max-width: 860px) {
  .vrz-desktop-nav { display: none !important; }
  .vrz-burger { display: flex !important; }
  .vrz-hero-grid { grid-template-columns: 1fr !important; }
  .vrz-cards-3, .vrz-cards-4, .vrz-cards-5, .vrz-cards-2 { grid-template-columns: 1fr 1fr !important; }
  .vrz-process { grid-template-columns: 1fr 1fr 1fr !important; row-gap: 22px !important; }
  .vrz-cal-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .vrz-form-grid { grid-template-columns: 1fr !important; }
  .vrz-vrs { grid-template-columns: 1fr !important; }
  .vrz-footer { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 520px) {
  .vrz-cards-3, .vrz-cards-4, .vrz-cards-5, .vrz-cards-2 { grid-template-columns: 1fr !important; }
  .vrz-process { grid-template-columns: 1fr 1fr !important; }
  .vrz-footer { grid-template-columns: 1fr !important; }
}

/* ====================================================================
   V2-Klassenschicht (Masterplan Phase 7)
   ==================================================================== */

/* --- Barrierefreiheit: gilt ab hier für die ganze Seite ---------------
   Beides steht so in allen V2-Mockups und fehlte im Bestand: ein
   sichtbarer Fokusring (der Browser-Default verschwindet auf Creme fast)
   und ein Sprunglink, der die Navigation überspringt. */
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; border-radius: 4px; }
.vrz-skip { position: absolute; left: -9999px; }
.vrz-skip:focus {
  left: 16px; top: 12px; z-index: 99; background: var(--weiss);
  padding: 12px 18px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(110, 70, 54, 0.18);
}

/* --- Sektionen ------------------------------------------------------- */
.vrz-sektion { max-width: var(--breite); margin: 0 auto; padding: 56px 24px; }
.vrz-sektion-eng { padding-top: 24px; }
.vrz-band { background: var(--weiss); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vrz-band .vrz-sektion { background: transparent; }
.vrz-sektion-titel { font-size: 30px; }
.vrz-sektion-lead { font-size: 16.5px; color: var(--muted); margin-top: 10px; max-width: 38em; }

/* --- Räume: Filterchips (GET-Links, kein JavaScript) ------------------ */
.vrz-rm-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.vrz-rm-filter-label {
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #6b5c50; font-weight: 700;
}
.vrz-rm-chip {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  border: 1.5px solid #d9cbb9; background: var(--weiss); color: var(--ink-2);
  border-radius: 999px; padding: 10px 16px; min-height: var(--ziel);
  font-weight: 700; font-size: 14.5px;
}
.vrz-rm-chip:hover { border-color: var(--ink); }
/* Zustand ist Häkchen + Farbe + aria-current, nie Farbe allein (Mockup-Regel). */
.vrz-rm-chip-aktiv { border: 2px solid var(--ink); background: var(--ink); color: var(--cream); }
.vrz-rm-chip-zahl { opacity: 0.7; font-weight: 600; }
.vrz-rm-ergebnis { font-size: 14.5px; color: #6b5c50; font-weight: 600; margin-top: 14px; }
.vrz-rm-versprechen { font-size: 15px; color: var(--petrol); font-weight: 700; margin-top: 6px; }

/* --- Räume: Kartenraster --------------------------------------------- */
.vrz-rm-gitter {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px; margin-top: 18px;
}
.vrz-rm-karte {
  background: var(--weiss); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: var(--schatten-karte);
  display: flex; flex-direction: column;
}
.vrz-rm-medium { position: relative; height: 210px; overflow: hidden; }
.vrz-rm-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Ohne Foto steht das Raumsymbol dort, wo im Mockup die Fotofläche liegt —
   mittig, nicht in der Ecke. */
.vrz-rm-symbol {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 52px; opacity: 0.55;
}
.vrz-rm-marker {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.vrz-rm-tag {
  background: rgba(43, 33, 28, 0.86); color: var(--cream);
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.vrz-rm-badge {
  display: inline-flex; align-items: center; gap: 6px; text-align: right;
  background: var(--hinweis-bg); color: #7a5410; border: 1px solid var(--hinweis-line);
  font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
}
.vrz-rm-badge-gesperrt { background: var(--warn-bg); color: var(--warn-ink); border-color: #f0c6b8; }
.vrz-rm-inhalt { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
/* Umbruch statt Abschneiden: „Multifunktionsbereich (Keller)" + „bis 40 Personen"
   passen in einer dreispaltigen Reihe nicht nebeneinander. */
.vrz-rm-titelzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.vrz-rm-name { font-size: 22px; font-weight: 700; }
.vrz-rm-kapazitaet { font-size: 14px; font-weight: 700; color: #1f5d52; white-space: nowrap; }
.vrz-rm-text { font-size: 15px; color: var(--muted); }
.vrz-rm-hinweis {
  font-size: 14px; color: #7a5410; background: var(--hinweis-bg);
  border: 1px solid var(--hinweis-line); border-radius: var(--radius-s); padding: 10px 12px;
}
.vrz-rm-label {
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
  color: #6b5c50; font-weight: 700;
}
.vrz-rm-marken { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.vrz-rm-marke {
  background: var(--creme-2); border: 1px solid var(--sand); color: var(--ink-2);
  font-weight: 600; font-size: 13.5px; padding: 5px 11px; border-radius: 999px;
}
.vrz-rm-zeile { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.vrz-rm-fuss { margin-top: auto; display: flex; gap: 9px; align-items: center; padding-top: 6px; flex-wrap: wrap; }
.vrz-rm-cta {
  text-decoration: none; background: var(--terracotta); color: var(--weiss);
  font-weight: 700; font-size: 14.5px; padding: 12px 20px; border-radius: 999px;
  min-height: var(--ziel); display: inline-flex; align-items: center;
}
.vrz-rm-cta:hover { filter: brightness(0.94); }
.vrz-rm-leer {
  background: var(--weiss); border: 1px dashed var(--line); border-radius: var(--radius-m);
  padding: 32px; text-align: center; color: var(--muted);
}

/* --- Konditionen (Platzhalter bis Vorstandsbeschluss) ----------------- */
.vrz-kond {
  background: var(--weiss); border: 1px solid var(--line); border-radius: 24px; padding: 30px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px;
}
.vrz-kond-titel { font-size: 26px; font-weight: 800; }
.vrz-kond-text { font-size: 16.5px; color: var(--muted); margin-top: 12px; max-width: 38em; }
.vrz-kond-platzhalter {
  font-size: 14px; color: var(--warn-ink); background: var(--warn-bg);
  border-radius: var(--radius-s); padding: 12px 14px; margin-top: 16px; font-weight: 600;
}
.vrz-kond-fakten { background: var(--creme-2); border: 1px solid var(--sand); border-radius: var(--radius-m); padding: 24px; }
.vrz-kond-fakten h3 { font-size: 18px; font-weight: 700; }
.vrz-kond-liste {
  margin: 14px 0 0; padding-left: 20px; font-size: 15px; color: var(--muted);
  display: flex; flex-direction: column; gap: 9px;
}

/* --- Stipendien-Stufen ----------------------------------------------- */
.vrz-tier-gitter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.vrz-tier {
  background: var(--weiss); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; display: flex; flex-direction: column; border-top: 5px solid var(--akzent);
}
.vrz-tier-stufe { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--akzent); }
.vrz-tier-name { font-size: 24px; margin: 8px 0 6px; }
.vrz-tier-text { font-size: 15px; color: var(--muted); }
.vrz-tier-trenner { height: 1px; background: var(--line); margin: 18px 0; }
.vrz-tier-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.vrz-tier-gibt { font-size: 14.5px; color: var(--muted); flex: 1; }

/* --- Werte ------------------------------------------------------------ */
.vrz-wert-gitter { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.vrz-wert {
  display: flex; gap: 18px; padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius-m); background: var(--creme-2);
}
.vrz-wert-nr {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-s); background: var(--akzent);
  display: flex; align-items: center; justify-content: center; color: var(--weiss);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: 20px;
}
.vrz-wert-titel { font-size: 20px; }
.vrz-wert-text { font-size: 15px; color: var(--muted); margin-top: 6px; }

@media (max-width: 860px) {
  .vrz-kond { grid-template-columns: 1fr; }
  .vrz-tier-gitter { grid-template-columns: 1fr 1fr; }
  .vrz-wert-gitter { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .vrz-rm-gitter { grid-template-columns: 1fr; }
  .vrz-tier-gitter { grid-template-columns: 1fr; }
  .vrz-sektion { padding: 40px 20px; }
  /* Name und Kapazität stehen nebeneinander, solange Platz ist. Auf dem Handy
     schneidet `white-space: nowrap` sonst „vertraulich · 2–6 Personen" ab. */
  .vrz-rm-titelzeile { flex-direction: column; align-items: flex-start; gap: 2px; }
  .vrz-rm-kapazitaet { white-space: normal; }
}

/* --- Porträt (person_intro) ------------------------------------------------
   Foto links, Text rechts. Feste Bildspalte statt Bruchteil: Ein Porträt, das
   mit der Fensterbreite mitwächst, wird auf großen Schirmen zum Poster. */
.vrz-portraet { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.vrz-portraet-bild {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: var(--creme-2); aspect-ratio: 3 / 4;
}
.vrz-portraet-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vrz-portraet-kicker {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700;
}
.vrz-portraet-name { font-size: 30px; margin: 8px 0 0; }
.vrz-portraet-rolle { color: var(--muted); margin-top: 6px; font-size: 16px; }
.vrz-portraet-text { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin-top: 18px; }
.vrz-portraet-text p + p { margin-top: 14px; }
/* Hervorhebung: Balken in Terrakotta statt Kasten — ein zweiter Rahmen neben
   dem Bildrahmen würde die Spalte zerteilen. */
.vrz-portraet-ziel {
  margin-top: 22px; padding: 2px 0 2px 18px; border-left: 3px solid var(--terracotta);
}
.vrz-portraet-ziel-label {
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700;
}
.vrz-portraet-ziel-text {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 600;
  font-size: 19px; color: var(--ink); margin-top: 4px; line-height: 1.45;
}

@media (max-width: 860px) {
  /* Bild über den Text, aber nicht über die volle Breite: hochkant und
     randlos gezogen füllt es sonst den halben Handy-Schirm, bevor ein Wort
     kommt. */
  .vrz-portraet { grid-template-columns: 1fr; gap: 24px; }
  .vrz-portraet-bild { max-width: 260px; }
}
