/* ==========================================================================
   STUDIO WANDLITZ — Bauhaus Explosion
   Design System · Oswald (Display) + Inter (Body)
   ========================================================================== */

/* ---- Fonts (Google Fonts) ---- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  /* Farben */
  --acid:    #E8FF47;   /* SignalGelb — CTA, Highlight */
  --blue:    #2348FF;   /* KobaltBlau — Flächen, Hero */
  --red:     #FF2D2D;   /* SignalRot — Akzent */
  --black:   #111111;   /* Text, Nav, Rahmen */
  --white:   #FFFFFF;
  --paper:   #F7F6F2;   /* Off-White Hintergrund */
  --grey-50: #8A8A8A;   /* Eyebrows, Meta */
  --grey-20: #E4E4E4;   /* Hairlines */

  /* Typografie */
  --font-display: 'Oswald', 'Inter', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Maße */
  --wrap: 1200px;
  --gap: 24px;
  --border: 2px solid var(--black);
  --radius: 0px;

  /* Z-Index */
  --z-nav: 100;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Fokus sichtbar (Accessibility) */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ==========================================================================
   TYPO-KLASSEN
   ========================================================================== */
.display-xl { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 7vw, 76px); line-height: 0.95; text-transform: uppercase; letter-spacing: 0; }
.display-lg { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 48px); line-height: 1.0; text-transform: uppercase; }
.heading    { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 30px); text-transform: uppercase; letter-spacing: 0.01em; }
.subheading { font-family: var(--font-display); font-weight: 500; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
.body-lg    { font-size: clamp(17px, 2vw, 20px); }
.eyebrow    { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-50); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 56px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
/* Footer hat kein Top-Margin → letzte Sektion bekommt +56px unten,
   damit der Abstand zum Footer einem vollen Zwischen-Sektion-Abstand entspricht. */
main > section:last-of-type { padding-block-end: calc(clamp(32px, 5vw, 56px) + 56px); }

/* ==========================================================================
   NAV / HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--black);
  color: var(--paper);
  border-bottom: var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav__brand {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a {
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding-block: 4px; border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { border-bottom-color: var(--red); }

.nav__cta {
  background: var(--acid); color: var(--black);
  padding: 10px 16px; font-family: var(--font-display); font-weight: 600;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em;
}
.nav__cta:hover { background: var(--blue); color: var(--white); }

/* Mobile-Nav Toggle */
.nav__toggle { display: none; background: none; border: 2px solid var(--paper); width: 44px; height: 40px; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--paper); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 13px 20px; border: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateX(2px); }
.btn--fill  { background: var(--black); color: var(--white); }
.btn--fill:hover { background: var(--blue); }
.btn--acid  { background: var(--acid); color: var(--black); }
.btn--red   { background: var(--red); color: var(--white); }
.btn--ghost { background: transparent; border: 1.5px solid currentColor; }

/* ==========================================================================
   HERO (Startseite)
   ========================================================================== */
.hero { position: relative; border: var(--border); overflow: hidden; background: var(--blue); color: var(--white); }
.hero__inner { position: relative; z-index: 2; padding: clamp(32px, 6vw, 80px); }
.hero__eyebrow { color: rgba(255,255,255,.7); margin-bottom: 20px; }
.hero__title { margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Bauhaus-Geometrie */
.hero__geo { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__geo .circle { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--red); right: 8%; bottom: -40px; }
.hero__geo .tri { position: absolute; right: 0; top: 0; width: 0; height: 0; border-style: solid; border-width: 0 320px 320px 0; border-color: transparent var(--acid) transparent transparent; opacity: .95; }

/* ==========================================================================
   EVENT CARDS (Farbe = Event-Typ)
   ========================================================================== */
.cards { display: grid; grid-template-columns: 1fr 1fr; border: var(--border); }
.card { padding: 28px; min-height: 210px; min-width: 0; display: flex; flex-direction: column; border-right: var(--border); border-bottom: var(--border); }
.card:nth-child(2n) { border-right: none; }
.card__meta { margin-bottom: 14px; opacity: .8; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.0; text-transform: uppercase; flex: 1; overflow-wrap: break-word; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.card--acid  { background: var(--acid);  color: var(--black); }
.card--blue  { background: var(--blue);  color: var(--white); }
.card--red   { background: var(--red);   color: var(--white); }
.card--black { background: var(--black); color: var(--white); }

/* ==========================================================================
   QUOTE / EDITORIAL
   ========================================================================== */
.quote { background: var(--acid); border-left: 8px solid var(--black); padding: 28px 32px; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 3vw, 28px); text-transform: uppercase; line-height: 1.15; }

/* ==========================================================================
   ACCENT BAR (Marken-Signatur)
   ========================================================================== */
.accent-bar { display: flex; height: 12px; }
.accent-bar i { display: block; height: 100%; }
.accent-bar .ab-red  { flex: 0 0 30%; background: var(--red); }
.accent-bar .ab-acid { flex: 0 0 40%; background: var(--acid); }
.accent-bar .ab-blue { flex: 0 0 30%; background: var(--blue); }

/* ==========================================================================
   SPLIT SECTION (Foto | Farbblock — Entwurf 2)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; border: var(--border); }
.split > * { padding: clamp(28px, 4vw, 56px); }
.split__media { background: var(--grey-20); display: flex; align-items: center; justify-content: center; min-height: 320px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text { display: flex; flex-direction: column; justify-content: center; }
.split--blue .split__text { background: var(--blue); color: var(--white); }
.split--acid .split__text { background: var(--acid); color: var(--black); }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter { background: var(--black); color: var(--white); padding: clamp(32px, 5vw, 56px); border: var(--border); }
.newsletter__form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; max-width: 520px; }
.newsletter__input { flex: 1; min-width: 220px; padding: 14px 16px; border: 2px solid var(--white); background: transparent; color: var(--white); font-family: var(--font-body); font-size: 16px; }
.newsletter__input::placeholder { color: rgba(255,255,255,.55); }
.newsletter__msg { margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.newsletter__msg--ok  { color: var(--acid); }
.newsletter__msg--err { color: var(--red); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: var(--border); background: var(--black); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding-block: 48px; }
.footer-grid h4 { font-family: var(--font-display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; color: var(--acid); }
.footer-grid a { display: block; padding-block: 3px; }
.footer-grid a:hover { color: var(--acid); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-block: 20px; font-size: 13px; color: var(--grey-50); text-align: center; }

/* ==========================================================================
   ARTICLE / PROSE (Archiv, Studio)
   ========================================================================== */
.prose { max-width: 720px; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 4vw, 38px); margin: 48px 0 16px; line-height: 1.05; }
.prose h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 22px; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose a { border-bottom: 2px solid var(--acid); }
.prose a:hover { background: var(--acid); }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }

/* ==========================================================================
   PAGE HEADER (Unterseiten)
   ========================================================================== */
.page-head { border: var(--border); background: var(--blue); color: var(--white); padding: clamp(32px, 6vw, 72px); }
.page-head .eyebrow { color: rgba(255,255,255,.7); margin-bottom: 16px; }

/* Optionales Hintergrundbild für Hero/Page-Head: das Foto wird per Blend in die
   Sektionsfarbe eingefärbt (starkes Duotone), ein dezenter Dunkel-Layer sichert die
   Lesbarkeit der hellen Schrift. Aktiv NUR mit der Modifier-Klasse + gesetztem
   --bg-image — ohne Bild bleibt die reine Farbfläche unverändert.
   Bild-Pfad kommt aus dem CMS-Block (inline style="--bg-image:url('…')").
   Das Bild liegt auf einem ::before, damit der sanfte Zoom-Loop per transform
   GPU-beschleunigt läuft (kein Background-Repaint). Inhalt bleibt darüber. */
.hero--img, .page-head--img { position: relative; overflow: hidden; }
.hero--img::before, .page-head--img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.34), rgba(17, 17, 17, 0.34)),
    var(--bg-image, none);
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, luminosity;
  animation: hero-zoom 12s ease-in-out infinite;
  will-change: transform;
}
/* page-head-Texte über das ::before heben. Der Hero braucht das NICHT — seine
   Kinder (.hero__geo, .hero__inner) sind bereits positioniert + z-indexed; eine
   pauschale Regel würde .hero__geo's position:absolute überschreiben (roter Kreis). */
.page-head--img > * { position: relative; z-index: 1; }

/* ganz dezent rein und wieder raus */
@keyframes hero-zoom {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero--img::before, .page-head--img::before { animation: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 880px) {
  .nav__links { position: fixed; inset: 68px 0 auto 0; background: var(--black); border-bottom: var(--border); flex-direction: column; gap: 0; padding: 12px 24px 24px; display: none; }
  .nav__links[data-open="true"] { display: flex; }
  .nav__links a { width: 100%; padding-block: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .nav__toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: none; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__geo .tri { border-width: 0 200px 200px 0; }
  .hero__geo .circle { width: 140px; height: 140px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TERMINE (Veranstaltungsliste — Programm)
   ========================================================================== */
.termine { border: var(--border); }
.termin {
  display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: baseline;
  padding: 22px 28px; border-bottom: var(--border);
}
.termin:last-child { border-bottom: none; }
.termin:nth-child(odd) { background: rgba(35,72,255,.04); }
.termin__date {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  line-height: 1.05; text-transform: uppercase;
}
.termin__date span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--grey-50); letter-spacing: .04em; margin-top: 4px; }
.termin__type { margin-bottom: 6px; }
.termin__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.4vw, 22px); text-transform: uppercase; line-height: 1.1; }
.termin__who { color: var(--grey-50); font-weight: 500; }
.termin__sub { margin-top: 4px; font-size: 15px; }

@media (max-width: 600px) {
  .termin { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .termin__date { font-size: 19px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* === Sprachumschalter === */
.nav__lang {
  border: var(--border);
  padding: 2px 8px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.6;
}
.nav__lang:hover { background: var(--acid); color: var(--black); }

/* === Sprach-Hinweis-Banner === */
.lang-hint {
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.9rem;
}
.lang-hint a { color: #fff; font-weight: 600; text-decoration: underline; }
.lang-hint__close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  margin-left: 12px;
  cursor: pointer;
}
