/* Einsatzkarte – Webseite. Farben angelehnt an die App (lib/ui/farben.dart). */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --rot: #d6001c;
  --rot-dunkel: #b0001f;
  --gold: #ffcc00;
  --gold-dunkel: #6e5a00;
  --tinte: #1a1b1e;
  --bg: #f4f4f1;
  --flaeche: #ffffff;
  --rand: #e3e4e0;
  --sekundaer: #6b6e76;
  --akzent: var(--rot);
  --akzent-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --rot: #ff4d5e;
    --rot-dunkel: #d6001c;
    --gold: #ffd633;
    --gold-dunkel: #c7a800;
    --tinte: #ececec;
    --bg: #121316;
    --flaeche: #1d1e22;
    --rand: #33343a;
    --sekundaer: #a0a3ab;
    --akzent: #d6001c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--tinte);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Kopfzeile ---------- */

.topbar {
  background: var(--flaeche);
  border-bottom: 1px solid var(--rand);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 60px;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--tinte);
  text-decoration: none;
  margin-right: auto;
}
.topbar .brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--rand);
}
.topbar nav {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}
.topbar nav a {
  color: var(--sekundaer);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .4rem .7rem;
  border-radius: 8px;
}
.topbar nav a:hover { background: var(--bg); color: var(--tinte); }
.topbar nav a.aktiv { color: var(--akzent); }

/* Trikolore wie in der App-Leiste */
.trikolore {
  height: 4px;
  background: linear-gradient(90deg, var(--tinte) 0 33.4%, #d6001c 33.4% 66.7%, #ffcc00 66.7% 100%);
}

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

.hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.hero img.icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  border: 1px solid var(--rand);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  margin: 1.2rem 0 .5rem;
  letter-spacing: -.02em;
}
.hero p.sub {
  font-size: 1.15rem;
  color: var(--sekundaer);
  max-width: 640px;
  margin: 0 auto 1.8rem;
}
.badges {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.badges { align-items: center; }
.badges img.store-badge { height: 50px; display: block; }
.badges .hinweis {
  width: 100%;
  font-size: .85rem;
  color: var(--sekundaer);
  margin-top: .35rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.3rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn.primaer { background: var(--akzent); color: var(--akzent-text); }
.btn.primaer:hover { background: var(--rot-dunkel); }
.btn.sekundaer {
  background: var(--flaeche);
  color: var(--tinte);
  border-color: var(--rand);
}
.btn.sekundaer:hover { border-color: var(--sekundaer); }
.btn.bald { opacity: .65; cursor: default; }
.btn.bald:hover { border-color: var(--rand); }

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

section { padding: 2.5rem 0; }
section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 1.2rem;
}
.kicker {
  color: var(--akzent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .08em;
  margin: 0 0 .3rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}
.karte .emoji { font-size: 1.6rem; }
.karte h3 { margin: .5rem 0 .3rem; font-size: 1.05rem; font-weight: 800; }
.karte p { margin: 0; color: var(--sekundaer); font-size: .95rem; }

.box {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* ---------- Textseiten (Datenschutz, Impressum, Support) ---------- */

.seite { padding: 2.8rem 0 4rem; max-width: 760px; margin: 0 auto; }
.seite h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .3rem; }
.seite p.untertitel { color: var(--sekundaer); margin-top: 0; }
.seite h2 { font-size: 1.25rem; font-weight: 800; margin-top: 2.2rem; color: var(--akzent); }
.seite a { color: var(--akzent); }
.seite ul { padding-left: 1.3rem; }

/* ---------- Anleitung: Schritte ---------- */

.schritt {
  display: flex;
  gap: 1.1rem;
  margin: 1.8rem 0;
}
.schritt .nr {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--akzent);
  color: var(--akzent-text);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.schritt h3 { margin: .35rem 0 .4rem; font-size: 1.15rem; font-weight: 800; }
.schritt p, .schritt li { color: var(--tinte); }
.schritt .tipp {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: .6rem .9rem;
  font-size: .92rem;
  color: var(--sekundaer);
  margin-top: .6rem;
}

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

details {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: .9rem 1.15rem;
  margin: .7rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
}
details[open] summary { color: var(--akzent); }
details p { color: var(--sekundaer); margin-bottom: .3rem; }

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

footer {
  border-top: 1px solid var(--rand);
  background: var(--flaeche);
  padding: 2rem 0 2.5rem;
  margin-top: 3rem;
  font-size: .9rem;
  color: var(--sekundaer);
}
footer .links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}
footer a { color: var(--sekundaer); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--akzent); }
footer .disclaimer { font-size: .82rem; max-width: 640px; }

@media (max-width: 640px) {
  .topbar .wrap { flex-wrap: wrap; padding-bottom: .5rem; }
  .hero { padding-top: 2.5rem; }
}
