/* =========================================================================
   Arkanum Leseprobe. Gleiche visuelle Sprache wie die Verkaufsseite und die
   App: Messing auf Tinte, Fraunces als Display, Spectral im Lauftext,
   IBM Plex Mono fuer Aktenzeichen.
   ========================================================================= */

:root {
  --ink:       #080a0d;
  --bg:        #0b0e12;
  --bg-2:      #0d1116;
  --panel:     #11151b;
  --panel-2:   #161b23;
  --panel-3:   #1c232d;
  --line:      #232c37;
  --line-soft: #1a212a;
  --hairline:  rgba(211, 168, 76, 0.22);
  --text:      #eaeef4;
  --text-2:    #b9c3d0;
  --muted:     #8a95a4;
  --faint:     #7f8a99;
  --brass:     #d3a84c;
  --brass-hi:  #ecc873;
  --brass-dim: #8d6f2e;
  --danger:    #d2564d;
  --ok:        #47ab7d;

  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --serif:   "Spectral", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 18px;
  --breite: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

::selection { background: rgba(211, 168, 76, 0.28); color: var(--text); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Feines Rauschen plus Messing-Licht von oben. Wie auf der Produktseite. */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(1100px 460px at 50% -8%, rgba(211, 168, 76, 0.05), transparent 60%);
}

a { color: var(--brass); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; }

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

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--panel-3); padding: 10px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--brass-dim); text-decoration: none;
}
.skip:focus { left: 12px; }

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

.kopf {
  position: sticky; top: 0; z-index: 60;
  background: rgba(9, 12, 15, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.marke { display: flex; align-items: baseline; gap: 9px; text-decoration: none; color: var(--text); }
.sigil { color: var(--brass); text-shadow: 0 0 14px rgba(211, 168, 76, 0.5); }
.marke-name { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: 0.3em; }
.marke-zusatz {
  color: var(--faint); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.kopf-nav { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.knopf {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2);
  color: var(--text-2); font-size: 13.2px; text-decoration: none;
  transition: background .16s, color .16s, border-color .16s, transform .16s, box-shadow .16s;
}
.knopf:hover {
  background: var(--panel-3); color: var(--text); border-color: #2f3946;
  transform: translateY(-1px);
}
.knopf.klein { padding: 8px 14px; font-size: 12.6px; border-radius: 8px; }
.knopf.messing {
  background: linear-gradient(170deg, var(--brass-hi) 0%, var(--brass) 34%, #b3872f 78%, #9a742a 100%);
  color: #191204; border-color: rgba(255, 235, 190, 0.35); font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.55),
    inset 0 -8px 16px rgba(107, 84, 35, 0.35),
    0 8px 24px rgba(211, 168, 76, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 0 rgba(255, 244, 214, 0.35);
}
.knopf.messing:hover { filter: brightness(1.06); color: #191204; }
.knopf[aria-pressed="true"] {
  background: rgba(211, 168, 76, 0.1); color: var(--brass); border-color: var(--brass-dim);
}

/* ------------------------------------------------------------------ Inhalt */

main { max-width: var(--breite); margin: 0 auto; padding: 0 24px 90px; position: relative; z-index: 1; }

.intro { padding: 56px 0 34px; max-width: 760px; }
.augenbraue {
  color: var(--brass); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.augenbraue::after {
  content: ""; flex: 0 1 64px; height: 1px;
  background: linear-gradient(90deg, var(--hairline), transparent);
}
.intro h1 {
  font-family: var(--display); font-size: clamp(31px, 5vw, 46px);
  line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 18px; font-weight: 560;
}
.intro-text { color: var(--text-2); font-size: 17px; line-height: 1.7; font-family: var(--serif); }
.intro-text strong { color: var(--brass); font-weight: 600; }
.intro-hinweis {
  margin-top: 20px; padding: 15px 19px; border: 1px solid var(--line-soft);
  border-left: 2px solid var(--brass-dim); border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(120deg, rgba(211, 168, 76, .05), rgba(211, 168, 76, .008) 55%), var(--panel);
  color: var(--muted); font-size: 13.6px; line-height: 1.68;
}

/* --------------------------------------------------------------- Werkzeuge */

.werkzeuge {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.015), transparent 40%), var(--panel);
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 17px 19px; margin-bottom: 24px; display: grid; gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 14px 40px rgba(0, 0, 0, 0.25);
}
.suchfeld { position: relative; display: flex; align-items: center; }
.lupe { position: absolute; left: 15px; color: var(--faint); font-size: 15px; pointer-events: none; }
.suchfeld input {
  width: 100%; padding: 12px 40px 12px 40px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.suchfeld input:focus {
  border-color: var(--brass-dim); background: var(--panel-3);
  box-shadow: 0 0 0 3px rgba(211, 168, 76, 0.08);
}
.suchfeld input::placeholder { color: var(--faint); }
.suchfeld input::-webkit-search-cancel-button { display: none; }
.loeschen {
  position: absolute; right: 12px; color: var(--faint); font-size: 19px; line-height: 1;
  padding: 2px 6px; border-radius: 4px;
}
.loeschen:hover { color: var(--text); background: var(--panel-3); }

.filterzeile { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.filter-titel {
  color: var(--faint); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  width: 84px; flex: none; padding-top: 7px;
}
.filter-hinweis { color: var(--muted); font-size: 13px; line-height: 1.6; }
.filter-hinweis strong { color: var(--brass); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2);
  color: var(--muted); font-size: 11.8px; transition: all .14s; white-space: nowrap;
}
.chip:hover { border-color: #333e4c; color: var(--text-2); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: rgba(211, 168, 76, .12); border-color: var(--brass-dim); color: var(--brass);
  box-shadow: 0 0 14px rgba(211, 168, 76, 0.1);
}
.chip .n { font-family: var(--mono); font-size: 10.5px; opacity: 1; }

.trefferzahl { color: var(--muted); font-size: 12.8px; margin-bottom: 14px; }

/* ----------------------------------------------------------------- Karten */

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; }

.karte {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.014), transparent 40%), var(--panel);
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 17px 18px; text-align: left; display: flex; flex-direction: column; gap: 9px;
  transition: border-color .2s, transform .2s, background .2s, box-shadow .2s;
  width: 100%; position: relative; overflow: hidden;
}
.karte::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  opacity: 0; transition: opacity .2s;
}
.karte:hover {
  border-color: #2b3542; background: var(--panel-2); transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.karte:hover::before { opacity: 1; }
.karte-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.karte-bereich {
  color: var(--faint); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.karte-titel { font-family: var(--display); font-weight: 520; font-size: 17px; line-height: 1.32; }
.karte-orig { color: var(--faint); font-size: 11.5px; font-style: italic; font-family: var(--serif); }
.karte-text {
  color: var(--muted); font-size: 12.9px; line-height: 1.64;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.karte-fuss {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px;
  color: var(--faint); font-size: 11px; flex-wrap: wrap;
}
.punkt { opacity: .4; }

.cred {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600;
  border: 1px solid; white-space: nowrap;
}
.cred .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.evidenz { display: inline-flex; gap: 2.5px; align-items: center; }
.evidenz i { width: 5px; height: 12px; border-radius: 1.5px; background: var(--line); display: block; }
.evidenz i.an { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); box-shadow: 0 0 6px rgba(211, 168, 76, 0.3); }

.leer { text-align: center; padding: 64px 20px; color: var(--muted); }
.leer-sigil { font-size: 32px; color: var(--line); margin-bottom: 14px; }
.leer h2 { font-family: var(--display); font-size: 20px; color: var(--text-2); margin-bottom: 9px; }
.leer p { font-size: 13.4px; max-width: 430px; margin: 0 auto; }

/* --------------------------------------------------------------- Tabelle */

.tabellenhuelle {
  overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 14px 40px rgba(0, 0, 0, 0.25);
}
.tabelle { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.tabelle th {
  text-align: left; padding: 12px 14px; color: var(--faint); font-size: 10.5px;
  letter-spacing: 0.13em; text-transform: uppercase; border-bottom: 1px solid var(--line);
  background: var(--panel); font-weight: 600;
}
.tabelle td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: none; }
.tabelle tr:hover td { background: var(--panel); }
.tabelle .mono { font-family: var(--mono); color: var(--brass); font-size: 12.2px; white-space: nowrap; }
.tabelle .dossier { color: var(--muted); font-size: 12px; }
.tabelle button.dossier:hover { color: var(--brass); text-decoration: underline; }

/* ------------------------------------------------------------- Leseansicht */

.leser-huelle {
  position: fixed; inset: 0; z-index: 120; background: rgba(4, 6, 8, .78);
  backdrop-filter: blur(6px); display: flex; justify-content: center;
  padding: 30px 20px; overflow-y: auto;
}
/* Wichtig: display:flex wuerde das hidden-Attribut ueberschreiben.
   Ohne diese Regel faengt das unsichtbare Overlay alle Klicks ab. */
.leser-huelle[hidden] { display: none; }
.leser {
  width: 100%; max-width: 820px; height: fit-content;
  background: linear-gradient(180deg, #12161d 0%, var(--panel) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 40px 110px rgba(0, 0, 0, .7), 0 0 80px rgba(211, 168, 76, 0.05);
  position: relative;
  animation: auf .24s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes auf { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.leser-zu {
  position: sticky; top: 10px; margin-left: auto; margin-right: 12px; margin-top: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; font-size: 20px; line-height: 1;
  color: var(--muted); border-radius: 50%; z-index: 2;
  background: rgba(17, 21, 27, 0.85); border: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}
.leser-zu:hover { color: var(--text); background: var(--panel-3); }
.leser-inhalt { padding: 6px 42px 10px; }

.dok-kopf { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.dok-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.dok-titel {
  font-family: var(--display); font-weight: 560;
  font-size: clamp(24px, 4vw, 34px); line-height: 1.16; letter-spacing: -0.015em;
}
.dok-orig { color: var(--muted); font-size: 14px; font-style: italic; margin-top: 9px; font-family: var(--serif); }
.dok-zusammenfassung {
  margin-top: 18px; padding: 15px 19px; border: 1px solid var(--line-soft);
  border-left: 2px solid var(--brass-dim); border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(120deg, rgba(211, 168, 76, .05), transparent 60%);
  color: var(--text-2); font-size: 15px; line-height: 1.72; font-family: var(--serif);
}
.dok-fakten { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.fakt-k { color: var(--faint); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; }
.fakt-v { color: var(--text-2); font-size: 12.8px; margin-top: 3px; }

.beleg-gitter { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 28px 0; }
.beleg {
  border: 1px solid var(--line-soft); border-radius: var(--r); padding: 15px 17px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.012), transparent 40%), var(--panel-2);
}
.beleg h4 {
  font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 11px;
  display: flex; align-items: center; gap: 7px;
}
.beleg.ja h4 { color: var(--ok); }
.beleg.evtl h4 { color: #d98a3f; }
.beleg.nein h4 { color: var(--danger); }
.beleg ul { list-style: none; display: grid; gap: 8px; }
.beleg li { font-size: 12.9px; line-height: 1.6; color: var(--text-2); padding-left: 14px; position: relative; }
.beleg li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px;
  border-radius: 50%; background: currentColor; opacity: .5;
}

.praxis {
  margin: 28px 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(150deg, #12191e, var(--panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.praxis-kopf { padding: 15px 20px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.praxis-kopf h3 { font-family: var(--display); font-weight: 540; font-size: 17px; }
.marke-mini {
  font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: 3px;
  background: var(--panel-3); color: var(--muted); border: 1px solid var(--line);
}
.praxis-koerper { padding: 18px 20px; display: grid; gap: 18px; }
.praxis ol { margin-left: 20px; display: grid; gap: 9px; }
.praxis ol li { font-size: 13.9px; line-height: 1.64; color: var(--text-2); }
.praxis ol li::marker { color: var(--brass); font-family: var(--mono); font-size: 12px; }
.warnung { border: 1px solid rgba(210,86,77,.32); background: rgba(210,86,77,.07); border-radius: var(--r-sm); padding: 13px 15px; }
.warnung h4 { color: var(--danger); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 9px; }
.warnung ul { list-style: none; display: grid; gap: 6px; }
.warnung li { font-size: 12.7px; color: #ddbdba; line-height: 1.5; padding-left: 15px; position: relative; }
.warnung li::before { content: "!"; position: absolute; left: 0; color: var(--danger); font-weight: 700; font-size: 11px; }

.fliesstext { font-family: var(--serif); font-size: 16.2px; line-height: 1.8; color: #dae0e9; }
.fliesstext h2 {
  font-family: var(--display); font-weight: 540;
  font-size: 19.5px; margin: 32px 0 13px; color: var(--text);
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.fliesstext h3 { font-family: var(--display); font-weight: 520; font-size: 16.5px; margin: 25px 0 9px; color: var(--text-2); }
.fliesstext p { margin-bottom: 16px; }
.fliesstext ul, .fliesstext ol { margin: 0 0 16px 22px; }
.fliesstext li { margin-bottom: 7px; }
.fliesstext strong { color: var(--text); font-weight: 600; }
.fliesstext blockquote {
  margin: 18px 0; padding: 12px 18px; border-left: 2px solid var(--brass-dim);
  color: var(--text-2); font-style: italic; background: rgba(255,255,255,.015);
}
.fliesstext code { font-family: var(--mono); font-size: .82em; background: var(--panel-2); padding: 2px 6px; border-radius: 4px; color: var(--brass); }

.block { margin: 28px 0; }
.block h3 {
  font-family: var(--display); font-weight: 540; font-size: 17px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.code-pille {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px;
  padding: 4px 10px; border-radius: 5px; background: var(--panel-3); border: 1px solid var(--line);
  color: var(--brass); margin: 0 5px 5px 0;
}
.quelle { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.9px; }
.quelle:last-child { border-bottom: none; }
.quelle .ref { font-family: var(--mono); font-size: 10.8px; color: var(--brass); margin-top: 3px; word-break: break-all; }
.quelle .art { color: var(--faint); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.pillen { display: flex; flex-wrap: wrap; gap: 6px; }

.leser-fuss {
  border-top: 1px solid var(--hairline); padding: 22px 42px 28px; margin-top: 14px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background:
    radial-gradient(420px 120px at 50% 0%, rgba(211, 168, 76, 0.07), transparent 70%),
    rgba(211,168,76,.03);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.leser-fuss p { color: var(--muted); font-size: 13px; flex: 1; min-width: 220px; }

/* ------------------------------------------------------------------- Fuss */

.fuss {
  border-top: 1px solid var(--line-soft); padding: 34px 24px 50px;
  text-align: center; position: relative; z-index: 1; background: var(--ink);
}
.fuss-zeile { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.fuss-klein { color: var(--faint); font-size: 11.5px; line-height: 1.7; max-width: 620px; margin: 0 auto; }

/* ------------------------------------------------------------------ Mobil */

@media (max-width: 760px) {
  main { padding: 0 16px 70px; }
  .kopf-innen { padding: 11px 16px; gap: 12px; }
  .marke-zusatz { display: none; }
  .kopf-nav { width: 100%; margin-left: 0; }
  .intro { padding: 38px 0 26px; }
  .filter-titel { width: 100%; padding-top: 0; }
  .karten { grid-template-columns: 1fr; }
  .leser-huelle { padding: 0; }
  .leser { border-radius: 0; border-left: none; border-right: none; min-height: 100vh; }
  .leser-inhalt { padding: 0 20px 10px; }
  .leser-fuss { padding: 18px 20px 30px; border-radius: 0; }
  .dok-fakten { gap: 16px; }
}

@media (max-width: 380px) {
  body { font-size: 14.5px; }
  .karte { padding: 14px; }
  .leser-inhalt { padding: 0 15px 10px; }
}
