/* =========================================================================
   Bestelltheke — Hilfe & Handbuch
   Gestaltungsidee: das gedruckte Werkstatthandbuch. Warmes Papier, ruhige
   Serifen-Ueberschriften (Fraunces), kraeftige Glut-Akzente aus der Marke.
   Bewusst hell: der Betreiber liest hier lange Texte und schaut auf helle
   Screenshots aus seiner Verwaltung — dunkles Marketing-Schwarz waere hier
   anstrengend und die Bilder wuerden wie Fremdkoerper wirken. Die Marke
   traegt stattdessen Kopfzeile, Akzente und Angebotskarten.
   ========================================================================= */

:root {
  /* Papier */
  --paper:      #FDFAF6;
  --paper-2:    #F7F1E8;
  --paper-3:    #EFE7DA;
  --card:       #FFFFFF;

  /* Tinte */
  --ink:        #191512;
  --ink-2:      #463E37;
  --ink-3:      #7C7168;
  --ink-4:      #A79C91;

  /* Glut (aus bestelltheke.de) */
  --ember:      #FF5C1A;
  --ember-hot:  #FF8A3C;
  --ember-deep: #D8410C;
  --ember-tint: #FFF1E9;
  --sear:       linear-gradient(135deg, #FF8A3C 0%, #FF5C1A 52%, #D8410C 100%);

  /* Marke dunkel */
  --void:       #0A0908;
  --steel:      #141311;
  --steel-2:    #1D1B18;

  /* Signal */
  --go:         #2F9E5B;
  --go-tint:    #EDF7F0;
  --warn:       #B5761B;
  --warn-tint:  #FDF5E7;

  --edge:       rgba(25, 21, 18, .10);
  --edge-soft:  rgba(25, 21, 18, .06);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --rail: 296px;
  --measure: 74ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Feine Papierkoernung — gibt Flaechen Textur ohne Bilddatei */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

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

/* ---------------------------------------------------------------- Kopfzeile */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--void);
  border-bottom: 1px solid rgba(255, 244, 232, .10);
}

.kopf-innen {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.kopf-marke { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.kopf-marke img { width: 38px; height: 38px; border-radius: 50%; }

.kopf-marke b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: #F6F2ED;
  letter-spacing: -.01em;
}

.kopf-marke span {
  font-size: 13px;
  color: var(--ember-hot);
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600;
  padding-left: 13px;
  margin-left: 2px;
  border-left: 1px solid rgba(255, 244, 232, .18);
}

.kopf-tat { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.kopf-hilfe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--sear);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 92, 26, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.kopf-hilfe:hover { transform: translateY(-1px); box-shadow: 0 7px 22px rgba(255, 92, 26, .42); color: #fff; }

.kopf-zurueck {
  color: #A79C91;
  text-decoration: none;
  font-size: 14.5px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 232, .14);
  transition: border-color .18s ease, color .18s ease;
}
.kopf-zurueck:hover { color: #F6F2ED; border-color: rgba(255, 244, 232, .34); }

/* ------------------------------------------------------------------- Gerüst */

.schale {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 56px;
  position: relative;
  z-index: 2;
}

.rail {
  position: sticky;
  top: 68px;
  align-self: start;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 38px 0 60px;
  scrollbar-width: thin;
}

.rail-titel {
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 700;
  margin: 0 0 14px 14px;
}

.rail-liste { list-style: none; margin: 0 0 32px; padding: 0; }

.rail-liste a {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15.5px;
  line-height: 1.42;
  transition: background .16s ease, color .16s ease;
}
.rail-liste a:hover { background: var(--paper-2); color: var(--ink); }

.rail-liste a.aktiv {
  background: var(--ember-tint);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--ember);
}

.rail-nr {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-4);
  min-width: 18px;
  font-variant-numeric: tabular-nums;
}
.rail-liste a.aktiv .rail-nr { color: var(--ember-deep); }

.rail-bald { opacity: .5; }
.rail-bald a { cursor: default; }
.rail-bald a:hover { background: none; color: var(--ink-2); }

.inhalt { padding: 46px 0 120px; min-width: 0; max-width: var(--measure); }

/* --------------------------------------------------------------- Typografie */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
}

h1 { font-size: clamp(35px, 4.4vw, 47px); margin: 0 0 18px; }
h2 { font-size: 28px; margin: 62px 0 18px; padding-top: 8px; }
h3 { font-size: 21px; margin: 40px 0 12px; font-weight: 600; }

.dach {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 14px;
}

.lead {
  font-size: 20.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0 0 34px;
}

p { margin: 0 0 20px; }
strong { color: var(--ink); font-weight: 600; }

code {
  font-family: var(--font-mono);
  font-size: .87em;
  background: var(--paper-3);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink);
  word-break: break-all;
}

hr {
  border: 0;
  border-top: 1px solid var(--edge);
  margin: 54px 0;
}

/* --------------------------------------------------------------- Schrittwerk */

.schritte { list-style: none; counter-reset: s; margin: 26px 0 30px; padding: 0; }

.schritte > li {
  counter-increment: s;
  position: relative;
  padding: 0 0 26px 54px;
  border-left: 2px solid var(--paper-3);
  margin-left: 15px;
}
.schritte > li:last-child { border-left-color: transparent; padding-bottom: 4px; }

.schritte > li::before {
  content: counter(s);
  position: absolute;
  left: -16px;
  top: -3px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--ember);
  color: var(--ember-deep);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.schritte h4 {
  margin: 2px 0 7px;
  font-size: 18.5px;
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: 0;
}
.schritte p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- Kästen */

.kasten {
  border-radius: 14px;
  padding: 22px 26px;
  margin: 30px 0;
  border: 1px solid var(--edge);
  background: var(--card);
}
.kasten > :last-child { margin-bottom: 0; }
.kasten-titel {
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16.5px;
}

.kasten.tipp   { background: var(--warn-tint); border-color: rgba(181, 118, 27, .22); }
.kasten.achtung{ background: var(--ember-tint); border-color: rgba(216, 65, 12, .22); }
.kasten.gut    { background: var(--go-tint);   border-color: rgba(47, 158, 91, .22); }

/* ------------------------------------------------ Wir-helfen-dir (Kernmotiv) */

.beistand {
  position: relative;
  margin: 38px 0;
  padding: 26px 30px 26px 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFF8F3 0%, #FFF3EB 100%);
  border: 1px solid rgba(255, 92, 26, .26);
}
.beistand::before {
  content: '';
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--sear);
}
.beistand h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 7px;
  letter-spacing: 0;
}
.beistand p { margin: 0 0 14px; color: var(--ink-2); }
.beistand p:last-child { margin-bottom: 0; }

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 21px;
  border-radius: 999px;
  background: var(--sear);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 92, 26, .26);
  transition: transform .18s ease, box-shadow .18s ease;
}
.knopf:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 92, 26, .38); }

.knopf.leise {
  background: transparent;
  color: var(--ember-deep) !important;
  border: 1.5px solid rgba(216, 65, 12, .32);
  box-shadow: none;
}
.knopf.leise:hover { border-color: var(--ember); background: var(--ember-tint); transform: none; }

/* ------------------------------------------------------ Einrichtungs-Angebot */

.angebot {
  position: relative;
  overflow: hidden;
  margin: 46px 0;
  padding: 34px 36px;
  border-radius: 20px;
  background: var(--steel);
  color: #D8D2CA;
  box-shadow: 0 20px 48px rgba(10, 9, 8, .22);
}
.angebot::after {
  content: '';
  position: absolute;
  right: -110px; top: -110px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 26, .30) 0%, transparent 68%);
  pointer-events: none;
}
.angebot h3 {
  color: #F6F2ED;
  margin: 0 0 10px;
  font-size: 25px;
}
.angebot p { position: relative; z-index: 2; margin-bottom: 16px; }
.angebot strong { color: #F6F2ED; }
.angebot .preis {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.angebot .preis small {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ember-hot);
  letter-spacing: .04em;
}
.angebot ul { margin: 0 0 20px; padding-left: 20px; }
.angebot li { margin-bottom: 5px; }
.angebot .knopf { position: relative; z-index: 2; }

/* -------------------------------------------------------------- Bildstrecken */

figure {
  margin: 32px 0;
}
figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--edge);
  box-shadow: 0 10px 34px rgba(25, 21, 18, .10);
}
figcaption {
  margin-top: 11px;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
  padding-left: 15px;
  border-left: 2px solid var(--ember);
}

/* --------------------------------------------------------------- Kapitelraster */

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  gap: 18px;
  margin: 30px 0 40px;
}

.karte {
  display: block;
  padding: 22px 24px;
  border-radius: 15px;
  background: var(--card);
  border: 1px solid var(--edge);
  text-decoration: none;
  color: var(--ink-2);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.karte:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 92, 26, .38);
  box-shadow: 0 14px 34px rgba(25, 21, 18, .10);
  color: var(--ink-2);
}
.karte b {
  display: block;
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.karte span { font-size: 15px; line-height: 1.55; display: block; }

.karte-nr {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ember-deep);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 9px;
  font-weight: 600;
}

.karte.bald { opacity: .62; pointer-events: none; }
.karte.bald .karte-nr { color: var(--ink-4); }

.marke-bald {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: var(--paper-3);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ------------------------------------------------------- Aufklappbare Wege
   Fuer Anleitungen, die vollstaendig da sein sollen, den empfohlenen Weg aber
   nicht zustellen duerfen (PayPal und Stripe neben Mollie). */

.klappe {
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--card);
  margin: 20px 0;
  overflow: hidden;
}

.klappe > summary {
  cursor: pointer;
  padding: 19px 24px;
  font-weight: 650;
  color: var(--ink);
  font-size: 17px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .16s ease;
}
.klappe > summary::-webkit-details-marker { display: none; }
.klappe > summary:hover { background: var(--paper-2); }

.klappe > summary::before {
  content: '+';
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--ember);
  color: var(--ember-deep);
  font: 600 17px/23px var(--font-mono);
  text-align: center;
}
.klappe[open] > summary::before { content: '–'; }
.klappe[open] > summary { border-bottom: 1px solid var(--edge); background: var(--paper-2); }

.klappe > summary em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-3);
  font-size: 15px;
}

.klappe-inhalt { padding: 6px 26px 22px; }
.klappe-inhalt > :first-child { margin-top: 18px; }
.klappe-inhalt > :last-child { margin-bottom: 6px; }

/* ------------------------------------------------------------------ Tabellen */

.tab-huelle { overflow-x: auto; margin: 28px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--edge);
}
th {
  text-align: left;
  padding: 13px 16px;
  background: var(--paper-2);
  font-weight: 650;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--edge);
  white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--edge-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------- Zeitangabe */

/* Bewusst kein Flexbox: der Satz soll auf schmalen Schirmen normal umbrechen,
   statt in einzelne Wortbloecke zu zerfallen. */
.aufwand {
  display: inline-block;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px solid var(--edge);
  padding: 7px 16px;
  border-radius: 16px;
  margin-bottom: 26px;
}
.aufwand b { color: var(--ink); font-weight: 600; white-space: nowrap; }

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

.fuss {
  background: var(--void);
  color: #8B857D;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}
.fuss-innen {
  max-width: 1380px;
  margin: 0 auto;
  padding: 52px 28px 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.fuss h4 {
  color: #F6F2ED;
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 10px;
}
.fuss p { font-size: 15.5px; line-height: 1.65; margin-bottom: 18px; }
.fuss a { color: var(--ember-hot); }
.fuss-klein {
  border-top: 1px solid rgba(255, 244, 232, .10);
  padding: 20px 28px 26px;
  max-width: 1380px;
  margin: 0 auto;
  font-size: 13.5px;
  color: #6D675F;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.fuss-klein a { color: #8B857D; text-decoration: none; }
.fuss-klein a:hover { color: var(--ember-hot); }

/* -------------------------------------------------------------- Bewegung */

@keyframes auf {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.inhalt > * { animation: auf .5s cubic-bezier(.22, .68, .36, 1) backwards; }
.inhalt > *:nth-child(1) { animation-delay: .02s; }
.inhalt > *:nth-child(2) { animation-delay: .06s; }
.inhalt > *:nth-child(3) { animation-delay: .10s; }
.inhalt > *:nth-child(4) { animation-delay: .14s; }
.inhalt > *:nth-child(5) { animation-delay: .18s; }

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

/* ---------------------------------------------------------------- Schmal */

@media (max-width: 1040px) {
  .schale { grid-template-columns: 1fr; gap: 0; }
  .rail {
    position: static;
    max-height: none;
    padding: 26px 0 8px;
    border-bottom: 1px solid var(--edge);
    margin-bottom: 8px;
  }
  /* Auf schmalen Schirmen wird aus der Kapitelspalte eine seitlich schiebbare
     Chip-Leiste — sonst stuenden vor jedem Text erst elf Navigationszeilen. */
  .rail-liste {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 7px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .rail-liste::-webkit-scrollbar { display: none; }
  .rail-liste li { flex: 0 0 auto; scroll-snap-align: start; }
  .rail-liste a {
    border: 1px solid var(--edge);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 14.5px;
    white-space: nowrap;
    background: var(--card);
  }
  .rail-liste a.aktiv { box-shadow: none; border-color: var(--ember); }
  .rail-titel { margin-left: 2px; }

  /* Die Support-Wege stehen auf dem Handy im Kopf und im Fuss — hier waeren sie doppelt. */
  .rail-support { display: none; }
  .inhalt { padding-top: 26px; max-width: none; }
  .fuss-innen { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .kopf-innen, .schale, .fuss-innen { padding-left: 18px; padding-right: 18px; }
  .kopf-marke span { display: none; }
  .kopf-zurueck { display: none; }
  .angebot { padding: 26px 22px; }
  .beistand { padding: 22px 22px 22px 26px; }
  .schritte > li { padding-left: 44px; }
  h2 { font-size: 24px; }
}
