/*
  Unser Floh – öffentliche Website

  Die Website hat seit dem 20.9.2026 eine eigene Gestaltung: hellere Blautöne,
  Grün als Akzent, große Radien und Abschnitte, die als eigene Blöcke auf einer
  ruhigen Fläche liegen. Sie folgt damit nicht mehr `src/theme` (der App) –
  Entscheidung Johannes, die App darf sich getrennt davon entwickeln.

  Keine externen Schriften, Skripte oder Bilder: die Seite lädt ausschließlich
  eigene Dateien.
*/

:root {
  --primary: #063e73;
  --primary-light: #0a5596;
  --primary-deep: #062c51;
  --secondary: #168d68;
  --accent: #168d68;
  --accent-soft: #dff5ec;
  --bg-body: #fbfcfe;
  --bg-surface: #ffffff;
  --bg-tint: #eaf4fc;
  --text-main: #142033;
  --text-secondary: #637083;
  --border: #dce5ed;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-block: 34px;
  --radius-hero: 40px;
  --radius-btn: 999px;
  --shadow-card: 0 10px 30px rgba(6, 62, 115, 0.06);
  --shadow-float: 0 12px 28px rgba(6, 62, 115, 0.18);
  --wrap: 1120px;
  --block-gradient: linear-gradient(135deg, #f8fbff 0%, #e8f3fb 56%, #e4f7ef 100%);
  --font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-light);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Kopf und Navigation ---------- */

.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 23px;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.6px;
}

/* Freigestelltes Maskottchen, kein App-Icon: Das Icon bringt eine eigene
   Hintergrundfläche mit und wirkt im Kopf wie ein aufgeklebter Kasten. */
.logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 2px;
  display: inline-block;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a[aria-current='page'] {
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-float);
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

main {
  display: block;
}

/* Jeder Abschnitt ist ein eigener Block auf ruhiger Fläche. Das ist der
   Hauptgrund, warum die Seite aufgeräumt wirkt: Inhalte fließen nicht mehr
   ineinander, sondern haben sichtbare Grenzen und Luft dazwischen. */
section {
  padding: 14px 0;
}

main > section > .wrap,
main > section > div.wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-block);
  padding: 48px 44px;
  max-width: var(--wrap);
}

section.tinted > .wrap {
  background: var(--block-gradient);
  border-color: transparent;
}

/* Ein Kontaktkasten bringt seine eigene Fläche mit. Läge er zusätzlich im
   Abschnittsblock, entstünde ein Kasten im Kasten. */
main > section > .wrap:has(> .contact-box:only-child) {
  background: none;
  border: 0;
  padding: 0 20px;
}

/* Knöpfe im dunklen Kasten: Der gefüllte Knopf trug die Primärfarbe - also
   dunkelblau auf dunkelblau, praktisch unsichtbar. */
.contact-box .btn-primary {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.contact-box .btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #0f6b4f;
}

.contact-box .btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.contact-box .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

@media (max-width: 720px) {
  main > section > .wrap,
  main > section > div.wrap {
    padding: 32px 22px;
    border-radius: var(--radius-lg);
  }
}

h1 {
  font-size: clamp(32px, 5.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.4px;
  margin: 0 0 16px;
  color: var(--primary);
}

h2 {
  font-size: clamp(25px, 3.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
  color: var(--primary);
}

h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--primary);
}

p {
  margin: 0 0 16px;
}

/* Reine Textseiten (Impressum, Hilfe): Abstand, wenn eine Überschrift direkt
   auf Fließtext folgt. Überschriften am Anfang eines Abschnitts bleiben eng. */
h1 + h2,
address + h2,
p + h2,
ul + h2,
ol + h2 {
  margin-top: 36px;
}

address {
  font-style: normal;
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text-secondary);
  max-width: 62ch;
}

.section-intro {
  max-width: 62ch;
  margin-bottom: 32px;
}

/* Der letzte Punkt der Leiste ist kein gleichwertiger Link, sondern das
   Angebot, sich zu melden - deshalb als Knopf abgesetzt. */
.nav-cta a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  background: var(--bg-surface);
  color: var(--primary);
  font-weight: 700;
}

.nav-cta a:hover {
  background: var(--bg-tint);
  border-color: var(--primary-light);
  color: var(--primary);
}

.nav-cta a[aria-current='page'] {
  background: var(--accent-soft);
  border-color: var(--secondary);
  color: #0f6b4f;
  box-shadow: none;
}

/* ---------- Titelbereich ---------- */

.hero {
  background: none;
  padding: 18px 0 14px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--block-gradient);
  border: 1px solid #d7e8f5;
  border-radius: var(--radius-hero);
  padding: 64px 52px;
  box-shadow: 0 24px 60px rgba(6, 62, 115, 0.1);
}

@media (max-width: 720px) {
  .hero .wrap {
    padding: 40px 24px;
    border-radius: var(--radius-block);
  }
}

/* Flo sitzt in einer hellen Scheibe, die Sprechblase überlappt sie unten.
   Ohne die Scheibe steht die Blase frei im Verlauf und wirkt verloren. */
.hero-figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.hero-figure::before {
  content: '';
  position: absolute;
  width: min(360px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 30px 90px rgba(21, 114, 91, 0.18);
}

.hero-figure img {
  position: relative;
  width: min(290px, 74%);
  margin-bottom: 26px;
  filter: drop-shadow(0 14px 26px rgba(6, 62, 115, 0.18));
}

.hero-figure .speech {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-46%);
  max-width: 250px;
  margin: 0;
  z-index: 2;
}

.eyebrow {
  display: block;
  background: none;
  color: var(--secondary);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 14px;
}

/* ---------- Vertrauensleiste und Flo-Sprechblase ---------- */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.trust-row li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
  margin-right: 7px;
}

.speech {
  position: relative;
  display: inline-block;
  max-width: 300px;
  margin: 14px auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-main);
  box-shadow: var(--shadow-card);
  text-align: left;
}

/* Ohne Zipfel: Die Blase liegt auf der Scheibe, der Bezug zu Flo ist dadurch
   ohnehin klar - der Pfeil wirkte an dieser Stelle nur unruhig. */

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

.cards {
  display: grid;
  gap: 20px;
  /* min(100%, …) verhindert, dass die Spalte auf schmalen Handys breiter wird
     als der Bildschirm. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

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

.card .card-link {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
  text-decoration: none;
}

.card .card-link::after {
  content: ' →';
  transition: margin-left 0.2s;
}

/* Die ganze Karte ist anklickbar, nicht nur die Zeile unten. Das Pseudo-Element
   legt sich über die Karte; der Link bleibt trotzdem ein echter Link und damit
   für Tastatur und Vorlesefunktion erreichbar. Ohne JavaScript, wie die ganze
   Seite. */
.card:has(.card-link) {
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.card .card-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card:has(.card-link):hover,
.card:has(.card-link):focus-within {
  transform: translateY(-4px);
  border-color: #c5dcee;
  box-shadow: 0 18px 45px rgba(19, 57, 91, 0.12);
}

.card:has(.card-link):hover .card-link::after {
  margin-left: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .card:has(.card-link),
  .card .card-link::after {
    transition: none;
  }

  .card:has(.card-link):hover,
  .card:has(.card-link):focus-within {
    transform: none;
  }
}

.card-badge {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: var(--bg-tint);
  color: var(--primary);
}

.card-badge.green {
  background: var(--accent-soft);
  color: #0f6b4f;
}

.card-badge.orange {
  background: #f3eee4;
  color: #6d5726;
}

/* Im Kontaktkasten braucht der Knopf Luft nach unten - die Ersatzadresse klebte
   sonst direkt darunter. Flo schließt den Kasten ab. */
.contact-box .btn-row {
  margin-top: 28px;
  margin-bottom: 22px;
}

.contact-alt {
  margin-bottom: 0;
}

.contact-flo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
}

.contact-flo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

/* Weiterführender Link im Fließtext - sieht aus wie die Links in den Karten,
   damit die Seite nicht zwei Sorten Verweise hat. */
.more-link {
  margin-top: 20px;
}

.more-link a {
  font-weight: 600;
  text-decoration: none;
}

.more-link a::after {
  content: ' →';
  transition: margin-left 0.2s;
}

.more-link a:hover::after {
  margin-left: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .more-link a::after {
    transition: none;
  }
}

/* ---------- Listen ---------- */

.check-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--secondary);
  border-bottom: 3px solid var(--secondary);
  transform: rotate(-45deg);
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.steps li {
  counter-increment: step;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- Zweispaltiger Block ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split-figure {
  text-align: center;
}

.split-figure img {
  width: min(260px, 70%);
}

/* ---------- Hinweiskasten ---------- */

.notice {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

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

/* ---------- Fragen und Antworten ---------- */

.faq {
  max-width: 76ch;
}

.faq details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq summary {
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  min-height: 28px;
}

.faq details[open] summary {
  margin-bottom: 10px;
}

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

/* ---------- Kontaktbereich ---------- */

.contact-box {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-box h2,
.contact-box h3 {
  color: #fff;
}

.contact-box a {
  color: #9fe3c8;
}

/* Im dunklen Kasten kehren sich die Buttons um, sonst verschwindet das
   Dunkelblau im Dunkelblau. */
.contact-box .btn-primary {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: none;
}

.contact-box .btn-primary:hover {
  background: #eaf1f8;
}

.contact-box .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.contact-box .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.contact-box .check-list li::before {
  border-color: #8fe0a3;
}

.contact-box .lead {
  color: rgba(255, 255, 255, 0.86);
}

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

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.site-footer a {
  color: var(--text-secondary);
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 760px) {
  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
  }

  .hero-figure img,
  .split-figure img {
    width: min(200px, 60%);
  }

  section {
    padding: 10px 0;
  }

  .site-nav {
    margin-left: 0;
    width: 100%;
  }
}
