/* ============================================================================
   FairStatus – Website-Stylesheet (Redesign 07/2026)
   Leitidee: Die Status-Progression aus dem Logo-Farbbalken (Grau → Orange →
   Oliv → Grün = offen → in Arbeit → erledigt) als durchgängiges Gestaltungs-
   element: Header-/Footer-Kante, Überschriften-Unterstreichung, Karten-Hover
   und Checklisten-Kacheln. Alle Grafiken und Texte des Originals bleiben.
   ========================================================================== */

:root {
  --ink:    #102030;   /* Marken-Dunkelblau (Header/Footer) */
  --ink-2:  #1b2f44;
  --paper:  #ffffff;
  --mist:   #f4f6f8;
  --line:   #e3e8ee;
  --slate:  #55606c;   /* Fliesstext */
  --muted:  #8a95a1;
  /* Status-Progression aus logo2.png */
  --s1: #323232;
  --s2: #ef5900;
  --s3: #605228;
  --s4: #526028;
  --s5: #5c8c1e;
  --s6: #27c103;
  --accent: #3d8c14;   /* Interaktions-Gruen (dunkler als s6, lesbar) */
  --bar: linear-gradient(90deg,
        var(--s1) 0 16.6%, var(--s2) 16.6% 33.3%, var(--s3) 33.3% 50%,
        var(--s4) 50% 66.6%, var(--s5) 66.6% 83.3%, var(--s6) 83.3% 100%);
  --shadow: 0 12px 32px rgba(16, 32, 48, .14);
  --font-body: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
}
img { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--s6); outline-offset: 3px; }

.wrapper { max-width: 1200px; width: 90%; margin: 0 auto; }

/* ── Typo-Rollen: duenne, weit gesperrte Versalien wie im Wortmarken-Logo ── */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 10px;
  position: relative;
}
.eyebrow::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 64px; height: 3px;
  background: var(--bar);
}
.eyebrow--dark { color: var(--ink); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10000;
  background: var(--ink);
  border-bottom: 3px solid transparent;
  border-image: var(--bar) 1;
}
.site-header .menu-wrapper {
  max-width: 1200px; width: 90%; margin: 0 auto;
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--paper);
}
.brand-icon {
  width: 38px; height: 38px;
  background: url(favicon.png) center/contain no-repeat;
}
.brand-word {
  font-size: 17px; line-height: 1.05;
  letter-spacing: .34em; text-transform: uppercase;
  font-weight: 200;
}
.brand-word strong { font-weight: 600; letter-spacing: .34em; }
.btn-contact {
  display: inline-block;
  color: var(--paper); text-decoration: none;
  font-size: 13px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 3px;
  padding: 9px 20px;
  transition: background-color .2s ease, border-color .2s ease;
}
.btn-contact:hover { background: var(--accent); border-color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--paper) url(bg1.jpg) left center / contain no-repeat;
  min-height: 50vw;
  display: flex; align-items: center;
}
.hero .wrapper {
  display: flex; justify-content: flex-end;
  padding: 5vw 0;
}
.hero-card { max-width: 380px; }
.hero-logo {
  display: block;
  width: min(20vw, 264px); height: min(11.8vw, 156px);
  min-width: 180px; min-height: 106px;
  background: url(logo2.png) left top / contain no-repeat;
  text-indent: -9999px; outline: none;
  margin-bottom: 26px;
}
.hero-claim {
  font-size: 19px; line-height: 1.65;
  color: var(--slate);
  margin: 0 0 28px 0;
}
.hero-more {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  padding: 12px 22px;
  box-shadow: 0 6px 18px rgba(61, 140, 20, .3);
  transition: background-color .2s ease, transform .2s ease;
}
.hero-more::after { content: "  ↓"; font-weight: 400; }
.hero-more:hover { background: var(--ink); transform: translateY(-2px); }

/* ── Slider (Original-Mechanik: Kinder rotieren, .fadein blendet ein) ────── */
.slidewrapper { position: relative; overflow: hidden; height: 500px; }
.slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: cover; background-repeat: no-repeat;
  background-position: 30% center;
  display: flex; align-items: center;
}
.slide .wrapper { width: 90%; }
.caption {
  max-width: 460px;
  background: rgba(13, 24, 36, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 30px 34px 26px 34px;
  color: var(--paper);
}
.caption .bigp {
  color: #eef2f5; font-size: 16px; line-height: 1.7; margin: 14px 0 0 0;
}
.caption--right { margin-left: auto; }
.caption--center { margin-left: auto; margin-right: auto; text-align: left; }

.caption-light {
  max-width: 640px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  border-image: var(--bar) 1;
  padding: 26px 32px;
  color: var(--slate);
  font-size: 16px; line-height: 1.7;
  margin: 0 auto;
  text-align: center;
}
.slider-collab .slide { align-items: flex-end; }
.slider-collab .wrapper { padding-bottom: 6vw; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.fadein { animation: fadein 1.6s ease; }

/* ── Funktions-Karten ────────────────────────────────────────────────────── */
.features { background: var(--mist); padding: 5vw 0 6vw 0; }
.features-head { text-align: center; margin-bottom: 3vw; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.icon {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px 26px 30px 26px;
  text-align: center;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.icon::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.icon:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.icon:hover::before { transform: scaleX(1); }
.icon-image {
  width: 92px; height: 92px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  background-color: var(--mist);
  border: 1px solid var(--line);
  background-size: 48px; background-repeat: no-repeat;
  background-position: center center;
}
.icon-headline {
  font-size: 14px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.icon-text { font-size: 14px; line-height: 1.65; color: var(--slate); }

/* ── Foto-Band ───────────────────────────────────────────────────────────── */
.photo-band {
  min-height: 46vw;
  background: url(bg3.jpg) center center / cover no-repeat;
}

/* ── Checkliste (bg4: Geraete rechts, Liste links) ───────────────────────── */
.checklist-section {
  background: var(--paper) url(bg4.jpg) center top / contain no-repeat;
  min-height: 50vw;
}
.checklist-box { max-width: 460px; padding: 4vw 0; }
.checklist { list-style: none; margin: 22px 0 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 0 0 18px 44px;
  font-size: 15px; line-height: 1.6;
}
.checklist li::before {
  /* gruene Erledigt-Kachel wie "Grafik montiert" in der Anwendung */
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px;
  border-radius: 5px;
  color: #fff; font-size: 15px; font-weight: 700;
  line-height: 26px; text-align: center;
  background: var(--s6);
  box-shadow: 0 2px 6px rgba(39, 193, 3, .35);
}

/* ── Dark-/Brightmode-Baender (Parallax) ─────────────────────────────────── */
.mode-band {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right center;
  background-attachment: fixed;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
}
.mode-band--dark   { background-image: url(dark.jpg); }
.mode-band--bright { background-image: url(bright.jpg); }
.mode-label {
  font-size: 20px; font-weight: 600;
  letter-spacing: .38em; text-transform: uppercase;
  padding: 14px 26px 14px 32px;
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.mode-label--light { background: rgba(255,255,255,.93); color: #000; }
.mode-label--dark  { background: rgba(0,0,0,.88); color: #fff; }

/* ── Fairness-Versprechen ────────────────────────────────────────────────── */
.promise {
  background: var(--ink);
  color: #aeb9c4;
  padding: 6vw 0 6.5vw 0;
}
.promise-head {
  max-width: 780px;
  margin: 0 auto 46px auto;
  text-align: center;
}
.promise-title-xl {
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 200;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
  margin: 20px 0 16px 0;
}
.promise-title-xl strong { font-weight: 600; letter-spacing: .26em; }
.promise-lead {
  font-size: 17px; line-height: 1.75;
  color: #aeb9c4;
  margin: 0;
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.promise-card {
  position: relative;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  padding: 28px 24px 26px 24px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.promise-card:hover { transform: translateY(-5px); border-color: rgba(39, 193, 3, .55); }
.promise-check {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: var(--s6);
  color: #fff; font-size: 15px; font-weight: 700;
  line-height: 26px; text-align: center;
  box-shadow: 0 2px 8px rgba(39, 193, 3, .4);
  margin-bottom: 16px;
}
.promise-title {
  color: #fff;
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.55;
  margin-bottom: 9px;
}
.promise-text { font-size: 14px; line-height: 1.7; color: #aeb9c4; }
/* Serverstandort-Karte traegt den kompletten Statusbalken als Oberkante */
.promise-card--de::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bar);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #b8c2cc;
  border-top: 3px solid transparent;
  border-image: var(--bar) 1;
  margin-top: 0;
}
.footer-content {
  max-width: 1200px; width: 90%; margin: 0 auto;
  padding: 36px 0 30px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-menu { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.footer-menu a {
  color: #d7dee5; text-decoration: none; font-size: 14px;
  letter-spacing: .06em;
}
.footer-menu a:hover { color: var(--s6); }
.footer-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-link:hover { color: #d7dee5; }

/* ── Unterseiten (Impressum / Datenschutz) ───────────────────────────────── */
.legal-main { background: var(--mist); padding: 56px 0 72px 0; min-height: 60vh; }
.legal-sheet {
  max-width: 800px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(16,32,48,.06);
  padding: 48px 54px 54px 54px;
}
.legal-sheet h1 {
  font-size: 26px; font-weight: 600; color: var(--ink);
  letter-spacing: .04em;
  margin: 0 0 6px 0; padding-bottom: 12px;
  position: relative;
}
.legal-sheet h1::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 84px; height: 3px; background: var(--bar);
}
.legal-sheet h2 {
  font-size: 17px; font-weight: 600; color: var(--ink);
  margin: 30px 0 8px 0;
}
.legal-sheet p { margin: 0 0 12px 0; font-size: 15px; }
.legal-sheet ul { margin: 6px 0 12px 0; padding-left: 22px; font-size: 15px; }
.legal-sheet li { margin-bottom: 4px; }
.legal-meta { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.legal-sheet a { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
/* Sanftes Einblenden der Karten beim Scrollen. JS setzt .reveal-init nur,
   wenn IntersectionObserver verfuegbar ist - ohne JS bleibt alles sichtbar. */
.reveal-init { opacity: 0; transform: translateY(16px);
               transition: opacity .5s ease, transform .5s ease; }
.reveal-init.is-in { opacity: 1; transform: none; }

/* Folien-Indikator */
.slider-dots {
  position: absolute; left: 50%; bottom: 20px;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.slider-dots span {
  width: 26px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .45);
  transition: background-color .3s ease;
}
.slider-dots--dark span { background: rgba(16, 32, 48, .25); }
.slider-dots span.on { background: var(--s6); }

@media (min-width: 767px) {
  .slidewrapper { height: min(56vw, 720px); }
  .photo-band { min-height: min(46vw, 620px); }
  /* Text rechts neben der bg1-Grafik halten (Geraete reichen bis ~55% Breite) */
  .hero-card { width: 40%; }
  /* Checkliste links neben der bg4-Grafik halten (Laptop ab ~45% Breite) */
  .checklist-box { width: 40%; max-width: 460px; }
}

@media (max-width: 1023px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 766px) {
  .hero {
    background-size: 100% auto;
    background-position: center top;
    display: block;
  }
  .hero .wrapper { justify-content: flex-start; padding-top: 52vw; }
  .hero-card { max-width: none; }
  .slidewrapper { height: 560px; }
  .slide { background-position: 30% center; }
  .caption, .caption--right, .caption--center { margin: 0 auto; }
  .checklist-section { background-size: 130% auto; }
  .checklist-box { padding-top: 58vw; max-width: none; }
  .mode-band { background-attachment: scroll; min-height: 320px; }
  .footer-content { flex-direction: column; align-items: flex-start; }
  .legal-sheet { padding: 30px 22px 36px 22px; }
  .brand-word { font-size: 14px; }
}

@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
}

/* Sehr breite Bildschirme (>1920px): bg1/bg4 (nativ 2000px) nicht weiter
   hochskalieren - Grafiken bei 1920px einfrieren und mittig setzen, damit
   sie auch auf 4K-Displays scharf bleiben. Die Textbloecke (Wrapper max.
   1200px) bleiben neben den Geraetegruppen kollisionsfrei. */
@media (min-width: 1920px) {
  .hero {
    background-size: 1920px auto;
    background-position: center center;
    min-height: 960px;
  }
  .checklist-section {
    background-size: 1920px auto;
    background-position: center top;
    min-height: 960px;
  }
  .checklist-box { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fadein { animation: none; }
  .icon, .icon::before, .btn-contact, .hero-more { transition: none; }
  .mode-band { background-attachment: scroll; }
}
