/* ==========================================================================
   Deebal – deebal.de
   Design-System: ruhig, präzise, viel Weißraum.
   Schrift: deebal-alphabet (400 / 700) – Eigentum der Deebal GmbH.
   ========================================================================== */

@font-face {
  font-family: "deebal-alphabet";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/deebal-regular.woff2") format("woff2");
}

@font-face {
  font-family: "deebal-alphabet";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/deebal-bold.woff2") format("woff2");
}

:root {
  --bg: #f8f9fc;
  --bg-2: #eff0f3;
  --ink: #121317;
  --ink-2: #45474d;
  --ink-3: #6a6a71;
  --outline: rgba(33, 34, 38, 0.08);
  --outline-strong: rgba(33, 34, 38, 0.16);
  --dark: #0b0c0e;
  --dark-ink: #f4f5f8;
  --dark-ink-2: #a7abb4;
  --dark-outline: rgba(230, 234, 240, 0.1);
  --footer-bg: #151219;
  --green: #21d16b;
  --green-deep: #0d8a45;
  --nav-panel: #c8c8c8;
  --radius: 20px;
  --radius-lg: 28px;
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1360px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "deebal-alphabet", system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.16px;
}

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

a { color: inherit; }

::selection { background: rgba(33, 209, 107, 0.25); }

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

h1, h2, h3 { font-weight: 700; line-height: 1.06; letter-spacing: -0.022em; text-wrap: balance; }

.display-xl { font-size: clamp(2.5rem, 6.5vw, 4.75rem); }
.display-lg { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.display-md { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -0.014em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 46ch; }

.muted { color: var(--ink-3); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.5s var(--ease-expo), background-color 0.25s, color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 12px 32px -12px rgba(18, 19, 23, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--outline-strong);
}
.btn-ghost:hover { background: rgba(33, 34, 38, 0.05); }

/* Varianten auf dunklem Grund */
.on-dark .btn-primary { background: #fff; color: var(--ink); }
.on-dark .btn-primary:hover { box-shadow: 0 12px 32px -12px rgba(255, 255, 255, 0.4); }
.on-dark .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Kopfzeile / Navigation ---------- */

#headbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  z-index: 60;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

.headbar-scrim {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 117px;
  background: linear-gradient(rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

body.hero-dark .headbar-scrim { opacity: 1; }
body.past-hero .headbar-scrim { opacity: 0; }

body.page-light #headbar,
body.past-hero #headbar {
  background: rgba(248, 249, 252, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--outline);
}

.logo {
  display: block;
  width: 42px;
  height: 42px;
  background: url("assets/logo-512x512.png") center / contain no-repeat;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 36px);
}

.nav-toplink {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 10px 4px;
  color: #fff;
  transition: opacity 0.2s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
}

body.page-light .nav-toplink,
body.past-hero .nav-toplink,
body.nav-open .nav-toplink { color: var(--ink); }

.nav-toplink:hover { opacity: 0.65; }

@media (max-width: 720px) {
  .nav-toplink { display: none; }
}

/* Burger */
#navButton {
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#navButton span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.32s var(--ease-expo), opacity 0.2s, background-color 0.3s;
}

body.page-light #navButton span,
body.past-hero #navButton span,
body.nav-open #navButton span { background: var(--ink); }

#navButton span:nth-child(1) { top: 15px; }
#navButton span:nth-child(2) { top: 21px; }
#navButton span:nth-child(3) { top: 27px; }

body.nav-open #navButton span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open #navButton span:nth-child(2) { opacity: 0; }
body.nav-open #navButton span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Ausklapp-Menü – gleitet wie bisher von oben herein */
.navMenu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-panel);
  z-index: 58;
  transform: translateY(-101%);
  transition: transform 0.24s ease;
  padding: 92px var(--pad) 36px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}

.navMenu.activated { transform: translateY(0); }

.nav-panel-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 48px;
}

.nav-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 10px;
}

.nav-group a {
  display: block;
  color: #000;
  text-decoration: none;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 400;
  padding: 8px 0;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.4s var(--ease-expo);
}

.nav-group a:hover { opacity: 0.55; transform: translateX(6px); }

.nav-lang {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: flex-end;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.nav-lang a { color: #000; text-decoration: none; font-size: 1rem; }
.nav-lang a b { font-weight: 700; }

#backdropfront {
  position: fixed;
  inset: 0;
  z-index: 54;
  display: none;
  background: rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

body.nav-open #backdropfront { display: block; }

/* ---------- Hero (Startseite) ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(48px, 12vh, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 0 var(--pad);
  z-index: 2;
  color: #fff;
}

.hero-caption::before {
  content: "";
  position: absolute;
  inset: -140px 0 -120px;
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-caption h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.hero-caption p { color: rgba(255, 255, 255, 0.85); font-size: clamp(1rem, 1.6vw, 1.25rem); }

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

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

.section {
  padding: clamp(72px, 12vh, 150px) var(--pad);
}

.section-inner { max-width: var(--maxw); margin: 0 auto; }

.section-dark {
  background: var(--dark);
  color: var(--dark-ink);
}

.section-dark .eyebrow { color: var(--dark-ink-2); }
.section-dark .lede, .section-dark p { color: var(--dark-ink-2); }
.section-dark h2, .section-dark h3 { color: var(--dark-ink); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vh, 72px); }

/* Sanftes Einblenden beim Scrollen */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}

.reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Produktkarten (Startseite) ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.6s var(--ease-expo), box-shadow 0.6s var(--ease-expo);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px -32px rgba(18, 19, 23, 0.25);
}

.product-card figure {
  background: var(--bg-2);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card figure img {
  width: 78%;
  height: 88%;
  object-fit: contain;
  transition: transform 0.8s var(--ease-expo);
}

.product-card:hover figure img { transform: scale(1.04); }

.product-card-body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.product-card h3 { font-size: 1.5rem; }
.product-card p { color: var(--ink-2); font-size: 1rem; }

.product-card .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.spec-chip {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--outline-strong);
  color: var(--ink-2);
  white-space: nowrap;
}

.product-card .cta-line {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-card .cta-line::after {
  content: "→";
  transition: transform 0.4s var(--ease-expo);
}

.product-card:hover .cta-line::after { transform: translateX(6px); }

/* ---------- Zitat / Unternehmens-Sektion ---------- */

.quote-block h2 {
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.45;
  letter-spacing: 0;
  max-width: 30ch;
  margin: 0 auto;
  text-align: center;
}

.values-block { text-align: left; max-width: 860px; }
.values-block h2 { margin-bottom: 20px; }

/* ---------- Statistik-Band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.stat {
  padding: clamp(28px, 4vw, 48px) 24px;
  text-align: center;
}

.stat + .stat { border-left: 1px solid var(--outline); }

@media (max-width: 760px) {
  .stat + .stat { border-left: none; border-top: 1px solid var(--outline); }
}

.stat b {
  display: block;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat span { color: var(--ink-3); font-size: 0.95rem; }

.section-dark .stat + .stat { border-color: var(--dark-outline); }
.section-dark .stat-band { border-color: var(--dark-outline); }
.section-dark .stat span { color: var(--dark-ink-2); }

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

.p-hero {
  padding: calc(68px + clamp(48px, 9vh, 110px)) var(--pad) 0;
  text-align: center;
}

.p-hero .lede { margin: 18px auto 30px; }

.p-hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(40px, 7vh, 80px); }

.p-hero-figure {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}

/* ---------- Scrollytelling / Video-Scrubbing ---------- */

.scrub-section { position: relative; height: 420vh; background: #eceef2; }

.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrub-sticky video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrub-caption {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(40px, 9vh, 90px);
  text-align: left;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.7s var(--ease-expo);
  pointer-events: none;
  max-width: 560px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: rgba(248, 249, 252, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.scrub-caption.active { opacity: 1; transform: none; }

.scrub-caption h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 8px;
}

.scrub-caption p { color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 42ch; }

.scrub-progress {
  position: absolute;
  top: 50%;
  right: clamp(16px, 3vw, 40px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scrub-progress i {
  width: 4px;
  height: 26px;
  border-radius: 4px;
  background: rgba(18, 19, 23, 0.15);
  transition: background-color 0.3s;
}

.scrub-progress i.active { background: var(--green-deep); }

/* ---------- Feature-Raster ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.feature-cell {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-cell h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.feature-cell p { color: var(--ink-2); }

.feature-cell .big-number {
  font-size: clamp(3.4rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 8px;
  border-left: 2.5px solid var(--green-deep);
  border-bottom: 2.5px solid var(--green-deep);
  transform: rotate(-45deg);
}

/* ---------- Display-Sektion ---------- */

.display-frame {
  border-radius: clamp(14px, 2vw, 26px);
  padding: clamp(8px, 1.2vw, 14px);
  background: #1c1d21;
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  max-width: 980px;
  margin: 0 auto;
}

.display-frame img { border-radius: clamp(8px, 1.4vw, 16px); width: 100%; }

/* ---------- Lightbar-Status ---------- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.status-item {
  border: 1px solid var(--dark-outline);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-bar {
  width: 6px;
  height: 44px;
  border-radius: 6px;
  flex: none;
}

.status-item b { display: block; font-size: 1.05rem; }
.status-item span { color: var(--dark-ink-2); font-size: 0.9rem; }

.sb-white { background: #f2f4f8; box-shadow: 0 0 18px rgba(255, 255, 255, 0.55); }
.sb-blue { background: #3aa0ff; box-shadow: 0 0 18px rgba(58, 160, 255, 0.65); }
.sb-green { background: var(--green); box-shadow: 0 0 18px rgba(33, 209, 107, 0.65); }
.sb-red { background: #ff453a; box-shadow: 0 0 18px rgba(255, 69, 58, 0.65); }

/* ---------- Galerie ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.gallery-grid figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4 / 5;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}

.gallery-grid figure:hover img { transform: scale(1.045); }

/* ---------- Technische Daten ---------- */

.spec-table { border-top: 1px solid var(--dark-outline); }

.spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 320px) 1fr;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--dark-outline);
}

.spec-row dt { color: var(--dark-ink-2); font-size: 0.98rem; }
.spec-row dd { font-weight: 700; }

@media (max-width: 560px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- CTA-Band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { margin-bottom: 30px; }
.cta-band .hero-buttons { justify-content: center; }

/* ---------- Inhaltsseiten (Kontakt / Recht) ---------- */

.prose-page {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(68px + clamp(40px, 8vh, 90px)) var(--pad) clamp(72px, 10vh, 130px);
}

.prose-page h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin-bottom: 24px; }
.prose-page h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 40px 0 12px; }
.prose-page p, .prose-page li { color: var(--ink-2); margin-bottom: 12px; overflow-wrap: break-word; }
.prose-page ul { padding-left: 22px; margin-bottom: 16px; }
.prose-page a { color: var(--ink); font-weight: 700; text-decoration-color: var(--green-deep); text-underline-offset: 3px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 36px 0;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.contact-card h2 { margin: 0 0 8px; }
.contact-card p { margin-bottom: 4px; }
.contact-card .big {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
}

/* ---------- Fußbereich (Farbe & Ton wie bisher) ---------- */

#footer {
  background: var(--footer-bg);
  color: #fff;
  padding: clamp(64px, 10vh, 110px) var(--pad) 40px;
}

.footer-inner { max-width: var(--maxw); margin: 0 auto; }

.footer-line {
  border-top: 0.5px solid rgba(255, 255, 255, 0.55);
  margin-bottom: clamp(36px, 6vh, 60px);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 80px;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-col { display: flex; flex-direction: column; gap: 14px; min-width: 160px; }

.footer-col .foot-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

#footer a {
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

#footer a:hover { opacity: 0.6; }

.footer-brand { max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand .logo { width: 44px; height: 44px; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.95rem; line-height: 1.55; }

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}
