/* ============================================================
   SSP – Schutz und Sicherheit · Stylesheet
   CI: Nachtblau #0D1117 · Anthrazit #2A2F36 · Gold #D4A24A
       Sand #F2EDE4 · Hellgrau #E9ECEF · Weiss #FFFFFF
   Typografie: Montserrat (Headlines) · Inter (Fließtext)
   Konzept: helle Seite, viel Weißraum, ruhig & hochwertig
   ============================================================ */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --nachtblau: #0D1117;
  --anthrazit: #2A2F36;
  /* Akzent: Sandton der SSP-Poloshirts (Nutzerentscheid 2026-07-07, statt CI-Gold).
     Pur auf dunklen Flächen/dekorativ; Text auf hellem Grund nutzt die dunklere Stufe. */
  --sand-akzent: #C6B79B;
  --sand-akzent-dunkel: #B3A27F;
  --sand-akzent-text: #6F6141; /* abgedunkelt für WCAG-AA-Kontrast auf Weiß und Sand */
  --sand: #F2EDE4;
  --hellgrau: #E9ECEF;
  --weiss: #FFFFFF;
  --text: var(--anthrazit);
  --text-gedimmt: #5A626C;
  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 10px;
  --schatten: 0 10px 30px rgba(13, 17, 23, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* SVG-Symbolbibliothek aus dem Fluss nehmen (ersetzt Inline-Style wegen strikter CSP) */
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Barrierefreiheit: Skip-Link + sichtbarer Tastatur-Fokus ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--nachtblau);
  color: var(--weiss);
  padding: 0.8rem 1.4rem;
  border-radius: 0 0 8px 0;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
}

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

a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--sand-akzent-text);
  outline-offset: 2px;
}

/* auf dunklen Flächen heller Fokusring */
.site-header :focus-visible, .site-footer :focus-visible, .gf :focus-visible,
.whatsapp-fab:focus-visible, .lightbox :focus-visible, .card-bild img:focus-visible {
  outline-color: var(--sand-akzent);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--text);
  background: var(--weiss);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1160px, 92%); margin: 0 auto; }

img { max-width: 100%; display: block; }

/* ---------- Typografie ---------- */

h1, h2, h3 { font-family: var(--font-head); color: var(--nachtblau); line-height: 1.15; }

h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-weight: 600; font-size: 1.15rem; }

.akzent { color: var(--sand-akzent-text); }

.kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-akzent-text);
  margin-bottom: 1rem;
}

.section-intro { max-width: 640px; color: var(--text-gedimmt); margin-top: 1rem; }

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

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary { background: var(--sand-akzent); color: var(--nachtblau); }
.btn-primary:hover { background: var(--sand-akzent-dunkel); transform: translateY(-2px); }

.btn-secondary { border: 2px solid var(--anthrazit); color: var(--anthrazit); }
.btn-secondary:hover { border-color: var(--nachtblau); color: var(--nachtblau); transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* solide Fläche: backdrop-filter würde das Logo-Blending isolieren (sichtbarer Kasten) */
  background: var(--nachtblau);
  border-bottom: 1px solid var(--anthrazit);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand { display: flex; align-items: center; text-decoration: none; }

/* Original-Logo (weiß auf schwarz): im hellen Header invertiert (= dunkle CI-Variante),
   auf dunklen Flächen per mix-blend-mode: screen nahtlos eingebettet */
.brand-logo { height: 48px; width: auto; display: block; }

/* Original-Logo (weiß auf schwarz) nahtlos auf dem dunklen Header */
.site-header .brand-logo { mix-blend-mode: screen; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--hellgrau);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--sand-akzent); }

.main-nav .btn { padding: 0.55rem 1.2rem; }

/* ---------- Sektionen ---------- */

section { padding: 6rem 0; }

/* Anker-Ziele nicht unter dem sticky Header verstecken */
section[id] { scroll-margin-top: 90px; }

.bg-sand { background: var(--sand); }
.bg-dunkel { background: var(--nachtblau); }

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

.hero { padding: 7rem 0; }

.hero .container {
  display: grid;
  /* einspaltig, solange kein Hero-Foto vorliegt (mit Foto: 1.15fr 0.85fr) */
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 { max-width: 720px; }

.hero p.lead { margin-top: 1.6rem; font-size: 1.12rem; color: var(--text-gedimmt); max-width: 560px; }

.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--nachtblau) 0%, var(--anthrazit) 70%);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--hellgrau);
  box-shadow: var(--schatten);
}

.hero-visual .hero-logo { width: 300px; height: auto; mix-blend-mode: screen; }

.hero-visual .platzhalter { font-size: 0.8rem; color: #9AA7B5; }

/* ---------- Karten (Warum SSP / Leistungen) ---------- */

.card-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--weiss);
  border: 1px solid var(--hellgrau);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--schatten); }

.card .icon {
  width: 48px;
  height: 48px;
  stroke: var(--sand-akzent-text);
  margin-bottom: 1.2rem;
}

.card h3 { margin-bottom: 0.6rem; }

.card p { font-size: 0.95rem; color: var(--text-gedimmt); }

.card .card-bild {
  position: relative;
  height: 180px;
  border-radius: calc(var(--radius) - 4px);
  background: linear-gradient(155deg, var(--nachtblau), var(--anthrazit));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  overflow: hidden;
}

.card .card-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card .card-bild svg { width: 52px; height: 52px; stroke: var(--sand-akzent); margin: 0; }

/* Zoom-Hinweis: signalisiert, dass die Bilder eine Großansicht haben */
.card .card-bild::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.6) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.5-4.5'/%3E%3Cpath d='M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  pointer-events: none;
}

/* ---------- So arbeiten wir ---------- */

.schritte { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; margin-top: 3rem; }

.schritt { text-align: center; padding: 0 0.4rem; position: relative; }

.schritt .nummer {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--sand-akzent);
  color: var(--nachtblau);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schritt:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: var(--hellgrau);
}

.schritt p { font-size: 0.95rem; color: var(--text); font-weight: 500; }

/* ---------- Über SSP ---------- */

.ueber .container { max-width: 780px; }

.ueber p { margin-top: 1.4rem; font-size: 1.05rem; color: var(--text-gedimmt); }

/* ---------- Geschäftsführer ---------- */

.gf { color: var(--hellgrau); }

.gf .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 900px;
}

.gf-portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--anthrazit);
  border: 3px solid var(--sand-akzent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--sand-akzent);
}

.gf blockquote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--weiss);
}

.gf blockquote::before { content: "\201E"; color: var(--sand-akzent); }
.gf blockquote::after { content: "\201C"; color: var(--sand-akzent); }

.gf .gf-name { margin-top: 1.4rem; font-family: var(--font-head); font-weight: 600; color: var(--sand-akzent); }
.gf .gf-rolle { font-size: 0.9rem; color: var(--hellgrau); }

/* ---------- Referenzen ---------- */

.referenzen { padding: 4.5rem 0; text-align: center; }

.referenzen p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--anthrazit);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Häufige Fragen ---------- */

.faq-liste { margin-top: 2.5rem; max-width: 820px; }

.faq-liste details {
  background: var(--weiss);
  border: 1px solid var(--hellgrau);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}

.faq-liste summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--nachtblau);
  padding: 1.1rem 3.2rem 1.1rem 1.4rem;
  list-style: none;
  position: relative;
}

.faq-liste summary::-webkit-details-marker { display: none; }

.faq-liste summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sand-akzent-text);
}

.faq-liste details[open] summary::after { content: "\2013"; }

.faq-liste details p { padding: 0 1.4rem 1.2rem; color: var(--text-gedimmt); }

.faq-liste details a { color: var(--sand-akzent-text); }

/* ---------- Kontakt ---------- */

.kontakt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }

/* Ganze Karte ist das Tap-Ziel (Telefon/Mail/WhatsApp) */
.kontakt-card {
  display: block;
  background: var(--weiss);
  border: 1px solid var(--hellgrau);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kontakt-card:hover { transform: translateY(-3px); box-shadow: var(--schatten); border-color: var(--sand-akzent); }

.kontakt-card .icon { width: 40px; height: 40px; stroke: var(--sand-akzent-text); color: var(--sand-akzent-text); margin: 0 auto 0.9rem; }

.kontakt-card p { color: var(--nachtblau); font-weight: 500; }

/* ---------- Footer ---------- */

.site-footer { background: var(--nachtblau); color: var(--hellgrau); padding: 4rem 0 2rem; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }

.site-footer .brand-logo { height: 56px; mix-blend-mode: screen; }

.site-footer h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-akzent);
  margin-bottom: 1rem;
}

.site-footer p { font-size: 0.9rem; color: #9AA7B5; max-width: 300px; margin-top: 1rem; }

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }

.site-footer a { color: var(--hellgrau); text-decoration: none; font-size: 0.92rem; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--sand-akzent); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--anthrazit);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #9AA7B5;
}

.footer-bottom .rechtliches a { color: #9AA7B5; margin-left: 1.2rem; }
.footer-bottom .rechtliches a:hover { color: var(--sand-akzent); }

/* ---------- Rechtstexte (Datenschutz, künftig Impressum) ---------- */

.rechtstext { background: var(--sand); padding: 4rem 0 6rem; }

.rechtstext .container { max-width: 880px; }

.rechtstext .stand { color: var(--text-gedimmt); font-size: 0.9rem; margin-top: 0.6rem; }

.rechtstext p, .rechtstext li { color: var(--text-gedimmt); font-size: 0.98rem; margin-top: 0.6rem; }

.rechtstext a { color: var(--sand-akzent-text); }

/* Inhalts-Pills zum Springen */
.ds-inhalt { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.8rem 0 0.5rem; }

.ds-inhalt a {
  background: var(--weiss);
  border: 1px solid var(--hellgrau);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--anthrazit);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ds-inhalt a:hover { border-color: var(--sand-akzent); color: var(--sand-akzent-text); }

/* Dunkle Kurzübersicht-Box */
.ds-kurz {
  background: var(--nachtblau);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-top: 2rem;
}

.ds-kurz h2 { color: var(--sand-akzent); font-size: 1.05rem; margin-bottom: 0.9rem; }

.ds-kurz ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.4rem; padding: 0; }

.ds-kurz li { color: var(--hellgrau); font-size: 0.95rem; margin: 0; padding-left: 1.5rem; position: relative; }

.ds-kurz li::before { content: "\2713"; position: absolute; left: 0; color: var(--sand-akzent); font-weight: 700; }

/* Abschnitts-Karten */
.ds-card {
  background: var(--weiss);
  border: 1px solid var(--hellgrau);
  border-radius: var(--radius);
  padding: 1.7rem 2rem 1.9rem;
  margin-top: 1.4rem;
  scroll-margin-top: 90px;
}

.ds-card h2 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.12rem; margin: 0; }

.ds-card h2 .nr {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sand-akzent);
  color: var(--nachtblau);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.ds-card ul { padding-left: 1.3rem; margin-top: 0.4rem; }

/* Betroffenenrechte als zweispaltige Häkchenliste */
.ds-rechte { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1.4rem; padding: 0 !important; margin-top: 0.8rem; }

.ds-rechte li { margin: 0; padding-left: 1.5rem; position: relative; }

.ds-rechte li::before { content: "\2713"; position: absolute; left: 0; color: var(--sand-akzent-text); font-weight: 700; }

@media (max-width: 700px) {
  .ds-kurz ul, .ds-rechte { grid-template-columns: 1fr; }
  .ds-card { padding: 1.4rem 1.3rem 1.6rem; }
}

/* ---------- WhatsApp-Kontakt (schwebender Button) ---------- */

.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  /* dunkleres WhatsApp-Teal statt #25D366: weißes Icon erreicht so >4:1 Kontrast (WCAG) */
  background: #128C7E;
  color: var(--weiss);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(13, 17, 23, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab svg { width: 30px; height: 30px; }

.whatsapp-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 24px rgba(13, 17, 23, 0.35); }

/* ---------- Lightbox (Großansicht bei Klick auf Bilder) ---------- */

.zoombar { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.lightbox.offen { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-schliessen {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--hellgrau);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-schliessen:hover { color: var(--sand-akzent); }

/* ---------- Scroll-Animation (dezent) ---------- */

/* Ausblenden nur bei aktivem JS (html.js), sonst bleibt alles sichtbar */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.sichtbar { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .schritte { grid-template-columns: 1fr; gap: 1.6rem; max-width: 420px; margin-left: auto; margin-right: auto; }
  .schritt:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0; }
  /* Header mobil: kompakt und scrollt mit (kostet sonst dauerhaft ein Viertel des Displays) */
  .site-header { position: static; }
  .brand-logo { height: 40px; }
  .main-nav { justify-content: center; gap: 0.7rem 1.2rem; }
  .main-nav .btn { padding: 0.5rem 1rem; }
  section[id] { scroll-margin-top: 12px; }
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { min-height: 260px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .gf .container { grid-template-columns: 1fr; text-align: center; }
  .gf-portrait { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .container { flex-direction: column; gap: 0.8rem; }
}
