/* ==========================================================================
   D2S – Digital Security Solutions
   Stylesheet – v1
   Palette abgeleitet aus Logo (Schild, Navy->Stahlblau) und Lagebild-Motiven
   ========================================================================== */

:root {
  --navy-900: #071528;
  --navy-800: #0a1d35;
  --navy-700: #0b2545;
  --steel-600: #1f4e85;
  --steel-500: #2f6db5;
  --steel-400: #4a8bd0;
  --sky-300: #5b9bd5;
  --sky-200: #8fc0ea;
  --ink: #16202e;
  --slate: #4a5a6e;
  --mist: #f4f8fc;
  --paper: #ffffff;
  --line: #d6e3f0;
  --line-soft: #e8f1fa;

  --maxw: 1200px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(7, 21, 40, 0.06);
  --shadow-md: 0 12px 36px rgba(7, 21, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 21, 40, 0.18);

  --nav-h: 74px;

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: var(--maxw);
  margin-inline: auto;
}

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

a { color: var(--steel-500); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-700); line-height: 1.15; font-weight: 600; }

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--navy-700); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--steel-400); outline-offset: 2px; }

/* ==========================================================================
   NAVIGATION – fixiertes Menüband
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  background: rgba(8, 22, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91, 155, 213, 0.18);
  transition: background .3s ease;
}
.nav-inner {
  height: 100%; width: 92%; max-width: 1320px; margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-brand img { height: 42px; width: auto; }
.nav-brand .bw { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .bw b { font-family: var(--font-display); color: #fff; font-size: 1.18rem; letter-spacing: .5px; font-weight: 700; }
.nav-brand .bw span { color: var(--sky-200); font-size: .64rem; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a {
  color: #cfe0f0; font-size: .92rem; font-weight: 500; letter-spacing: .2px;
  padding: 9px 14px; border-radius: 8px; position: relative; transition: color .2s, background .2s;
}
.nav-menu a:hover { color: #fff; background: rgba(91, 155, 213, 0.14); }
.nav-menu a.active { color: #fff; }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--sky-300); border-radius: 2px;
}

.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
/* Abstand zwischen Sprachumschalter (DE/EN/FR) und Login-Button.
   Zum Vergrößern/Verkleinern einfach diesen Wert anpassen
   (zusammen mit dem gap:10px der .nav-tools ergibt sich der Gesamtabstand). */
.nav-tools .btn-login { margin-left: 38px; }

.lang-toggle {
  display: inline-flex; border: 1px solid rgba(143, 192, 234, 0.35); border-radius: 8px; overflow: hidden;
}
.lang-toggle button {
  background: transparent; color: #9fc0e0; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; padding: 6px 10px; transition: .2s;
}
.lang-toggle button.on { background: var(--steel-500); color: #fff; }

.btn-login {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--steel-500), var(--sky-300));
  color: #fff; font-weight: 600; font-size: .88rem;
  padding: 9px 16px; border-radius: 8px; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(47, 109, 181, 0.4);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(47, 109, 181, 0.5); }
.btn-login svg { width: 15px; height: 15px; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 86vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  background: var(--navy-900);
  overflow: hidden;
}
/* Der Hero-Inhalt nimmt den verfügbaren Raum, der Strip sitzt darunter */
.hero-strip { flex: 0 0 auto; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* Diashow-Ebenen: alle übereinander, nur die aktive sichtbar (sanftes Überblenden) */
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }

.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,21,40,.55) 0%, rgba(7,21,40,.30) 35%, rgba(7,21,40,.75) 100%),
    linear-gradient(90deg, rgba(7,21,40,.88) 0%, rgba(7,21,40,.45) 55%, rgba(7,21,40,.15) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 60px 0; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--sky-200); font-family: var(--font-display); font-weight: 500;
  font-size: .82rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--sky-300); }
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -.5px;
  max-width: 16ch; margin-bottom: 22px;
}
.hero h1 .accent { color: var(--sky-300); }
.hero-lead {
  color: #d4e3f2; font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 54ch; margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 15px 28px; border-radius: 10px; border: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--steel-500), var(--sky-300)); color: #fff; box-shadow: 0 8px 24px rgba(47,109,181,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(47,109,181,.55); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(143,192,234,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.hero-strip {
  position: relative; z-index: 2; border-top: 1px solid rgba(91,155,213,.2);
  background: rgba(7,21,40,.55); backdrop-filter: blur(6px);
}
.hero-strip .container { padding: 22px 0; }

/* Hot-Bullets: 4 Spalten x 4 Zeilen, per site.js befüllt und zufällig gewechselt */
.hero-strip .hot-bullets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 28px;
}
.hero-strip .hot-bullets span {
  color: #aecbe6; font-size: .82rem; font-family: var(--font-display);
  letter-spacing: 1.5px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity .8s ease;
}
.hero-strip .hot-bullets.show span { opacity: 1; }
.hero-strip .hot-bullets span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky-300); flex-shrink: 0;
}
@media (max-width: 900px) { .hero-strip .hot-bullets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hero-strip .hot-bullets { grid-template-columns: 1fr; } }

/* ==========================================================================
   GENERIC SECTION
   ========================================================================== */
.section { padding: 96px 0; }
.section.alt { background: var(--mist); }
.section.dark { background: var(--navy-800); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--steel-500); font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--steel-500); }
.dark .eyebrow, .dark .eyebrow { color: var(--sky-300); }
.dark .eyebrow::before { background: var(--sky-300); }

.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.section-head p { color: var(--slate); font-size: 1.1rem; }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: #b9cde2; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .95fr; gap: 60px; align-items: center; }
.about-copy p { color: var(--slate); font-size: 1.08rem; margin-bottom: 20px; }
.about-card {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border-radius: var(--radius-lg); padding: 40px; color: #fff; box-shadow: var(--shadow-md);
  border: 1px solid rgba(91,155,213,.18);
}
.about-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 22px; }
.about-card ul { list-style: none; }
.about-card li { position: relative; padding-left: 26px; margin-bottom: 14px; color: #cfe0f0; font-size: .98rem; }
.about-card li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px;
  background: var(--sky-300); border-radius: 2px; transform: rotate(45deg);
}

/* ==========================================================================
   LEISTUNGEN / SERVICES
   ========================================================================== */
.phase-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.phase-tab {
  font-family: var(--font-display); font-weight: 500; font-size: .92rem;
  padding: 11px 20px; border-radius: 999px; cursor: pointer; transition: .2s;
  background: var(--paper); border: 1px solid var(--line); color: var(--slate);
}
.phase-tab:hover { border-color: var(--steel-400); color: var(--steel-600); }
.phase-tab.on { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.phase-block { display: none; animation: fade .4s ease; }
.phase-block.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.phase-intro {
  display: flex; gap: 18px; align-items: flex-start; margin-bottom: 38px;
  padding: 26px 30px; background: var(--paper); border: 1px solid var(--line-soft);
  border-left: 4px solid var(--steel-500); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.phase-intro .pn { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--steel-400); line-height: 1; }
.phase-intro p { color: var(--slate); font-size: 1.05rem; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }

/* Leistungskarte mit Hintergrundgrafik und weißer Schrift.
   Das Hintergrundbild wird je Karte per Inline-Style gesetzt:
   style="--card-img:url('assets/bg/leistung_01.jpg')".
   Zur Lesbarkeit liegt ein dunkler Verlauf über dem Bild. */
.svc-card {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(91,155,213,.22); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-md);
  background-color: var(--navy-800);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
/* Bild-Ebene (über dem Karten-Hintergrund) */
.svc-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--card-img); background-size: cover; background-position: center 70%;
  transition: transform .6s ease;
}
/* Dunkles Lesbarkeits-Overlay (über dem Bild) */
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,17,33,.72) 0%, rgba(6,17,33,.62) 45%, rgba(6,17,33,.80) 100%);
}
/* Inhalt der Karte über Bild + Overlay heben */
.svc-card > * { position: relative; z-index: 2; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(91,155,213,.45); }
.svc-card:hover::after { transform: scale(1.05); }
.svc-card .ref { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: 1.5px; color: var(--sky-300); }
.svc-card h3 { font-size: 1.16rem; margin: 8px 0 12px; color: #fff; }
.svc-card > p { color: #cfe0f0; font-size: .96rem; margin-bottom: 16px; }
.svc-card ul { list-style: none; }
.svc-card li { position: relative; padding-left: 20px; margin-bottom: 9px; color: #e6eef7; font-size: .9rem; line-height: 1.55; }
.svc-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--sky-300); border-radius: 50%; }

/* ==========================================================================
   STANDARDS
   ========================================================================== */
.std-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.std-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(91,155,213,.2);
  border-radius: var(--radius); padding: 28px; transition: .25s;
}
.std-card:hover { background: rgba(91,155,213,.08); border-color: rgba(91,155,213,.4); transform: translateY(-3px); }
.std-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.std-card h3 .dot { width: 10px; height: 10px; background: var(--sky-300); border-radius: 2px; transform: rotate(45deg); flex-shrink: 0; }
.std-card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.std-card .tag { font-size: .72rem; font-family: var(--font-display); letter-spacing: .5px; color: #bcd6ef; background: rgba(91,155,213,.14); border: 1px solid rgba(91,155,213,.25); padding: 4px 9px; border-radius: 6px; }
.std-card p { color: #9fb8d2; font-size: .9rem; }

/* ==========================================================================
   APPROACH / Vorgehen
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 22px; counter-reset: step; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; box-shadow: var(--shadow-sm);
}
.step .num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--line); line-height: 1; }
.step:hover .num { color: var(--sky-200); }
.step h3 { font-size: 1.08rem; margin: 10px 0 10px; }
.step p { color: var(--slate); font-size: .92rem; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy p { color: var(--slate); font-size: 1.08rem; margin-bottom: 20px; }
.contact-points { margin-top: 30px; }
.cpoint { display: flex; gap: 14px; margin-bottom: 22px; }
.cpoint .ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--navy-700), var(--steel-500)); display: flex; align-items: center; justify-content: center; }
.cpoint .ic svg { width: 20px; height: 20px; stroke: #fff; }
.cpoint h4 { font-size: 1.02rem; margin-bottom: 3px; }
.cpoint p { color: var(--slate); font-size: .92rem; margin: 0; }

.form-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy-700); margin-bottom: 7px; font-family: var(--font-display); letter-spacing: .3px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 9px;
  font-size: .98rem; font-family: var(--font-body); background: var(--mist); transition: .2s; color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--steel-500); background: #fff; box-shadow: 0 0 0 3px rgba(47,109,181,.14); }
.form-box .btn-primary { width: 100%; justify-content: center; }
.form-note { font-size: .82rem; color: var(--slate); margin-top: 14px; text-align: center; }
.form-legal { font-size: .8rem; line-height: 1.6; color: var(--slate); margin-top: 22px; text-align: center; max-width: 420px; margin-left: auto; margin-right: auto; }
.form-legal a { color: var(--steel-600); text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-900); color: #9fb8d2; padding: 60px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(91,155,213,.16); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 44px; }
.footer-brand b { font-family: var(--font-display); color: #fff; font-size: 1.2rem; }
.footer-col p { font-size: .92rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: #9fb8d2; font-size: .92rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--sky-200); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 26px; font-size: .85rem; }
.footer-bottom a { color: #9fb8d2; }

/* ==========================================================================
   PLACEHOLDER PAGES
   ========================================================================== */
.ph-hero { padding: calc(var(--nav-h) + 90px) 0 90px; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); position: relative; overflow: hidden; }
.ph-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 20%, rgba(47,109,181,.25), transparent 55%); }
.ph-hero .container { position: relative; z-index: 2; }
.ph-hero .eyebrow { color: var(--sky-300); } .ph-hero .eyebrow::before { background: var(--sky-300); }
.ph-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 16px; }
.ph-hero p { color: #c2d6ea; font-size: 1.12rem; max-width: 60ch; }
.ph-body { padding: 80px 0 100px; }
.ph-note { display: flex; gap: 16px; align-items: flex-start; max-width: 720px; padding: 26px 30px; background: var(--mist); border: 1px solid var(--line-soft); border-left: 4px solid var(--steel-500); border-radius: var(--radius); }
.ph-note svg { width: 26px; height: 26px; stroke: var(--steel-500); flex-shrink: 0; }
.ph-note h3 { font-size: 1.1rem; margin-bottom: 6px; }
.ph-note p { color: var(--slate); }

/* ---------- Rechtstexte (Impressum, Datenschutz, Cookies, AGB, Data Act) ---------- */
.legal-body { padding: 64px 0 96px; }
.legal-body .container { max-width: 860px; }
.legal-body .legal-updated { color: var(--slate); font-size: .9rem; margin-bottom: 36px; }
.legal-body section { margin-bottom: 34px; }
.legal-body h2 {
  font-size: 1.35rem; color: var(--navy-800); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.legal-body h3 { font-size: 1.06rem; color: var(--navy-700); margin: 18px 0 8px; }
.legal-body p { color: var(--ink); line-height: 1.7; margin-bottom: 12px; }
.legal-body ul { list-style: none; margin: 0 0 14px; padding: 0; }
.legal-body li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--ink); line-height: 1.6; }
.legal-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--sky-300); border-radius: 50%; }
.legal-body .ph-fill {
  background: rgba(91,155,213,.12); border: 1px dashed var(--steel-400);
  border-radius: 5px; padding: 1px 7px; color: var(--steel-600); font-weight: 600;
  font-size: .94em; white-space: nowrap;
}
.legal-body a { color: var(--steel-600); text-decoration: underline; }
.legal-body .legal-note {
  margin-top: 8px; padding: 18px 22px; background: var(--mist);
  border: 1px solid var(--line-soft); border-left: 4px solid var(--steel-500);
  border-radius: var(--radius); color: var(--slate); font-size: .92rem;
}
.legal-body address { font-style: normal; line-height: 1.7; color: var(--ink); }

/* ==========================================================================
   LOGGED-IN INDICATOR (farblicher Rahmen)
   ========================================================================== */
body.logged-in { border: 5px solid var(--sky-300); min-height: 100vh; }
body.logged-in .nav { top: 5px; left: 5px; right: 5px; }
.session-bar {
  display: none; position: fixed; top: calc(var(--nav-h) + 5px); left: 5px; right: 5px; z-index: 999;
  background: linear-gradient(90deg, var(--steel-600), var(--sky-300));
  color: #fff; font-size: .85rem; font-weight: 500;
  padding: 7px 20px; align-items: center; justify-content: space-between;
}
body.logged-in .session-bar { display: flex; }
body.logged-in { --pad-extra: 34px; }
.session-bar .who { display: flex; align-items: center; gap: 10px; }
.session-bar .who b { font-weight: 700; }
.session-bar .badge { background: rgba(255,255,255,.2); padding: 2px 9px; border-radius: 5px; font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; }
.session-bar a { color: #fff; text-decoration: underline; font-weight: 600; }

/* ==========================================================================
   i18n helpers
   ========================================================================== */
[data-lang-en] { display: none; }
html[lang="en"] [data-lang-de] { display: none; }
html[lang="en"] [data-lang-en] { display: revert; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Globaler Schutz gegen horizontales Scrollen auf allen Geräten */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
* { min-width: 0; }

/* ---------- Tablets / kleine Laptops ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobiles Menü (Burger) ---------- */
@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(8,22,42,.98); padding: 16px; gap: 4px; max-height: 0; overflow: hidden;
    transition: max-height .35s ease; border-bottom: 1px solid rgba(91,155,213,.2);
  }
  .nav-menu.open { max-height: 85vh; padding: 16px; overflow-y: auto; }
  .nav-menu a { padding: 14px 16px; }
  .nav-menu a.active::after { display: none; }
  .nav-tools { margin-left: auto; gap: 8px; }
  .nav-tools .btn-login { margin-left: 12px; }
  body.logged-in .nav-menu { left: 5px; right: 5px; }
}

/* ---------- Smartphones (Hochformat) ---------- */
@media (max-width: 640px) {
  /* Nav kompakter, damit Sprachumschalter + Login nicht überlaufen */
  .nav-inner { gap: 10px; }
  .btn-login .lbl { display: none; }
  .btn-login { padding: 10px; }
  .lang-toggle button { padding: 6px 8px; font-size: .78rem; }

  /* Hero: Inhalt unter die Bildmitte, Schrift kleiner, Strip darunter */
  .hero { min-height: auto; padding-bottom: 0; }
  .hero-inner { padding: 40px 0 32px; }
  .hero h1 { font-size: clamp(1.7rem, 7.2vw, 2.4rem); max-width: 100%; line-height: 1.15; }
  .hero-eyebrow { font-size: .72rem; letter-spacing: 2px; margin-bottom: 16px; }
  .hero-lead { font-size: 1.02rem; max-width: 100%; margin-bottom: 26px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Hot-Bullets: eine Spalte, sauber umbrechend (kein Overflow mehr) */
  .hero-strip .hot-bullets { grid-template-columns: 1fr; gap: 10px; }
  .hero-strip .hot-bullets span { white-space: normal; font-size: .8rem; }
  .hero-strip .container { padding: 18px 0; }

  /* Abschnitte: kompakter und Überschriften skalieren */
  .section { padding: 56px 0; }
  .section-head h2 { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }

  /* Leistungs-Tabs: umbrechen statt überlaufen */
  .phase-tabs { flex-wrap: wrap; }
  .phase-tabs button { flex: 1 1 auto; }

  /* Service-Karten: volle Breite */
  .svc-grid { grid-template-columns: 1fr; }

  /* Vorgehen / Standards: einspaltig */
  .steps { grid-template-columns: 1fr; }
  .std-grid { grid-template-columns: 1fr; }

  /* Footer einspaltig */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Lange Komposita sauber umbrechen, aber nicht mitten im Wort hart trennen */
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
}

/* ---------- Sehr schmale Geräte ---------- */
@media (max-width: 380px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 1.65rem; }
  /* Untertitel ausblenden, damit Logo + Sprachumschalter + Menü genug Platz haben */
  .nav-brand .bw span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
