/* Instrument Sans (SIL Open Font License 1.1) - selbst gehostet, damit beim
   Seitenaufruf keine Daten an Dritte gehen. Variable Font: ein File, 400-700. */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Robin Cashback — Design-System
   Farben, Typografie und Komponenten der Plattform.
   Eine Datei, bewusst ohne Framework: schnell, cachebar, wartbar. */

:root {
  --bg:        #F6F4ED;
  --bg-soft:   #EFEBDD;
  --card:      #FFFFFF;
  --ink:       #1E3320;
  --ink-soft:  #4A5C48;
  --green:     #2F5D34;
  --green-dk:  #24471F;
  --green-lt:  #EAF4E4;
  --gold:      #E4A93C;
  --gold-lt:   #FBF3DC;
  --red:       #B4402F;
  --red-lt:    #F7E4DE;
  --line:      #E0DCCB;
  --line-soft: #EDE9DC;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 14px 36px rgba(36, 71, 31, 0.10);
  --shadow-sm: 0 4px 14px rgba(36, 71, 31, 0.07);
  --wrap:      1120px;
  --font:      'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
::selection { background: #E4A93C55; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dk); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(27px, 3.4vw, 38px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: 18px; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

/* ---------- Skip-Link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 244, 237, 0.96);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--wrap); margin: 0 auto; padding: 12px 24px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; background: var(--green); color: var(--bg);
  display: grid; place-items: center; font-size: 21px; font-weight: 700;
}
.logo__text { font-size: 21px; font-weight: 700; color: var(--ink); white-space: nowrap; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.nav__links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--green); }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.3;
  padding: 14px 24px; border-radius: 12px; text-align: center;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-dk); color: #fff; }
.btn--ghost { background: transparent; color: var(--green); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--green-dk); }
.btn--gold { background: var(--gold); color: var(--green-dk); }
.btn--gold:hover { background: #d59a2c; color: var(--green-dk); }
.btn--sm { padding: 10px 16px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.nav__cta { margin-left: 6px; }

/* Burger (mobil) */
.burger { display: none; position: relative; margin-left: auto; }
.burger > summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px;
  display: grid; place-items: center; font-size: 20px; color: var(--green-dk);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
}
.burger > summary::-webkit-details-marker { display: none; }
.burger[open] > summary { background: var(--bg-soft); }
.burger__menu {
  position: absolute; right: 0; top: 54px; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px; z-index: 120;
}
.burger__menu a { padding: 12px 14px; font-size: 16px; font-weight: 600; border-radius: 9px; color: var(--ink); }
.burger__menu a:hover { background: var(--bg-soft); text-decoration: none; }
.burger__menu .btn { margin-top: 6px; }

/* ---------- Sektionen ---------- */
.sec { padding: 78px 0; }
.sec--tight { padding: 52px 0; }
.sec--soft { background: var(--bg-soft); }
.sec--white { background: #fff; }
.sec--dark { background: var(--green-dk); color: #EFEEE4; }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark a { color: var(--gold); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.sec--dark .eyebrow { color: var(--gold); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-soft); max-width: 68ch; }
.sec--dark .lead { color: #D7DCCF; }
.sec__head { max-width: 760px; margin-bottom: 44px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__img { width: min(400px, 100%); margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-lt); border: 1px solid #EBD9A8; color: #6B5312;
  font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero__sub { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 56ch; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { font-size: 14.5px; color: var(--ink-soft); margin-top: 14px; }

.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat__num { font-size: 27px; font-weight: 700; color: var(--green); line-height: 1.1; }
.stat__lbl { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Karten & Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__icon { font-size: 26px; line-height: 1; margin-bottom: 14px; display: block; }

a.card { color: inherit; display: block; transition: transform .14s ease, box-shadow .14s ease; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
a.card h3 { color: var(--green); }
.card__more { font-weight: 600; color: var(--green); font-size: 15.5px; }
.card__more::after { content: " →"; }

.step { position: relative; }
.step__num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--green-lt); color: var(--green-dk);
  font-weight: 700; font-size: 16px;
}

.tick { list-style: none; padding: 0; }
.tick li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.tick li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--green); font-weight: 700;
}
.sec--dark .tick li::before { color: var(--gold); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split--media-right .split__media { order: 2; }

/* ---------- Ampel / Ergebnis ---------- */
.result { border-radius: var(--radius); padding: 26px; border: 2px solid; }
.result--green  { background: var(--green-lt); border-color: #3D8B4F; }
.result--yellow { background: var(--gold-lt);  border-color: #D9A62E; }
.result--red    { background: var(--red-lt);   border-color: var(--red); }
.result__emoji { font-size: 32px; line-height: 1; margin-bottom: 10px; }

/* ---------- Quiz ---------- */
.quiz {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 30px; max-width: 720px; margin: 0 auto;
}
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.quiz__step { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.quiz__anon { font-size: 13.5px; color: var(--green); background: var(--green-lt); padding: 4px 10px; border-radius: 999px; }
.quiz__bar { height: 6px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.quiz__fill { height: 100%; background: var(--green); border-radius: 99px; transition: width .25s ease; }
.quiz__q { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt {
  text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 15px 18px; font-size: 16.5px; font-family: var(--font); color: var(--ink);
  cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.quiz__opt:hover { border-color: var(--green); background: var(--green-lt); }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.quiz__back { background: none; border: 0; color: var(--ink-soft); font-family: var(--font); font-size: 15px; cursor: pointer; padding: 6px 0; }
.quiz__back:hover { color: var(--ink); text-decoration: underline; }
.quiz__hint { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin-top: 16px; }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15.5px; }
.field__hint { font-size: 13.5px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 16.5px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; }
.field--check label { font-weight: 400; font-size: 15px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__msg { padding: 16px 18px; border-radius: 12px; font-weight: 600; }
.form__msg--ok  { background: var(--green-lt); border: 1px solid #3D8B4F; }
.form__msg--err { background: var(--red-lt);   border: 1px solid var(--red); }

/* ---------- Tabelle ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; font-size: 14.5px; }
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { background: var(--bg-soft); }
.faq__body { padding: 0 22px 20px; color: var(--ink-soft); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Hinweisboxen ---------- */
.note {
  border-left: 4px solid var(--green); background: var(--green-lt);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 15.5px;
}
.note--warn { border-color: var(--gold); background: var(--gold-lt); }
.note--legal { border-color: var(--line); background: var(--bg-soft); color: var(--ink-soft); font-size: 14.5px; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

.pill {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-soft);
}
.pill--live { background: var(--green-lt); color: var(--green-dk); }
.pill--soon { background: var(--gold-lt); color: #6B5312; }

/* ---------- Dashboard-Vorschau ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.panel__head { padding: 16px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel__title { font-weight: 700; }
.panel__body { padding: 22px; }
.kv { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: 0; font-size: 15.5px; }
.kv dt { padding: 10px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.kv dd { padding: 10px 0; margin: 0; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 22px 34px; border-left: 2px solid var(--line); margin-left: 9px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 2px solid var(--line);
}
.timeline li.is-done::before { background: var(--green); border-color: var(--green); }
.timeline li.is-now::before  { background: var(--gold); border-color: var(--gold); }
.timeline__lbl { font-weight: 600; }
.timeline__note { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--green-dk); color: #C9D2C2; padding: 56px 0 34px; margin-top: 0; }
.footer a { color: #E7E4D6; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 38px; }
.footer__grid h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: .5em; font-size: 15.5px; }
.footer .logo__text { color: #fff; }
.footer .logo__mark { background: var(--gold); color: var(--green-dk); }
.footer__about { font-size: 15px; max-width: 38ch; margin-top: 16px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

/* ---------- Prose (Rechtstexte) ---------- */
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.5em; }
.prose > *:first-child { margin-top: 0; }
.prose table { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .split--media-right .split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .sec { padding: 56px 0; }
  .hero { padding: 34px 0 0; }
  .hero__img { width: min(300px, 82%); }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .quiz { padding: 22px 18px; }
  .wrap { padding: 0 18px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 0; border-bottom: 0; }
  .kv dd { padding-top: 2px; }
}

@media print {
  .nav, .footer, .burger, .quiz { display: none; }
}
