@layer reset, base, components, utilities, overrides;

@layer reset {
  * { box-sizing: border-box; }
  /* overflow-x: hidden auf html+body verhindert seitliches Wackeln beim
     initialen Render: .reveal-left/.reveal-right starten bei translateX(±40px)
     und ragen kurzzeitig ueber den Viewport hinaus, bis die Animation laeuft. */
  html { scroll-behavior: smooth; overflow-x: hidden; }
  body { margin: 0; overflow-x: hidden; }
  p { margin: 0 0 1em; }
  a { text-decoration: none; }
  ul { list-style: none; padding: 0; margin: 0; }
}

@layer base {
  :root {
    --paper: #F2E8D5;
    --paper-dark: #E8DCC3;
    --ink: #2A1810;
    --ink-soft: #3a2014;   /* von #4a2d1e dunkler - bessere Lesbarkeit der filigranen Cormorant */
    --muted: #5a3a26;      /* von #6b4a36 dunkler - gleicher Schritt, Hierarchie bleibt */
    --hair: #C9B896;
    --brand: #7A2618;
    --brand-deep: #5A1810;
    --gold: #A07838;
    --olive: #4A4328;

    --ff-display: 'DM Serif Display', 'Garamond', serif;
    --ff-body: 'Cormorant Garamond', 'Georgia', serif;
    --ff-ui: 'Oswald', sans-serif;
    --ff-logo: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  }

  body {
    background: var(--paper);
    background-image:
      radial-gradient(ellipse at top, rgba(255,230,180,.3) 0%, transparent 50%),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence baseFrequency='.92' numOctaves='3' seed='2'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .35  0 0 0 0 .18  0 0 0 .04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    color: var(--ink);
    font-family: var(--ff-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 {
    font-family: var(--ff-display);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1.15;
    margin: 0;
  }
  h1 { font-size: clamp(3rem, 7vw, 6rem); }
  h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
  h3 { font-size: 1.6rem; }

  a { color: var(--brand); transition: color .2s; }
  a:hover { color: var(--brand-deep); }

  /* Skip-Link: off-screen, erscheint nur bei Tastatur-Fokus (WCAG 2.4.1) */
  .skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--ink);
    color: var(--paper);
    padding: .8rem 1.4rem;
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .82rem;
  }
  .skip-link:focus {
    left: .5rem;
    top: .5rem;
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
  main:focus { outline: none; }
}

@layer components {
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
  @media (max-width: 640px) { .wrap { padding: 0 1.25rem; } }

  /* Vintage ornament */
  .ornament { display: flex; align-items: center; justify-content: center; gap: 1.4rem; color: var(--gold); margin: 0 auto; max-width: 340px; }
  .ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to var(--dir, right), transparent, var(--gold)); }
  .ornament::after { --dir: left; }
  .ornament-star { width: 14px; height: 14px; border: 1px solid var(--gold); transform: rotate(45deg); position: relative; }
  .ornament-star::after { content: ""; position: absolute; inset: 3px; background: var(--gold); }

  /* Nav */
  .nav { background: var(--ink); color: var(--paper); border-bottom: 3px double var(--gold); position: sticky; top: 0; z-index: 50; }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
  .nav-logo { display: flex; align-items: center; gap: .8rem; font-family: var(--ff-display); color: var(--paper); font-size: 1.15rem; }
  .nav-logo svg { height: 42px; width: 42px; color: var(--gold); }
  .nav-links { display: flex; gap: 2rem; font-family: var(--ff-ui); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
  .nav-links a { color: var(--paper-dark); }
  .nav-links a:hover { color: var(--gold); }
  .nav-cta { font-family: var(--ff-ui); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; padding: .55rem 1.2rem; border: 1px solid var(--gold); color: var(--gold); }
  .nav-cta:hover { background: var(--gold); color: var(--ink); }
  .nav-toggle { display: none; background: transparent; border: 1px solid var(--gold); color: var(--gold); cursor: pointer; padding: .55rem .8rem; align-items: center; justify-content: center; }
  .nav-toggle:hover { background: var(--gold); color: var(--ink); }
  .nav-toggle-bars { position: relative; display: block; width: 22px; height: 2px; background: currentColor; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  @media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--ink);
      border-bottom: 3px double var(--gold);
      padding: 1.4rem 1.5rem;
      flex-direction: column;
      gap: 1.2rem;
      z-index: 60;
    }
    .nav-links[data-open] { display: flex; }
    .nav-links a { padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .95rem; letter-spacing: .18em; }
    .nav-links a:last-child { border-bottom: none; }
  }

  /* Hero */
  .hero { padding: 7rem 0 6rem; text-align: center; position: relative; }
  .hero-logo-big { display: inline-block; width: 528px; height: 528px; margin-bottom: 2.5rem; color: var(--brand); filter: drop-shadow(0 2px 0 rgba(0,0,0,.08)); }
  .hero h1 { text-align: center; }
  .hero h1 em { font-family: var(--ff-display); font-style: italic; color: var(--brand); }
  .hero-sub { max-width: 600px; margin: 2rem auto 0; font-size: 1.25rem; color: var(--ink-soft); font-style: italic; }
  .hero-founded { margin-top: 2.5rem; font-family: var(--ff-ui); font-size: .82rem; letter-spacing: .36em; text-transform: uppercase; color: var(--muted); }

  /* Section */
  section { padding: 3.5rem 0; position: relative; }
  .section-label { font-family: var(--ff-ui); font-size: .85rem; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1rem; text-align: center; }
  .section-head { text-align: center; margin-bottom: 2rem; }
  .section-head h2 { margin-bottom: 1.5rem; }
  .lead { max-width: 680px; margin: 0 auto; font-size: 1.25rem; color: var(--ink-soft); }

  /* Leitbild */
  .leitbild-wrap {
    background:
      linear-gradient(rgba(242,232,213,.92), rgba(242,232,213,.92)),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><filter id='n'><feTurbulence baseFrequency='.75' numOctaves='2'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .25  0 0 0 0 .12  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
  }
  .values-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0; margin-top: 2rem; background: transparent; }
  .values-grid--single { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .values-grid .divider { background: var(--hair); }
  @media (max-width: 820px) { .values-grid { grid-template-columns: 1fr; } .values-grid .divider { display: none; } }
  .values-col { padding: 0 2.5rem; }
  @media (max-width: 820px) { .values-col { padding: 2rem 0; border-bottom: 1px solid var(--hair); } .values-col:last-child { border-bottom: none; } }
  .values-col h3 { text-align: center; margin-bottom: 2rem; font-size: 1.8rem; color: var(--brand); }
  /* Listen kraeftiger (500) damit die filigrane Cormorant gut lesbar ist;
     .soft (rechte Liste "Was wir nicht wollen") bleibt -muted-Farbe, aber
     ohne italic - Lesbarkeit > Stil-Akzent. */
  .values-col li { padding: 1rem 0; text-align: center; font-size: 1.12rem; font-weight: 500; border-bottom: 1px dotted var(--hair); }
  .values-col li:last-child { border-bottom: none; }
  .values-col.soft li { color: var(--muted); }

  /* Vorstand */
  .board { background: var(--paper-dark); padding: 4rem 0; }
  .board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
  @media (max-width: 900px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .board-grid { grid-template-columns: 1fr; } }
  .board-card { text-align: center; position: relative; padding: 2rem 1rem; background: var(--paper); border: 1px solid var(--hair); cursor: help; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .board-card:hover,
  .board-card:focus-within { transform: translateY(-5px); box-shadow: 0 18px 42px -14px rgba(90,24,16,.3); border-color: var(--gold); }
  .board-frame { width: 140px; height: 190px; margin: 0 auto 1.5rem; border: 2px solid var(--brand); padding: 6px; position: relative; }
  .board-frame::before { content: ""; position: absolute; inset: -6px; border: 1px solid var(--gold); }
  .board-frame-inner { width: 100%; height: 100%; background: linear-gradient(135deg, var(--paper-dark), var(--hair)); display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-style: italic; font-size: 4rem; color: var(--muted); overflow: hidden; position: relative; }
  /* Vorstands-Portraits: Huerde gegen beilaeufiges Speichern (Rechtsklick/Ziehen/
     iOS-Long-Press) + Ausblenden beim Reinzoomen. Reiner Deterrent - DevTools und
     Screenshot bleiben technisch moeglich, das laesst sich clientseitig nicht verhindern. */
  .board-frame-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
  .board-zoom-note { display: none; }
  body.board-zoom-hide .board-frame-inner img { visibility: hidden; }
  body.board-zoom-hide .board-zoom-note { display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; font-family: var(--ff-ui); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: center; padding: .4rem; line-height: 1.4; }
  .board-name { font-family: var(--ff-display); font-size: 1.3rem; margin-bottom: .3rem; }
  .board-role { font-family: var(--ff-ui); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
  .board-tooltip { position: absolute; left: 50%; top: -1rem; transform: translateX(-50%) translateY(-100%); background: var(--ink); color: var(--paper); padding: 1rem 1.2rem; font-family: var(--ff-body); font-size: .95rem; font-style: italic; line-height: 1.5; max-width: 260px; width: max-content; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 10; }
  .board-tooltip::before { content: "„"; font-size: 3rem; font-family: var(--ff-display); color: var(--gold); position: absolute; top: -.5rem; left: .6rem; line-height: 1; }
  .board-card:hover .board-tooltip,
  .board-card:focus-within .board-tooltip { opacity: 1; transform: translateX(-50%) translateY(-115%); }
  .board-card:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
  .board-hint { margin-top: 1.8rem; text-align: center; color: var(--muted); font-size: .95rem; }

  /* Training */
  .training-panel { max-width: 920px; margin: 2.4rem auto 0; background: var(--paper); border: 1px solid var(--hair); padding: 3rem; position: relative; }
  .training-panel::before, .training-panel::after { content: ""; position: absolute; width: 24px; height: 24px; border: 1px solid var(--gold); }
  .training-panel::before { top: -6px; left: -6px; border-right: none; border-bottom: none; }
  .training-panel::after { bottom: -6px; right: -6px; border-left: none; border-top: none; }
  .training-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
  @media (max-width: 700px) { .training-split { grid-template-columns: 1fr; gap: 2rem; } }
  .training-meta { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.5rem; font-size: 1rem; }
  .training-meta dt { font-family: var(--ff-ui); color: var(--muted); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; padding-top: .3rem; }
  .training-meta dd { margin: 0; font-family: var(--ff-display); font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; }
  @media (max-width: 640px) { .training-meta { grid-template-columns: 1fr; gap: .25rem 0; } .training-meta dt { padding-top: .8rem; } }
  .training-invite { margin-top: 1.5rem; color: var(--muted); }

  /* Partner-Panel (Saffo auf /llz-spandau, BDS auf /bds) */
  .partner-panel { padding: 2.5rem 3rem; }
  .partner-split { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: center; }
  .partner-split-narrow { grid-template-columns: 160px 1fr; }
  .partner-logo { display: block; line-height: 0; transition: opacity .2s; }
  .partner-logo:hover { opacity: .82; }
  .partner-logo img { display: block; width: 100%; height: auto; }
  .partner-body p { margin: 0; font-size: 1.1rem; color: var(--ink); line-height: 1.7; }
  .partner-body strong { font-weight: 600; color: var(--brand); }
  @media (max-width: 700px) {
    .partner-split,
    .partner-split-narrow { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .partner-logo img { max-width: 240px; margin: 0 auto; }
    .partner-split-narrow .partner-logo img { max-width: 160px; }
    .partner-panel { padding: 2rem 1.5rem; }
  }

  /* Reasons-Grid (Drei Gruende auf /bds) */
  .reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 2rem; }
  .reason-col { padding: 0 1.5rem; text-align: center; }
  .reason-col h3 { font-size: 1.8rem; color: var(--brand); margin-bottom: 1rem; }
  .reason-col p { font-size: 1.05rem; color: var(--ink); line-height: 1.7; }
  .reason-col a { color: var(--brand); text-decoration: underline; }
  @media (max-width: 820px) {
    .reasons-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
    .reason-col { padding: 1.5rem 0; border-bottom: 1px dotted var(--hair); }
    .reason-col:last-child { border-bottom: none; }
  }

  /* FAQ */
  .faq { max-width: 780px; margin: 2.4rem auto 0; }
  details { padding: 1.2rem 0; border-top: 1px dotted var(--hair); }
  details:last-of-type { border-bottom: 1px dotted var(--hair); }
  summary { font-family: var(--ff-display); font-size: 1.4rem; color: var(--brand); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "❋"; color: var(--gold); font-size: 1.3rem; transition: transform .4s; }
  details[open] summary::after { transform: rotate(180deg); }
  details p { margin-top: 1.2rem; color: var(--ink-soft); }

  /* Guestbook */
  .gb-list { max-width: 780px; margin: 0 auto; }
  .gb-entry { padding: 1.3rem 0; border-top: 1px dotted var(--hair); }
  .gb-entry:last-child { border-bottom: 1px dotted var(--hair); }
  .gb-meta { font-family: var(--ff-ui); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; }
  .gb-name { color: var(--brand); font-weight: 500; }
  .gb-sep { color: var(--hair); }
  .gb-date { color: var(--muted); }
  .gb-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.1rem; line-height: 1.7; color: var(--ink); margin: 0; font-style: italic; }
  .gb-reply { margin: 1.5rem 0 0 2rem; padding: 1.2rem 1.4rem; background: var(--paper-dark); border-left: 3px solid var(--gold); }
  .gb-reply-label { font-family: var(--ff-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
  .gb-reply-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.6; color: var(--ink); margin: 0; }
  .gb-reply-admin { margin: 1.2rem 0 1rem; }
  .gb-reply-edit { margin-top: .8rem; }
  .gb-reply-edit summary { cursor: pointer; font-family: var(--ff-ui); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .4rem 0; }
  .gb-reply-edit summary:hover { color: var(--brand); }
  .gb-reply-form { margin-top: .6rem; }
  .gb-reply-form textarea { width: 100%; padding: .7rem .9rem; background: var(--paper); border: 1px solid var(--hair); font-family: var(--ff-body); font-size: 1rem; line-height: 1.5; color: var(--ink); resize: vertical; }
  .gb-reply-form-actions { margin-top: .6rem; }
  .gb-reply-form-delete { margin-top: .6rem; }
  .gb-empty { max-width: 680px; margin: 0 auto; text-align: center; padding: 2rem 1.5rem; border: 1px dashed var(--hair); }
  .gb-empty p { margin: 0; font-style: italic; color: var(--muted); font-size: 1.1rem; }

  /* Guestbook Form */
  .gb-form { max-width: 680px; margin: 0 auto; }
  .gb-field { margin-bottom: 1.6rem; }
  .gb-field > label { display: block; font-family: var(--ff-ui); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; font-weight: 500; }
  .gb-field input[type="text"],
  .gb-field input[type="email"],
  .gb-field textarea { width: 100%; padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--hair); border-radius: 0; font-family: var(--ff-body); font-size: 1.1rem; line-height: 1.5; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
  .gb-field input:focus,
  .gb-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
  .gb-field textarea { resize: vertical; min-height: 8em; font-family: var(--ff-body); }
  .gb-field .gb-hint { font-family: var(--ff-body); font-size: .85rem; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 400; }
  .gb-field-note { font-family: var(--ff-body); font-size: .88rem; color: var(--ink-soft); margin: .5rem 0 0; line-height: 1.5; }
  .gb-field-checkbox { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
  .gb-field-checkbox input[type="checkbox"] { margin-top: .4rem; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--brand); }
  .gb-field-checkbox label { display: inline; text-transform: none; letter-spacing: 0; font-family: var(--ff-body); font-size: 1rem; color: var(--ink-soft); margin: 0; line-height: 1.5; font-weight: 400; }
  .gb-err { color: var(--brand); font-style: italic; font-size: .95rem; margin: .5rem 0 0; }
  .gb-submit { margin-top: 1rem; border: none; }
  .gb-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .gb-privacy-hint { font-family: var(--ff-body); font-size: .92rem; color: var(--muted); margin: 1.2rem 0 0; line-height: 1.5; }
  .gb-privacy-hint a { color: var(--brand); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
  .gb-privacy-hint a:hover { text-decoration-style: solid; color: var(--brand-deep); }
  .kontakt-doi-hinweis { background: var(--paper-dark); border-left: 3px solid var(--gold); padding: 1rem 1.2rem; margin: 1.5rem 0 .5rem; font-family: var(--ff-body); font-size: .95rem; color: var(--ink-soft); line-height: 1.55; }
  .kontakt-doi-hinweis strong { display: block; margin-bottom: .4rem; color: var(--ink); }

  /* Flash messages (auf /gaestebuch, /kontakt, /login, /account/setup etc.) */
  .flash-stack { max-width: 680px; margin: 0 auto 3rem; display: flex; flex-direction: column; gap: .8rem; }
  .flash { padding: 1.25rem 1.75rem; border-left: 5px solid var(--gold); background: var(--paper-dark); font-family: var(--ff-ui); font-weight: 500; letter-spacing: .02em; color: var(--ink); font-size: 1.25rem; line-height: 1.5; }
  .flash-success { border-left-color: var(--olive); }
  .flash-error { border-left-color: var(--brand); color: var(--brand-deep); }

  /* Confirm-Page (/kontakt/bestaetigen/<token>) kompakt: Button soll auf
     Mobile auch ohne Scroll sichtbar sein. Section-Padding stark reduziert,
     Section-Head-Abstand klein, Training-Panel-Padding kompakter. */
  .kontakt-confirm { padding: 2.5rem 0 3rem; }
  .kontakt-confirm .section-head { margin-bottom: 1.5rem; }
  .kontakt-confirm .training-panel { padding: 1.8rem 2rem; }
  .kontakt-confirm .training-panel p { margin: .6rem 0; }
  .kontakt-confirm .training-meta { margin: 1rem 0; }
  .kontakt-confirm form { margin: 1.2rem 0 .6rem; }
  .kontakt-confirm .cta-btn { margin-top: 0; }

  /* Admin-Moderation: Tabs + Cards + Buttons */
  .admin-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--hair); margin: 0 0 3rem; flex-wrap: wrap; }
  .admin-tab { padding: .9rem 1.5rem; font-family: var(--ff-ui); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
  .admin-tab:hover { color: var(--ink); }
  .admin-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
  .admin-tab-count { display: inline-block; margin-left: .5rem; padding: .15rem .65rem; background: var(--paper-dark); color: var(--ink); border: 1px solid var(--hair); font-size: .72rem; letter-spacing: .05em; border-radius: 999px; }
  .admin-tab.active .admin-tab-count { background: var(--brand); color: var(--paper); border-color: var(--brand); }

  .admin-entries { display: flex; flex-direction: column; gap: 1.5rem; max-width: 820px; margin: 0 auto; }
  .admin-entry { padding: 1.6rem 1.8rem; background: var(--paper); border: 1px solid var(--hair); }
  .admin-entry-meta { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; font-family: var(--ff-ui); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
  .admin-entry-name { color: var(--brand); font-weight: 500; }
  .admin-entry-email { color: var(--muted); text-transform: none; letter-spacing: 0; font-style: italic; font-family: var(--ff-body); margin-left: auto; }
  .admin-entry-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.6; color: var(--ink); margin: 0 0 1.2rem; }
  .admin-entry-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
  .admin-action { margin: 0; }
  .admin-btn { font-family: var(--ff-ui); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; padding: .6rem 1.2rem; border: 1px solid; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
  .admin-btn-approve { background: var(--brand); color: var(--paper); border-color: var(--brand); }
  .admin-btn-approve:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
  .admin-btn-delete { background: transparent; color: var(--muted); border-color: var(--hair); }
  .admin-btn-delete:hover { color: var(--brand); border-color: var(--brand); }
  .admin-btn-view { background: transparent; color: var(--ink); border-color: var(--hair); }
  .admin-btn-view:hover { background: var(--paper-dark); border-color: var(--ink-soft); }

  /* Dokumenten-Liste: Ein-Zeilen-Tabelle (kompakter als .admin-entry)
     Spalten Desktop: Titel | Kategorie | Datum | Größe (| Aktionen im Admin). */
  .doc-list { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; border-top: 1px solid var(--hair); }
  .doc-list > li { border-bottom: 1px solid var(--hair); }
  .doc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px 78px; column-gap: 1.4rem; align-items: center; padding: .85rem 1rem; color: inherit; text-decoration: none; transition: background .15s, color .15s; }
  .doc-row:hover { background: var(--paper-dark); }
  .doc-row-static { cursor: default; }
  .doc-row-static:hover { background: transparent; }
  .doc-list-admin .doc-row { grid-template-columns: minmax(0, 1fr) auto 110px 78px auto; }
  .doc-title { font-family: var(--ff-display); font-size: 1.05rem; color: var(--brand); overflow-wrap: anywhere; }
  .doc-row:hover .doc-title { color: var(--brand-deep); }
  .doc-cat { font-family: var(--ff-ui); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: .25rem .6rem; border: 1px solid var(--hair); border-radius: 999px; background: var(--paper); white-space: nowrap; }
  .doc-date { font-family: var(--ff-ui); font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); text-align: right; white-space: nowrap; }
  .doc-date-missing { color: var(--brand); font-style: italic; letter-spacing: 0; font-size: .76rem; text-transform: none; }
  .doc-size { font-family: var(--ff-ui); font-size: .76rem; letter-spacing: .04em; color: var(--muted); text-align: right; white-space: nowrap; }
  .doc-actions { display: flex; gap: .5rem; align-items: center; justify-self: end; }
  .doc-actions .admin-btn { font-size: .68rem; padding: .4rem .8rem; letter-spacing: .14em; }
  .doc-actions form { margin: 0; }

  /* Scrollable Tabs: horizontaler Scroll mit Snap, primaer fuer Mobile gedacht,
     auf Desktop verhaelt es sich wie .admin-tabs (flex-wrap), weil
     scroll-snap nur greift wenn overflow tatsaechlich auftritt. */
  .admin-tabs-scroll { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .admin-tabs-scroll .admin-tab { flex-shrink: 0; scroll-snap-align: start; }

  /* Adminbereich (sticky-freie Sub-Bar unter Hauptnav) */
  .admin-bar { background: var(--ink); color: var(--paper); padding: .9rem 0; border-bottom: 1px solid var(--gold); }
  .admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
  .admin-subnav { display: flex; align-items: center; gap: 1.8rem; font-family: var(--ff-ui); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; }
  .admin-subnav-label { color: var(--gold); font-weight: 500; }
  .admin-subnav a { color: var(--paper-dark); }
  .admin-subnav a:hover,
  .admin-subnav a[aria-current="page"] { color: var(--gold); }
  .admin-logout { margin: 0; }
  .admin-logout-btn { background: transparent; border: 1px solid var(--paper-dark); color: var(--paper-dark); font-family: var(--ff-ui); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; padding: .5rem 1.1rem; cursor: pointer; transition: border-color .2s, color .2s; }
  .admin-logout-btn:hover { border-color: var(--gold); color: var(--gold); }

  /* CTA Gästebuch */
  .cta { background: var(--ink); color: var(--paper); padding: 4rem 0; text-align: center; position: relative; }
  .cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
  .cta h2 { color: var(--paper); }
  .cta-tagline { font-family: var(--ff-display); font-size: 1.5rem; font-style: italic; color: var(--paper); margin-top: .5rem; }
  .cta-body { max-width: 640px; margin: 2rem auto 0; color: var(--paper-dark); font-size: 1.2rem; }
  .cta-note { margin-top: 1.5rem; font-family: var(--ff-ui); font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
  .cta-btn { display: inline-block; margin-top: 1.5rem; padding: 1.1rem 2.5rem; font-family: var(--ff-ui); font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; color: var(--paper); background: var(--ink); border: 1px solid var(--gold); cursor: pointer; }
  .cta-btn:hover { background: var(--gold); color: var(--ink); }
  .cta-btn:disabled,
  .cta-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
  .cta-btn:disabled:hover,
  .cta-btn[aria-disabled="true"]:hover { background: var(--ink); color: var(--paper); }

  /* Footer */
  footer { background: var(--ink); color: var(--paper-dark); padding: 2.8rem 0 1.6rem; border-top: 3px double var(--gold); }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 1.8rem; }
  @media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
  .footer-brand { display: flex; align-items: center; gap: .8rem; font-family: var(--ff-display); font-size: 1.1rem; color: var(--paper); margin-bottom: 1rem; }
  .footer-brand svg { height: 42px; width: 42px; color: var(--gold); }
  .footer-brand-desc { max-width: 340px; color: var(--paper-dark); font-size: .95rem; }
  .footer-brand-desc a { color: var(--gold); }
  .footer-brand-desc a:hover { color: var(--paper); }
  .footer-col h4 { font-family: var(--ff-ui); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
  .footer-col li { margin: .5rem 0; }
  .footer-col a { color: var(--paper-dark); font-size: .95rem; }
  .footer-col a:hover { color: var(--gold); }
  .footer-bottom { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); padding-top: 1.4rem; border-top: 1px solid rgba(201,184,150,.2); }
  .tippfehler-note { font-style: italic; opacity: .8; max-width: 480px; }

  /* ============================================================
     Mobile-Tweaks ≤640px (iPhone-Pro-Max-Klasse: 430px)
     Behebt Header-Abbrueche im Mitgliederbereich + Header-Quetsch
     in der Hauptnav, Lesbarkeit der Listen-Eintraege, iOS-Auto-Zoom
     beim Form-Focus, und macht die Termin-Tabelle 430px-tauglich.
     ============================================================ */
  @media (max-width: 640px) {
    /* Hauptnav: Logo + Wortmarke kompakter, sonst quetscht sich „Mein Bereich" */
    .nav-inner { gap: .8rem; padding: .8rem 0; }
    .nav-logo { gap: .55rem; font-size: .92rem; }
    .nav-logo svg { height: 32px; width: 32px; }
    .nav-cta { font-size: .68rem; letter-spacing: .18em; padding: .5rem .9rem; }

    /* Hero: Logo + Sub-Text duerfen nicht den ganzen Bildschirm fressen */
    .hero { padding: 4rem 0 3rem; }
    /* Logo skaliert mit Viewport: 80vw, gedeckelt bei 400px.
       iPhone Pro Max (430px): ~344px. */
    .hero-logo-big { width: min(80vw, 400px); height: min(80vw, 400px); margin-bottom: 1.8rem; }
    .hero-sub { font-size: 1.1rem; max-width: 95vw; }
    .hero-founded { font-size: .72rem; letter-spacing: .28em; }

    /* Flash-Messages: auf Mobile etwas kompakter, bleibt aber deutlich groesser
       als Body-Text - damit der DOI-Success-Hinweis nach Kontaktformular nicht
       neben dem (jetzt wieder leeren) Form-Bereich untergeht. */
    .flash { font-size: 1.1rem; padding: 1.1rem 1.4rem; border-left-width: 4px; }

    /* Mitgliederbereich-Subnav: 4 Links + Label + Logout passen nicht
       in eine Zeile. Wrap erlauben, Logout darf umbrechen. */
    .admin-bar-inner { gap: .8rem 1.2rem; }
    .admin-subnav { font-size: .7rem; letter-spacing: .14em; gap: .9rem 1.2rem; flex-wrap: wrap; }
    .admin-subnav-label { width: 100%; font-size: .68rem; }
    .admin-logout-btn { font-size: .68rem; padding: .45rem .9rem; letter-spacing: .14em; }

    /* Listen-Eintraege (Mitteilungen, Dokumente):
       lange Titel/Datei-Namen muessen brechen, Meta-Zeile lesbar bleiben. */
    .admin-entry { padding: 1.2rem 1.2rem; }
    .admin-entry-meta { font-size: .72rem; letter-spacing: .14em; gap: .5rem .9rem; }
    .admin-entry-name {
      word-break: break-word;
      overflow-wrap: anywhere;
      hyphens: auto;
      font-size: .92rem;
    }
    .admin-entry-email { margin-left: 0; font-size: .9rem; }
    .admin-entry-body { font-size: 1rem; }

    /* Doc-Liste Mobile: 2 Zeilen via grid-template-areas.
       Zeile 1: Titel ueber volle Breite.
       Zeile 2: Kategorie | Datum | Groesse nebeneinander. */
    .doc-row {
      grid-template-columns: auto auto 1fr;
      grid-template-areas:
        "title title title"
        "cat   date  size";
      column-gap: .8rem;
      row-gap: .35rem;
      padding: .85rem .9rem;
    }
    .doc-title { grid-area: title; font-size: 1rem; }
    .doc-cat { grid-area: cat; justify-self: start; font-size: .62rem; padding: .18rem .5rem; }
    .doc-date { grid-area: date; text-align: left; font-size: .78rem; }
    .doc-size { grid-area: size; text-align: right; font-size: .76rem; }
    /* Admin-Liste Mobile: zusaetzlich Aktionen-Zeile unter der Meta-Zeile */
    .doc-list-admin .doc-row {
      grid-template-areas:
        "title   title  title"
        "cat     date   size"
        "actions actions actions";
    }
    .doc-actions { grid-area: actions; justify-self: stretch; flex-wrap: wrap; margin-top: .4rem; }

    /* Tab-Leiste Mobile: scrollbar als ScrollContainer.
       Padding nach unten schafft Platz, falls Scrollbar sichtbar wird. */
    .admin-tabs-scroll { padding-bottom: .35rem; margin-bottom: 2rem; }
    .admin-tabs-scroll .admin-tab { padding: .75rem 1.1rem; font-size: .74rem; letter-spacing: .16em; }
    .admin-tabs-scroll .admin-tab-count { font-size: .66rem; padding: .12rem .5rem; margin-left: .35rem; }

    /* Tab-Leiste Mobile: scrollbar als ScrollContainer.
       Padding nach unten schafft Platz, falls Scrollbar sichtbar wird. */
    .admin-tabs-scroll { padding-bottom: .35rem; margin-bottom: 2rem; }
    .admin-tabs-scroll .admin-tab { padding: .75rem 1.1rem; font-size: .74rem; letter-spacing: .16em; }
    .admin-tabs-scroll .admin-tab-count { font-size: .66rem; padding: .12rem .5rem; margin-left: .35rem; }

    /* Form-Inputs: iOS Safari zoomt automatisch in Form-Felder rein,
       wenn font-size < 16px (User-Quirk). 16px = kein Auto-Zoom-Sprung. */
    .gb-field input[type="text"],
    .gb-field input[type="email"],
    .gb-field input[type="password"],
    .gb-field textarea {
      font-size: 16px;
      padding: .8rem .9rem;
    }

    /* Termin-Tabelle: 5 Spalten auf 430px ist nicht machbar, aber wir
       halten den horizontalen Scroll (overflow-x ist im Template gesetzt)
       und machen Schrift + Padding kompakter, damit moeglichst viel
       gleichzeitig sichtbar ist. */
    .event-table { font-size: .82rem; }
    .event-table th,
    .event-table td { padding: .45rem .4rem !important; }
    .event-table th { white-space: normal; font-size: .72rem; line-height: 1.25; }

    /* Footer: 2 Spalten auf 430px sind enger als 215px je Spalte und
       brechen .footer-brand-desc (340px max). Eine Spalte. */
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }

    /* Section-Padding auf Mobile nochmals enger als Desktop (Desktop
       seit Session 49 schon auf 3.5rem / section-head 2rem). */
    section { padding: 2.4rem 0; }
    .section-head { margin-bottom: 1.4rem; }

    /* Confirm-Page auf Mobile nochmals enger, damit Button above-the-fold liegt */
    .kontakt-confirm { padding: 1.5rem 0 2rem; }
    .kontakt-confirm .section-head { margin-bottom: 1rem; }
    .kontakt-confirm .section-head h2 { font-size: 1.6rem; margin: .4rem 0; }
    .kontakt-confirm .section-label { font-size: .7rem; }
    .kontakt-confirm .lead { font-size: 1rem; margin: .5rem 0; }
    .kontakt-confirm .training-panel { padding: 1.2rem 1.3rem; }
  }
}

@layer utilities {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; }
  .reveal.in { opacity: 1; transform: none; }

  /* Slide-Richtungen (A2) - kombinierbar mit .reveal */
  .reveal.reveal-left  { transform: translateX(-40px); }
  .reveal.reveal-right { transform: translateX(40px); }
  .reveal.reveal-scale { transform: scale(.96); }
  .reveal.reveal-left.in,
  .reveal.reveal-right.in,
  .reveal.reveal-scale.in { transform: none; }

  /* Stagger-Kinder (A1) - Container bekommt .reveal-stagger,
     Kinder bewegen sich versetzt rein, sobald Container "in" ist. */
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal-stagger.in > * { opacity: 1; transform: none; }
  .reveal-stagger.in > *:nth-child(1)  { transition-delay:   0ms; }
  .reveal-stagger.in > *:nth-child(2)  { transition-delay:  80ms; }
  .reveal-stagger.in > *:nth-child(3)  { transition-delay: 160ms; }
  .reveal-stagger.in > *:nth-child(4)  { transition-delay: 240ms; }
  .reveal-stagger.in > *:nth-child(5)  { transition-delay: 320ms; }
  .reveal-stagger.in > *:nth-child(6)  { transition-delay: 400ms; }
  .reveal-stagger.in > *:nth-child(7)  { transition-delay: 480ms; }
  .reveal-stagger.in > *:nth-child(8)  { transition-delay: 560ms; }
  .reveal-stagger.in > *:nth-child(9)  { transition-delay: 640ms; }
  .reveal-stagger.in > *:nth-child(n+10) { transition-delay: 720ms; }

  /* Hero-Logo Draw-On-Load (L1)
     Scoping-Trick: CSS Custom Properties werden via Vererbung durch <use>
     ins Symbol-Shadow-DOM durchgereicht. Nur .hero-logo-big setzt sie,
     das Nav-Logo bleibt statisch (var(..., none) → keine Animation). */
  .hero-logo-big {
    --anim-ring-outer: logo-draw 900ms cubic-bezier(.7,0,.3,1) 0ms both;
    --anim-ring-inner: logo-draw 900ms cubic-bezier(.7,0,.3,1) 150ms both;
    --anim-cross:      logo-draw 700ms ease-out 500ms both;
    --anim-label:      logo-fade 600ms ease-out 900ms both;
    --anim-core:       logo-pop  600ms cubic-bezier(.4,1.6,.5,1) 1200ms both;
  }
  #logo .logo-ring-outer { animation: var(--anim-ring-outer, none); }
  #logo .logo-ring-inner { animation: var(--anim-ring-inner, none); }
  #logo .logo-cross      { animation: var(--anim-cross, none); }
  #logo .logo-label      { animation: var(--anim-label, none); }
  #logo .logo-core,
  #logo .logo-core-cross {
    animation: var(--anim-core, none);
    transform-origin: 200px 200px;
  }

  @keyframes logo-draw {
    from { stroke-dasharray: 1; stroke-dashoffset: 1; }
    to   { stroke-dasharray: 1; stroke-dashoffset: 0; }
  }
  @keyframes logo-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes logo-pop {
    from { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    to   { transform: scale(1); opacity: 1; }
  }

  /* Hero-Text Fade-Up Stagger (Variante A), überlappt mit Logo-Ende.
     Drei h1-Wörter gestaffelt, Ruhe deutlich langsamer als Schießen/
     Freundschaft (Betonung als Schluss-Wort). Sequenz-Ende bei ~4.3s. */
  .hero h1            { opacity: 1; transform: none; }
  .hero .hero-word {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    animation: hero-fade-up 700ms cubic-bezier(.2,.7,.2,1) both;
  }
  /* Logo-Reveal endet bei 1800ms (logo-core pop done). Wörter erst danach,
     damit das Logo erst „steht" bevor Schießen einblendet. */
  .hero .hero-word-1 { animation-delay: 1800ms; }
  .hero .hero-word-2 { animation-delay: 2500ms; }
  .hero .hero-word-3 { animation-delay: 3300ms; animation-duration: 1300ms; }

  .hero .hero-sub,
  .hero .hero-founded,
  .hero .ornament {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-up 700ms cubic-bezier(.2,.7,.2,1) both;
  }
  .hero .hero-sub     { animation-delay: 4100ms; }
  .hero .hero-founded { animation-delay: 4400ms; }
  .hero .ornament     { animation-delay: 4700ms; }

  /* Leitbild-Block: 1 Sekunde nach Ruhe-Animationsbeginn (3300ms + 1000ms).
     Eigene Klasse statt .reveal, damit es nicht erst beim Scrollen triggert
     sondern direkt nach der Hero-Sequenz. */
  .intro-after-hero {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-up 1000ms cubic-bezier(.2,.7,.2,1) 4300ms both;
  }

  /* Scroll-Skip: sobald der User scrollt/wheelt/touchmove'd, kappen wir
     alle noch laufenden Hero-Animationen auf 180ms ohne Delay → spielen
     sofort fertig. JS in reveal.js setzt body.animations-fast einmalig. */
  body.animations-fast .hero .hero-word,
  body.animations-fast .hero .hero-sub,
  body.animations-fast .hero .hero-founded,
  body.animations-fast .hero .ornament,
  body.animations-fast .intro-after-hero {
    animation-duration: 180ms !important;
    animation-delay: 0ms !important;
  }

  @keyframes hero-fade-up {
    to { opacity: 1; transform: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.reveal-left,
    .reveal.reveal-right,
    .reveal.reveal-scale { opacity: 1; transform: none; transition: none; }
    .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .hero-logo-big {
      --anim-ring-outer: none;
      --anim-ring-inner: none;
      --anim-cross: none;
      --anim-label: none;
      --anim-core: none;
    }
    .hero h1,
    .hero .hero-word,
    .hero .hero-sub,
    .hero .hero-founded,
    .hero .ornament,
    .intro-after-hero {
      opacity: 1;
      transform: none;
      animation: none;
    }
  }
}

@layer components {
  /* "Stehend frei" (Mini-Spiel auf /zielscheibe, urspr. Wackelhand).
     Skelett-Styling - Canvas selbst wird per JS injected. */
  .zielscheibe-disclaimer { font-family: var(--ff-body); font-size: .95rem; color: var(--muted); margin-top: .6rem; }
  .zielscheibe-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: start; }
  @media (max-width: 820px) { .zielscheibe-layout { grid-template-columns: 1fr; } }
  .zielscheibe-stage { display: flex; justify-content: center; }
  .zielscheibe-game { width: 100%; max-width: 480px; aspect-ratio: 1 / 1; background: var(--paper-dark); border: 1px solid var(--hair); position: relative; }
  .zielscheibe-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; color: var(--muted); font-family: var(--ff-body); font-size: 1rem; }
  .zielscheibe-top10 { background: var(--paper-dark); border: 1px solid var(--hair); padding: 1.2rem 1.4rem; }
  .zielscheibe-top10 h3 { font-family: var(--ff-ui); text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; margin: 0 0 .9rem; color: var(--ink); font-weight: 600; }
  .zielscheibe-top10-list { display: flex; flex-direction: column; gap: .4rem; }
  /* Erste Spalte = Medaillen-Star (1.2rem fixed), dann Rang/Nick/Score */
  .zielscheibe-top10-list li { display: grid; grid-template-columns: 1.2rem 1.8rem 1fr auto; gap: .5rem; align-items: baseline; font-family: var(--ff-ui); font-size: 1rem; color: var(--ink); padding: .15rem .3rem; border-radius: 3px; transition: background-color .3s; }
  .zielscheibe-medal { font-size: 1.05rem; line-height: 1; text-align: center; }
  .zielscheibe-medal--gold   { color: #d4af37; text-shadow: 0 0 4px rgba(212, 175, 55, .35); }
  .zielscheibe-medal--silver { color: #b8b8b8; text-shadow: 0 0 4px rgba(180, 180, 180, .35); }
  .zielscheibe-medal--bronze { color: #c87f3a; text-shadow: 0 0 4px rgba(200, 127, 58, .35); }
  .zielscheibe-medal--empty  { color: transparent; }
  .zielscheibe-top10-rank { color: var(--muted); font-weight: 500; }
  .zielscheibe-top10-nick { font-weight: 600; letter-spacing: .04em; }
  .zielscheibe-top10-score { font-weight: 600; color: var(--brand); }
  .zielscheibe-top10-empty { font-family: var(--ff-body); font-style: italic; color: var(--muted); font-size: .95rem; margin: 0; }
  .zielscheibe-top10-season { font-family: var(--ff-ui); font-size: .85rem; letter-spacing: .05em; color: var(--brand-deep); margin: -.4rem 0 .9rem; font-weight: 600; }
  .zielscheibe-top10-archive { margin: 1.1rem 0 0; font-family: var(--ff-ui); font-size: .9rem; }
  .zielscheibe-archive-link, .fallscheibe-archive-link { color: var(--brand); text-decoration: none; border-bottom: 1px solid currentColor; }
  .zielscheibe-archive-link:hover, .fallscheibe-archive-link:hover { color: var(--brand-deep); }
  /* Saison-Archivseite: Grid mit Saison-Karten. Eine Karte pro Monat. */
  .zielscheibe-saisons-section { padding: 2rem 0 4rem; }
  .zielscheibe-saisons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
  .zielscheibe-saison-card { background: var(--paper-dark); border: 1px solid var(--hair); padding: 1.2rem 1.4rem; }
  .zielscheibe-saison-card h3 { font-family: var(--ff-ui); text-transform: uppercase; letter-spacing: .1em; font-size: 1rem; margin: 0 0 .9rem; color: var(--ink); font-weight: 600; }
  /* Confirm-Glow: neue Zeile in der Bestenliste pulsiert ~4 s nach Eintrag.
     Per JS-Klasse, einmaliger Fade-Out - keine infinite animation. */
  .zielscheibe-top10-li--just-entered {
    animation: zielscheibe-top10-just-entered 4s ease-out forwards;
  }
  @keyframes zielscheibe-top10-just-entered {
    0%   { background-color: rgba(58, 162, 92, 0.55); box-shadow: 0 0 14px 4px rgba(58, 162, 92, 0.7); }
    40%  { background-color: rgba(58, 162, 92, 0.4);  box-shadow: 0 0 10px 3px rgba(58, 162, 92, 0.45); }
    100% { background-color: rgba(58, 162, 92, 0);    box-shadow: 0 0 0 0 rgba(58, 162, 92, 0); }
  }
  .zielscheibe-submit-section { margin-top: 1.5rem; }
  .zielscheibe-submit-card { background: var(--paper-dark); border: 1px solid var(--hair); padding: 1.4rem 1.6rem; max-width: 460px; }
  .zielscheibe-submit-card h3 { font-family: var(--ff-ui); text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; margin: 0 0 .6rem; color: var(--ink); font-weight: 600; }
  .zielscheibe-submit-card p { font-family: var(--ff-body); color: var(--ink-soft); margin-bottom: 1rem; }
  .zielscheibe-privacy { margin-top: 1rem; }

  /* Kompaktere Vertikal-Abstände auf der /zielscheibe-Seite - globales
     section { padding: 6rem 0 } + .section-head { margin-bottom: 4rem } ist
     hier zu üppig (das Spiel braucht Aufmerksamkeit, nicht Atemraum). */
  section.zielscheibe-section { padding: 2.2rem 0 !important; }
  .zielscheibe-section .section-head { margin-bottom: 1.4rem; }
  .zielscheibe-section--head { padding-top: 2.5rem !important; padding-bottom: 1.4rem !important; }
  .zielscheibe-section--play { padding-top: 0 !important; padding-bottom: 1.8rem !important; }
  .zielscheibe-section.zielscheibe-submit-section { padding-top: .5rem !important; padding-bottom: 1.4rem !important; }
  .zielscheibe-section.zielscheibe-privacy { padding-top: .5rem !important; padding-bottom: 2.2rem !important; }
  /* Lead darunter etwas knapper */
  .zielscheibe-section .section-head .lead { font-size: 1.1rem; max-width: 720px; }

  /* Loop 2: Spiel-Logik. Canvas, HUD, Floater, Start-Button, Touch-Stick. */
  .zielscheibe-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
  .zielscheibe-hud { position: absolute; top: .6rem; left: .6rem; right: .6rem; display: flex; justify-content: space-between; font-family: var(--ff-ui); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); pointer-events: none; }
  .zielscheibe-hud-shots { background: rgba(242, 232, 213, 0.85); padding: .25rem .55rem; border-radius: 2px; }
  .zielscheibe-hud-score { background: rgba(242, 232, 213, 0.85); padding: .25rem .55rem; border-radius: 2px; font-weight: 600; color: var(--brand); }
  /* Top-10-Glow: aktiviert sich am Spielende per JS, wenn der Score in die
     Bestenliste passt. Klickbar -> oeffnet das Submit-Modal. pointer-events
     wird explizit auto, da .zielscheibe-hud parent none hat. */
  .zielscheibe-hud-score--top10 {
    background: rgba(58, 162, 92, 0.95);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    padding: .35rem .9rem;
    font-weight: 700;
    letter-spacing: .12em;
    box-shadow: 0 0 0 0 rgba(58, 162, 92, 0.7);
    animation: zielscheibe-hud-score-pulse 1.4s ease-in-out infinite;
  }
  .zielscheibe-hud-score--top10:hover,
  .zielscheibe-hud-score--top10:focus-visible {
    background: rgba(46, 130, 74, 1);
    box-shadow: 0 0 0 8px rgba(58, 162, 92, 0.18);
    outline: none;
  }
  @keyframes zielscheibe-hud-score-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(58, 162, 92, 0.75), 0 0 6px 1px rgba(58, 162, 92, 0.55); }
    50%  { box-shadow: 0 0 0 14px rgba(58, 162, 92, 0.0), 0 0 14px 3px rgba(58, 162, 92, 0.85); }
    100% { box-shadow: 0 0 0 0 rgba(58, 162, 92, 0.75), 0 0 6px 1px rgba(58, 162, 92, 0.55); }
  }
  /* Dezenter Hinweis, wenn Score nicht reicht */
  .zielscheibe-hud-score--miss {
    background: rgba(120, 110, 95, 0.85);
    color: #fff;
    padding: .25rem .65rem;
  }
  .zielscheibe-floater { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); font-family: var(--ff-ui); font-size: 3rem; font-weight: 600; color: var(--gold); opacity: 0; pointer-events: none; text-shadow: 0 0 6px rgba(0,0,0,.4); }
  .zielscheibe-floater--show { animation: zielscheibe-floater-show 1.1s ease-out forwards; }
  @keyframes zielscheibe-floater-show {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(1); }
  }
  .zielscheibe-start { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; min-width: 9rem; }
  .zielscheibe-game--ready .zielscheibe-start[style*="display: none"] { display: none !important; }
  .zielscheibe-stick { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: rgba(58, 36, 18, 0.42); border: 3px solid rgba(212, 175, 88, 0.9); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 0 10px rgba(0, 0, 0, 0.25); pointer-events: none; opacity: 0; transition: opacity .15s, left .25s ease, top .25s ease; touch-action: none; }
  /* Faden-Kreuz als Stick-Andeutung - sichtbar links/rechts/oben/unten vom
     Knob (der die Mitte deckt), klarer Joystick-Look ohne extra DOM. */
  .zielscheibe-stick::before, .zielscheibe-stick::after { content: ''; position: absolute; background: rgba(212, 175, 88, 0.6); pointer-events: none; }
  .zielscheibe-stick::before { top: 50%; left: 8px; right: 8px; height: 2px; margin-top: -1px; }
  .zielscheibe-stick::after  { left: 50%; top: 8px; bottom: 8px; width: 2px; margin-left: -1px; }
  /* Auf Touch-Geraeten dauerhaft sichtbar, damit Spieler den Stick findet */
  @media (hover: none) and (pointer: coarse) { .zielscheibe-stick { opacity: 1; } }
  .zielscheibe-stick--active { opacity: 1; transition: opacity .15s; }
  .zielscheibe-stick-knob { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f5d99a 0%, #d4af55 45%, #8a6b2e 100%); border: 2px solid var(--brand-deep); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.3); transition: transform .25s ease; }
  .zielscheibe-stick--active .zielscheibe-stick-knob { transition: none; }

  /* Schuss-Flash am Trefferpunkt - kleines warm-goldenes Aufblitzen, das
     mit dem Marker zusammenfaellt. left/top wird per JS gesetzt. */
  .zielscheibe-flash { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: radial-gradient(circle at center, rgba(255, 230, 130, 0.95) 0%, rgba(255, 200, 80, 0.6) 30%, rgba(255, 180, 50, 0) 70%); opacity: 0; pointer-events: none; }
  .zielscheibe-flash--show { animation: zielscheibe-shot-flash 350ms ease-out; }
  @keyframes zielscheibe-shot-flash {
    0%   { opacity: 0; transform: scale(.4); }
    15%  { opacity: 1; transform: scale(1.0); }
    100% { opacity: 0; transform: scale(1.8); }
  }
  /* Schuss-Lade-Balken am linken Stage-Rand: 3-Sek-Takt visualisieren.
     Track ~60% Stage-Hoehe mittig vertikal, Fill von unten nach oben. */
  .zielscheibe-progress { position: absolute; left: .6rem; top: 20%; bottom: 20%; width: 12px; background: rgba(58, 36, 18, 0.18); border: 1px solid rgba(80, 150, 80, 0.5); border-radius: 4px; overflow: hidden; opacity: 0; transition: opacity .2s; pointer-events: none; }
  .zielscheibe-progress--active { opacity: 1; }
  .zielscheibe-progress-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; background: linear-gradient(to top, #4caf50 0%, #7dd87d 100%); box-shadow: 0 0 6px rgba(80, 170, 80, 0.5); }
  .zielscheibe-feedback { font-family: var(--ff-body); font-size: 1rem; padding: .5rem 0; min-height: 1.5rem; }
  .zielscheibe-feedback--ok { color: var(--brand-deep); font-weight: 600; }
  .zielscheibe-feedback--err { color: var(--brand); font-weight: 500; }

  /* Auto-Submit-Toast: gross + auffaellig, weil ein automatischer Eintrag
     sonst stumm wirkt. Bleibt ~6.5 s sichtbar, faded dann sanft aus. */
  .zielscheibe-toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, rgba(58, 162, 92, 0.97), rgba(46, 130, 74, 0.97));
    color: #fff;
    padding: 1.1rem 1.8rem;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    font-family: var(--ff-ui); font-size: 1.05rem; line-height: 1.4;
    opacity: 0; pointer-events: none;
    z-index: 200;
    max-width: calc(100vw - 2rem);
    transition: opacity .4s ease, transform .4s ease;
  }
  .zielscheibe-toast--show {
    opacity: 1; transform: translateX(-50%) translateY(0);
  }
  .zielscheibe-toast strong { font-weight: 700; }

  /* Bad-Nickname-Toast: Blockliste-Treffer beim Score-Submit. Kurz sichtbar
     (~1.8 s), rot, mit Shit-Emoji + Text. Wiederverwendet das Toast-Layout
     von .zielscheibe-toast, nur Farbe + Inhalt + Dauer abweichend. */
  .bad-nick-toast {
    position: fixed; top: 35%; left: 50%;
    transform: translate(-50%, -50%) scale(.85);
    background: linear-gradient(135deg, rgba(180, 50, 50, 0.97), rgba(140, 30, 30, 0.97));
    color: #fff;
    padding: 1.3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    font-family: var(--ff-ui); font-size: 1.3rem; font-weight: 600; line-height: 1.3;
    text-align: center;
    opacity: 0; pointer-events: none;
    z-index: 220;
    transition: opacity .25s ease, transform .25s ease;
  }
  .bad-nick-toast--show {
    opacity: 1; transform: translate(-50%, -50%) scale(1);
  }
  .bad-nick-toast-emoji { font-size: 2.4rem; display: block; line-height: 1; margin-bottom: .35rem; }

  /* Top-10-Hint: animierter Pfeil + "Klick!" der bei Top-10-Treffer
     auf das pulsierende Score-Label rechts oben zeigt. Aktiv parallel
     zum .zielscheibe-hud-score--top10 / .fallscheibe-hud-status--top10
     pulse. Wird bei Klick auf den Score-Label entfernt. */
  .top10-hint {
    position: absolute; top: 2.7rem; right: 1.2rem;
    display: flex; align-items: center; gap: .35rem;
    font-family: var(--ff-ui); font-size: 1rem; font-weight: 700;
    color: var(--brand); letter-spacing: .05em; text-transform: uppercase;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    animation: top10-hint-bounce 1.0s ease-in-out infinite;
    z-index: 5;
  }
  .top10-hint-arrow {
    display: inline-block;
    font-size: 1.6rem; line-height: 1;
    transform: rotate(-25deg);
    color: var(--brand);
  }
  @keyframes top10-hint-bounce {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(6px, -4px); }
  }
  @media (max-width: 640px) {
    .top10-hint { top: 2.4rem; right: .8rem; font-size: .85rem; }
    .top10-hint-arrow { font-size: 1.3rem; }
  }

  /* Verschiedenes (Sammelseite mit Karten-Grid). Karten verlinken auf
     "Stehend frei" und auf 3 noch nicht gebaute Platzhalter-Seiten. */
  .verschiedenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    margin: 2rem 0;
  }
  .verschiedenes-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.6rem 1.8rem;
    background: var(--paper);
    border: 1px solid var(--hair);
    text-decoration: none;
    color: var(--ink);
    position: relative;
    transition: border-color .2s, transform .2s, box-shadow .2s;
  }
  .verschiedenes-card::before,
  .verschiedenes-card::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid var(--gold);
    opacity: 0;
    transition: opacity .2s;
  }
  .verschiedenes-card::before { top: -4px; left: -4px; border-right: none; border-bottom: none; }
  .verschiedenes-card::after { bottom: -4px; right: -4px; border-left: none; border-top: none; }
  .verschiedenes-card:hover,
  .verschiedenes-card:focus-visible {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .2);
  }
  .verschiedenes-card:hover::before,
  .verschiedenes-card:hover::after,
  .verschiedenes-card:focus-visible::before,
  .verschiedenes-card:focus-visible::after { opacity: 1; }
  .verschiedenes-card-label {
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    color: var(--muted);
    font-weight: 500;
  }
  .verschiedenes-card-title {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    color: var(--brand);
    margin: 0;
    font-weight: 400;
    letter-spacing: .02em;
  }
  .verschiedenes-card-body {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0;
    flex-grow: 1;
  }
  .verschiedenes-card-cta {
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .85rem;
    color: var(--brand);
    font-weight: 500;
    margin-top: .4rem;
  }
  .verschiedenes-card--soon { opacity: .82; }
  .verschiedenes-card--soon .verschiedenes-card-label { color: var(--gold); }
  .verschiedenes-soon-panel p { margin-bottom: 1.1rem; }
  .verschiedenes-soon-note { color: var(--ink-soft); }
  @media (max-width: 640px) {
    .verschiedenes-grid { gap: 1rem; margin: 1.4rem 0; }
    .verschiedenes-card { padding: 1.2rem 1.3rem; }
    .verschiedenes-card-title { font-size: 1.55rem; }
  }

  /* Disziplin-Finder Wizard */
  .df-section { padding: 2.2rem 0; }
  .df-section--head { padding-bottom: 1rem; }
  .df-section--privacy { padding: 1.4rem 0 3rem; }

  .df-shell {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 2.2rem 2.4rem;
    background: var(--paper);
    border: 1px solid var(--hair);
    position: relative;
  }

  .df-progress {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--hair);
    margin-bottom: 1.8rem;
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
  }
  .df-progress-counter { color: var(--brand); }

  .df-step-title {
    font-family: var(--ff-display);
    font-size: 1.85rem;
    color: var(--ink);
    margin: 0 0 .6rem;
    font-weight: 400;
    letter-spacing: .01em;
  }
  .df-step-hint {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin: 0 0 1.6rem;
    line-height: 1.55;
  }

  .df-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .9rem;
  }
  .df-option {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.1rem 1.2rem;
    background: var(--paper);
    border: 1px solid var(--hair);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: border-color .15s, transform .15s, box-shadow .15s, background .15s;
  }
  .df-option:hover,
  .df-option:focus-visible {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .25);
    outline: none;
  }
  .df-option-label {
    font-family: var(--ff-ui);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 1rem;
    color: var(--brand);
  }
  .df-option-desc {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ink-soft);
  }
  .df-option--skip {
    border-style: dashed;
    background: var(--paper-dark);
  }
  .df-option--skip .df-option-label { color: var(--muted); }

  .df-glossar-link {
    display: inline-block;
    background: var(--paper-dark);
    border: 1px solid var(--brand);
    padding: .15em .65em;
    margin: 0 .15em;
    border-radius: 999px;
    color: var(--brand);
    font: inherit;
    font-weight: 500;
    line-height: 1.7;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }
  .df-glossar-link:hover { background: var(--brand); color: var(--paper); }

  .df-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--hair);
  }
  .df-control {
    background: var(--paper-dark);
    border: 1px solid var(--hair);
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    padding: .75rem 1.3rem;
    min-height: 44px;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
  }
  .df-control:hover { color: var(--brand); border-color: var(--brand); }
  .df-control--reset { margin-left: auto; }

  .df-source-hint {
    margin-top: 1.4rem;
    font-family: var(--ff-body);
    font-style: italic;
    color: var(--muted);
    font-size: .92rem;
  }
  .df-source-hint p { margin: 0; }
  .df-source-hint a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

  .df-result-head { margin-bottom: 1.6rem; }
  .df-result-empty {
    background: var(--paper-dark);
    border: 1px dashed var(--hair);
    padding: 1.4rem 1.6rem;
    color: var(--ink-soft);
  }
  .df-result-empty p { margin: 0; }

  .df-result-banner {
    background: var(--paper-dark);
    border-left: 4px solid var(--brand);
    padding: 1.1rem 1.4rem;
    margin: 0 0 1.6rem;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
  }
  .df-result-banner[hidden] { display: none; }
  .df-result-banner p { margin: 0 0 .5rem; }
  .df-result-banner p:last-child { margin-bottom: 0; }
  .df-result-banner-title {
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .9rem;
    font-weight: 600;
    color: var(--brand);
  }
  .df-result-banner strong { color: var(--ink); font-weight: 600; }

  .df-result-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
  }
  .df-result-card {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.2rem 1.3rem;
    background: var(--paper);
    border: 1px solid var(--hair);
    position: relative;
  }
  .df-result-card--new { border-color: var(--gold); }
  .df-result-card--deprecated { opacity: .85; border-style: dashed; }

  .df-result-card-head {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .8rem;
    color: var(--muted);
    font-weight: 500;
  }
  .df-result-card-code { color: var(--brand); }
  .df-result-card-title {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    color: var(--ink);
    margin: 0;
    font-weight: 400;
    line-height: 1.25;
  }
  .df-result-card-body {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.5;
  }
  .df-result-card-meta,
  .df-result-card-tech {
    margin: 0;
    font-family: var(--ff-ui);
    font-size: .85rem;
    letter-spacing: .04em;
    color: var(--muted);
  }
  .df-result-card-tech { color: var(--ink-soft); }
  .df-result-card-flag {
    margin: .2rem 0 0;
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 600;
    padding: .25rem .55rem;
    display: inline-block;
    align-self: flex-start;
  }
  .df-result-card-flag--new { color: var(--gold); border: 1px solid var(--gold); }
  .df-result-card-flag--dep { color: var(--muted); font-style: italic; font-weight: 400; }

  .df-result-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: .6rem;
    padding-top: .9rem;
    border-top: 2px solid var(--hair);
  }
  .df-result-card-details {
    background: var(--paper-dark);
    border: 1px solid var(--brand);
    padding: .45rem .9rem;
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
    color: var(--brand);
    cursor: pointer;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
  }
  .df-result-card-details:hover { background: var(--brand); color: var(--paper); }
  .df-result-card-source {
    font-family: var(--ff-body);
    font-size: .95rem;
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--brand);
  }
  .df-result-card-source:hover { color: var(--brand); }

  .df-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(42, 24, 16, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
  }
  .df-modal[hidden] { display: none; }
  .df-modal-card {
    background: var(--paper);
    border: 1px solid var(--gold);
    padding: 2rem 2rem 0;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: relative;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .4);
  }
  .df-modal-card--wide { max-width: 720px; }
  .df-modal-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-dark);
    border: 1px solid var(--brand);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--brand);
    cursor: pointer;
    font-family: var(--ff-ui);
    font-weight: 600;
    z-index: 2;
    transition: background .15s ease, color .15s ease;
  }
  .df-modal-close:hover { background: var(--brand); color: var(--paper); }
  .df-modal-foot {
    position: sticky;
    bottom: 0;
    background: var(--paper);
    margin: 1.5rem -2rem 0;
    padding: 1rem 2rem calc(2.4rem + env(safe-area-inset-bottom));
    border-top: 2px solid var(--hair);
    display: flex;
    justify-content: center;
    z-index: 1;
  }
  .df-modal-foot-close {
    padding: .8rem 2rem;
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .9rem;
    background: var(--paper-dark);
    border: 1px solid var(--brand);
    color: var(--brand);
    cursor: pointer;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
  }
  .df-modal-foot-close:hover { background: var(--brand); color: var(--paper); }
  .df-modal-card h3 {
    font-family: var(--ff-display);
    font-size: 1.55rem;
    color: var(--ink);
    margin: 0 0 1rem;
    font-weight: 400;
    padding-right: 3.5rem;
  }
  .df-modal-short {
    color: var(--ink);
    font-size: 1.05rem;
    margin: 0 0 1rem;
  }
  .df-modal-long {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
  }
  .df-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: .5rem;
    padding-right: 3.5rem;
  }
  .df-modal-title {
    font-family: var(--ff-display);
    font-size: 1.7rem;
    color: var(--ink);
    margin: 0 0 1rem;
    padding-right: 3.5rem;
  }
  .df-modal-body { color: var(--ink-soft); line-height: 1.55; margin: 0 0 1.4rem; }
  .df-modal-dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .4rem 1.2rem;
    margin: 0 0 1.4rem;
    font-size: .98rem;
  }
  .df-modal-dl dt {
    font-family: var(--ff-ui);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
    color: var(--ink-soft);
    font-weight: 600;
    align-self: baseline;
  }
  .df-modal-dl dd { margin: 0; color: var(--ink); }
  .df-modal-dl dd em { color: var(--ink-soft); font-size: .92em; }
  .df-modal-source {
    font-family: var(--ff-body);
    color: var(--ink-soft);
    font-size: .95rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--hair);
  }
  .df-modal-source code {
    font-family: 'Courier New', monospace;
    font-size: .85em;
    font-style: normal;
    background: var(--paper-dark);
    padding: .1em .35em;
  }

  .df-load-error {
    padding: 1.4rem;
    background: var(--paper-dark);
    border: 1px dashed var(--brand);
    color: var(--brand);
    text-align: center;
  }

  @media (max-width: 640px) {
    .df-shell { padding: 1.4rem 1.2rem 1.8rem; }
    .df-step-title { font-size: 1.5rem; }
    .df-step-hint { font-size: .98rem; }
    .df-option { padding: .95rem 1rem; }
    .df-option-label { font-size: .92rem; }
    .df-option-desc { font-size: .92rem; }
    .df-result-list { grid-template-columns: 1fr; }
    .df-modal-card { padding: 1.5rem 1.3rem 0; }
    .df-modal-foot { margin: 1.5rem -1.3rem 0; padding: .8rem 1.3rem calc(2rem + env(safe-area-inset-bottom)); }
    .df-modal-dl {
      grid-template-columns: 1fr;
      gap: .15rem .8rem;
    }
    .df-modal-dl dt { margin-top: .6rem; }
    .df-modal-dl dt:first-of-type { margin-top: 0; }
    .df-progress {
      flex-direction: column;
      align-items: flex-start;
      gap: .25rem;
      font-size: .95rem;
      letter-spacing: .08em;
    }
    .df-glossar-link {
      padding: .35em .9em;
      margin: .15em .15em;
      line-height: 1.9;
    }
    .df-control {
      padding: .8rem 1rem;
      font-size: .88rem;
    }
  }

  /* Tutorial-Overlay beim ersten Aufruf (LocalStorage-gated). */
  .zielscheibe-tutorial { position: fixed; inset: 0; z-index: 100; background: rgba(42, 24, 16, 0.7); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
  .zielscheibe-tutorial[hidden] { display: none; }
  .zielscheibe-tutorial-card { background: var(--paper); border: 1px solid var(--gold); padding: 2rem 2rem 1.6rem; max-width: 520px; width: 100%; box-shadow: 0 24px 48px -16px rgba(0,0,0,.4); }
  .zielscheibe-tutorial-card h3 { font-family: var(--ff-ui); text-transform: uppercase; letter-spacing: .14em; font-size: 1.15rem; color: #1a1212; font-weight: 700; margin: 0 0 1.1rem; text-align: center; }
  .zielscheibe-tutorial-steps { font-family: var(--ff-body); font-size: 1.18rem; color: #1a1212; font-weight: 500; line-height: 1.65; padding-left: 1.4rem; margin: 0 0 1.4rem; }
  .zielscheibe-tutorial-steps li { margin-bottom: .65rem; }
  .zielscheibe-tutorial-steps li:last-child { margin-bottom: 0; }
  .zielscheibe-tutorial-go { display: block; margin: 0 auto; min-width: 10rem; }
  @media (max-width: 640px) {
    .zielscheibe-tutorial-card { padding: 1.4rem 1.4rem 1.2rem; }
    .zielscheibe-tutorial-card h3 { font-size: 1.05rem; }
    .zielscheibe-tutorial-steps { font-size: 1.1rem; line-height: 1.6; }
  }

  /* "Fallscheibe" (Mini-Spiel auf /fallscheibe). 5 Stahlplatten, 2x8 Schuss,
     Zeit-Wertung. Engine: static/js/fallscheibe.js. Pattern parallel zu
     .zielscheibe-* - viele Werte gleich, eigene Klassen damit Wartung
     der beiden Spiele entkoppelt bleibt. */
  .fallscheibe-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: start; }
  @media (max-width: 820px) { .fallscheibe-layout { grid-template-columns: 1fr; } }
  .fallscheibe-stage { display: flex; justify-content: center; }
  .fallscheibe-game { width: 100%; max-width: 480px; aspect-ratio: 1 / 1; background: var(--paper-dark); border: 1px solid var(--hair); position: relative; }
  .fallscheibe-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; color: var(--muted); font-family: var(--ff-body); font-size: 1rem; }
  .fallscheibe-top10 { background: var(--paper-dark); border: 1px solid var(--hair); padding: 1.2rem 1.4rem; }
  .fallscheibe-top10 h3 { font-family: var(--ff-ui); text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; margin: 0 0 .9rem; color: var(--ink); font-weight: 600; }
  .fallscheibe-top10-list { display: flex; flex-direction: column; gap: .4rem; }
  .fallscheibe-top10-list li { display: grid; grid-template-columns: 1.2rem 1.8rem 1fr auto; gap: .5rem; align-items: baseline; font-family: var(--ff-ui); font-size: 1rem; color: var(--ink); padding: .15rem .3rem; border-radius: 3px; transition: background-color .3s; }
  .fallscheibe-medal { font-size: 1.05rem; line-height: 1; text-align: center; }
  .fallscheibe-medal--gold   { color: #d4af37; text-shadow: 0 0 4px rgba(212, 175, 55, .35); }
  .fallscheibe-medal--silver { color: #b8b8b8; text-shadow: 0 0 4px rgba(180, 180, 180, .35); }
  .fallscheibe-medal--bronze { color: #c87f3a; text-shadow: 0 0 4px rgba(200, 127, 58, .35); }
  .fallscheibe-medal--empty  { color: transparent; }
  .fallscheibe-top10-rank { color: var(--muted); font-weight: 500; }
  .fallscheibe-top10-nick { font-weight: 600; letter-spacing: .04em; }
  .fallscheibe-top10-score { font-weight: 600; color: var(--brand); }
  .fallscheibe-top10-empty { font-family: var(--ff-body); font-style: italic; color: var(--muted); font-size: .95rem; margin: 0; }
  .fallscheibe-top10-season { font-family: var(--ff-ui); font-size: .85rem; letter-spacing: .05em; color: var(--brand-deep); margin: -.4rem 0 .9rem; font-weight: 600; }
  .fallscheibe-top10-archive { margin: 1.1rem 0 0; font-family: var(--ff-ui); font-size: .9rem; }
  .fallscheibe-top10-li--just-entered {
    animation: fallscheibe-top10-just-entered 4s ease-out forwards;
  }
  @keyframes fallscheibe-top10-just-entered {
    0%   { background-color: rgba(58, 162, 92, 0.55); box-shadow: 0 0 14px 4px rgba(58, 162, 92, 0.7); }
    40%  { background-color: rgba(58, 162, 92, 0.4);  box-shadow: 0 0 10px 3px rgba(58, 162, 92, 0.45); }
    100% { background-color: rgba(58, 162, 92, 0);    box-shadow: 0 0 0 0 rgba(58, 162, 92, 0); }
  }
  .fallscheibe-submit-section { margin-top: 1.5rem; }
  .fallscheibe-submit-card { background: var(--paper-dark); border: 1px solid var(--hair); padding: 1.4rem 1.6rem; max-width: 460px; }
  .fallscheibe-submit-card h3 { font-family: var(--ff-ui); text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; margin: 0 0 .6rem; color: var(--ink); font-weight: 600; }
  .fallscheibe-submit-card p { font-family: var(--ff-body); color: var(--ink-soft); margin-bottom: 1rem; }
  .fallscheibe-privacy { margin-top: 1rem; }

  section.fallscheibe-section { padding: 2.2rem 0 !important; }
  .fallscheibe-section .section-head { margin-bottom: 1.4rem; }
  .fallscheibe-section--head { padding-top: 2.5rem !important; padding-bottom: 1.4rem !important; }
  .fallscheibe-section--play { padding-top: 0 !important; padding-bottom: 1.8rem !important; }
  .fallscheibe-section.fallscheibe-submit-section { padding-top: .5rem !important; padding-bottom: 1.4rem !important; }
  .fallscheibe-section.fallscheibe-privacy { padding-top: .5rem !important; padding-bottom: 2.2rem !important; }
  .fallscheibe-section .section-head .lead { font-size: 1.1rem; max-width: 720px; }

  .fallscheibe-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
  .fallscheibe-hud { position: absolute; top: .6rem; left: .6rem; right: .6rem; display: flex; justify-content: space-between; gap: .4rem; flex-wrap: wrap; font-family: var(--ff-ui); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); pointer-events: none; }
  .fallscheibe-hud-time { background: rgba(242, 232, 213, 0.9); padding: .25rem .55rem; border-radius: 2px; font-weight: 600; color: var(--ink); }
  .fallscheibe-hud-shots { background: rgba(242, 232, 213, 0.85); padding: .25rem .55rem; border-radius: 2px; }
  .fallscheibe-hud-status { background: rgba(242, 232, 213, 0.85); padding: .25rem .55rem; border-radius: 2px; }
  .fallscheibe-hud-status--top10 {
    background: rgba(58, 162, 92, 0.95);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    padding: .35rem .9rem;
    font-weight: 700;
    letter-spacing: .12em;
    box-shadow: 0 0 0 0 rgba(58, 162, 92, 0.7);
    animation: fallscheibe-hud-status-pulse 1.4s ease-in-out infinite;
  }
  .fallscheibe-hud-status--top10:hover,
  .fallscheibe-hud-status--top10:focus-visible {
    background: rgba(46, 130, 74, 1);
    box-shadow: 0 0 0 8px rgba(58, 162, 92, 0.18);
    outline: none;
  }
  @keyframes fallscheibe-hud-status-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(58, 162, 92, 0.75), 0 0 6px 1px rgba(58, 162, 92, 0.55); }
    50%  { box-shadow: 0 0 0 14px rgba(58, 162, 92, 0.0), 0 0 14px 3px rgba(58, 162, 92, 0.85); }
    100% { box-shadow: 0 0 0 0 rgba(58, 162, 92, 0.75), 0 0 6px 1px rgba(58, 162, 92, 0.55); }
  }
  .fallscheibe-hud-status--miss {
    background: rgba(120, 110, 95, 0.85);
    color: #fff;
    padding: .25rem .65rem;
  }
  .fallscheibe-floater { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); font-family: var(--ff-ui); font-size: 2.4rem; font-weight: 600; color: var(--gold); opacity: 0; pointer-events: none; text-shadow: 0 0 6px rgba(0,0,0,.4); }
  .fallscheibe-floater--show { animation: fallscheibe-floater-show 1.1s ease-out forwards; }
  @keyframes fallscheibe-floater-show {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(1); }
  }

  /* Start-/Neues-Spiel-Button: Stage-Mitte (top 50%, unter den Platten bei
     35%), damit der Button die Fallscheiben nicht verdeckt. Gruene Optik
     (Brand-Override gegen das braune cta-btn-Default). */
  .fallscheibe-start {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4; min-width: 11rem;
    background: linear-gradient(180deg, #34c049 0%, #1d6c2a 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }
  .fallscheibe-start:hover {
    background: linear-gradient(180deg, #4adb5a 0%, #248033 100%);
    color: #fff;
  }
  .fallscheibe-game--ready .fallscheibe-start[style*="display: none"] { display: none !important; }

  /* Reload-UI: runder Wrap mit Conic-Gradient-Ring (Fortschritts-Anzeige)
     + gruener Mittel-Button. Position oberes Drittel. Pro Klick fuellt
     sich der Ring um 360/random(4..8) deg im Uhrzeigersinn. CSS-Variable
     --progress wird per JS gesetzt, Conic startet bei 12 Uhr (-90deg). */
  .fallscheibe-reload-wrap {
    --progress: 0deg;
    position: absolute; top: 22%; left: 50%;
    transform: translate(-50%, -50%);
    width: 130px; height: 130px; border-radius: 50%;
    background: conic-gradient(from -90deg,
      #5be672 0deg,
      #5be672 var(--progress),
      rgba(20, 30, 20, 0.55) var(--progress),
      rgba(20, 30, 20, 0.55) 360deg);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35),
                inset 0 0 0 2px rgba(255, 255, 255, 0.15);
    display: flex; align-items: center; justify-content: center;
    z-index: 5; padding: 12px;
  }
  .fallscheibe-reload-btn {
    width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%,
      #6fe87f 0%, #2eaa42 55%, #196025 100%);
    color: #fff;
    font-family: var(--ff-ui); font-size: 1.05rem;
    letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.55);
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: fallscheibe-reload-pulse 1.0s ease-in-out infinite;
    transition: transform .08s ease;
  }
  .fallscheibe-reload-btn:hover {
    background: radial-gradient(circle at 35% 30%,
      #82f594 0%, #34c049 55%, #1d6c2a 100%);
  }
  .fallscheibe-reload-btn:active { transform: scale(0.95); }
  @keyframes fallscheibe-reload-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91, 230, 114, 0.7),
                          inset 0 -3px 6px rgba(0,0,0,0.3); }
    50%      { box-shadow: 0 0 0 16px rgba(91, 230, 114, 0),
                          inset 0 -3px 6px rgba(0,0,0,0.3); }
  }
  /* Aufblitzen pro Klick: heller weisser Schein um den Wrap, ~280 ms. */
  .fallscheibe-reload-wrap--flash {
    animation: fallscheibe-reload-flash 280ms ease-out;
  }
  @keyframes fallscheibe-reload-flash {
    0%   { filter: brightness(1.6) drop-shadow(0 0 14px rgba(255,255,255,0.9)); }
    100% { filter: brightness(1.0) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  }

  /* Touch-Stick: identisch zum Zielscheibe-Stick (Optik) - bleibt rechts
     unten als Default-Position. Auf Touch-Geraeten dauerhaft sichtbar. */
  .fallscheibe-stick { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: rgba(58, 36, 18, 0.42); border: 3px solid rgba(212, 175, 88, 0.9); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 0 10px rgba(0, 0, 0, 0.25); pointer-events: none; opacity: 0; transition: opacity .15s, left .25s ease, top .25s ease; touch-action: none; }
  .fallscheibe-stick::before, .fallscheibe-stick::after { content: ''; position: absolute; background: rgba(212, 175, 88, 0.6); pointer-events: none; }
  .fallscheibe-stick::before { top: 50%; left: 8px; right: 8px; height: 2px; margin-top: -1px; }
  .fallscheibe-stick::after  { left: 50%; top: 8px; bottom: 8px; width: 2px; margin-left: -1px; }
  @media (hover: none) and (pointer: coarse) { .fallscheibe-stick { opacity: 1; } }
  .fallscheibe-stick--active { opacity: 1; transition: opacity .15s; }
  .fallscheibe-stick-knob { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f5d99a 0%, #d4af55 45%, #8a6b2e 100%); border: 2px solid var(--brand-deep); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.3); transition: transform .25s ease; }
  .fallscheibe-stick--active .fallscheibe-stick-knob { transition: none; }

  /* Feuerknopf links unten - gross + rot, klassischer Action-Button.
     Auf Mobile dauerhaft sichtbar wie der Stick, auf Desktop unsichtbar
     (dort schiesst die Leertaste). */
  .fallscheibe-fire {
    position: absolute; width: 80px; height: 80px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f08a72 0%, #c03020 45%, #6a1010 100%);
    border: 3px solid rgba(255, 220, 200, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.4);
    color: #fff; font-family: var(--ff-ui); font-size: .85rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; user-select: none; -webkit-user-select: none;
    pointer-events: auto; opacity: 0; transition: opacity .15s, transform .1s;
    touch-action: none;
  }
  @media (hover: none) and (pointer: coarse) { .fallscheibe-fire { opacity: 1; } }
  .fallscheibe-fire--active { transform: scale(0.92); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.4); }
  .fallscheibe-fire--disabled { opacity: 0.4; cursor: not-allowed; }

  /* Schuss-Flash am Trefferpunkt - gleich zum Stehend frei */
  .fallscheibe-flash { position: absolute; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: radial-gradient(circle at center, rgba(255, 230, 130, 0.95) 0%, rgba(255, 200, 80, 0.6) 30%, rgba(255, 180, 50, 0) 70%); opacity: 0; pointer-events: none; }
  .fallscheibe-flash--show { animation: fallscheibe-shot-flash 350ms ease-out; }
  @keyframes fallscheibe-shot-flash {
    0%   { opacity: 0; transform: scale(.4); }
    15%  { opacity: 1; transform: scale(1.0); }
    100% { opacity: 0; transform: scale(1.8); }
  }

  .fallscheibe-feedback { font-family: var(--ff-body); font-size: 1rem; padding: .5rem 0; min-height: 1.5rem; }
  .fallscheibe-feedback--ok { color: var(--brand-deep); font-weight: 600; }
  .fallscheibe-feedback--err { color: var(--brand); font-weight: 500; }

  /* Auto-Submit-Toast: identisch zum Zielscheibe-Toast. */
  .fallscheibe-toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, rgba(58, 162, 92, 0.97), rgba(46, 130, 74, 0.97));
    color: #fff;
    padding: 1.1rem 1.8rem;
    border-radius: 6px;
    font-family: var(--ff-ui); font-size: 1.05rem;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.5);
    z-index: 200; opacity: 0; transition: opacity .4s, transform .4s;
    max-width: 90vw; text-align: center;
  }
  .fallscheibe-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* Tutorial-Overlay beim ersten Aufruf (LocalStorage-gated) - gleich zum Zielscheibe */
  .fallscheibe-tutorial { position: fixed; inset: 0; z-index: 100; background: rgba(42, 24, 16, 0.7); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
  .fallscheibe-tutorial[hidden] { display: none; }
  .fallscheibe-tutorial-card { background: var(--paper); border: 1px solid var(--gold); padding: 2rem 2rem 1.6rem; max-width: 520px; width: 100%; box-shadow: 0 24px 48px -16px rgba(0,0,0,.4); }
  .fallscheibe-tutorial-card h3 { font-family: var(--ff-ui); text-transform: uppercase; letter-spacing: .14em; font-size: 1.15rem; color: #1a1212; font-weight: 700; margin: 0 0 1.1rem; text-align: center; }
  .fallscheibe-tutorial-steps { font-family: var(--ff-body); font-size: 1.18rem; color: #1a1212; font-weight: 500; line-height: 1.65; padding-left: 1.4rem; margin: 0 0 1.4rem; }
  .fallscheibe-tutorial-steps li { margin-bottom: .65rem; }
  .fallscheibe-tutorial-steps li:last-child { margin-bottom: 0; }
  .fallscheibe-tutorial-go { display: block; margin: 0 auto; min-width: 10rem; }
  @media (max-width: 640px) {
    .fallscheibe-tutorial-card { padding: 1.4rem 1.4rem 1.2rem; }
    .fallscheibe-tutorial-card h3 { font-size: 1.05rem; }
    .fallscheibe-tutorial-steps { font-size: 1.1rem; line-height: 1.6; }
    .fallscheibe-hud { font-size: .72rem; }
  }
}

/* Mobile-Touch-UX (Stephan-Befund Session 39 "Buttons reagieren nicht beim
   ersten Tap"). touch-action: manipulation entfernt iOS 300ms double-tap-zoom-
   Delay (User tippt einmal, Browser wartet 300ms ob's ein Zoom-Tap wird,
   User denkt 'ging nicht durch'). tap-highlight-color gibt sichtbares
   Feedback beim ersten Touch. */
@layer overrides {
  a, button, [role="button"], summary,
  .cta-btn, .verschiedenes-card,
  .df-option, .df-control, .df-glossar-link,
  .df-modal-close, .df-modal-foot-close,
  .df-result-card-details, .df-result-card-source,
  .moa-pill, .moa-turret-tile, .moa-direction-tile, .moa-control,
  .moa-modal-close, .moa-modal-foot-close, .moa-glossar-link,
  .gb-btn, .gb-reply-edit summary {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(160, 120, 56, 0.25);
  }
}

/* =============================================================== */
/* MOA-Hilfe - drei Wizards auf einer Seite                        */
/* =============================================================== */
.moa-section { padding: 3rem 0; }
.moa-section--head { padding-bottom: 1rem; }
.moa-section--wizard { padding: 1.4rem 0; }
.moa-section--privacy { padding: 1.4rem 0 3rem; }

.moa-block {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2rem 1.6rem;
  box-shadow: 0 2px 8px rgba(58, 36, 18, 0.05);
}
.moa-block-title {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: .01em;
}
.moa-block-intro {
  font-family: var(--ff-text);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.2rem;
}

/* Callouts (gruen = ok / gelb = warn) */
.moa-callout {
  border-left: 4px solid var(--brand);
  background: var(--paper-dark);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  border-radius: 2px;
}
.moa-callout--good { border-left-color: #5a8b3d; }
.moa-callout--warn { border-left-color: #b8851d; }
.moa-callout--small { font-size: .95rem; padding: .8rem 1rem; margin: 1rem 0; }

/* Turret-Tiles in Sektion 1 */
.moa-turret-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.moa-turret-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.2rem 1rem;
  background: var(--paper-dark);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.moa-turret-tile:hover,
.moa-turret-tile:focus-visible {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 36, 18, 0.12);
  outline: none;
}
.moa-turret-svg { width: 160px; height: 160px; max-width: 100%; }
.moa-turret-label {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.moa-turret-desc {
  font-family: var(--ff-text);
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Aufklapp-Block */
.moa-details {
  margin: 1.5rem 0 .5rem;
  background: var(--paper-dark);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 0;
}
.moa-details summary {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  padding: .9rem 1.2rem;
  list-style: none;
}
.moa-details summary::-webkit-details-marker { display: none; }
.moa-details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: .6rem;
  color: var(--brand);
  transition: transform .2s ease;
}
.moa-details[open] summary::before { transform: rotate(90deg); }
.moa-details-body { padding: 0 1.2rem 1.2rem; }
.moa-details-body p {
  font-family: var(--ff-text);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 .8rem;
}
.moa-exception-list {
  margin: .5rem 0 1rem;
  padding-left: 1.4rem;
  font-family: var(--ff-text);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}
.moa-exception-list li { margin-bottom: .4rem; }

/* POI/POA-Vergleich */
.moa-poi-poa-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 0;
}
.moa-poi-poa-col {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: .8rem;
}
.moa-poi-poa-col--warn { border-color: #b8851d; }
.moa-poi-poa-head {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: .5rem;
  text-align: center;
}
.moa-poi-poa-col svg { width: 100%; height: auto; }

/* Wizard-Steps (Rechner + Korrektur) */
.moa-rechner-step { margin: 1.6rem 0; }
.moa-rechner-step-label {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.moa-rechner-step-hint {
  font-family: var(--ff-text);
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: .4rem 0 0;
  line-height: 1.5;
}
.moa-rechner-substep { margin: 1.2rem 0; }
.moa-rechner-substep-label {
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: .4rem;
}

/* Pills */
.moa-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.moa-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: .65rem 1rem;
  min-height: 44px;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.moa-pill:hover,
.moa-pill:focus-visible {
  border-color: var(--brand);
  outline: none;
}
.moa-pill.is-selected {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
}
.moa-pill--bruchteil {
  align-items: flex-start;
  padding: .7rem 1.1rem;
  line-height: 1.3;
}
.moa-pill-main { font-weight: 600; }
.moa-pill-desc {
  font-size: .82rem;
  font-weight: 400;
  font-style: italic;
  opacity: .85;
  margin-top: .15rem;
}
.moa-pill--help {
  background: transparent;
  border-style: dashed;
  font-style: italic;
}
.moa-pill--takeover {
  background: var(--paper-dark);
  border-color: var(--brand);
  color: var(--ink);
}

.moa-custom-input {
  margin-top: .8rem;
  font-family: var(--ff-text);
  font-size: 1rem;
  color: var(--ink-soft);
}
.moa-custom-input input {
  width: 100px;
  padding: .4rem .6rem;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  font-family: var(--ff-ui);
  font-size: 1rem;
  margin: 0 .3rem;
}

.moa-takeover {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
  padding: .7rem 1rem;
  background: var(--paper-dark);
  border: 1px dashed var(--brand);
  border-radius: 4px;
}
.moa-takeover-info {
  font-family: var(--ff-text);
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Richtungs-Tiles (Sektion 3 Schritt A) */
.moa-direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .8rem;
}
.moa-direction-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1.1rem .8rem;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  min-height: 44px;
}
.moa-direction-tile:hover,
.moa-direction-tile:focus-visible {
  border-color: var(--brand);
  transform: translateY(-1px);
  outline: none;
}
.moa-direction-tile.is-selected {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
}
.moa-direction-svg {
  width: 80px;
  height: 80px;
  display: block;
}
.moa-direction-label {
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: .95rem;
  text-align: center;
}

/* Result-Card */
.moa-result-card {
  margin-top: 2rem;
  padding: 1.6rem 1.4rem;
  background: var(--paper-dark);
  border: 2px solid var(--brand);
  border-radius: 6px;
}
.moa-result-headline {
  font-family: var(--ff-ui);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
  text-align: center;
}
.moa-result-big {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-block;
  margin: 0 .3rem;
  letter-spacing: .01em;
}
.moa-result-meta {
  font-family: var(--ff-text);
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.moa-result-detail {
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: .5rem;
}
.moa-result-table {
  margin: 1.2rem 0;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}
.moa-result-table-head {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink);
  margin-bottom: .6rem;
}
.moa-result-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-ui);
}
.moa-result-table td {
  padding: .4rem .6rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 1rem;
  color: var(--ink);
}
.moa-result-table tr:last-child td { border-bottom: none; }
.moa-result-memo {
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  background: var(--paper);
  border-left: 3px solid var(--brand);
  font-family: var(--ff-text);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  border-radius: 2px;
}

/* Korrektur-Visualisierung */
.moa-korrektur-visual {
  display: flex;
  justify-content: center;
  margin: 1.2rem 0;
}
.moa-korrektur-svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* Klick-Tabelle Bonus-Block */
.moa-klick-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-ui);
  font-size: 1rem;
  margin-top: .6rem;
}
.moa-klick-table th,
.moa-klick-table td {
  padding: .5rem .8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink);
}
.moa-klick-table th {
  background: var(--paper-dark);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.moa-klick-table tr:last-child td { border-bottom: none; }

/* MOA-Cone */
.moa-cone-wrap {
  margin: 1rem 0;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1rem;
}
.moa-cone-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Glossar-Link-Style (Inline-Button) */
.moa-glossar-link {
  display: inline-block;
  padding: .25rem .7rem;
  background: var(--paper-dark);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: .92rem;
  line-height: 1.4;
  color: var(--brand);
  cursor: pointer;
  margin: .15rem .15rem;
  transition: background .15s ease, color .15s ease;
}
.moa-glossar-link:hover,
.moa-glossar-link:focus-visible {
  background: var(--brand);
  color: var(--paper);
  outline: none;
}

/* Control-Buttons */
.moa-control {
  display: inline-block;
  margin: 1.2rem auto 0;
  padding: .65rem 1.4rem;
  min-height: 44px;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.moa-control:hover,
.moa-control:focus-visible {
  background: var(--brand);
  color: var(--paper);
  outline: none;
}
.moa-control--reset { display: block; margin-left: auto; margin-right: auto; }

/* Modals */
.moa-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 27, 16, .65);
  padding: 1rem;
  overscroll-behavior: contain;
}
.moa-modal[hidden] { display: none; }
.moa-modal-card {
  background: var(--paper);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 6px;
  padding: 2rem 1.8rem 0;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  overscroll-behavior: contain;
}
.moa-modal-close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 44px;
  height: 44px;
  background: var(--paper-dark);
  border: 1px solid var(--brand);
  border-radius: 4px;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--brand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.moa-modal-close:hover,
.moa-modal-close:focus-visible {
  background: var(--brand);
  color: var(--paper);
  outline: none;
}
.moa-modal-card h3 {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 1rem;
  padding-right: 3.5rem;
}
.moa-modal-card p,
.moa-modal-card ol,
.moa-modal-card ul {
  font-family: var(--ff-text);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1rem;
}
.moa-modal-card ol { padding-left: 1.4rem; }
.moa-modal-card ol li { margin-bottom: .5rem; }
.moa-modal-short {
  font-weight: 500;
  color: var(--ink) !important;
}
.moa-modal-long {
  color: var(--ink-soft) !important;
}
.moa-modal-foot {
  position: sticky;
  bottom: 0;
  margin: 1.5rem -1.8rem 0;
  padding: .9rem 1.8rem calc(2rem + env(safe-area-inset-bottom));
  background: var(--paper-dark);
  border-top: 1px solid var(--border-soft);
  text-align: right;
}
.moa-modal-foot-close {
  padding: .55rem 1.2rem;
  min-height: 44px;
  background: var(--paper);
  border: 1px solid var(--brand);
  border-radius: 4px;
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: 1rem;
  color: var(--brand);
  cursor: pointer;
}
.moa-modal-foot-close:hover,
.moa-modal-foot-close:focus-visible {
  background: var(--brand);
  color: var(--paper);
  outline: none;
}

/* Mobile */
@media (max-width: 640px) {
  .moa-block { padding: 1.4rem 1rem; }
  .moa-block-title { font-size: 1.3rem; }
  .moa-block-intro { font-size: 1rem; }
  .moa-turret-svg { width: 130px; height: 130px; }
  .moa-poi-poa-compare { grid-template-columns: 1fr; }
  .moa-result-big { font-size: 2.1rem; }
  .moa-result-headline { font-size: 1.1rem; }
  .moa-pill { font-size: .95rem; padding: .6rem .9rem; }
  .moa-direction-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .moa-direction-svg { width: 64px; height: 64px; }
  .moa-modal-card { padding: 1.5rem 1.3rem 0; }
  .moa-modal-card h3 { font-size: 1.15rem; padding-right: 3.5rem; }
  .moa-modal-foot { margin: 1.5rem -1.3rem 0; padding: .8rem 1.3rem calc(2rem + env(safe-area-inset-bottom)); }
}

/* === Vorstands-Verwaltung (Admin) ================================ */
/* Mini-Vorschau in der Listen-Ansicht (gleiche Rahmen-Optik wie Startseite). */
.board-admin-thumb {
  flex: 0 0 auto;
  width: 54px;
  height: 74px;
  border: 1px solid var(--brand);
  padding: 2px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper-dark), var(--hair));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--muted);
}
.board-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Editor-Layout: Eingabefelder links, Live-Vorschau rechts (sticky). */
.board-editor-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1rem;
}
.board-editor-preview {
  position: sticky;
  top: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 1.5rem;
  text-align: center;
}
.board-editor-preview .board-frame { margin: 0 auto 1.5rem; }
.board-editor-preview-label {
  font-family: var(--ff-ui);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.board-slider {
  text-align: left;
  margin-bottom: 1rem;
}
.board-slider label {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-ui);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}
.board-slider output {
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  font-weight: 500;
}
.board-slider input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}
@media (max-width: 820px) {
  .board-editor-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .board-editor-preview { position: static; }
}
