/* ==========================================================================
   Chaoschaotenclan – Stylesheet
   Farben aus dem Logo: Knochenweiß, Tinte, Bandana-Rot, Ohrring-Gold
   ========================================================================== */

/* ===== SCHRIFT (lokal gehostet, kein Google Fonts) ===== */
@font-face {
  font-family: 'Bricolage';
  src: url('../fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2-variations'),
       url('../fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

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

/* ===== TOKENS ===== */
:root {
  --paper:    #f3ede3;
  --paper-2:  #e8dfcf;
  --card:     #fffdf8;
  --ink:      #141110;
  --ink-2:    #3a332c;
  --muted:    #6f655a;
  --red:      #d3261c;
  --red-h:    #e3352a;
  --gold:     #f0b534;
  --blue:     #aab8ff;
  --blurple:  #5865f2;
  --green:    #23a55a;
  --on-dark:  rgba(243, 237, 227, 0.78);

  --line:      2px solid var(--ink);
  --dash:      2px dashed rgba(20, 17, 16, 0.2);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow:    5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --radius:    16px;

  --font: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .07 0 0 0 0 .06 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== BASIS ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper) var(--grain);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ===== BUTTONS ===== */
.btn {
  --bs: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--bs);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--bs); }
.btn:active { transform: translate(2px, 2px);   box-shadow: 1px 1px 0 var(--bs); }
.btn svg { width: 1.3em; height: 1.3em; flex-shrink: 0; }

.btn-red       { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-h); }
.btn-ghost       { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--card); }
.btn-lg    { font-size: 1.125rem; padding: 1.05rem 1.75rem; }
.btn-sm    { font-size: 0.95rem; padding: 0.65rem 1.05rem; box-shadow: 3px 3px 0 var(--bs); }
.btn-block { width: 100%; }

.section-dark .btn,
.cta .btn { --bs: var(--paper); border-color: var(--paper); }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 237, 227, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--line);
  background: #000;
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: rotate(-12deg); }

.brand-name {
  font-weight: 800;
  font-stretch: 82%;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-name span { color: var(--red); }

.nav-links { display: flex; gap: 0.25rem; }

.nav-link {
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-link[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline wavy var(--red) 2px;
  text-underline-offset: 7px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel {
  border-top: var(--line);
  background: var(--paper);
  padding: 0.75rem 0 1.5rem;
}
.nav-panel[hidden] { display: none; }
.nav-panel .container { display: flex; flex-direction: column; }
.nav-panel .btn { margin-top: 1.25rem; }

.nav-panel-link {
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.5rem;
  padding: 0.7rem 0;
  border-bottom: var(--dash);
  text-decoration: none;
}
.nav-panel-link[aria-current="page"] { color: var(--red); }

@media (max-width: 860px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .brand-name { font-size: 1.25rem; }
}
@media (min-width: 861px) {
  .nav-panel { display: none !important; }
}

/* ===== TYPO-BAUSTEINE ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border: var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.display {
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(2.45rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 1.4rem 0 1.5rem;
  text-wrap: balance;
}
.display-sm { font-size: clamp(2.45rem, 6vw, 4.75rem); }

.scribble {
  position: relative;
  display: inline-block;
  color: var(--red);
  white-space: nowrap;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.14em;
  height: 0.26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13C30 4 52 18 82 10s52-6 80 2 30-3 35-5' fill='none' stroke='%23141110' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.marker {
  background: linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 90%, transparent 90%);
  padding-inline: 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.kicker {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}

.title {
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  margin-top: 1.1rem;
  max-width: 40rem;
}

/* Online-Punkt */
.dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
.dot-grey { background: #8a8178; animation: none; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.55); }
  70%  { box-shadow: 0 0 0 0.55rem rgba(35, 165, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0); }
}

.presence {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.98rem;
  color: var(--ink-2);
}
.presence strong { color: var(--ink); font-weight: 800; }
.presence .sep { opacity: 0.4; }
.presence .dot { margin-right: 0.2rem; }

.presence-light { color: var(--on-dark); justify-content: center; }
.presence-light strong { color: var(--paper); }

/* ===== SEKTIONEN ===== */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark .kicker { color: var(--gold); }
.section-dark .lead   { color: var(--on-dark); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ===== HERO ===== */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  margin-top: 2rem;
}

/* Einladungskarte */
.hero-art {
  position: relative;
  padding: 2.75rem 1.5rem 3rem;
}

.invite {
  position: relative;
  background: var(--card);
  border: var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(2.5deg);
  transition: transform 0.35s ease;
}
.hero-art:hover .invite { transform: rotate(0); }

.invite-banner {
  height: 118px;
  border-bottom: var(--line);
  background:
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.13) 0 14px, transparent 14px 28px),
    var(--red);
}

.invite-body { padding: 0 1.5rem 1.5rem; }

.invite-logo {
  width: 96px;
  height: 96px;
  margin-top: -50px;
  border-radius: 28px;
  border: var(--line);
  background: #000;
  box-shadow: 0 0 0 4px var(--card);
}

.invite-kicker {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.invite-name {
  margin-top: 0.2rem;
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.1;
}

.invite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.invite-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }

.invite-btn {
  display: block;
  margin-top: 1.25rem;
  padding: 0.85rem;
  border: var(--line);
  border-radius: 12px;
  background: var(--blurple);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

/* Sticker */
.sticker {
  position: absolute;
  z-index: 2;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1;
  white-space: nowrap;
  border: var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.sticker-round {
  top: 0.25rem;
  left: 0;
  width: 98px;
  height: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border-radius: 50%;
  background: var(--gold);
  text-transform: uppercase;
  transform: rotate(-12deg);
}
.sticker-round small { font-size: 0.8rem; letter-spacing: 0.08em; }
.sticker-round b     { font-size: 1.65rem; }

.sticker-red {
  bottom: 2.4rem;
  left: 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 1.05rem;
  transform: rotate(-7deg);
}

.sticker-paper {
  bottom: 1rem;
  right: 0.25rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--card);
  font-size: 1.05rem;
  transform: rotate(6deg);
}

.hero-art:hover .sticker-round { transform: rotate(-4deg) scale(1.05); }
.hero-art:hover .sticker-red   { transform: rotate(-2deg); }
.hero-art:hover .sticker-paper { transform: rotate(2deg); }

/* ===== LAUFBAND ===== */
.band-wrap {
  overflow: hidden;
  padding-block: 2rem;
  margin-block: -1rem;
}

.band {
  width: 104%;
  margin-left: -2%;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-1.5deg);
}

.band-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.band-track span {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 0;
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.band-track span::after {
  content: "✦";
  margin-inline: 1.4rem;
  font-size: 0.8em;
  color: var(--gold);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== KARTEN ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card p { color: var(--ink-2); font-size: 1rem; }

.feature:nth-child(odd)  { transform: rotate(-0.8deg); }
.feature:nth-child(even) { transform: rotate(0.8deg) translateY(0.6rem); }
.feature:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow-lg); }

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.25rem;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.icon svg { width: 26px; height: 26px; }

.icon-red   { background: var(--red); color: #fff; }
.icon-gold  { background: var(--gold); }
.icon-blue  { background: var(--blue); }
.icon-paper { background: var(--paper-2); }

/* ===== SCHRITTE ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step {
  padding: 1.75rem;
  border: 2px solid rgba(243, 237, 227, 0.85);
  border-radius: var(--radius);
  background: #1e1a17;
}
.step p { color: var(--on-dark); }

.step-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-stretch: 80%;
  font-size: 2rem;
  box-shadow: 3px 3px 0 var(--paper);
}
.step:nth-child(2) .step-num { background: var(--gold); color: var(--ink); }
.step:nth-child(3) .step-num { background: var(--blue); color: var(--ink); }

.step-title {
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.steps-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 3rem;
}

.copy { display: flex; flex-direction: column; gap: 0.45rem; }
.copy-hint { font-size: 0.9rem; color: var(--on-dark); }

.copy-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  border: 2px dashed rgba(243, 237, 227, 0.5);
  border-radius: 999px;
}
.copy-box code { font-family: var(--mono); font-size: 0.95rem; }

.copy-btn {
  padding: 0.5rem 0.95rem;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { background: var(--gold); border-color: var(--gold); }
.copy-btn.done  { background: var(--green); border-color: var(--green); color: #fff; }

/* ===== PINNWAND (Team-Vorschau) ===== */
.board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1.25rem;
  padding: 2.5rem 1.25rem 2rem;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    radial-gradient(rgba(20, 17, 16, 0.12) 1px, transparent 1.5px) 0 0 / 14px 14px,
    var(--paper-2);
}

.polaroid {
  --rot: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  padding: 10px 10px 12px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 12px 20px -10px rgba(20, 17, 16, 0.45);
  text-decoration: none;
  transform: rotate(var(--rot));
  transition: transform 0.2s ease;
}
.polaroid:nth-child(1) { --rot: -4deg; }
.polaroid:nth-child(2) { --rot: 3deg; margin-top: 1.25rem; }
.polaroid:nth-child(3) { --rot: -2deg; }
.polaroid:nth-child(4) { --rot: 4deg; }
.polaroid:nth-child(5) { --rot: -3deg; margin-top: 0.75rem; }
.polaroid:nth-child(6) { --rot: 2deg; }
.polaroid:hover { transform: rotate(0) scale(1.06); z-index: 2; }

/* Klebestreifen */
.polaroid::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 62px;
  height: 20px;
  background: rgba(240, 181, 52, 0.78);
  transform: translateX(-50%) rotate(-4deg);
}

.polaroid-img {
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  overflow: hidden;
  font-weight: 800;
  font-stretch: 80%;
  font-size: 2.6rem;
}
.polaroid-img img { width: 100%; height: 100%; object-fit: cover; }

.polaroid-name {
  margin-top: 0.6rem;
  max-width: 100%;
  font-weight: 800;
  font-stretch: 85%;
  font-size: 0.92rem;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.polaroid-role {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Rollenfarben (Platzhalter-Hintergrund + Badges) */
.role-leitung           { background: var(--red);  color: #fff; }
.role-admin             { background: var(--ink);  color: var(--paper); }
.role-moderator         { background: var(--gold); color: var(--ink); }
.role-creator           { background: var(--blue); color: var(--ink); }
.role-community-manager { background: #9ad1a8;     color: var(--ink); }
.role-mitglied          { background: var(--paper-2); color: var(--ink); }

/* ===== ZAHLEN ===== */
.stats {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-block: var(--line);
  background: var(--red);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat + .stat { border-left: 2px dashed rgba(255, 255, 255, 0.35); }

.stat-val {
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-lbl {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.92;
}

/* ===== FAQ ===== */
.split-faq {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}
.faq-head { position: sticky; top: 110px; }

.faq details {
  margin-bottom: 1rem;
  background: var(--card);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: var(--line);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--paper);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold); }

.faq details p { padding: 0 1.3rem 1.25rem; color: var(--ink-2); }
.faq a { color: var(--red); font-weight: 700; }

/* ===== CTA ===== */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  border: var(--line);
  border-radius: 28px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  box-shadow: 10px 10px 0 var(--red);
}

.cta::before,
.cta::after {
  content: "✦";
  position: absolute;
  line-height: 1;
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
}
.cta::before { top: -1.5rem; left: 1.5rem; font-size: 9rem; transform: rotate(-12deg); }
.cta::after  { bottom: -2rem; right: 2rem; font-size: 12rem; transform: rotate(18deg); }

.cta-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  transform: rotate(-6deg);
}

.cta-title {
  max-width: 16ch;
  margin-inline: auto;
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(2.3rem, 5.5vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-text {
  max-width: 36rem;
  margin: 1.1rem auto 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--on-dark);
}

/* ===== UNTERSEITEN-KOPF ===== */
.phero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.phero .display { margin-bottom: 1rem; }

/* ===== GESCHICHTE ===== */
.split-story { align-items: start; }

.pull {
  margin: 0.25rem 0 1.25rem;
  padding-left: 1.1rem;
  border-left: 6px solid var(--red);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.timeline {
  position: relative;
  list-style: none;
  padding: 2rem 1.75rem 2rem 4rem;
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  bottom: 2.5rem;
  left: calc(2.375rem - 1px);
  width: 2px;
  background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 11px);
}

.timeline li { position: relative; padding-bottom: 1.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: -2.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border: var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.timeline li:first-child::before { background: var(--gold); }
.timeline li:last-child::before  { background: var(--red); }
.timeline p { color: var(--ink-2); }

.tl-date {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tl-title {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.15;
}

/* ===== WERTE ===== */
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.value {
  padding: 1.75rem 1.6rem;
  border: 2px solid var(--paper);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--paper);
  transition: transform 0.2s ease;
}
.value:nth-child(odd)  { transform: rotate(-1deg); }
.value:nth-child(even) { transform: rotate(1deg); }
.value:hover { transform: rotate(0) translateY(-4px); }
.value p { font-size: 1rem; }

.value-red   { background: var(--red); color: #fff; }
.value-gold  { background: var(--gold); }
.value-blue  { background: var(--blue); }
.value-paper { background: var(--paper); }

.value-num {
  font-weight: 800;
  font-stretch: 75%;
  font-size: 3rem;
  line-height: 1;
  opacity: 0.4;
}

.value-title {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 82%;
  line-height: 1.1;
}

/* ===== STECKBRIEF ===== */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.facts div { padding: 1.5rem 1.6rem; background: var(--card); }

.facts dt {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin-top: 0.3rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.15;
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.75rem;
}

.member {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.member:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: var(--shadow-lg); }

.member-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: var(--line);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }

.member-initials {
  font-weight: 800;
  font-stretch: 75%;
  font-size: 6rem;
  line-height: 1;
}

.member-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.35rem 1.4rem 1.5rem;
}

.role-badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border: var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-name {
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.member-bio { color: var(--ink-2); }
.member-bio-empty { color: var(--muted); font-style: italic; }

.member-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.member-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.member-links a:hover { background: var(--gold); transform: translateY(-2px); }
.member-links svg { width: 15px; height: 15px; }

.member-join {
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2rem 1.6rem;
  border-style: dashed;
  background: var(--paper-2);
  box-shadow: none;
  text-decoration: none;
}
.member-join:hover { box-shadow: var(--shadow); }

.member-join-plus {
  font-weight: 800;
  font-stretch: 75%;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--red);
}
.member-join-title {
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.1;
}
.member-join-text { color: var(--ink-2); }
.member-join .btn { margin-top: 0.5rem; }

/* ===== RECHTLICHES ===== */
.legal { max-width: 860px; }

.legal-card {
  margin-bottom: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}

.legal-card h2 {
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: var(--dash);
  font-size: 1.3rem;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.2;
}

.legal-card h3 {
  margin: 1.2rem 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.legal-card p,
.legal-card address,
.legal-card li {
  color: var(--ink-2);
  font-style: normal;
  line-height: 1.75;
}
.legal-card p + p { margin-top: 0.75rem; }
.legal-card ul { margin: 0.6rem 0; padding-left: 1.25rem; }
.legal-card li { margin-bottom: 0.25rem; }
.legal-card a { color: var(--red); font-weight: 600; overflow-wrap: anywhere; }
.legal-card strong { color: var(--ink); }

.legal-placeholder {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1.5px dashed #c99a12;
  border-radius: 6px;
  background: #fff3cd;
  color: #7a5a00;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.toc { padding-left: 1.4rem; }
.toc li { padding: 0.2rem 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }

.legal-stand {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== FOOTER ===== */
.footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: var(--line);
  background: var(--paper-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .brand { width: fit-content; }
.footer-brand p { max-width: 28rem; margin-top: 1rem; color: var(--ink-2); }

.footer-head {
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  width: fit-content;
  font-weight: 600;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--red);
  text-decoration: underline wavy;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: var(--dash);
  font-size: 0.88rem;
  color: var(--muted);
}

/* ===== EINBLENDEN BEIM SCROLLEN ===== */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease, translate 0.6s ease;
}
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .feature-grid,
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art  { width: 100%; max-width: 440px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .split,
  .split-faq { grid-template-columns: 1fr; }
  .faq-head  { position: static; }
  .steps     { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat + .stat { border-left: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .feature-grid,
  .values { grid-template-columns: 1fr; }
  .feature:nth-child(even) { transform: rotate(0.8deg); }
  .hero-actions .btn { width: 100%; }
  .steps-cta .btn { width: 100%; }
  .polaroid { width: 132px; }
  .polaroid-img { width: 112px; height: 112px; }
  .cta { box-shadow: 6px 6px 0 var(--red); }
}

@media (max-width: 380px) {
  .hero-art { padding-inline: 0.5rem; }
  .sticker-round { width: 84px; height: 84px; }
  .sticker-round b { font-size: 1.4rem; }
  .copy-box { gap: 0.5rem; padding-left: 0.8rem; }
  .copy-box code { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; translate: none; }
}
