/* Theaterfreunde Troisdorf e.V. – dunkles Theater-Design
   Markenfarben laut Styleguide: #B81548 #DF235A #0067B1 #307BBF */
:root {
  --rot-dunkel: #B81548;
  --rot-hell: #DF235A;
  --rot-text: #F0557F;      /* Hellrot, auf dunklem Grund besser lesbar */
  --blau-dunkel: #0067B1;
  --blau-hell: #307BBF;
  --blau-text: #6FB1EA;
  --gold: #D9A43B;
  --text: #E9E4E6;
  --text-leise: #A79FA4;
  --grund: #0E0B0F;         /* Zuschauerraum */
  --grund-2: #17121A;       /* etwas heller für Abschnitte */
  --flaeche: #1F1923;       /* Karten */
  --flaeche-2: #281F2C;
  --rand: rgba(255,255,255,.09);
  --schrift: "Fira Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --breite: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--grund);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau-text); }
a:hover { color: var(--rot-text); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: #fff; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: var(--rot-dunkel); color: #fff; }

.inhalt { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; position: relative; }
/* Scheinwerfer-Licht auf den Abschnitten */
section:not(.start)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(255,214,160,.06), rgba(0,0,0,0) 70%);
}
section > .inhalt { position: relative; }
.grau { background: var(--grund-2); }
.ueberzeile {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .5em;
}

/* Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14,11,15,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rand);
}
.kopf .inhalt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.kopf .logo img { height: 56px; width: auto; }
.menue-knopf { display: none; }
.nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--rot-text); }

@media (max-width: 860px) {
  .menue-knopf {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--rand); border-radius: 8px;
    padding: 8px 12px; font: inherit; color: var(--text); cursor: pointer;
  }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--grund); border-bottom: 1px solid var(--rand); display: none; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav a { display: block; padding: 10px 0; }
}

/* Startbild */
.start {
  position: relative; min-height: min(84vh, 700px);
  display: flex; align-items: flex-end;
  background: var(--grund) url("../img/hero.jpg") center 35% / cover no-repeat;
  color: #fff; padding: 0;
}
.start::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(0,0,0,0) 0%, rgba(14,11,15,.55) 100%),
    linear-gradient(180deg, rgba(14,11,15,.25) 0%, rgba(14,11,15,.55) 55%, var(--grund) 100%);
}
.start .inhalt { position: relative; padding-bottom: 64px; padding-top: 140px; width: 100%; }
.start h1 { font-size: clamp(2rem, 5.5vw, 3.7rem); font-weight: 700; max-width: 16em; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.start p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34em; color: #ddd6da; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.knopf {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--rot-hell); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 24px rgba(223,35,90,.3);
}
.knopf:hover { background: var(--rot-dunkel); color: #fff; }
.knopf.hell { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.4); box-shadow: none; }
.knopf.hell:hover { background: rgba(255,255,255,.18); }

/* Nächstes Stück */
.naechstes { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: center; }
@media (max-width: 860px) { .naechstes { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.vorhang {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg,
      #5e0824 0px, #94103a 18px, #bd1649 32px, #94103a 46px, #5e0824 64px);
  box-shadow: 0 30px 70px rgba(184, 21, 72, .25), 0 0 0 1px rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.vorhang::before { /* Volant oben */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 61%) 0 0 / 12.5% 100%,
    linear-gradient(180deg, #4a061d, #820e33);
  border-bottom: 3px solid var(--gold);
}
.vorhang::after { /* Rampenlicht von unten */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 112%, rgba(255,220,150,.38), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,.4));
}
.vorhang .titel {
  position: relative; z-index: 1; color: #fff; padding: 0 8%; margin: 0;
  font-size: clamp(1.8rem, 4.4vw, 2.9rem); font-weight: 700; line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.vorhang .titel small { display: block; font-size: .42em; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .6em; color: #f3d9a0; }
.vorhang.klein { aspect-ratio: 3 / 2; border-radius: 0; box-shadow: none; }
.vorhang.klein .titel { font-size: 1.35rem; }

.termine { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.termine li {
  display: flex; align-items: center; gap: 16px;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 12px 16px;
}
.datum { min-width: 56px; text-align: center; line-height: 1.1; color: var(--rot-text); font-weight: 700; }
.datum b { display: block; font-size: 1.6rem; }
.datum span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.fakten { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0 0 1.4em; }
.fakten dt { font-weight: 600; color: #fff; }
.fakten dd { margin: 0; overflow-wrap: anywhere; }
.hinweis { font-size: .95rem; color: var(--text-leise); }

/* Gruppen */
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
#gruppen .zwei { align-items: stretch; }
@media (max-width: 760px) { .zwei { grid-template-columns: minmax(0, 1fr); } }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.karte img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.karte .text { padding: 22px 24px 24px; }
.karte .kids-logo {
  height: 52px; width: auto; margin-bottom: 14px; aspect-ratio: auto;
  background: #fff; border-radius: 8px; padding: 10px 14px;
}
.marke { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--blau-dunkel); color: #fff; }
.marke.kids { background: var(--rot-hell); }
.foto-rund { border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Archiv */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filter button {
  font: inherit; font-size: .95rem; border: 1px solid var(--rand); background: var(--flaeche); color: var(--text);
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.filter button:hover { border-color: rgba(255,255,255,.3); }
.filter button[aria-pressed="true"] { background: var(--rot-hell); border-color: var(--rot-hell); color: #fff; }
.archiv { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.archiv li { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; overflow: hidden; transition: transform .2s, border-color .2s; }
.archiv li:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); }
.archiv img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; filter: saturate(.92); }
.archiv .text { padding: 12px 16px 16px; }
.archiv .jahr { font-size: .85rem; color: var(--text-leise); display: flex; justify-content: space-between; gap: 8px; }
.archiv h3 { font-size: 1.08rem; margin: 4px 0 0; }

.archiv li.klickbar { cursor: pointer; }
.archiv li.klickbar:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.archiv .mehr { display: block; margin-top: 8px; font-size: .85rem; color: var(--gold); }

/* Stück-Ansicht (Flyer + Fotos) */
.stueck {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 0; border: 1px solid var(--rand); border-radius: 14px;
  background: var(--grund-2); color: var(--text); overflow: auto;
}
.stueck::backdrop { background: rgba(5,3,6,.85); backdrop-filter: blur(3px); }
.stueck-kopf {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 18px 22px 10px; position: sticky; top: 0; background: var(--grund-2); z-index: 1;
}
.stueck-kopf .jahr { font-size: .85rem; color: var(--text-leise); display: flex; gap: 14px; }
.stueck-kopf h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 2px 0 0; }
.schliessen {
  background: var(--flaeche); border: 1px solid var(--rand); color: var(--text);
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; flex: none;
}
.schliessen:hover { border-color: var(--rot-text); color: var(--rot-text); }
.stueck-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; padding: 8px 22px 14px; }
.stueck-inhalt figure { margin: 0; }
.stueck-flyer img { width: 100%; max-height: 62vh; object-fit: contain; background: #000; border-radius: 8px; }
.stueck-flyer figcaption { font-size: .8rem; color: var(--text-leise); margin-top: 6px; text-align: center; }
.stueck-flyer[hidden] + .stueck-foto { grid-column: 1 / -1; }
.stueck.nur-flyer { width: min(560px, calc(100vw - 32px)); }
.stueck.nur-flyer .stueck-inhalt { grid-template-columns: 1fr; padding-bottom: 22px; }
.stueck.nur-flyer .stueck-flyer img { max-height: 72vh; }
.stueck-foto { position: relative; background: #000; border-radius: 8px; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.stueck-foto img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 8px; }
.pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.8rem; line-height: 1;
}
.pfeil:hover { background: var(--rot-hell); }
.pfeil.zurueck { left: 10px; } .pfeil.weiter { right: 10px; }
.stueck-leiste { display: flex; gap: 10px; padding: 0 22px 22px; overflow-x: auto; }
.stueck-leiste button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; opacity: .65; }
.stueck-leiste button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.stueck-leiste button:hover { opacity: 1; }
.stueck-leiste img { width: 110px; height: 74px; object-fit: cover; border-radius: 6px; }
@media (max-width: 700px) {
  .stueck-inhalt { grid-template-columns: 1fr; }
  .stueck-flyer img { max-height: 46vh; }
}

/* Kontakt */
.kontakt-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.kontakt-liste li { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 14px 18px; }
.kontakt-liste span { display: block; font-size: .9rem; color: var(--text-leise); }
.kontakt-liste a { font-weight: 600; word-break: break-word; }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--rand); background: var(--flaeche); color: var(--text); font-weight: 500;
}
.social a:hover { border-color: var(--rot-text); color: var(--rot-text); }
.social svg { width: 20px; height: 20px; }

.dank { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--text-leise); padding: 0; list-style: none; margin: 0; }

/* Fußzeile */
.fuss { background: #070508; color: var(--text-leise); padding: 44px 0 36px; font-size: .95rem; border-top: 3px solid var(--rot-dunkel); }
.fuss .inhalt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.fuss img { height: 52px; width: auto; }
.fuss a { color: var(--text); }
.fuss nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Unterseiten (Impressum, Datenschutz) */
.seite { padding: 56px 0 72px; }
.seite .inhalt { max-width: 780px; }
.seite h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.seite h2 { font-size: 1.3rem; margin-top: 1.8em; }
.offen-feld { background: #5a4a12; color: #ffe9a3; padding: 0 4px; border-radius: 3px; }
.entwurf {
  background: #2e2710; color: #ffe9a3; border: 1px solid #6b5a1c; border-radius: 8px; padding: 12px 16px; margin-bottom: 28px; font-size: .95rem;
}

/* Kartenreservierung */
.termine li.klickbar { cursor: pointer; transition: border-color .15s; }
.termine li.klickbar:hover { border-color: var(--rot-text); }
.termine .termin-text { flex: 1; }
.knopf.klein { padding: 8px 16px; font-size: .9rem; border: 0; cursor: pointer; font-family: inherit; box-shadow: none; }
@media (max-width: 480px) {
  .termine li { flex-wrap: wrap; }
  .termine .knopf.klein { width: 100%; }
}
.formular { width: min(640px, calc(100vw - 32px)); }
.res-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 8px 22px 22px; }
.res-form .voll { grid-column: 1 / -1; }
.res-form label { display: block; font-weight: 600; font-size: .95rem; color: #fff; }
.res-form input, .res-form select, .res-form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--flaeche);
  border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 10px 12px; width: 100%; display: block; margin-top: 4px;
}
.res-form input:focus, .res-form select:focus, .res-form textarea:focus { outline: 2px solid var(--blau-text); outline-offset: 1px; }
.res-form .hinweis { font-weight: 400; margin: 0; font-size: .85rem; }
.res-form .haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.res-form .haken input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--rot-hell); }
.res-form .falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.res-meldung { margin: 0; padding: 10px 14px; border-radius: 8px; background: rgba(223,35,90,.15); border: 1px solid var(--rot-hell); color: #fff; }
.res-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.res-knoepfe .knopf { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.res-knoepfe .knopf:disabled { opacity: .6; cursor: wait; }
.res-danke { padding: 8px 22px 24px; }
.res-danke .knopf { border: 1px solid rgba(255,255,255,.4); cursor: pointer; font: inherit; font-weight: 600; color: #fff; }
@media (max-width: 560px) { .res-form { grid-template-columns: 1fr; } }
.formular [hidden] { display: none !important; }

/* Mehrere nächste Stücke (Erwachsene und TFT K!DS) */
.naechstes + .naechstes { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--rand); }
.vorhang.kids .titel small { color: var(--blau-text); }
.naechstes .gruppe-kids { color: var(--blau-text); }
.kein-stueck { max-width: 640px; }

/* Bausteine aus dem Homepage-Baukasten */
.zwei.karten { align-items: stretch; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .drei { grid-template-columns: minmax(0, 1fr); } }
.bildreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.bildreihe figure { margin: 0; }
.bildreihe img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.bildreihe figcaption { font-size: .9rem; color: var(--text-leise); margin-top: 6px; }
.kasten {
  background: linear-gradient(135deg, rgba(184,21,72,.22), rgba(0,103,177,.18)), var(--flaeche);
  border: 1px solid rgba(223,35,90,.45); border-radius: 14px; padding: 32px clamp(20px, 4vw, 44px);
}
.kasten > :last-child { margin-bottom: 0; }
.zentriert { text-align: center; }
.zentriert p { max-width: 40em; margin-left: auto; margin-right: auto; }
.zitat { margin: 0 auto; max-width: 46em; padding-left: 24px; border-left: 4px solid var(--rot-hell); }
.zitat p { font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: #fff; font-style: italic; }
.zitat footer { color: var(--text-leise); }
.inhalt ul:not([class]) { padding-left: 1.2em; margin: 0 0 1em; }
