/* ==========================================================================
   YROBOTICS - "Mono Contrast"
   Kontraststark, mutig, ein Orange-Akzent.
   Weiss <-> voll-schwarze Sektionen, fette Typografie, klare Kanten.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --ink: #0a0a0a;          /* Text auf Weiss */
  --ink-soft: #3a3a3a;     /* Sekundaertext auf Weiss */
  --ink-faint: #6e6e6e;    /* Tertiaertext auf Weiss */
  --paper: #fafafa;        /* Text auf Schwarz */
  --paper-soft: #c9c9c9;   /* Sekundaertext auf Schwarz */
  --paper-faint: #8a8a8a;  /* Tertiaertext auf Schwarz */
  --accent: #ff6a00;       /* Orange */
  --accent-deep: #e85c00;
  --accent-soft: #fff1e6;  /* Orange-Tint auf Weiss */

  --line-light: #e6e6e6;   /* Linien auf Weiss */
  --line-dark: #232323;    /* Linien auf Schwarz */
  --surface: #f4f4f4;      /* leicht abgesetzte helle Flaeche */
  --surface-dark: #141414; /* leicht abgesetzte dunkle Flaeche */

  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 140px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-card: 0 1px 2px rgba(10,10,10,.06), 0 10px 30px rgba(10,10,10,.06);
  --shadow-pop: 0 24px 60px rgba(10,10,10,.18);

  --t-fast: .18s cubic-bezier(.2,.7,.3,1);
  --t-med: .35s cubic-bezier(.2,.7,.3,1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* Dunkle / helle Sektionen */
.section--dark {
  background: var(--black);
  color: var(--paper);
}
.section--light {
  background: var(--white);
  color: var(--ink);
}
.section--surface {
  background: var(--surface);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Kicker / Eyebrow ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--accent);
  flex: none;
}
.section--dark .kicker { color: var(--paper-soft); }
.section--light .kicker,
.section--surface .kicker { color: var(--ink-faint); }

/* Akzent-Schluesselwort in Headlines */
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--black);
  --fg: #fff;
  --bd: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 2px solid var(--bd);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(4px); }

/* Primary: Orange */
.btn--accent {
  --bg: var(--accent);
  --fg: #fff;
  --bd: var(--accent);
}
.btn--accent:hover { --bg: var(--accent-deep); --bd: var(--accent-deep); }

/* Ghost auf Weiss */
.btn--ghost {
  --bg: transparent;
  --fg: var(--black);
  --bd: var(--black);
}
.btn--ghost:hover { --bg: var(--black); --fg: #fff; }

/* Ghost auf Schwarz (invertiert) */
.btn--ghost-dark {
  --bg: transparent;
  --fg: #fff;
  --bd: #fff;
}
.btn--ghost-dark:hover { --bg: #fff; --fg: var(--black); --bd: #fff; }

/* Solid weiss auf Schwarz */
.btn--invert {
  --bg: #fff;
  --fg: var(--black);
  --bd: #fff;
}
.btn--invert:hover { --bg: var(--paper); --bd: var(--paper); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: 30px;
  width: auto;
}

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--black); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 3px;
  background: var(--accent);
}
.nav .nav-cta {
  margin-left: 8px;
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: var(--black);
  border: 2px solid var(--black);
}
.nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav .nav-cta[aria-current="page"]::after { display: none; }

/* Sprachschalter im Header (Desktop: nach der Navigation) */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--black);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO (dunkel) ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--paper);
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 128px);
}
.hero::before {
  /* dezenter orange-glow oben links */
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(255,106,0,.16), transparent 62%);
  pointer-events: none;
}
.hero::after {
  /* feine Rasterlinie unten */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 100% 64px;
  pointer-events: none;
  opacity: .5;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-logo {
  height: clamp(56px, 9vw, 104px);
  width: auto;
  margin-bottom: clamp(28px, 4vw, 44px);
  filter: drop-shadow(0 0 30px rgba(255,106,0,.35));
}
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero .lead {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--paper-soft);
}
.hero .btn-row { margin-top: clamp(30px, 4vw, 44px); }

/* Hero Kennzahlen-Band */
.hero-stats {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
}
.hero-stat .num {
  display: block;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.hero-stat .lbl {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper-faint);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

.h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  letter-spacing: -0.03em;
}
.section-lead {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}
.section--dark .section-lead { color: var(--paper-soft); }
.section--light .section-lead,
.section--surface .section-lead { color: var(--ink-soft); }

/* ---------- Unternehmensprofil ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.competence-list { display: grid; gap: 0; }
.competence-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-light);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.competence-list li:last-child { border-bottom: 1px solid var(--line-light); }
.competence-list .idx {
  flex: none;
  font-size: 14px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- DAVE Teaser (dunkel) ---------- */
.dave-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.dave-teaser .media {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dave-teaser .media img {
  width: 100%;
  aspect-ratio: 1500 / 999;
  object-fit: cover;
}
.dave-teaser .media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  pointer-events: none;
}

/* Steps (Sehen / Verstehen / Bedienen) */
.steps {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 3px solid var(--accent);
}
.step .step-num {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step h3 {
  margin-top: 14px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
}
.step p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
}
.section--dark .step p { color: var(--paper-soft); }
.section--light .step p,
.section--surface .step p { color: var(--ink-soft); }

.claim-band {
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 3vw, 34px) clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.section--dark .claim-band {
  background: var(--surface-dark);
  border: 1px solid var(--line-dark);
}
.section--light .claim-band,
.section--surface .claim-band {
  background: var(--black);
  color: var(--paper);
}
.claim-band .accent { color: var(--accent); }

/* ---------- Feature-Bloecke (4 Punkte) ---------- */
.feature-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
.section--dark .feature-grid {
  border-top-color: var(--line-dark);
  border-left-color: var(--line-dark);
}
.feature {
  padding: clamp(28px, 3.5vw, 44px);
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  transition: background var(--t-fast);
}
.section--dark .feature {
  border-right-color: var(--line-dark);
  border-bottom-color: var(--line-dark);
}
.section--light .feature:hover,
.section--surface .feature:hover { background: var(--accent-soft); }
.section--dark .feature:hover { background: var(--surface-dark); }

.feature .f-idx {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.feature h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.42rem);
  letter-spacing: -0.02em;
}
.feature p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
}
.section--dark .feature p { color: var(--paper-soft); }
.section--light .feature p,
.section--surface .feature p { color: var(--ink-soft); }

/* ---------- Einsatzfelder (Chips/Grid) ---------- */
.fields-grid {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.field-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.field-card:hover {
  transform: translateY(-3px);
  border-color: var(--black);
  box-shadow: var(--shadow-card);
}
.field-card .f-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: var(--black);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}
.field-card:hover .f-num { background: var(--accent); }

/* ---------- Technologieumfeld ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.tech-grid .media {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tech-grid.dark .media { border-color: var(--line-dark); }
.tech-grid .media img {
  width: 100%;
  aspect-ratio: 1500 / 1000;
  object-fit: cover;
}

/* ---------- Kontakt ---------- */
.contact-card {
  margin-top: clamp(36px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 4vw, 56px);
  background: var(--surface-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
}
.contact-card .c-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--paper-soft);
  line-height: 1.6;
}
.contact-details { display: grid; gap: 4px; }
.contact-details .org {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.contact-details .addr {
  font-size: 1.02rem;
  color: var(--paper-soft);
  line-height: 1.55;
}
.contact-lines {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
  transition: color var(--t-fast);
}
.contact-line:hover { color: var(--accent); }
.contact-line .tag {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-faint);
  width: 64px;
}

/* ---------- Supported by ---------- */
.supported {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.supported .sup-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.supported a {
  display: inline-flex;
  transition: opacity var(--t-fast), transform var(--t-fast);
  opacity: .9;
}
.supported a:hover { opacity: 1; transform: translateY(-2px); }
.supported img { height: 40px; width: auto; }

/* ---------- Roadmap (Produktseite) ---------- */
.roadmap {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: rm;
}
.roadmap .rm-step {
  position: relative;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line-light);
  margin-left: -1px;
  margin-top: -1px;
}
.section--dark .roadmap .rm-step { border-color: var(--line-dark); }
.roadmap .rm-phase {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.roadmap .rm-step h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  letter-spacing: -0.02em;
}
.roadmap .rm-step p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
}
.section--dark .roadmap .rm-step p { color: var(--paper-soft); }
.section--light .roadmap .rm-step p { color: var(--ink-soft); }
.roadmap .rm-big {
  position: absolute;
  top: clamp(20px, 2.4vw, 30px);
  right: clamp(20px, 2.4vw, 30px);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--line-light);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.section--dark .roadmap .rm-big { color: var(--line-dark); }

/* ---------- DAVE nutzt die Oberflaeche (Produktseite) ---------- */
.usage-grid {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.usage-card {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.usage-card:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.usage-card h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  letter-spacing: -0.02em;
}
.usage-card p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.usage-card .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.usage-card .tick svg { width: 20px; height: 20px; }

/* ---------- Aufgaben-Liste (Wo DAVE sofort helfen kann) ---------- */
.tasks {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  gap: 0;
}
.tasks li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: clamp(20px, 2.6vw, 28px) 0;
  border-top: 1px solid var(--line-dark);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tasks li:last-child { border-bottom: 1px solid var(--line-dark); }
.tasks .t-num {
  flex: none;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  width: 44px;
}

/* ---------- Galerie / Karussell ---------- */
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.gallery-grid {
  margin-top: clamp(36px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 716 / 1530;
  object-fit: cover;
}
.gallery-thumb .g-num {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: var(--black);
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.gallery-thumb:hover .g-num { background: var(--accent); }
.gallery-thumb .g-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,.45);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.gallery-thumb:hover .g-zoom,
.gallery-thumb:focus-visible .g-zoom { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  background: rgba(10,10,10,.92);
}
.lightbox.is-open { display: flex; }
.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img {
  max-width: min(92vw, 560px);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  background: #fff;
}
.lb-btn {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #fff;
  color: var(--black);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.lb-btn:hover { background: var(--accent); color: #fff; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close {
  top: clamp(-4px, -1vw, 0);
  right: 0;
  transform: translateY(-118%);
}
.lb-prev { left: 0; transform: translateX(-118%); }
.lb-next { right: 0; transform: translateX(118%); }
.lb-counter {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 150%);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lb-counter b { color: var(--accent); }

/* ---------- Legal / Content-Seiten ---------- */
.page-hero {
  background: var(--black);
  color: var(--paper);
  padding-block: clamp(56px, 8vw, 100px);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  letter-spacing: -0.035em;
}
.page-hero .lead {
  margin-top: 20px;
  max-width: 60ch;
  color: var(--paper-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.legal {
  max-width: 820px;
}
.legal h2 {
  margin-top: clamp(40px, 5vw, 56px);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.025em;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--black);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h2 .lh-num { color: var(--accent); margin-right: 10px; }
.legal h3 {
  margin-top: clamp(30px, 4vw, 40px);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  letter-spacing: -0.02em;
}
.legal p { margin-top: 16px; line-height: 1.7; color: var(--ink-soft); }
.legal .lead-block p { color: var(--ink); font-weight: 600; }
.legal ul.bullets {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.legal ul.bullets li {
  position: relative;
  padding-left: 26px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.legal ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 3px;
  background: var(--accent);
}
.legal a { color: var(--accent-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }
.legal .addr-block {
  margin-top: 16px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 600;
}
.legal .addr-block strong { font-weight: 900; }
.legal .meta-line { margin-top: 14px; line-height: 1.7; }
.legal .meta-line .k {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--paper-soft);
  padding-block: clamp(48px, 6vw, 72px);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-top .brand img { height: 30px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--paper-soft);
  border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
}
.footer-nav a:hover { color: #fff; background: var(--surface-dark); }
.footer-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 14.5px;
  color: var(--paper-faint);
  line-height: 1.7;
}
.footer-meta .sep { color: var(--line-dark); }
.footer-meta a { color: var(--paper-soft); transition: color var(--t-fast); }
.footer-meta a:hover { color: var(--accent); }
.footer-legal {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--paper-faint);
}

/* ---------- Sprachumschaltung (DE/EN) ---------- */
/* Sichtbarkeitsregeln: robust mit !important (siehe toggle_spec.md). */
html[lang="de"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="de"] { display: none !important; }

/* Segmentierter Schalter im Mono-Contrast-Stil: harte Kante, hoher Kontrast. */
.lang-switch {
  display: inline-flex;
  flex: none;
  align-items: stretch;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-btn + .lang-btn { border-left: 2px solid var(--black); }
.lang-btn:hover { color: var(--ink); background: var(--surface); }
.lang-btn.is-active {
  color: #fff;
  background: var(--black);
}
.lang-btn.is-active:hover {
  color: #fff;
  background: var(--accent);
}
.lang-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* EN-Hinweis auf Rechtsseiten (nur im EN-Modus sichtbar) */
.legal-lang-note {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--paper-faint);
  line-height: 1.55;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  html { scroll-padding-top: 76px; }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line-light);
    box-shadow: var(--shadow-card);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-med), opacity var(--t-med), visibility var(--t-med);
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    min-height: 52px;
    padding: 0 16px;
    font-size: 17px;
    border-bottom: 1px solid var(--line-light);
    border-radius: 0;
  }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent-deep); }
  .nav .nav-cta {
    margin-top: 12px;
    margin-left: 0;
    border-radius: var(--radius);
    border-bottom: 2px solid var(--black);
    justify-content: center;
  }
  .nav-toggle { display: flex; }

  /* Sprachschalter bleibt auf Mobile sichtbar (neben dem Burger), nicht im Off-Canvas-Menue */
  .header-actions { gap: 10px; }

  .profile-grid,
  .dave-teaser,
  .tech-grid,
  .contact-card { grid-template-columns: 1fr; }

  .dave-teaser .media { order: -1; }
  .tech-grid .media { order: -1; }

  .fields-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .usage-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .fields-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }

  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }

  .lb-prev { left: 8px; transform: none; }
  .lb-next { right: 8px; transform: none; }
  .lb-close { top: 8px; right: 8px; transform: none; }
  .lb-btn { width: 48px; height: 48px; }
  .lb-counter { transform: translate(-50%, 130%); }

  .contact-line .tag { width: 56px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .lightbox, .btn-row, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
}
