/* KramTracker - Webseite
   Farben und Schrift wie in der App und auf den Store-Bildern.
   Schriften liegen lokal: keine Anfragen an Dritte, kein Cookie-Banner nötig. */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #2b4066;
  --navy-deep: #18243c;
  --navy-soft: #e8edf6;
  --amber: #f5a623;
  --amber-soft: #fdf1dc;
  --ink: #1d2940;
  --text: #414b5c;
  --muted: #6b7588;
  --line: #e1e6ef;
  --bg: #f4f6fa;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(24, 36, 60, 0.35);
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 20;
}
.skip:focus { left: 8px; }

/* ---------- Kopfleiste ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(24, 36, 60, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.15rem;
  margin-right: auto;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,0.15); }
.nav { display: flex; gap: 22px; }
.nav a { color: #c9d4e8; text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: #fff; }
.site-header .btn { padding: 9px 18px; font-size: 0.95rem; }

@media (max-width: 820px) { .nav { display: none; } }

/* ---------- Schaltflächen ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn-amber { background: var(--amber); color: var(--navy-deep); box-shadow: 0 10px 24px -10px rgba(245,166,35,0.7); }
.btn-amber:hover { background: #ffb53d; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #34507f; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn svg { width: 22px; height: 22px; flex: none; }

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

.hero {
  position: relative; overflow: hidden; color: #c9d4e8; padding-block: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(74, 100, 150, 0.75), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding-block: 80px;
}
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; max-width: 34em; }
.accent-bar { width: 64px; height: 6px; border-radius: 4px; background: var(--amber); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.hero-note { font-size: 0.95rem; color: #93a3bf; }
.hero-phone { justify-self: center; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 64px; gap: 40px; }
}

/* ---------- Telefon-Rahmen ---------- */

.phone {
  width: min(300px, 78vw);
  border-radius: 38px;
  padding: 10px;
  background: #0e1524;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 40px 80px -30px rgba(0,0,0,0.6);
}
.phone img {
  width: 100%; height: auto; aspect-ratio: 600 / 1220;
  border-radius: 29px; background: #eef1f6;
}
.phone.small { width: min(260px, 70vw); }

/* ---------- Abschnitte ---------- */

section { padding-block: 96px; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #9a6508;
}

/* So funktioniert's */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step; list-style: none; padding: 0; margin: 0;
}
.steps li {
  position: relative; background: var(--card); border-radius: var(--radius);
  padding: 32px 28px 28px; border: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600;
}
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Funktionen mit Aufnahme */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding-block: 40px;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature .phone { justify-self: center; }
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-text { max-width: 30em; }
.feature-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 0.6em; }
.feature-icon {
  width: 52px; height: 52px; padding: 12px; margin-bottom: 18px;
  border-radius: 14px; background: var(--navy-soft);
}
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 14px; height: 8px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber);
  transform: rotate(-45deg);
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 32px; padding-block: 48px; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
}

/* Kleine Funktionskacheln */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.tile img { width: 30px; height: 30px; margin-bottom: 14px; }
.tile h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* Einsatzzwecke */
.band { background: var(--card); border-block: 1px solid var(--line); }
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use { padding: 24px; border-radius: var(--radius); background: var(--bg); }
.use strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }
.use span { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .uses { grid-template-columns: 1fr; } }

/* Preise */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px;
}
.plan.featured { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.plan .tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 3px 12px; border-radius: 999px;
  background: var(--amber-soft); color: #8a5a06; margin-bottom: 12px;
}
.plan h3 { font-size: 1.5rem; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 24px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--navy); font-weight: 400;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Abschluss */
.cta {
  text-align: center; color: #c9d4e8;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.cta h2 { color: #fff; }
.cta .accent-bar { margin-inline: auto; }

/* ---------- Fußzeile ---------- */

.site-footer { background: var(--navy-deep); color: #8d9bb5; font-size: 0.93rem; padding-block: 28px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer a { color: #c9d4e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }

/* ---------- Gutscheinseite ---------- */

.voucher-page { min-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.voucher-hero { padding-block: 56px 120px; }
.voucher-hero .wrap { display: block; text-align: center; padding: 0 20px; }
.voucher-hero .accent-bar { margin-inline: auto; }
.voucher-hero .lead { margin-inline: auto; }

.voucher-card {
  position: relative; max-width: 640px; margin: -96px auto 0; padding: 40px;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow); text-align: center;
}
@media (max-width: 560px) { .voucher-card { padding: 28px 20px; } }

.code-box {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px;
  margin: 22px 0 10px; padding: 22px; border-radius: 16px;
  border: 2px dashed var(--amber); background: var(--amber-soft);
}
.code {
  font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink); font-family: "Open Sans", ui-monospace, monospace;
  word-break: break-all; user-select: all;
}
.code-meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.copy-status { min-height: 1.6em; font-size: 0.95rem; color: #2f7a3e; margin: 6px 0 0; }

.redeem {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: 940px; margin: 0 auto; text-align: left;
}
.redeem ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.redeem li { position: relative; padding-left: 58px; margin-bottom: 26px; }
.redeem li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -4px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600;
}
.redeem li strong { display: block; color: var(--ink); }
.redeem li p { margin: 4px 0 0; color: var(--muted); }
.redeem .btn { margin-top: 12px; }
.redeem figure { margin: 0; }
.redeem figure img { border-radius: 18px; box-shadow: var(--shadow); }
.redeem figcaption { font-size: 0.9rem; color: var(--muted); text-align: center; margin-top: 12px; }
@media (max-width: 760px) { .redeem { grid-template-columns: 1fr; } }

.voucher-state[hidden] { display: none !important; }
.state-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; padding: 14px;
  border-radius: 50%; background: var(--navy-soft);
}
.muted { color: var(--muted); }

/* ---------- Rechtstexte: Impressum, Datenschutz ---------- */

.page-hero { padding-block: 56px 128px; }
.page-hero .wrap { display: block; max-width: 860px; padding-block: 0; }
.page-hero p { margin: 0; color: #93a3bf; }

.legal {
  position: relative; max-width: 820px; margin: -84px auto 96px; padding: 48px 56px;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
@media (max-width: 640px) { .legal { padding: 30px 22px; margin-bottom: 64px; } }

.legal h2 {
  font-size: 1.35rem; margin: 2.2em 0 0.7em; padding-top: 1.6em;
  border-top: 1px solid var(--line); scroll-margin-top: 84px;
}
.legal h2:first-child, .legal .toc + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.legal .toc + h2 { margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin: 1.6em 0 0.5em; }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.45em; }
.legal li::marker { color: var(--amber); }

.toc { background: var(--bg); border-radius: 16px; padding: 24px 28px; }
.toc h2 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9a6508; margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.5em; columns: 2; column-gap: 40px; }
.toc li { break-inside: avoid; margin-bottom: 6px; font-size: 0.97rem; }
.toc li::marker { color: var(--muted); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 8px; }
.fact { background: var(--bg); border-radius: 16px; padding: 20px 24px; }
.fact-label {
  display: block; margin-bottom: 6px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6508;
}
.fact p { margin: 0; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

.site-footer a[aria-current="page"] { color: #fff; }
