/* ============================================================
   dataLogIX – Stylesheet
   Modern, clean, responsive. Keine externen Abhängigkeiten.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f6f3;
  --ink: #2b2926;
  --ink-soft: #5f5a53;
  --line: #eae6e0;
  --brand: #d66906;
  --brand-dark: #a85102;
  --brand-darker: #7a3b01;
  --accent: #e8a13f;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(43, 41, 38, 0.08);
  --header-bg: rgba(255, 255, 255, 0.85);
  --link: var(--brand-dark);
  --radius: 16px;
  --maxw: 1120px;
}

[data-theme="dark"] {
  --bg: #1c1a17;
  --bg-soft: #242019;
  --ink: #f3f1ec;
  --ink-soft: #b8b0a4;
  --line: #3a352c;
  --card: #242019;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(28, 26, 23, 0.82);
  --link: #f0a24a;
}

/* ==================================================================
   Hochkontrast-Modus (Barrierefreiheit), per Button umschaltbar.
   Ersetzt Marken-/Akzentfarben durch reines Schwarz/Weiß für
   maximalen Kontrast, bewusst auch dann, wenn das vom sonstigen
   Farbschema abweicht.
   ================================================================== */

[data-contrast="high"] {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --ink: #000000;
  --ink-soft: #000000;
  --line: #000000;
  --brand: #000000;
  --brand-dark: #000000;
  --brand-darker: #000000;
  --accent: #000000;
  --card: #ffffff;
  --shadow: none;
  --header-bg: #ffffff;
  --link: #000000;
}

[data-contrast="high"][data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #000000;
  --ink: #ffffff;
  --ink-soft: #ffffff;
  --line: #ffffff;
  --brand: #ffffff;
  --brand-dark: #ffffff;
  --brand-darker: #ffffff;
  --accent: #ffffff;
  --card: #000000;
  --header-bg: #000000;
  --link: #ffffff;
}

html[data-contrast="high"] a { text-decoration: underline; }

[data-contrast="high"] .logo,
[data-contrast="high"] .nav-cta,
[data-contrast="high"] .btn,
[data-contrast="high"] .skip-link,
[data-contrast="high"] .a11y-badge,
[data-contrast="high"] .demo-banner,
[data-contrast="high"] .contrast-toggle {
  text-decoration: none;
}

[data-contrast="high"][data-theme="dark"] .nav-cta,
[data-contrast="high"][data-theme="dark"] .btn-primary,
[data-contrast="high"][data-theme="dark"] .skip-link,
[data-contrast="high"][data-theme="dark"] .step .num {
  color: #000000 !important;
}

[data-contrast="high"] .eyebrow {
  background: transparent;
  border: 1.5px solid var(--ink);
}

[data-contrast="high"] .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-contrast="high"] .theme-toggle .track { border: 2px solid var(--ink); }
[data-contrast="high"][data-theme="dark"] .theme-toggle .knob { background: #000000; }

[data-contrast="high"] .demo-banner { background: #000000; color: #ffffff; }
[data-contrast="high"][data-theme="dark"] .demo-banner { background: #ffffff; color: #000000; }
[data-contrast="high"][data-theme="dark"] .demo-banner-text,
[data-contrast="high"][data-theme="dark"] .demo-banner-arrow,
[data-contrast="high"][data-theme="dark"] .demo-banner-badge { color: #000000 !important; }
[data-contrast="high"][data-theme="dark"] .demo-banner-text span { color: rgba(0, 0, 0, 0.85); }
[data-contrast="high"][data-theme="dark"] .demo-banner-icon,
[data-contrast="high"][data-theme="dark"] .demo-banner-badge { background: rgba(0, 0, 0, 0.15); }

[data-contrast="high"] .site-footer { background: #000000; }
[data-contrast="high"] .site-footer,
[data-contrast="high"] .footer-links a { color: #ffffff; }
[data-contrast="high"] .a11y-badge { border-color: #ffffff; }
[data-contrast="high"] .a11y-badge:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.15); }

[data-contrast="high"] a:focus-visible,
[data-contrast="high"] button:focus-visible,
[data-contrast="high"] input:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
}

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

html { scroll-behavior: smooth; }

/* Sichtbarer Fokus-Rahmen für Tastaturnavigation (WCAG 2.4.7) - nur bei
   :focus-visible (Tastatur), nicht bei Mausklick, um niemandem einen Rahmen
   aufzudrängen, der ihn nicht braucht. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo { height: 34px; width: auto; display: block; }

[data-theme="dark"] .brand-logo { filter: brightness(1.5) contrast(0.92); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---------- Theme toggle ---------- */

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.theme-toggle .track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.2s ease;
  display: inline-block;
}

[data-theme="dark"] .theme-toggle .track { background: var(--brand); }

.theme-toggle .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .theme-toggle .knob { transform: translateX(18px); }

/* ---------- Kontrast-Toggle (Barrierefreiheit) ---------- */

.contrast-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.contrast-toggle:hover { border-color: var(--brand); color: var(--brand); }

[data-contrast="high"] .contrast-toggle {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

[data-contrast="high"] .contrast-toggle:hover { background: var(--ink); color: var(--bg); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--brand); }

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(214, 105, 6, 0.12), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(232, 161, 63, 0.12), transparent 60%),
    var(--bg);
  padding: 96px 0 88px;
}

.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(214, 105, 6, 0.08);
  border: 1px solid rgba(214, 105, 6, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 34px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(214, 105, 6, 0.3);
}

.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: var(--bg);
}

.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.demo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 22px;
  max-width: 560px;
  background: linear-gradient(90deg, #2e6da4, #3f8bc9);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(46, 109, 164, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(46, 109, 164, 0.38);
}

.demo-banner-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.4rem;
}

.demo-banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
}

.demo-banner-text strong { font-size: 1.02rem; font-weight: 700; }

.demo-banner-text span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.9); line-height: 1.4; }

.demo-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin-top: 2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.76rem !important;
  font-weight: 600;
  color: #fff !important;
}

.demo-banner-arrow {
  flex: none;
  margin-left: auto;
  font-size: 1.3rem;
  color: #fff;
  transition: transform 0.15s ease;
}

.demo-banner:hover .demo-banner-arrow { transform: translateX(4px); }

/* ---------- Sections ---------- */

section { padding: 84px 0; }

.section-soft { background: var(--bg-soft); }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Leistungen ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(43, 41, 38, 0.12);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(214, 105, 6, 0.12), rgba(232, 161, 63, 0.16));
}

.card .icon svg { width: 26px; height: 26px; stroke: var(--brand); }

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }

.card p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 14px; }

.card ul {
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.card ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 7px;
}

.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Zielgruppen / Für wen ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.split .card h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- Ablauf ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.step .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }

.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Über uns ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid p { color: var(--ink-soft); margin-bottom: 16px; }

.facts {
  display: grid;
  gap: 16px;
}

.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.fact .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(214, 105, 6, 0.12), rgba(232, 161, 63, 0.16));
}

.fact .icon svg { width: 22px; height: 22px; stroke: var(--brand); }

.fact strong { display: block; font-size: 0.98rem; }

.fact span { color: var(--ink-soft); font-size: 0.9rem; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.contact-card h3 { font-size: 1.1rem; margin-bottom: 14px; }

.contact-card p { color: var(--ink-soft); margin-bottom: 8px; }

.contact-card a { color: var(--link); text-decoration: none; font-weight: 600; }

.contact-card a:hover { text-decoration: underline; }

address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }

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

.site-footer {
  background: #211d18;
  color: #beb6ab;
  padding: 48px 0 36px;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.brand-logo-footer { height: 28px; width: auto; display: block; filter: brightness(1.5) contrast(0.92); }

.footer-links { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }

.footer-links a { color: #beb6ab; text-decoration: none; }

.footer-links a:hover { color: #fff; }

.a11y-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1.5px solid #beb6ab;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.a11y-badge:hover {
  border-color: var(--accent);
  background: rgba(232, 161, 63, 0.12);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #8f887d;
}

/* ---------- Unterseiten (Impressum etc.) ---------- */

.page { padding: 72px 0; min-height: 55vh; }

.page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 28px; letter-spacing: -0.02em; }

.page h2 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; }

.page p { color: var(--ink-soft); margin-bottom: 12px; max-width: 720px; }

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

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .contrast-toggle .label { display: none; }
  .contrast-toggle { padding: 7px 9px; }
}
