/* ============================================================
   KOMPLEX — Prototyp-Stylesheet
   Diskussionsgrundlage. Kein Build, keine externen Requests.
   Regeln: eine Akzentfarbe, Mono nur für Zeiten, keine Bilder.
   ============================================================ */

:root {
  --ink: #0b0b0c;
  --ink-2: #121214;
  --paper: #ede7de;
  --muted: #a29a8e;      /* ~7:1 auf --ink */
  --line: #262523;
  --brass: #c8a96b;      /* ~8.7:1 auf --ink */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 66rem;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Grundtypen ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1, h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--paper); }

ul, ol { margin: 0 0 1.2rem; padding: 0; max-width: 62ch; }
li { margin-bottom: 0.45rem; }

.kicker,
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.measure { max-width: 40rem; }

.section {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.section__head .mono { flex: none; }

/* ---------- Skip-Link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  z-index: 10;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Kopf ---------- */

.site-head {
  max-width: 46rem;
  padding-block: 1.5rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.site-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tagline {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.4;
  color: var(--muted);
  margin: 0.8rem 0 0;
  max-width: 46rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.brand__scheme,
.brand__tld {
  font-family: var(--sans);
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}
.brand__scheme { margin-right: 0.12em; }
.brand__tld { margin-left: -0.18em; }

.wordmark {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}
.brand:hover .wordmark { color: var(--brass); }

.brand__claim {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.brand:hover .brand__claim { color: #cfc8bd; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 1.9rem);
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.nav a:hover { color: var(--paper); }
.nav a[aria-current="page"] { color: var(--paper); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(1.6rem, 4vw, 2.4rem) clamp(2.5rem, 6vw, 4rem); }
.hero .kicker { display: block; margin-bottom: 1.6rem; }
.hero__lead {
  font-size: clamp(1.02rem, 0.6vw + 0.9rem, 1.18rem);
  color: #d9d2c7;
  max-width: 52ch;
  margin-top: 1.6rem;
}
.hero__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2rem;
}

.actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--brass);
  border-radius: 2px;
  color: var(--brass);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { background: rgba(200, 169, 107, 0.1); color: var(--paper); }

.btn--quiet {
  border-color: var(--line);
  color: var(--paper);
}
.btn--quiet:hover { border-color: var(--muted); background: rgba(237, 231, 222, 0.04); }


/* Themenzeile im Hero — Schlagworte als Manifest-Zeile, nicht als Aufzählung */
.hero .themes {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0;
  color: #cfc8bd;
  max-width: 62ch;
  margin: 0;
}

/* ---------- Antipoden ---------- */

.not-here {
  border-left: 2px solid var(--brass);
  padding: 0.2rem 0 0.2rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 46rem;
}
.not-here p { margin: 0; }
.not-here ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.not-here li {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.not-here li::before {
  content: "—";
  color: var(--brass);
  margin-right: 0.5rem;
}

/* ---------- Ablauf ---------- */

.timeline { display: grid; gap: 1.75rem; margin: 0; }
.timeline > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.timeline dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  white-space: nowrap;
}
.timeline dd { margin: 0; }
.timeline dd strong {
  display: block;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 0.15rem;
}
.timeline dd span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Module ---------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}
.card {
  background: var(--ink);
  padding: 1.9rem 1.6rem 2.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.card .mono { font-size: 0.66rem; }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: 0.94rem; color: var(--muted); }
.card .vibe {
  margin-top: auto;
  padding-top: 1rem;
  font-style: italic;
  color: #bdb4a6;
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

/* ---------- Schritte ---------- */

.steps {
  list-style: none;
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.2rem;
  align-items: start;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brass);
  padding-top: 0.15rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Termin ---------- */

.date-block {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.date-block h2 { margin-bottom: 0.4rem; }
.date-block .where { color: var(--muted); font-size: 0.95rem; margin: 0; }
.date-block .time {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--brass);
  text-transform: uppercase;
}

/* ---------- Fuß ---------- */

.site-foot {
  padding-block: 3rem 4rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.site-foot__inner {
  max-width: 46rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.site-foot__trust {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8478;
  margin-top: 1.6rem;
  max-width: 46ch;
  line-height: 1.9;
}
.site-foot nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-foot nav a { color: var(--muted); }
.site-foot nav a:hover { color: var(--paper); }

.todo {
  color: #8b8478;
  border-bottom: 1px dotted #4a463f;
  cursor: help;
}

/* ---------- Kodex-Seite ---------- */

.kodex-intro { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.principle {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
}
.principle .num {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--brass);
  padding-top: 0.35rem;
}
.principle h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 0.7rem; }
.principle p { color: #cfc8bd; }
.principle p + p { margin-top: 0.9rem; }

.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass);
  background: var(--ink-2);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin-block: clamp(2rem, 4vw, 3rem);
}
.callout p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--paper);
}
.callout p + p { margin-top: 0.8rem; }

.closing {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  max-width: 46ch;
  margin-block: 2rem 2.5rem;
}

@media (max-width: 620px) {
  .timeline > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .date-block { grid-template-columns: 1fr; align-items: start; }
  .principle { grid-template-columns: 1fr; gap: 0.6rem; }
  .principle .num { padding-top: 0; }
  .steps li { grid-template-columns: 2.2rem 1fr; gap: 0.9rem; }
  .site-head { padding-block: 1.1rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Programm ---------- */

.program {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.event {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1.6rem;
  align-items: start;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.event__date {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.event__date .d {
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--brass);
  white-space: nowrap;
}
.event__date .t {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.event__body h3 { font-size: 1.28rem; margin: 0 0 0.45rem; }
.event__body h3 a { color: var(--paper); text-decoration: none; }
.event__body h3 a:hover { color: var(--brass); }
.event__meta {
  margin: 0 0 0.4rem;
  font-size: 0.87rem;
  color: var(--muted);
}
.event__host {
  margin: 0;
  font-size: 0.8rem;
  color: #8b8478;
}
.event__action { margin: 0; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--muted);
  margin-right: 0.5rem;
  vertical-align: 0.12em;
}
.tag--guest { border-color: var(--brass); color: var(--brass); }

.btn--small {
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
}

.notice {
  border-left: 2px solid var(--brass);
  padding: 0.2rem 0 0.2rem 1.25rem;
  margin-top: 1.9rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 54ch;
}

@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; gap: 0.65rem; }
  .event__date { flex-direction: row; gap: 0.85rem; align-items: baseline; }
  .event__action .btn { width: 100%; justify-content: center; }
}

/* ---------- Gastgeber ---------- */

.host {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  max-width: 48rem;
}
.host h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.2rem;
}
.host p { color: var(--muted); }
.host p:first-of-type { color: #d9d2c7; }

.fill { color: var(--brass); border-bottom: 1px dotted var(--brass); }

/* ---------- Rechtsseiten ---------- */

.legal { padding-block: clamp(1.6rem, 4vw, 2.4rem) clamp(3rem, 6vw, 4rem); }
.legal h1 { margin-bottom: 1.6rem; }
.legal h2 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 2.8rem 0 0.7rem;
}
.legal h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #cfc8bd;
  margin: 1.8rem 0 0.5rem;
}
.legal p, .legal li { color: var(--muted); font-size: 0.94rem; }
.legal p { max-width: 62ch; }
.legal ul { margin: 0 0 1.2rem; padding-left: 1.15rem; }
.legal li { margin-bottom: 0.35rem; }
.legal .draft {
  border: 1px solid #5a4a2a;
  background: #1a1710;
  color: #d8c9a6;
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 0.95rem 1.1rem;
  margin: 0 0 2.2rem;
  max-width: 58ch;
}
.legal .fill { color: var(--brass); border-bottom: 1px dotted var(--brass); }

/* ---------- Druck: Aushang ---------- */

@media print {
  :root {
    --ink: #ffffff;
    --ink-2: #ffffff;
    --paper: #111111;
    --muted: #444444;
    --line: #cccccc;
    --brass: #6b5320;
  }
  body { background: #fff; color: #111; font-size: 11pt; }
  .skip, .nav, .actions, .site-foot__trust { display: none; }
  .section { border-color: #ccc; padding-block: 1.4rem; break-inside: avoid; }
  .grid { border-color: #ccc; background: #ccc; }
  .card, .date-block { background: #fff; }
  .event { break-inside: avoid; border-color: #ccc; }
  .tag { border-color: #999; color: #333; }
  a { color: #111; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
}

/* ---------- Reihe (Repertoire ohne Termine) ---------- */

.formats {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: 46rem;
}
.format {
  margin: 0;
  padding: 1.3rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}
.format__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.3rem;
}
.format__head h3 { flex: 1 1 auto; min-width: 0; }
.format h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
}
.format__access {
  flex: none;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  position: relative;
  top: -0.15em;
}
.format__access--open { color: #7d766b; }
.format p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 60ch;
}

/* ---------- Newsletter-Seite ---------- */

.section--text h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  margin: 2.75rem 0 0.7rem;
}
.section--text h2:first-child { margin-top: 0; }
.section--text p {
  max-width: 58ch;
  color: #d9d2c7;
}
.cta-row { margin: 1.4rem 0 1.6rem; }
.consent { max-width: 52ch; margin: -0.6rem 0 1.8rem; line-height: 1.6; }
.consent a { color: var(--muted); }
.cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass);
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.cta:hover,
.cta:focus-visible {
  background: var(--brass);
  color: var(--ink);
}
