/* KFA-Rechner website: one stylesheet, no web fonts, no JavaScript.
   KFA-Rechner-Website: ein Stylesheet, keine Webfonts, kein JavaScript. */

:root {
  color-scheme: light;
  /* Colours sampled from the app icon. / Farben aus dem App-Icon. */
  --ground: #b7cbd1;
  --mist: #edf2f4;
  --paper: #fff;
  --ink: #15242c;
  --ink-soft: #42545c;
  --line: #c9d6db;
  --red: #c8102e;
  /* DIN echoes the numerals printed on a tape measure; system fonts keep
     every request on our own host. / DIN greift die Ziffern des Maßbands auf;
     Systemschriften halten alle Anfragen auf dem eigenen Server. */
  --display: "DIN Alternate", "Bahnschrift", "DIN Next", "D-DIN", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", sans-serif;
  --text: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", Georgia, serif;
  --tape: 56px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1em; }

a { color: inherit; text-underline-offset: 0.18em; }

a:hover { color: var(--red); }

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

.band :focus-visible { outline-color: #fff; }

.skip {
  position: absolute;
  left: 8px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}

.skip:focus { top: 8px; color: #fff; }

/* Header / Kopfzeile */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 40px; height: 40px; border-radius: 10px; }

.site-nav { display: flex; gap: 20px; font-family: var(--display); }

.site-nav a { display: inline-block; padding: 8px 0; }

.page-head { background: var(--ground); padding-inline: var(--gutter); }

.page-head .site-head { max-width: 1040px; margin-inline: auto; }

/* Tape measure, drawn as in the icon. / Maßband wie im Icon. */

.tape {
  height: var(--tape);
  /* Starts just before the 10, as in the icon. / Beginnt knapp vor der 10, wie im Icon. */
  background: url("/assets/tape-h.svg") -608px 0 / auto var(--tape) repeat-x;
  box-shadow: 0 10px 16px -12px rgba(21, 36, 44, 0.5);
}

/* Home hero: the page is the icon, enlarged.
   Startbereich: Die Seite ist das vergrößerte Icon. */

.stage {
  position: relative;
  background: var(--ground);
  padding: 0 var(--gutter) 40px;
  overflow: hidden;
}

.stage > * { position: relative; z-index: 1; }

.tile {
  display: grid;
  gap: 24px;
  padding: 28px 22px 32px;
  background: var(--paper);
  border-radius: 32px;
  box-shadow: 0 26px 40px -26px rgba(21, 36, 44, 0.55);
}

.tile .heart { width: 112px; height: auto; }

.tile h1 { font-size: clamp(2.5rem, 7.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.01em; }

.lead { margin: 18px 0 0; font-size: 1.125rem; max-width: 34em; }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 26px 0 18px;
  font-family: var(--display);
  font-size: 1.1875rem;
}

.price strong { color: var(--red); font-size: 2.75rem; line-height: 1; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }

.store {
  display: inline-block;
  min-width: 158px;
  padding: 10px 18px 11px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.25;
  text-decoration: none;
}

.store small { display: block; font-size: 0.8125rem; }

/* Until the store entries exist: visibly inactive.
   Solange es die Store-Einträge nicht gibt: sichtbar inaktiv. */
.store.soon { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink-soft); padding: 9px 18px 10px; }

/* Home sections / Abschnitte der Startseite */

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

.section { padding-block: 56px; }

.section h2 { font-size: clamp(1.875rem, 4.4vw, 2.75rem); }

.section-intro { margin: 12px 0 0; max-width: 36em; }

.sheet { display: grid; gap: 36px; margin-top: 32px; }

.sheet h3 { font-size: 1.5rem; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }

.points { margin: 0; }

.points div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }

.points dt { font-family: var(--display); font-weight: 700; }

.points dd { margin: 0; color: var(--ink-soft); }

.gain { background: var(--paper); }

.gain-grid { display: grid; gap: 28px; }

.gain-statement { font-family: var(--display); font-weight: 700; font-size: clamp(1.625rem, 3.4vw, 2.25rem); line-height: 1.15; margin: 14px 0 0; }

.gain-list { margin: 0; padding: 0; list-style: none; }

.gain-list li { padding: 18px 0; border-top: 1px solid var(--line); }

.gain-list li:first-child { border-top: 0; padding-top: 0; }

.gain-list h3 { font-size: 1.3125rem; margin-bottom: 6px; }

.gain-list p { margin: 0; color: var(--ink-soft); }

.gain-list .flagship h3 { font-size: 1.75rem; color: var(--red); }

.band { background: var(--ink); color: #fff; }

.band h2 { max-width: 16em; }

.band p { margin: 14px 0 0; max-width: 36em; }

.band a:hover { color: var(--ground); }

/* Legal and support pages / Rechts- und Supportseiten */

.prose { max-width: 44em; margin-inline: auto; padding: 40px var(--gutter) 64px; }

.prose h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); }

.prose h2 { font-size: 1.625rem; margin: 2.2em 0 0.5em; }

.prose h3 { font-size: 1.25rem; margin: 1.6em 0 0.35em; }

.prose .stand { color: var(--ink-soft); margin-top: 10px; }

.prose ul { padding-left: 1.2em; margin: 0 0 1em; }

.prose li { margin-bottom: 0.35em; }

.summary { padding: 18px 20px; background: var(--paper); border-radius: 12px; margin: 26px 0 0; }

.summary p:last-child { margin-bottom: 0; }

.facts { margin: 22px 0 0; }

.facts div { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); }

.facts dt { font-family: var(--display); font-weight: 700; }

.facts dd { margin: 0; }

.data { width: 100%; border-collapse: collapse; margin: 14px 0 18px; background: var(--paper); }

.data th, .data td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }

.data thead th { font-family: var(--display); border-bottom: 2px solid var(--ink); }

/* Footer / Fußzeile */

.foot { background: var(--ground); padding-block: 32px; }

.foot .note { max-width: 40em; font-size: 1rem; margin-bottom: 18px; }

.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 12px; padding: 0; list-style: none; font-family: var(--display); }

.foot-links a { display: inline-block; padding: 6px 0; }

.foot small { font-size: 0.875rem; }

@media (min-width: 880px) {
  .stage { padding: 0 clamp(104px, 11vw, 188px) 56px; }

  .stage::before, .stage::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--tape);
    background: url("/assets/tape-v.svg") top center / var(--tape) auto repeat-y;
    box-shadow: 8px 0 14px -10px rgba(21, 36, 44, 0.5);
  }

  .stage::before { left: clamp(24px, 3.6vw, 76px); }

  .stage::after { right: clamp(24px, 3.6vw, 76px); }

  .tile {
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.75fr);
    align-items: center;
    gap: 32px;
    padding: 56px 52px;
    border-radius: 48px;
  }

  .tile .heart { order: 2; width: 100%; max-width: 300px; justify-self: center; }

  .section { padding-block: 80px; }

  .sheet { grid-template-columns: 1fr 1fr; gap: 56px; }

  .gain-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }

  .facts div { grid-template-columns: 15em 1fr; gap: 16px; }
}

/* One moment of motion: the tape pulls out once when the page loads.
   Einzige Bewegung: Das Maßband zieht sich beim Laden einmal heraus. */
@media (prefers-reduced-motion: no-preference) {
  .stage + .tape { animation: reel 0.9s cubic-bezier(0.16, 0.84, 0.32, 1) both; }
}

@keyframes reel {
  from { background-position-x: -1208px; }
  to { background-position-x: -608px; }
}
