/* kiss-ge.de - Wegrand Stylesheet */

@font-face {
  font-family: 'Besley';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/besley-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Besley';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/besley-italic-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/assistant-var.woff2') format('woff2');
}

:root {
  --papier: #F6F1EA;
  --papier-tief: #EFE7DC;
  --tinte: #38292E;
  --tinte-60: rgba(56, 41, 46, 0.6);
  --tinte-30: rgba(56, 41, 46, 0.3);
  --tinte-12: rgba(56, 41, 46, 0.12);
  --rosenholz: #B25E68;
  --rosenholz-dunkel: #96434E;
  --rosenholz-35: rgba(178, 94, 104, 0.35);
  --schieferblau: #4A6274;
  --schieferblau-hell: #6E8598;
  --schrift-kopf: 'Besley', 'Georgia', serif;
  --schrift-lauf: 'Assistant', 'Segoe UI', sans-serif;
  /* Motion: ruhiges Gleiten */
  --gang: cubic-bezier(0.22, 1, 0.36, 1);
  --takt-kurz: 180ms;
  --takt-mittel: 420ms;
  --takt-lang: 900ms;
  accent-color: var(--rosenholz);
  scrollbar-color: var(--rosenholz) var(--papier-tief);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--schrift-lauf);
  font-size: 1.075rem;
  line-height: 1.72;
  color: var(--tinte);
  background: var(--papier);
}

::selection { background: var(--rosenholz-35); color: var(--tinte); }

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

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

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--schrift-kopf);
  line-height: 1.22;
  color: var(--tinte);
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); font-weight: 600; margin: 2.6rem 0 0.9rem; }
h3 { font-size: 1.16rem; font-weight: 600; margin: 1.8rem 0 0.6rem; }

p { margin: 0 0 1.1rem; }

ul, ol { margin: 0 0 1.2rem 1.3rem; }
li { margin-bottom: 0.4rem; }

ul li::marker { content: '\25C6\00A0\00A0'; color: var(--rosenholz); font-size: 0.72em; }
ol li::marker { color: var(--rosenholz); font-weight: 700; }

/* Fliesstext-Links: getoente Unterstreichung setzt sich fest */
main a:not(.knopf):not(.wm-link) {
  color: var(--schieferblau);
  text-decoration: underline;
  text-decoration-color: var(--rosenholz-35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--takt-kurz) var(--gang), color var(--takt-kurz) var(--gang);
}
main a:not(.knopf):not(.wm-link):hover,
main a:not(.knopf):not(.wm-link):focus-visible {
  color: var(--tinte);
  text-decoration-color: var(--rosenholz);
  text-decoration-thickness: 2px;
}

hr {
  border: 0;
  height: 14px;
  margin: 3rem auto;
  max-width: 220px;
  background:
    radial-gradient(circle at 50% 100%, var(--tinte-30) 0 3px, transparent 3px) 50% 0 / 14px 14px no-repeat,
    linear-gradient(90deg, transparent, var(--tinte-30) 20% 80%, transparent) 50% 100% / 100% 1px no-repeat;
}

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

.huelle { max-width: 1080px; margin: 0 auto; padding: 0 1.4rem; }

.lesespalte { max-width: 70ch; margin-inline: auto; }

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

.seitenkopf {
  border-bottom: 1px solid var(--tinte-12);
  background: var(--papier);
}

.seitenkopf .huelle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--tinte);
}

.marke svg { display: block; }

.marke .markenname {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.marke .markenname .tld { color: var(--rosenholz); }

.hauptmenue ul {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.hauptmenue li { margin: 0; }
.hauptmenue li::marker { content: none; }

.hauptmenue a {
  position: relative;
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--tinte);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.hauptmenue a::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--rosenholz);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--takt-kurz) var(--gang);
}

.hauptmenue a:hover::after,
.hauptmenue a:focus-visible::after,
.hauptmenue a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Bühne (Hero) ---------- */

.buehne { padding: 3.4rem 0 2.4rem; }

.buehne .huelle {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.buehne .vorwort {
  font-size: 1.16rem;
  color: var(--tinte-60);
  max-width: 56ch;
  margin-top: 1.1rem;
}

.buehne .steinzeichen { justify-self: center; }

@media (max-width: 760px) {
  .buehne .huelle { grid-template-columns: 1fr; }
  .buehne .steinzeichen { display: none; }
}

/* ---------- Wegmarken-Pfad (Startseite) ---------- */

.pfad {
  position: relative;
  padding: 2rem 0 3rem;
}

.pfad-spur {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    180deg,
    var(--tinte-30) 0 10px,
    transparent 10px 20px
  );
}

.wegmarke {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4.2rem;
  align-items: center;
  padding: 2.4rem 0;
}

.wegmarke .stationsbild {
  position: relative;
}

.wegmarke .stationsbild img {
  width: 100%;
  border: 1px solid var(--tinte-12);
  box-shadow: 8px 8px 0 var(--papier-tief);
}

.wegmarke:nth-of-type(even) .stationsbild { order: 2; }
.wegmarke:nth-of-type(even) .stationstext { order: 1; text-align: right; }
.wegmarke:nth-of-type(even) .stationstext .wm-link { margin-left: auto; }

.stationsnummer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--papier);
  border: 2px solid var(--rosenholz);
  border-radius: 50%;
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rosenholz-dunkel);
  z-index: 1;
}

.stationstext h2 { margin-top: 0; }

.stationstext h2 a {
  color: var(--tinte);
  text-decoration: none;
}

.stationstext h2 a:hover,
.stationstext h2 a:focus-visible {
  color: var(--rosenholz-dunkel);
}

.stationstext .themazeile {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--schieferblau);
  margin-bottom: 0.5rem;
}

.wm-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
  color: var(--rosenholz-dunkel);
  text-decoration: none;
  font-weight: 700;
}

.wm-link .pfeil {
  transition: transform var(--takt-kurz) var(--gang);
}

.wm-link:hover .pfeil,
.wm-link:focus-visible .pfeil {
  transform: translateX(5px);
}

@media (max-width: 760px) {
  .pfad-spur { left: 21px; transform: none; }
  .wegmarke { grid-template-columns: 1fr; gap: 1.2rem; padding-left: 54px; }
  .wegmarke:nth-of-type(even) .stationsbild { order: 1; }
  .wegmarke:nth-of-type(even) .stationstext { order: 2; text-align: left; }
  .wegmarke:nth-of-type(even) .stationstext .wm-link { margin-left: 0; }
  .stationsnummer { left: 21px; top: 2.6rem; transform: translate(-50%, 0); width: 40px; height: 40px; }
}

/* ---------- Inhaltsflächen ---------- */

.inhaltsband { padding: 2.4rem 0 1rem; }

.inhaltsband .lesespalte { margin: 0 auto; }

.randnotiz {
  margin: 1.8rem 0;
  padding: 1.1rem 1.3rem 1.1rem 3.2rem;
  border: 1px solid var(--tinte-12);
  background:
    radial-gradient(circle at 1.55rem 1.9rem, var(--rosenholz) 0 4px, transparent 5px),
    radial-gradient(circle at 1.55rem 2.55rem, var(--tinte-30) 0 3px, transparent 4px),
    var(--papier-tief);
  font-size: 0.98rem;
}

/* ---------- Artikel ---------- */

.artikelkopf { padding: 3rem 0 1.4rem; }

.artikelkopf .themazeile {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--schieferblau);
  margin-bottom: 0.7rem;
}

.datumszeile {
  margin-top: 0.9rem;
  color: var(--tinte-60);
  font-size: 0.95rem;
}

.aufmacher { margin: 1.6rem 0 0; }

.aufmacher img {
  width: 100%;
  border: 1px solid var(--tinte-12);
  box-shadow: 10px 10px 0 var(--papier-tief);
}

.aufmacher figcaption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--tinte-60);
}

.artikel { padding-bottom: 1.5rem; }

.vergleichstafel { overflow-x: auto; margin: 1.4rem 0; }

.vergleichstafel table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.98rem;
}

.vergleichstafel th, .vergleichstafel td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--tinte-12);
  vertical-align: top;
}

.vergleichstafel th {
  font-family: var(--schrift-kopf);
  font-weight: 600;
  border-bottom: 2px solid var(--rosenholz);
}

/* ---------- FAQ ---------- */

.fragenfeld details {
  border-top: 1px solid var(--tinte-12);
}

.fragenfeld details:last-of-type { border-bottom: 1px solid var(--tinte-12); }

.fragenfeld summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1rem 0.2rem;
  cursor: pointer;
}

.fragenfeld summary::-webkit-details-marker { display: none; }

.fragenfeld summary::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  align-self: center;
  background: var(--rosenholz);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: transform var(--takt-kurz) var(--gang);
}

.fragenfeld details[open] summary::before {
  transform: rotate(135deg);
  background: var(--schieferblau);
}

.fragenfeld summary h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
}

.fragenfeld .antwort { padding: 0 0.2rem 1.2rem 2rem; }

/* ---------- Knöpfe: Wegmarken-Ecken ---------- */

.knopf {
  position: relative;
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--tinte);
  color: var(--papier);
  text-decoration: none;
  font-weight: 700;
  transition: background var(--takt-kurz) var(--gang);
}

.knopf::before, .knopf::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--rosenholz);
  transition: transform var(--takt-kurz) var(--gang), opacity var(--takt-kurz) var(--gang);
  opacity: 0;
}

.knopf::before { top: -5px; left: -5px; border-width: 2px 0 0 2px; transform: translate(4px, 4px); }
.knopf::after { bottom: -5px; right: -5px; border-width: 0 2px 2px 0; transform: translate(-4px, -4px); }

.knopf:hover, .knopf:focus-visible { background: var(--rosenholz-dunkel); }
.knopf:hover::before, .knopf:hover::after,
.knopf:focus-visible::before, .knopf:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.knopf:active { transform: translateY(1px); }

/* ---------- Weiterlesen-Verweise ---------- */

.wegweiser {
  margin: 2.5rem 0;
  padding: 1.4rem 0 0.4rem;
  border-top: 2px solid var(--rosenholz);
}

.wegweiser .titelzeile {
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.wegweiser ul { list-style: none; margin-left: 0; }
.wegweiser li { margin-bottom: 0.55rem; }
.wegweiser li::marker { content: none; }

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

.seitenfuss {
  margin-top: 3.5rem;
  border-top: 1px solid var(--tinte-12);
  background: var(--papier-tief);
  padding: 2.2rem 0 2.6rem;
  font-size: 0.95rem;
}

.seitenfuss .huelle {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.seitenfuss .fussmarke {
  max-width: 34ch;
  color: var(--tinte-60);
}

.seitenfuss nav ul { list-style: none; margin: 0; }
.seitenfuss nav li { margin-bottom: 0.4rem; }
.seitenfuss nav li::marker { content: none; }

.seitenfuss a { color: var(--tinte); text-decoration: none; }
.seitenfuss a:hover, .seitenfuss a:focus-visible { color: var(--rosenholz-dunkel); text-decoration: underline; }

.seitenfuss .schlusszeile {
  width: 100%;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--tinte-12);
  color: var(--tinte-60);
  font-size: 0.88rem;
}

/* ---------- Signatur: Pfad zeichnet sich / Linien wachsen ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .pfad-spur {
      background: none;
    }
    .pfad-spur::before {
      content: "";
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(
        180deg,
        var(--tinte-30) 0 10px,
        transparent 10px 20px
      );
      transform-origin: top;
      animation: spurziehen linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 60%;
    }
    .stationsnummer {
      animation: markesetzen var(--takt-mittel) var(--gang) both;
      animation-timeline: view();
      animation-range: entry 15% entry 45%;
    }
    h2 + .linienzug {
      transform-origin: left;
      animation: liniewachsen var(--takt-mittel) var(--gang) both;
      animation-timeline: view();
      animation-range: entry 10% entry 50%;
    }
  }
}

@keyframes spurziehen {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes markesetzen {
  from { opacity: 0; scale: 0.6; }
  to { opacity: 1; scale: 1; }
}

@keyframes liniewachsen {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.linienzug {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--rosenholz);
  margin: 0.35rem 0 1rem;
}

/* ---------- Infografik ---------- */

.schaubild { margin: 2rem 0; }

.schaubild svg { width: 100%; height: auto; }

.schaubild figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--tinte-60);
}

/* Autorenfoto (Über-uns-Seite) */
.autorenfoto { margin: 1.4rem 0 1.8rem; max-width: 320px; }
.autorenfoto img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 26px rgba(56, 41, 46, 0.18); }
.autorenfoto figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--rosenholz); }
