:root {
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --bg: #f6f1ea;
  --ink: #1a1214;
  --muted: #5c4f52;
  --paper: #fffdf8;
  --line: rgba(26, 18, 20, 0.12);
  --accent: #8b2d3f;
  --accent-ink: #fff8f4;
  --header: rgba(246, 241, 234, 0.92);
  --footer-bg: #1a1214;
  --radius: 1.25rem;
  --shadow: 0 24px 60px rgba(26, 18, 20, 0.12);
}

.theme-hub {
  --bg: #3a3236;
  --ink: #f7f1ea;
  --muted: #e4d5cc;
  --paper: #4a4146;
  --line: rgba(247, 241, 234, 0.22);
  --accent: #e0c089;
  --accent-ink: #2a2226;
  --header: rgba(58, 50, 54, 0.94);
  --footer-bg: #2a2327;
}

.theme-elmenyter {
  --bg: #f7f0ea;
  --ink: #241016;
  --muted: #6b4450;
  --accent: #8b2d3f;
  --accent-ink: #fff6f2;
  --header: rgba(247, 240, 234, 0.94);
  --footer-bg: #3b1520;
}

.theme-butorter {
  --bg: #f3ebe1;
  --ink: #2b1d12;
  --muted: #6b5340;
  --accent: #6b4f3a;
  --accent-ink: #f8efe4;
  --header: rgba(243, 235, 225, 0.94);
  --footer-bg: #2b1d12;
}

.theme-itter {
  --bg: #eef3f3;
  --ink: #102027;
  --muted: #4a5d63;
  --accent: #0f766e;
  --accent-ink: #ecfffc;
  --header: rgba(238, 243, 243, 0.94);
  --footer-bg: #102027;
}

.theme-tudaster {
  --bg: #f3efe6;
  --ink: #142033;
  --muted: #5a4e38;
  --accent: #1e3a5f;
  --accent-ink: #f7e7b8;
  --header: rgba(243, 239, 230, 0.94);
  --footer-bg: #142033;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, .brand strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand strong { display: block; font-size: 1.15rem; }
.brand em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.brand-space img { width: 68px; height: 68px; }
.brand-space strong { font-size: 1.22rem; }
.brand-space-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.brand-wordmark strong { font-size: 1.2rem; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  opacity: 0.86;
}
.site-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.32em;
  text-decoration-thickness: 2px;
}
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.3em; }
.nav-sep { width: 1px; background: var(--line); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: currentColor; background: transparent; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.lead { font-size: 1.2rem; max-width: 40rem; }
.hub-quote { font-family: var(--font-display); font-size: 1.35rem; }
.ter-identity {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  margin: 0 0 0.55rem;
}

.hub-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.45fr);
  gap: 2rem 2.75rem;
  align-items: start;
  padding: 2.25rem 0 3.5rem;
}
.hub-intro .eyebrow { margin: 0 0 0.35rem; }
.hub-intro .lead {
  max-width: 22rem;
  margin: 0.35rem 0 1.15rem;
}
.hub-intro h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin: 0 0 0.25rem;
}
.hub-mark {
  display: inline-block;
  margin: 0 0 1rem;
}
.hub-mark img {
  width: min(13.5rem, 100%);
  height: auto;
}

.ter-grid-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}
.ter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.ter-card {
  padding: 1.25rem 1.3rem 1.15rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #f7f1ea;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.ter-card:hover,
.ter-card:focus-visible { transform: translateY(-4px); }
.ter-card h3 { font-size: clamp(1.85rem, 3vw, 2.35rem); margin: 0.15rem 0 0.4rem; }
.ter-card > p { margin: 0.2rem 0 0; }
.ter-card-tagline {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.3rem;
}
.tagline-note {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}
.ter-kicker { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; }
.ter-cta { margin-top: auto; padding-top: 0.85rem; font-weight: 600; }

.ter-card-elmenyter {
  background:
    linear-gradient(160deg, rgba(20, 8, 12, 0.15), rgba(20, 8, 12, 0.55)),
    radial-gradient(circle at 20% 20%, #c45a6a, #8b2d3f 42%, #3b1018 100%);
}
.ter-card-butorter {
  background:
    linear-gradient(180deg, rgba(255, 232, 201, 0.12), rgba(30, 18, 10, 0.35)),
    repeating-linear-gradient(-18deg, #8a6244 0 12px, #6b4f3a 12px 24px);
}
.ter-card-itter {
  background:
    linear-gradient(135deg, #16343a, #0f766e 45%, #06242a);
}
.ter-card-tudaster {
  background:
    linear-gradient(160deg, #c9a227 0%, #1e3a5f 38%, #0f1724 100%);
}

.coming-hero { padding: 4.5rem 0 5.5rem; }
.coming-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 0.2rem 0 0.6rem; }
.coming-inner { max-width: 40rem; }
.coming-badge {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  color: var(--accent);
}

.elmeny-hero { position: relative; min-height: 78vh; display: grid; align-items: end; color: #fff8f4; }
.elmeny-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.9);
}
.elmeny-hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 3.5rem;
}
.elmeny-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 0.4rem; }
.photo-credit { font-size: 0.8rem; opacity: 0.8; }

.manifesto { padding: 3.5rem 0; max-width: 46rem; margin-inline: auto; }
.manifesto h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.page-head { padding: 3rem 0 1rem; }
.event-preview { padding-bottom: 4rem; }
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  padding-bottom: 3rem;
}
.event-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.event-card-media img,
.event-poster { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.event-card-body { padding: 1.1rem 1.15rem 1.3rem; }
.event-meta { color: var(--muted); margin: 0.15rem 0; }
.event-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.poster-fallback {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 3rem;
}

.event-dates {
  margin-top: 0.8rem;
}
.event-dates summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.35rem 0;
}
.event-dates summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.event-dates ul {
  list-style: none;
  padding: 0.4rem 0 0;
  margin: 0;
}
.event-dates li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.event-detail { padding: 2.5rem 0 4rem; max-width: 720px; margin-inline: auto; }
.event-detail .event-poster { border-radius: var(--radius); margin: 1.2rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 4rem;
}

.contact-form,
.newsletter-form {
  display: grid;
  gap: 0.8rem;
}
label { display: grid; gap: 0.3rem; font-size: 0.92rem; }
input, textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.consent { display: flex; gap: 0.5rem; align-items: flex-start; }

.legal-page {
  padding: 2.2rem 1.4rem 3.2rem;
  max-width: 44rem;
  margin: 2rem auto 4rem;
  background: #f7f0ea;
  color: #1a1214;
  border-radius: var(--radius);
}
.legal-page a { color: #8b2d3f; }
.legal-page code {
  font-size: 0.92em;
  background: rgba(26, 18, 20, 0.08);
  padding: 0.05rem 0.3rem;
  border-radius: 0.3rem;
}
.legal-placeholder-banner {
  background: #f4e4c4;
  color: #3b2a12;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
}
.legal-embed { margin-top: 1rem; }

.archive-year {
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.archive-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.archive-item {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}
.archive-item summary {
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
}
.archive-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.archive-title { font-weight: 600; }
.archive-meta { color: var(--muted); font-size: 0.95rem; }
.archive-body { padding: 0.6rem 0 1.1rem; }
.archive-body img {
  width: min(220px, 100%);
  margin: 0.4rem 0 0.8rem;
  border-radius: 0.8rem;
}
.impressum { display: grid; grid-template-columns: 10rem 1fr; gap: 0.4rem 1rem; }
.impressum dt { font-weight: 600; }

.site-footer {
  background: var(--footer-bg);
  color: #f7f1ea;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer h2,
.site-footer p,
.site-footer li,
.site-footer label,
.site-footer a,
.footer-space,
.footer-tag,
.footer-copy {
  color: #f7f1ea;
}
.footer-newsletter .newsletter-form label {
  color: #f7f1ea;
}
.site-footer input,
.site-footer textarea {
  background: #f7f1ea;
  color: #1a1214;
  border-color: rgba(247, 241, 234, 0.45);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr 1.1fr;
  gap: 1.5rem;
}
.footer-logo { width: 88px; height: auto; }
.footer-space { font-weight: 600; margin-bottom: 0.2rem; }
.footer-tag { font-family: var(--font-display); margin-bottom: 0.25rem; }
.footer-brand .tagline-note { color: #f7f1ea; }
.site-footer a { color: #f7f1ea; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.footer-copy { opacity: 0.7; margin-top: 2rem; font-size: 0.9rem; }

.flash-stack { width: min(1120px, calc(100% - 2rem)); margin: 1rem auto 0; }
.flash {
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: #e7f6ea;
  color: #14532d;
}
.flash-error {
  background: #fde8e8;
  color: #7f1d1d;
}
.site-footer .flash,
.site-footer p.flash,
.footer-newsletter .flash,
.footer-newsletter p.flash,
.newsletter-dialog .flash,
.newsletter-dialog p.flash {
  background: #e7f6ea !important;
  color: #14532d !important;
}
.site-footer .flash-error,
.site-footer p.flash-error,
.footer-newsletter .flash-error,
.footer-newsletter p.flash-error,
.newsletter-dialog .flash-error,
.newsletter-dialog p.flash-error {
  background: #fde8e8 !important;
  color: #7f1d1d !important;
}
.site-footer .btn-primary,
.footer-newsletter .btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.newsletter-popup {
  position: fixed;
  inset: 0;
  background: rgba(12, 8, 9, 0.62);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 1rem;
}
.newsletter-popup[hidden] { display: none; }
.newsletter-dialog {
  background: #fffdf8;
  color: #1a1214;
  max-width: 28rem;
  width: 100%;
  padding: 1.5rem;
  border-radius: var(--radius);
  position: relative;
}
.newsletter-dialog h2,
.newsletter-dialog p,
.newsletter-dialog label {
  color: #1a1214;
}
.newsletter-dialog input,
.newsletter-dialog textarea {
  background: #fff;
  color: #1a1214;
  border-color: rgba(26, 18, 20, 0.18);
}
.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  border: 0;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .footer-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 4.5rem 0 auto;
    background: var(--header);
    padding: 1rem;
    flex-direction: column;
  }
  .site-nav.is-open { display: flex; }
  .impressum { grid-template-columns: 1fr; }
  .hub-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem 0 3rem;
  }
  .hub-mark img { width: min(11rem, 48vw); }
  .hub-intro .lead { max-width: 36rem; }
  .ter-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ter-card { transition: none; }
}
