/* =====================================================================
   Flincity — gemeinsame Gestaltung der Unterseiten
   =====================================================================
   Tokens und Komponenten sind unveraendert aus index.html uebernommen
   (dort eingebettet). Die Startseite bleibt unberuehrt; wer dort einen
   Wert aendert, zieht ihn hier nach. Quelle beider: shared/design-tokens.json.

   Zwei bewusste Abweichungen, beide wegen des Kontrasts:
   --text3 (#A3A3A0) erreicht auf Weiss nur 2,5:1. Lesetext, der auf der
   Startseite in --text3 steht (Eyebrow, Fussnote), steht hier in --text2.
   ===================================================================== */

/* Die Schrift liegt lokal — auf diesen Seiten gibt es keine Anfrage an
   fremde Server. Dieselbe Datei wie in der iOS-App. */
@font-face {
  font-family: "Belanosima";
  src: url("fonts/Belanosima-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:          #0F2C5C;
  --navy-soft:     #DDE3F0;
  --ink:           #0D0D0D;
  --text2:         #6B6B6B;
  --text3:         #A3A3A0;
  --divider:       #ECECEA;
  --surface:       #FFFFFF;
  --surface-soft:  #F5F4F0;
  --surface-card:  #F7F6F2;
  --neon:          #C4F542;
  --neon-dark:     #B0E030;
  --green:         #3EA571;
  --green-soft:    #E0F2E8;
  --gruen-dunkel:  #17694A;   /* Akzent der Befragung für Beschäftigte; 6,6:1 auf Weiss */
  --blue:          #4954D4;
  --blue-soft:     #E1E4F7;
  --yellow:        #F5C84A;
  --yellow-soft:   #FDF1C8;
  --purple:        #8B5FBF;
  --coral:         #FF6B47;
  --coral-soft:    #FFE6DF;   /* wie .icon--coral auf der Startseite */

  --r-card: 14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-box:  40px;
  --r-pill: 999px;

  --sh-sm:    0 1px 3px rgba(0,0,0,.05);
  --sh-md:    0 4px 16px rgba(0,0,0,.06);
  --sh-float: 0 8px 30px rgba(0,0,0,.10);

  --font-head: "Belanosima", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw:   1180px;
  --nav-h:  59px;
  --ease:   cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.textlink { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.textlink:hover { color: var(--ink); }

/* --- Einflug, wie auf der Startseite --- */
.fly {
  opacity: 0;
  transform: translate3d(-22px, 0, 0);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.fly.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fly { opacity: 1; transform: none; transition: none; }
}

/* --- Kopfzeile --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--divider); }
.nav__in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  color: var(--text2);
  transition: color .2s ease, background .2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--surface-soft); }
.nav__cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.nav__links + .nav__cta { margin-left: 0; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__in { justify-content: space-between; }
  .brand img { height: 38px; }
}

/* --- Schaltflaechen --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--dark  { background: var(--ink); color: #fff; box-shadow: var(--sh-md); }
.btn--dark:hover  { box-shadow: var(--sh-float); }
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--sh-sm); border: 1px solid var(--divider); }
.btn--light:hover { box-shadow: var(--sh-md); }
.btn--ghost { background: transparent; color: var(--text2); padding-inline: 14px; }
.btn--ghost:hover { color: var(--ink); }
.btn--neon  { background: var(--neon); color: var(--ink); box-shadow: 0 6px 20px rgba(196,245,66,.45); }
.btn--neon:hover { background: var(--neon-dark); }
.btn--gruen { background: var(--gruen-dunkel); color: #fff; box-shadow: var(--sh-md); }
.btn--gruen:hover { box-shadow: var(--sh-float); }
.btn--lg { font-size: 16px; padding: 15px 30px; }
.btn--sm { font-size: 14px; padding: 8px 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* Lange Beschriftungen duerfen auf dem Handy umbrechen, statt die Seite
   waagerecht zu verschieben. */
@media (max-width: 560px) {
  .btn--lg { white-space: normal; text-align: center; }
}

/* --- Verlaufsbox --- */
.gradbox {
  position: relative;
  border-radius: var(--r-box);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 15% 0%,    rgba(196,245,66,.30), transparent 60%),
    radial-gradient(ellipse 70% 50% at 95% 15%,   rgba(255,107,71,.20), transparent 60%),
    radial-gradient(ellipse 75% 55% at 5%  85%,   rgba(139,95,191,.18), transparent 60%),
    radial-gradient(ellipse 85% 60% at 100% 100%, rgba(73,84,212,.16), transparent 60%),
    linear-gradient(160deg, #FEFEFE, #F8F7F4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), var(--sh-md);
}
@media (max-width: 560px) { .gradbox { border-radius: var(--r-xl); } }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 7px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.75);
  box-shadow: var(--sh-sm), inset 0 0 0 1px rgba(255,255,255,.9);
  font-size: 13.5px;
  color: var(--text2);
}
.eyebrow-pill b {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--r-pill);
}

.accent { position: relative; white-space: nowrap; z-index: 0; }
.accent::after {
  content: "";
  position: absolute;
  left: -.05em; right: -.05em; bottom: -.01em;
  height: .24em;
  background: var(--neon);
  border-radius: var(--r-pill);
  z-index: -1;
  opacity: .85;
}

/* --- Abschnitte --- */
section { position: relative; }
.sec { padding: clamp(72px, 10vw, 132px) 0; }
.sec--tight { padding-block: clamp(56px, 8vw, 96px); }
.sec__head { max-width: 58ch; }
.sec__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 16px;
}
.sec h2 { font-size: clamp(30px, 4.4vw, 50px); }
.sec__lead { margin-top: 20px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--text2); }

.cards {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  padding: 30px 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p  { color: var(--text2); font-size: 15.5px; }

.feature__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-soft);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

.bullets { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
.bullets li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15.5px;
  color: var(--text2);
}
.bullets svg { width: 20px; height: 20px; margin-top: 1px; color: var(--green); }
.bullets b { color: var(--ink); font-weight: 600; }

.loop {
  margin-top: clamp(36px, 5vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.loop__step {
  position: relative;
  background: rgba(255,255,255,.72);
  border-radius: var(--r-xl);
  padding: 26px 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), var(--sh-sm);
}
.loop__n {
  font-family: var(--font-head);
  font-size: 15px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  margin-bottom: 15px;
}
.loop__step h3, .loop__step h4 { font-size: 18.5px; margin-bottom: 8px; }
.loop__step p  { font-size: 15px; color: var(--text2); }

.final { padding: clamp(52px, 8vw, 96px) clamp(24px, 5vw, 72px); text-align: center; }
.final h2 { font-size: clamp(30px, 4.6vw, 54px); max-width: 36ch; margin-inline: auto; }
.final p  { margin: 22px auto 0; max-width: 60ch; color: var(--text2); font-size: 17px; }
.final__actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Fusszeile --- */
.foot { padding: 52px 0 40px; border-top: 1px solid var(--divider); margin-top: clamp(60px, 8vw, 100px); }
.foot__in { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.foot img { height: 26px; width: auto; display: block; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14.5px; color: var(--text2); }
.foot__links a:hover { color: var(--ink); }
.foot__note { margin-top: 26px; font-size: 13px; color: var(--text2); max-width: 70ch; }

/* --- Hinweis, falls die Seite ohne Webserver oder ohne Skript geoeffnet
       wird. Erscheint erst nach kurzer Wartezeit, damit er beim normalen
       Laden nicht aufblitzt; das Skript entfernt ihn. --- */
.ladehinweis {
  max-width: 60ch;
  margin: 80px auto;
  padding: 24px var(--gutter);
  color: var(--text2);
  opacity: 0;
  animation: ladehinweis 0s 2s forwards;
}
@keyframes ladehinweis { to { opacity: 1; } }

/* --- Textseiten (Datenschutz, Bewertungskriterien) --- */
.prosa h1 { font-size: clamp(32px, 4.8vw, 50px); }
.prosa h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 44px; }
.prosa h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: 0; line-height: 1.4; margin-top: 24px; }
.prosa p, .prosa ul { margin-top: 14px; max-width: 68ch; }
.prosa ul { padding-left: 22px; display: grid; gap: 6px; }
.prosa .tabelle { margin-top: 18px; }
.prosa__lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text2); }
.prosa__entwurf { margin: 0 0 28px; max-width: none; background: var(--yellow-soft); color: var(--ink); }
.prosa__stand { margin-top: 44px; font-size: 14px; color: var(--text2); }

/* =====================================================================
   Bereich „Unternehmen“ im Hauptmenü
   =====================================================================
   Es gibt ein Hauptmenü für die ganze Website. Auf den Seiten für
   Unternehmen ist der Punkt „Unternehmen“ dunkelblau — mehr unterscheidet
   die beiden Bereiche nicht. Schmal bleibt nur dieser Punkt stehen.
   ===================================================================== */
.nav__links a.nav__bereich[aria-current] { background: var(--navy); color: #fff; }
@media (max-width: 900px) {
  .nav__links:has(.nav__bereich) { display: flex; margin-inline: 0 auto; }
  .nav__links:has(.nav__bereich) a:not(.nav__bereich) { display: none; }
}
@media (max-width: 640px) { .nav__links:has(.nav__bereich) + .nav__cta { display: none; } }

/* =====================================================================
   Einleitungen — Bereich „Unternehmen“ und Einstieg des Fragebogens
   ===================================================================== */
.intro { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.intro__titel { margin-top: 10px; font-size: clamp(34px, 5.4vw, 64px); max-width: 18ch; }
.intro__lead { margin-top: 16px; font-size: clamp(17px, 1.7vw, 20px); color: var(--ink); max-width: 68ch; }
.intro__drei { margin-top: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.intro__karte { background: var(--surface-soft); border-radius: var(--r-xl); padding: 22px 24px; }
.gradbox .intro__karte { background: rgba(255,255,255,.78); }
.intro__karte h2, .intro__karte h3 { font-size: 20px; }
.intro__karte p { margin-top: 8px; font-size: 15.5px; color: var(--ink); }
.intro__h2, .warum__h2 { margin-top: clamp(26px, 3.4vw, 40px); font-size: clamp(22px, 2.4vw, 28px); }
.intro__aktionen { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.intro__beschaeftigte { margin-top: 26px; padding: 18px 22px; background: var(--green-soft); border-radius: var(--r-xl); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.intro__beschaeftigte p { flex: 1 1 320px; font-size: 15.5px; color: var(--ink); }
.schritte { list-style: none; counter-reset: schritt; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.schritte--spalte { grid-template-columns: 1fr; gap: 10px; }
.schritte li { counter-increment: schritt; position: relative; padding: 4px 0 4px 46px; min-height: 34px; }
.schritte li::before { content: counter(schritt); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 16px; }
.schritte strong { display: block; font-size: 16.5px; }
.schritte span { display: block; margin-top: 2px; font-size: 15px; color: var(--text2); }
/* Im schmalen Einstieg des Fragebogens stehen die drei Karten untereinander. */
.warum .intro__drei { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.warum .intro__karte { padding: 16px 20px; border-radius: var(--r-lg); }
.warum .intro__karte h3 { font-size: 18px; }
.warum .intro__karte p { margin-top: 4px; }
.warum__hinweis { margin-top: 20px; font-size: 15px; color: var(--text2); }
#beispiel { scroll-margin-top: calc(var(--nav-h) + 12px); }
@media (max-width: 860px) { .intro__drei, .schritte { grid-template-columns: 1fr; } }
