/* ==========================================================================
   TexIQ – Stylesheet
   Keine externen Ressourcen (Google Fonts, CDNs) → datenschutzfreundlich.
   Schriften: Wenn Sie Poppins / Open Sans lokal ablegen (assets/fonts/),
   werden sie automatisch verwendet, sonst greifen Systemschriften.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-v22-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-v22-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/open-sans-v40-latin-regular.woff2") format("woff2");
}

:root {
  --bg: #141414;
  --bg-alt: #1c1c1c;
  --surface: #232323;
  --text: #ececec;
  --text-muted: #b4b4b4;
  --heading: #e2e2e2;
  --accent: #45e3ff;
  --accent-dark: #12b8d6;
  --on-accent: #0d1b1f;
  --header-bg: rgba(20, 20, 20, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --de-black: #1a1a1a;
  --de-red: #dd0000;
  --de-gold: #ffce00;

  --font-head: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --header-h: 88px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #8eefff; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  hyphens: auto;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.01em; hyphens: manual; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Logo (reines CSS, kann durch Bild ersetzt werden) ---------- */
.logo {
  display: inline-flex; flex-direction: column; text-decoration: none;
  background: #fff; padding: 4px 10px 5px; border-radius: 4px; line-height: 1;
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.65rem; letter-spacing: -0.02em; }
.logo-tex { color: #3a3a3a; }
.logo-iq { color: #1ccaf0; }
.logo-bar {
  height: 4px; margin-top: 3px; border-radius: 1px;
  background: linear-gradient(90deg, var(--de-black) 0 33.3%, var(--de-red) 33.3% 66.6%, var(--de-gold) 66.6% 100%);
}
.logo img { height: 60px; width: auto; display: block; }
@media (max-width: 860px) { :root { --header-h: 72px; } .logo img { height: 46px; } }
.logo:has(img) { padding: 4px 8px; border-radius: 6px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.nav-list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 12px; color: var(--text); text-decoration: none;
  font-size: 0.98rem; border-radius: 6px;
}
.nav-list a:hover, .nav-list a[aria-current="page"], .nav-list a.active { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  width: 44px; height: 44px; border-radius: 8px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #121212; border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; padding: 8px var(--gutter) 16px; gap: 0; }
  .nav-list a { padding: 14px 4px; border-bottom: 1px solid var(--border); border-radius: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  padding: 12px 22px; border-radius: 8px; text-decoration: none; font-weight: 600;
  border: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.btn:hover { background: #7aecff; color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  background-color: #0f2a33;
  background-image:
    linear-gradient(90deg, rgba(10,18,22,.88) 0%, rgba(10,18,22,.62) 50%, rgba(10,18,22,.35) 100%),
    url("../img/hero.jpg");
  background-size: cover; background-position: center;
}
.hero-content { max-width: 640px; }
.hero .eyebrow {
  display: inline-block; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem; font-weight: 600;
}
.hero h1 { color: #f1f1f1; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: #e4e4e4; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p { color: var(--text-muted); }

/* Über: Stichpunkte */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  list-style: none; padding: 0; margin: 0 0 clamp(48px, 7vw, 80px);
}
.pillars li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 20px 52px; position: relative; color: var(--text);
}
.pillars li::before {
  content: ""; position: absolute; left: 20px; top: 26px; width: 14px; height: 14px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(69,227,255,.15);
}

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-value {
  font-family: var(--font-head); font-weight: 700; color: var(--heading);
  font-size: clamp(3rem, 8vw, 5.2rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: .7rem; font-size: 1.15rem; color: var(--text); }
.stat-note { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 40px; } }

/* Feature-Blöcke (Bild + Text) */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature.reverse .feature-media { order: 2; }
.feature-text p { color: #dcdcdc; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
}

.feature-media { position: relative; padding: 0 22px 22px 0; }
.feature-media::before {
  content: ""; position: absolute; left: -22px; top: -22px; right: 44px; bottom: 44px;
  background: var(--accent); z-index: 0;
}
.feature.reverse .feature-media { padding: 0 0 22px 22px; }
.feature.reverse .feature-media::before { left: 0; right: 22px; }
.feature-media img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #2a2a2a;
}
@media (max-width: 860px) {
  .feature-media::before, .feature.reverse .feature-media::before { left: 0; top: -14px; right: 36px; bottom: 36px; }
  .feature-media, .feature.reverse .feature-media { padding: 0 0 0 14px; }
}

.feature-media.portrait img { aspect-ratio: 3 / 4; object-position: center 30%; }

/* Person */
.person { max-width: 980px; margin-inline: auto; }
.person .feature-text .signature { font-family: var(--font-head); font-weight: 700; color: var(--accent); margin-top: 1.2rem; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.video-card .video-body { padding: 18px 20px 20px; }
.video-card h3 { margin-bottom: .35em; }
.video-card p { margin: 0; color: var(--text-muted); font-size: .98rem; }

.ai-note { text-align: center; color: var(--text-muted); font-size: .85rem; margin: 1.5rem 0 0; }

/* Sprachumschalter */
.nav-list a.lang-switch {
  border: 1px solid rgba(255,255,255,.3); font-weight: 600; font-size: .85rem; letter-spacing: .05em;
  padding: 6px 10px; margin-left: 6px; margin-top: 2px;
}
.nav-list a.lang-switch:hover { border-color: var(--accent); }
@media (max-width: 860px) {
  .nav-list a.lang-switch { border: 0; border-bottom: 1px solid var(--border); margin: 0; padding: 14px 4px; font-size: .98rem; }
}

/* Kontakt */
.contact {
  background: var(--accent); color: var(--on-accent);
}
.contact .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.contact h2 { color: #10292f; font-weight: 400; }
.contact p { color: #183a41; }
.contact a { color: #0b2b31; font-weight: 600; }
.contact-box {
  background: rgba(255,255,255,.35); border-radius: var(--radius); padding: 24px 26px;
}
.contact-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.contact-box dt { font-weight: 600; color: #10292f; }
.contact-box dd { margin: 0; }
.contact .btn { background: #10292f; color: #fff; margin-top: 18px; }
.contact .btn:hover { background: #1d4149; color: #fff; }
@media (max-width: 760px) { .contact .container { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #0c0c0c; color: var(--text-muted); padding: 32px 0; font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-note { width: 100%; font-size: .8rem; color: #8a8a8a; margin: 0; }

/* Fehlende Bilder sichtbar markieren (nur bis echte Bilder hochgeladen sind) */
img.missing {
  min-height: 240px; outline: 2px dashed rgba(69,227,255,.6); outline-offset: -2px;
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal { padding: calc(var(--header-h) + 48px) 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { color: #d6d6d6; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .muted { color: var(--text-muted); font-size: .92rem; }
.todo {
  background: #ffe066; color: #222; padding: 0 4px; border-radius: 3px; font-weight: 600;
}
