/* Kiotopia – Landingpage kiotopia.de
   Look nach dem Design-Canvas vom 13.11.2026. Schriften liegen selbst gehostet unter /assets/fonts (SIL OFL). */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --nacht: #140f2a;
  --nacht-2: #1d1740;
  --nacht-linie: #2e2557;
  --nacht-rand: #3a2f6b;
  --band: #241a52;
  --hell-text: #f5f3ff;
  --hell-leise: #d5cfea;
  --hell-leiser: #b9b2d3;
  --akzent: #a78bfa;
  --akzent-hell: #c4b5fd;
  --akzent-zart: #ddd6fe;
  --papier: #f6f4fd;
  --weiss: #ffffff;
  --tinte: #17122b;
  --tinte-leise: #4a4463;
  --karte-rand: #e3ddf5;
  --lila: #5b21b6;
  --lila-tief: #3b0f8a;
  --lila-zart: #ede9fe;
  --lila-icon: #6d28d9;

  --kopf: "Montserrat", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --breit: 1120px;
  --schmal: 760px;
  --rand: 24px;
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--lila); text-underline-offset: 3px; }
a:hover { color: var(--lila-tief); }

/* Fokusrahmen: dunkles Lila auf hellen Flächen, helles Lila auf dunklen (beide über 3:1) */
:focus-visible { outline: 3px solid var(--lila); outline-offset: 3px; border-radius: 6px; }
.dunkel :focus-visible, .kopf :focus-visible, .fuer-wen :focus-visible, .fuss :focus-visible { outline-color: var(--akzent); }

h1, h2, h3 { font-family: var(--kopf); margin: 0; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--akzent); color: var(--nacht); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand); }
.wrap-schmal { max-width: var(--schmal); margin: 0 auto; padding: 0 var(--rand); }

/* Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: var(--nacht);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 0.3s ease;
}
.kopf.gescrollt { box-shadow: 0 1px 0 var(--nacht-linie), 0 8px 24px rgba(10, 6, 24, 0.18); }
.kopf .wrap {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}

.marke { display: inline-flex; align-items: center; gap: 12px; color: var(--hell-text); text-decoration: none; }
.marke:hover { color: var(--hell-text); }
.marke img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--nacht-rand); }
.marke span { font-family: var(--kopf); font-weight: 800; font-size: 20px; letter-spacing: 0.08em; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 36px; border-radius: 14px;
  font-family: var(--text); font-weight: 700; font-size: 19px; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.knopf svg { width: 20px; height: 20px; flex: none; transition: transform 0.2s ease; }
.knopf:hover svg { transform: translateX(3px); }
.knopf:active { transform: translateY(1px); }

.knopf-hell { background: var(--akzent); color: var(--nacht); box-shadow: 0 10px 32px rgba(167, 139, 250, 0.35); }
.knopf-hell:hover { background: var(--akzent-hell); color: var(--nacht); box-shadow: 0 12px 38px rgba(167, 139, 250, 0.45); }

.knopf-lila { background: var(--lila); color: var(--weiss); min-height: 56px; padding: 0 32px; font-size: 18px; box-shadow: 0 10px 28px rgba(91, 33, 182, 0.25); }
.knopf-lila:hover { background: var(--lila-tief); color: var(--weiss); }

.knopf-klein { min-height: 44px; padding: 0 20px; border-radius: 10px; font-size: 16px; font-weight: 600; box-shadow: none; }
.knopf-klein:hover { box-shadow: none; }
.knopf-klein .kurz { display: none; }

/* Hero */
.dunkel { background: var(--nacht); color: var(--hell-text); }
.hero { overflow: hidden; overflow: clip; } /* der Deko-Ring ragt rechts hinaus, sonst zoomt das Handy heraus */

.hero .wrap {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
  padding-top: 64px; padding-bottom: 104px;
}
.hero-text { flex: 999 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.pille {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--nacht-rand); border-radius: 999px;
  color: var(--akzent-zart); font-weight: 500; font-size: 15px;
}
.hero h1 { font-weight: 800; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -0.01em; }
.hero-lead { max-width: 540px; color: var(--hell-leise); font-size: 20px; }
.hero-aktion { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.hero-aktion span { color: var(--hell-leiser); font-size: 16px; }
.hero-punkte { margin: 0; padding: 0; list-style: none; max-width: 540px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.hero-punkte li { display: flex; gap: 12px; align-items: flex-start; text-wrap: pretty; }
.hero-punkte svg { flex: none; width: 22px; height: 22px; margin-top: 2px; stroke: var(--akzent); }

.vorschau-feld { flex: 1 1 380px; min-width: 0; position: relative; }
.vorschau-ring {
  position: absolute; width: 78%; height: auto; right: -14%; top: -22%;
  opacity: 0.5; pointer-events: none;
}
.vorschau {
  position: relative; margin: 0; background: var(--nacht-2); border: 1px solid var(--nacht-rand);
  border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.vorschau-titel {
  padding: 14px 20px; border-bottom: 1px solid var(--nacht-linie);
  display: flex; align-items: center; gap: 10px; color: var(--hell-leiser); font-size: 14px;
}
.vorschau-titel::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.vorschau-call { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.vorschau-call-label { color: var(--akzent-zart); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.vorschau-call-wann { font-family: var(--kopf); font-weight: 800; font-size: clamp(1.35rem, 2.3vw, 1.7rem); line-height: 1.15; text-wrap: balance; }
.vorschau-call-uhr { color: var(--akzent-zart); font-weight: 600; font-size: 17px; margin-top: -4px; }
.vorschau-call-text { color: var(--hell-leise); font-size: 16px; }
.vorschau-call-rolle {
  margin-top: 6px; padding: 12px 14px; border-radius: 12px;
  background: rgba(167, 139, 250, 0.12); border: 1px solid var(--nacht-rand); font-size: 15px;
}
.vorschau-kanaele {
  margin: 0; padding: 14px 20px 18px; list-style: none; border-top: 1px solid var(--nacht-linie);
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--hell-leiser);
}
.vorschau-kanaele li { padding: 4px 10px; border-radius: 999px; background: #2b2259; white-space: nowrap; }

/* Abschnitte */
.abschnitt { padding: 104px 0; }
.problem { padding: 96px 0 40px; }
.problem .wrap-schmal { display: flex; flex-direction: column; gap: 20px; }
.problem p { color: var(--tinte-leise); }

.angebot { padding: 56px 0 104px; }
.angebot .wrap { display: flex; flex-direction: column; gap: 40px; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.karte {
  background: var(--weiss); border: 1px solid var(--karte-rand); border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 20px rgba(42, 27, 105, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.karte:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(42, 27, 105, 0.1); }
.karte-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--lila-zart);
  display: flex; align-items: center; justify-content: center;
}
.karte-icon svg { width: 24px; height: 24px; stroke: var(--lila-icon); }
.karte p { color: var(--tinte-leise); }

.weiss { background: var(--weiss); border-top: 1px solid var(--karte-rand); }

/* Ohne Foto schmale Spalte wie die übrigen Textabschnitte. Mit <figure> daneben zweispaltig. */
.person .wrap { display: grid; gap: 56px; align-items: center; max-width: var(--schmal); }
.person .wrap:has(> figure) { max-width: var(--breit); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.person-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: var(--schmal); }
.person-text p { color: var(--tinte-leise); }
.person-text .knopf { margin-top: 8px; }
.person figure { margin: 0; }
.person figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.etikett {
  padding: 6px 14px; background: var(--lila-zart); border-radius: 999px;
  color: var(--lila); font-weight: 600; font-size: 15px;
}

.fuer-wen { background: var(--band); color: var(--hell-text); padding: 96px 0; }
.fuer-wen .wrap-schmal { display: flex; flex-direction: column; gap: 28px; }
.haken { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; font-size: 19px; }
.haken li { display: flex; gap: 14px; align-items: flex-start; }
.haken svg { flex: none; width: 26px; height: 26px; margin-top: 2px; stroke: var(--akzent-hell); }
.fuer-wen p { color: #cdc5ea; }

.warum .wrap-schmal { display: flex; flex-direction: column; gap: 16px; }
.warum p { color: var(--tinte-leise); }
.warum .betont { color: var(--tinte); font-weight: 500; }

.fragen { padding: 96px 0; }
.fragen .wrap-schmal { display: flex; flex-direction: column; gap: 32px; }
.fragen-liste { display: flex; flex-direction: column; gap: 12px; }
details {
  background: var(--papier); border: 1px solid var(--karte-rand); border-radius: 12px;
  padding: 20px 24px; transition: border-color 0.2s ease;
}
details[open] { border-color: #cfc4f0; }
summary {
  cursor: pointer; list-style: none; font-weight: 600; min-height: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--lila); border-bottom: 2px solid var(--lila);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details p { margin-top: 12px; color: var(--tinte-leise); }

.schluss { padding: 112px 0; }
.schluss .wrap-schmal { display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.schluss h2 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.1; }
.schluss p { color: var(--hell-leiser); font-size: 16px; }

/* Fußzeile */
.fuss { background: var(--nacht); color: var(--hell-leiser); border-top: 1px solid var(--nacht-linie); font-size: 16px; }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fuss a { color: var(--akzent-zart); }
.fuss a:hover { color: var(--hell-text); }

/* Spot-Seite /wp (Wirklich Passiert): eine Spalte, Terminkarte wie im Video */
.dunkel a:not(.knopf):not(.marke) { color: var(--akzent-zart); }
.dunkel a:not(.knopf):not(.marke):hover { color: var(--hell-text); }
.spot { position: relative; }
.spot-ring { position: absolute; width: 560px; height: auto; right: -140px; top: -60px; opacity: 0.35; pointer-events: none; }
.spot h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
.spot-inhalt { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-top: 56px; padding-bottom: 88px; }
.terminkarte {
  width: 100%; max-width: 560px; margin: 0; padding: 24px 26px;
  background: var(--band); border: 1px solid #5b47a8; border-radius: 18px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.terminkarte-label { color: var(--akzent-zart); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.terminkarte-wann { font-family: var(--kopf); font-weight: 800; font-size: clamp(1.45rem, 3.6vw, 1.95rem); line-height: 1.15; }
.terminkarte-thema { font-weight: 600; font-size: 18px; }
.terminkarte-frage { color: var(--hell-leise); font-size: 16px; margin-top: 4px; }
.gruendung {
  width: 100%; max-width: 560px; padding: 14px 18px; border-radius: 12px;
  background: rgba(167, 139, 250, 0.12); border: 1px solid var(--nacht-rand);
  color: var(--hell-text); font-size: 16px;
}
.mitglieder { color: var(--hell-leiser); font-size: 16px; }
.kalender { font-size: 16px; }
@media (max-width: 480px) {
  /* Der Button soll auf dem Handy ohne Scrollen sichtbar sein. */
  .spot-inhalt { gap: 16px; padding-top: 24px; }
  .spot .hero-lead { font-size: 18px; }
  .terminkarte { padding: 18px 20px; gap: 6px; }
  .terminkarte-frage { font-size: 15px; margin-top: 2px; }
}
.hero-termin { color: var(--akzent-zart); font-weight: 600; font-size: 17px; }
/* Steht die Karte neben dem Text, zeigt sie den Termin schon. */
@media (min-width: 1000px) { .hero-termin { display: none; } }

.abschnitt .wrap > h2 { margin-bottom: 36px; }
.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.schritte li {
  counter-increment: schritt; background: var(--weiss); border: 1px solid var(--karte-rand); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 20px rgba(42, 27, 105, 0.06);
}
.schritte li::before {
  content: counter(schritt); width: 36px; height: 36px; border-radius: 50%;
  background: var(--lila-zart); color: var(--lila); font-family: var(--kopf); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.schritte p { color: var(--tinte-leise); }
.schritte strong { color: var(--tinte); }

/* Übergabeseite /discord/<quelle> */
.uebergabe { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--nacht); }
.uebergabe main {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px;
  max-width: 640px; width: 100%; margin: 0 auto; padding: 48px var(--rand);
}
.uebergabe h1 { font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.08; }
.uebergabe .hero-lead { font-size: 18px; }
.uebergabe .termine { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.uebergabe .termine li { display: flex; flex-direction: column; padding: 14px 18px; border: 1px solid var(--nacht-rand); border-radius: 12px; background: var(--nacht-2); }
.uebergabe .termine time { font-weight: 600; }
.uebergabe .termine span { color: var(--hell-leiser); font-size: 15px; }
.uebergabe .mehr { color: var(--hell-leiser); font-size: 16px; }
.uebergabe .mehr a { color: var(--akzent-zart); }
[hidden] { display: none !important; }

/* Rechtstexte und 404 */
.text-seite { padding: 72px 0 104px; }
.text-seite h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin-bottom: 32px; }
.text-seite h2 { font-size: 22px; margin: 40px 0 12px; }
.text-seite p { margin: 0 0 14px; color: var(--tinte-leise); }
.text-seite p strong { color: var(--tinte); }
.text-seite .knopf { margin-top: 16px; }
.todo { background: #fde2e2; color: #8a1c1c; padding: 0 4px; border-radius: 4px; }

/* Ruhiges Einblenden beim Scrollen. Ohne JavaScript oder mit reduzierter Bewegung bleibt alles sichtbar. */
.js [data-einblenden] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-einblenden].sichtbar { opacity: 1; transform: none; }
.js .hero [data-einblenden] { transition-duration: 0.9s; }
.js .hero .vorschau-feld[data-einblenden] { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-einblenden] { opacity: 1; transform: none; transition: none; }
  .knopf, .knopf svg, .karte, details, summary::after { transition: none; }
}
@media print {
  .js [data-einblenden] { opacity: 1; transform: none; }
  .kopf { position: static; }
}

/* Handy */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 72px; gap: 48px; }
  .hero-lead { font-size: 18px; }
  .hero-punkte { font-size: 16px; }
  .abschnitt, .fragen, .fuer-wen { padding: 72px 0; }
  .problem { padding: 72px 0 24px; }
  .angebot { padding: 40px 0 72px; }
  .schluss { padding: 80px 0; }
  .karte { padding: 26px; }
  .person .wrap:has(> figure) { grid-template-columns: 1fr; }
  .knopf { padding: 0 28px; }
  .spot-inhalt { padding-top: 32px; padding-bottom: 64px; gap: 20px; }
  .spot-ring { width: 360px; right: -150px; top: -40px; opacity: 0.25; }
  .terminkarte { padding: 20px; }
}
@media (max-width: 480px) {
  :root { --rand: 16px; }
  h1, h2 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
  .marke span { font-size: 17px; }
  .marke img { width: 36px; height: 36px; }
  .kopf .knopf-klein { padding: 0 14px; font-size: 15px; }
  .hero-aktion .knopf { width: 100%; }
  .haken { font-size: 17px; }
}
@media (max-width: 400px) {
  .marke { gap: 10px; }
  .knopf-klein .lang { display: none; }
  .knopf-klein .kurz { display: inline; }
}
