/* endlichgefragt.de / finallyasked.com
   Gemeinsames Stylesheet – wissenschaftlich hell, Mohn-Akzent.
   Farben ausschliesslich aus dem Hero-Bild. */

/* Nur zwei Schnitte laden – selbst gehostet (kein Google, DSGVO-konform). */
@font-face {
  font-family: "Plex";
  src: local("IBM Plex Sans"), local("IBMPlexSans"),
       url("https://www.endlichgefragt.de/assets/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: local("IBM Plex Sans SemiBold"), local("IBMPlexSans-SemiBold"),
       url("https://www.endlichgefragt.de/assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:      #fdfcfb;   /* Laborlicht */
  --paper-sky:  #eef3f7;   /* ruhige Sekundaerflaeche, Himmelblau sehr hell */
  --ink:        #26221e;   /* warmes Fast-Schwarz */
  --ink-soft:   #5c554d;   /* ruhiger Fliesstext-Grau */
  --line:       #e4e0da;   /* praezise Rasterlinien */
  --line-firm:  #cfc9c0;
  --red:        #ce2b1b;   /* sattes Mohnrot – einzige starke Akzentfarbe */
  --red-dark:   #a8210f;
  --sky:        #6f93a9;   /* Himmelblau, ruhig */
  --green:      #6f8a4f;   /* Blattgruen, sparsam */

  --measure: 66ch;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1200px;

  --f-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --f-head: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

/* ---- Layout-Bausteine ------------------------------------------------ */

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: clamp(64px, 9vw, 132px); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* wissenschaftliches Kapitel-Label */
.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.6rem;
}
.label::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--red);
  display: inline-block;
}

.lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); max-width: var(--measure); }

/* ---- Top-Bar / Sprachumschalter ------------------------------------- */

.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: flex-end; align-items: center;
  padding: clamp(16px, 3vw, 28px) var(--gutter);
}
.lang {
  display: inline-flex; align-items: center;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(253,252,251,0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-firm);
  border-radius: 2px;
  overflow: hidden;
}
.lang a, .lang span {
  padding: 0.5em 0.9em; color: var(--ink-soft); text-decoration: none; display: block;
}
.lang a:hover { color: var(--ink); background: var(--paper-sky); text-decoration: none; }
.lang [aria-current] { background: var(--ink); color: var(--paper); }
.lang .sep { padding: 0; width: 1px; background: var(--line-firm); }

/* ---- Hero ------------------------------------------------------------ */

.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(253,252,251,0.86) 0%, rgba(253,252,251,0.62) 34%, rgba(253,252,251,0.12) 58%, rgba(253,252,251,0) 74%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero__inner { max-width: 40rem; }

.wordmark {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}
.wordmark small { display: block; font-weight: 400; }

.hero__sub { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 400; margin: 0 0 0.7rem; max-width: 24ch; }
.hero__note { color: var(--ink-soft); max-width: 34ch; margin: 0 0 2rem; }

/* ---- Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.65em;
  font-family: var(--f-head); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.5em;
  border: 1px solid var(--red);
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); color: #fff; text-decoration: none; }
.btn__arrow { transition: transform .15s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---- Architektur der Zwoelf ----------------------------------------- */

.arch { background: var(--paper-sky); }
.arch__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .arch__grid { grid-template-columns: 1fr; gap: 48px; } }

.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line-firm);
}
.step:last-child { border-bottom: 1px solid var(--line-firm); }
.step__no {
  font-family: var(--f-head); font-weight: 600;
  font-size: 1.05rem; color: var(--red);
  width: 2.4rem; text-align: right; font-variant-numeric: tabular-nums;
}
.step__bar { height: 6px; background: var(--red); border-radius: 1px; opacity: 0.9; }
.step__pos { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.step__row { display: flex; align-items: center; gap: 1rem; }
.step--final .step__no { color: var(--red-dark); }
.arch__final { margin-top: 1.6rem; font-size: 0.98rem; color: var(--ink-soft); border-left: 2px solid var(--red); padding-left: 1rem; }

/* ---- Kostprobe ------------------------------------------------------- */

.taste { text-align: center; }
.taste__lead { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin: 0 0 1.8rem; }
.taste__q {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(1.8rem, 4.4vw, 3.15rem);
  line-height: 1.14; letter-spacing: -0.015em;
  max-width: 20ch; margin: 0 auto 1.8rem;
  text-wrap: balance;
}
.taste__q .quote { color: var(--red); }
.taste__after { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; font-size: 1.02rem; }

/* ---- Fragen-Reihe (Karten) ------------------------------------------ */

.series__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3.4vw, 44px); }
@media (max-width: 760px) { .series__grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card__figure { position: relative; aspect-ratio: 4 / 3; background: var(--paper-sky); overflow: hidden; }
.card__figure img { width: 100%; height: 100%; object-fit: cover; }
.card__cap {
  position: absolute; left: 0; bottom: 0;
  font-size: 0.66rem; letter-spacing: 0.06em; color: var(--ink-soft);
  background: rgba(253,252,251,0.9);
  padding: 0.35em 0.7em; border-top-right-radius: 3px;
}
.card__body { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
.card__no {
  font-family: var(--f-head); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red);
  margin: 0 0 0.55rem;
}
.card__title { font-size: clamp(1.3rem, 2.2vw, 1.72rem); margin: 0 0 0.9rem; }
.card__text { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 1.6rem; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.card__price { font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; }
.status {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.5em; color: var(--ink-soft);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-firm); }
.status--ready { color: var(--green); }
.status--ready::before { background: var(--green); }

/* ---- 13. Frage ------------------------------------------------------- */

.thirteen { background: var(--paper-sky); text-align: center; }
.thirteen__no { font-family: var(--f-head); font-weight: 600; font-size: clamp(3.4rem, 9vw, 6rem); color: var(--red); line-height: 1; margin: 0 0 0.4rem; font-variant-numeric: tabular-nums; }
.thirteen__head { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 1rem; }
.thirteen__text { font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 42ch; margin: 0 auto; }
.thirteen__cta { margin-top: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---- Fachleute ------------------------------------------------------- */

.pros__inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 720px) { .pros__inner { grid-template-columns: 1fr; } }
.pros__text { max-width: 52ch; font-size: 1.08rem; }
.pros__text strong { font-weight: 600; }

/* ---- Herkunft -------------------------------------------------------- */

.origin__text { max-width: var(--measure); }
.origin__disclaimer { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.95rem; }

/* ---- Footer ---------------------------------------------------------- */

.foot { background: var(--ink); color: #cfc7bd; padding-block: clamp(48px, 6vw, 80px); font-size: 0.9rem; }
.foot a { color: #e9e2d8; }
.foot a:hover { color: #fff; }
.foot__grid { display: flex; flex-wrap: wrap; gap: 2.4rem 3.4rem; justify-content: space-between; align-items: flex-start; }
.foot__name { font-family: var(--f-head); font-weight: 600; color: #fff; font-size: 1.05rem; margin: 0 0 0.3rem; }
.foot__links { display: flex; flex-direction: column; gap: 0.5rem; }
.foot__lang { display: inline-flex; gap: 0.6rem; align-items: center; }
.foot__legal { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 1.4rem; color: #9a9186; }
.foot__legal a { color: #9a9186; }
.foot__legal a:hover { color: #fff; }
.foot__social { display: flex; gap: 0.9rem; align-items: center; margin-top: 0.15rem; }
.foot__social a { display: inline-flex; color: #cfc7bd; }
.foot__social a:hover { color: #fff; }
.foot__social svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* ---- Legal-Seiten ---------------------------------------------------- */

.legal { max-width: 720px; margin-inline: auto; padding: clamp(48px, 8vw, 110px) var(--gutter); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.4rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 0.6rem; }
.legal a.back { display: inline-block; margin-top: 3rem; font-weight: 600; }
