/* Trauerzeilen – gemeinsame Styles für trauerzeilen.de
   Design wie die App: „Papier auf schwarzem Tisch“.
   Schriften lokal (fonts/), kein Nachladen von Google Fonts. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-400i.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --grund: #08080A;
  --flaeche: #18181A;
  --flaeche-2: #222225;
  --linie: #2E2E32;
  --text: #EDEAE4;
  --text-2: #9A968F;
  --akzent: #C8A46A;
  --akzent-hell: #D9BB88;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --breite: 1080px;
  --rand: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--akzent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
a:hover { color: var(--akzent-hell); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h2 { font-size: clamp(2rem, 6vw, 2.75rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: var(--rand);
  top: 8px;
  z-index: 10;
  background: var(--flaeche-2);
  padding: 8px 14px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}
@media (min-width: 720px) {
  :root { --rand: 32px; }
}

/* Kopf */
.kopf {
  border-bottom: 1px solid var(--flaeche-2);
}
.kopf .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  min-height: 48px;
}
.marke:hover { color: var(--text); }
.marke img { width: 36px; height: 36px; border-radius: 50%; }
.kopf nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
}
.kopf nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  padding: 12px 0;
}
.kopf nav a:hover, .kopf nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 420px) {
  .kopf nav .weit { display: none; }
}

/* Abschnitte */
.abschnitt { padding: 72px 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--flaeche); }
@media (min-width: 720px) {
  .abschnitt { padding: 112px 0; }
}
.einleitung {
  color: var(--text-2);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}
.zentriert { text-align: center; }
.zentriert .einleitung { margin-left: auto; margin-right: auto; }

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 72px;
}
@media (min-width: 720px) {
  .hero { padding: 96px 0 112px; }
}
.hero .emblem {
  width: 152px;
  height: 152px;
  margin: 0 auto 28px;
  border-radius: 50%;
}
.wortmarke {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.25rem, 14vw, 5.75rem);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.slogan {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  line-height: 1.3;
  margin: 0 auto 28px;
}
.nutzen {
  color: var(--text-2);
  max-width: 32rem;
  margin: 0 auto 36px;
  font-size: 1.125rem;
}

/* Store-Knöpfe (Platzhalter, noch keine Links) */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.store-knopf {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 196px;
  min-height: 56px;
  padding: 10px 22px;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: var(--flaeche);
  color: var(--text);
  text-align: left;
  line-height: 1.25;
  cursor: default;
}
.store-knopf small {
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.store-knopf span {
  font-weight: 600;
  font-size: 1.05rem;
}
.merkmale {
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--akzent);
  color: #141210;
  font-weight: 600;
  text-decoration: none;
}
.knopf:hover { background: var(--akzent-hell); color: #141210; }

/* Beispielanzeige: weißes Papier auf schwarzem Tisch */
.beispiel {
  margin: 0 auto;
  max-width: 760px;
}
.papier {
  background: #FFFFFF;
  padding: clamp(10px, 3.5%, 28px);
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 40px 90px rgba(0, 0, 0, 0.45),
    0 0 120px rgba(200, 164, 106, 0.06);
}
.papier img { width: 100%; }
.beispiel figcaption {
  color: var(--text-2);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 20px;
}

/* Schritte */
.schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: schritt;
}
@media (min-width: 820px) {
  .schritte { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.schritte li {
  background: var(--flaeche);
  border-radius: 16px;
  padding: 28px 24px;
  counter-increment: schritt;
}
.schritte li::before {
  content: counter(schritt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--akzent);
  border-radius: 50%;
  color: var(--akzent);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.schritte p { color: var(--text-2); margin: 0; }

/* Vorteile */
.vorteile {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .vorteile { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.vorteil {
  background: var(--flaeche);
  border-radius: 16px;
  padding: 28px 24px;
}
.vorteil p { color: var(--text-2); margin: 0; }

.zweispaltig {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-top: 64px;
}
@media (min-width: 900px) {
  .zweispaltig { grid-template-columns: 1fr 1.15fr; gap: 64px; }
}
.zweispaltig p { color: var(--text-2); }

/* Preise */
.preise {
  display: grid;
  gap: 16px;
}
@media (min-width: 820px) {
  .preise { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.preis {
  background: var(--flaeche);
  border: 1px solid var(--flaeche-2);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.preis .betrag {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
  margin: 4px 0 16px;
}
.preis .betrag small {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
}
.preis ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text-2);
}
.preis li { margin-bottom: 6px; }
.preis.hervor { border-color: rgba(200, 164, 106, 0.45); }
.preis-hinweis {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 44rem;
  margin: 28px 0 0;
}

/* FAQ */
.fragen {
  max-width: 46rem;
}
.fragen details {
  border-bottom: 1px solid var(--flaeche-2);
}
.fragen details:first-of-type { border-top: 1px solid var(--flaeche-2); }
.fragen summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1.075rem;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--akzent);
}
.fragen details[open] summary::after { content: "–"; }
.fragen .antwort {
  color: var(--text-2);
  padding: 0 0 20px;
}
.fragen .antwort p:last-child { margin-bottom: 0; }
.fragen .antwort ul { margin: 0 0 1em; padding-left: 1.2em; }

/* Fuß */
.fuss {
  border-top: 1px solid var(--flaeche-2);
  padding: 40px 0 48px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.fuss .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}
.fuss p { margin: 0; }
.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.fuss a {
  color: var(--text-2);
  display: inline-block;
  padding: 12px 0;
}
.fuss a:hover, .fuss a[aria-current="page"] { color: var(--text); }

/* Rechtstexte */
.rechtstext {
  max-width: 70ch;
  margin: 0 auto;
  padding: 48px var(--rand) 80px;
  overflow-wrap: break-word;
}
.rechtstext h1 {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  margin-bottom: 0.6em;
}
.rechtstext h2 {
  font-size: 1.65rem;
  font-weight: 600;
  margin: 2.2em 0 0.6em;
}
.rechtstext ul { padding-left: 1.2em; margin: 0 0 1em; }
.rechtstext li { margin-bottom: 0.5em; }
.rechtstext strong { color: var(--text); font-weight: 600; }
.rechtstext p, .rechtstext li { color: #D6D2CB; }
.todo {
  border: 1px dashed var(--akzent);
  background: rgba(200, 164, 106, 0.08);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
}
.zurueck {
  display: inline-block;
  margin-top: 2.5em;
}

/* Fehlerseite */
.fehler {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px var(--rand);
}
.fehler .emblem {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin-bottom: 28px;
}
.fehler p { color: var(--text-2); max-width: 30rem; }

/* Ratgeber */
.ratgeber { max-width: 76ch; }
.ratgeber h3 { font-size: 1.3rem; font-weight: 600; margin: 1.8em 0 0.5em; }
.ratgeber ol { padding-left: 1.4em; margin: 0 0 1em; }
.ratgeber ol li { margin-bottom: 0.6em; color: #D6D2CB; }
.krumen { font-size: 0.9rem; color: var(--text-2); margin-bottom: 1.2em; }
.krumen a { color: var(--text-2); }
.papier-text {
  background: #FFFFFF;
  color: #111111;
  font-family: var(--serif);
  text-align: center;
  max-width: 420px;
  margin: 1.2em auto 2em;
  padding: 28px 24px;
  border: 3px double #111111;
  outline: 8px solid #FFFFFF;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  font-size: 1.08rem;
  line-height: 1.25;
}
.papier-text p { color: #111111; margin: 0 0 0.7em; }
.papier-text .spruch { font-style: italic; font-size: 0.98rem; }
.papier-text .autor { font-size: 0.8rem; font-style: italic; margin-top: -0.4em; }
.papier-text .name { font-size: 1.9rem; font-weight: 600; margin: 0.2em 0 0.1em; }
.papier-text .daten { font-size: 0.9rem; }
.papier-text .familie { font-weight: 600; }
.papier-text .klein { font-size: 0.82rem; }
.papier-text .ueberschrift { letter-spacing: 0.2em; text-transform: uppercase; }
.verse {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 1em 0 1.6em;
}
.vers {
  margin: 0;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 16px 18px;
}
.vers blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--text);
}
.vers figcaption { margin-top: 0.6em; font-size: 0.85rem; color: var(--text-2); }
.weiterlesen { margin-top: 3em; border-top: 1px solid var(--linie); padding-top: 1em; }
.weiterlesen h2 { margin-top: 0.6em; }
.ratgeber-karten {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  padding: 0;
  margin: 1.5em 0 0;
}
.ratgeber-karten a {
  display: block;
  height: 100%;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
}
.ratgeber-karten a:hover { border-color: var(--akzent); }
.ratgeber-karten strong { display: block; font-family: var(--serif); font-size: 1.35rem; margin-bottom: 0.3em; }
.ratgeber-karten span { color: var(--text-2); font-size: 0.95rem; }
.fuss nav + nav { margin-top: 4px; }
