:root {
  --bg: #0d1214;
  --card: #151b1e;
  --card-strong: #1b2228;
  --accent: #ff3300;
  --text: #e8edf2;
  --muted: #95a0aa;
  --border: #1f262c;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Kiosk-friendly global scrollbar styling (Chromium/WebKit + Firefox fallback) */
html {
  scrollbar-gutter: stable both-edges;
  scrollbar-color: #161d22 #090d10;
  scrollbar-width: thin;
}

body {
  scrollbar-color: inherit;
  scrollbar-width: inherit;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #090d10;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1b242b 0%, #11171b 100%);
  border-radius: 999px;
  border: 1px solid #090d10;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #243039 0%, #171f25 100%);
}

/* Optional hard-hide mode for kiosk setups (activate via class on <html> or <body>) */
html.kiosk-scrollbar-hidden,
body.kiosk-scrollbar-hidden {
  scrollbar-width: none;
}

html.kiosk-scrollbar-hidden::-webkit-scrollbar,
body.kiosk-scrollbar-hidden::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 18, 20, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--text);
}

.brand img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 30px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 51, 0, 0.14);
}

/* Language switch */
.nav-links a.lang-switch {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links a.lang-switch:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.lang-switch .flag-icon {
  width: 1.1em;
  height: auto;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links .flag-icon {
  width: 1.1em;
  height: auto;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 2px;
}

/* Dropdown nav */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 8px 12px;
  border-radius: 30px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-toggle:hover {
  color: #fff;
  background: rgba(255, 51, 0, 0.14);
}

.nav-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding: 10px 6px 6px; /* 10px top = transparent mouse bridge over the gap */
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}

/* Visual box starts below the mouse bridge */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 18, 20, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: -1;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 51, 0, 0.14);
  color: #fff;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 10px;
  color: var(--text);
}

main {
  overflow: hidden;
}

section {
  padding: 80px 18px;
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  font-family: "Lexend Deca", "Nunito", sans-serif;
  margin: 0 0 14px 0;
  color: #fff;
}

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

.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(12, 16, 20, 0.9), rgba(12, 16, 20, 0.5)),
    url("img/pREq0ns_p_E.jpg") center/cover no-repeat;
  padding-top: 140px;
  padding-bottom: 140px;
}

.hero .shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: center;
}

.hero-card {
  background: rgba(21, 27, 30, 0.88);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
}

.hero p {
  font-size: 1.1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 51, 0, 0.1);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b0e11;
  box-shadow: 0 10px 30px rgba(255, 51, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(255, 51, 0, 0.45);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
}

.divider {
  height: 2px;
  width: 120px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 18px 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
}

.section-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.accordion {
  display: grid;
  gap: 14px;
}

.accordion details {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.accordion summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.accordion details[open] summary::after {
  content: "−";
  color: #fff;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion p {
  margin: 10px 0 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#pruefbereiche .card h3 {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.icon-pill {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 51, 0, 0.12);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1.2rem;
}

.card h3 {
  margin-top: 10px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 90px 1fr 120px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-index {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(255, 51, 0, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
}

.step-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.price-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(255, 51, 0, 0.25), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(255, 51, 0, 0.18), transparent 40%),
    var(--card);
  border: 1px solid var(--accent);
  box-shadow: 0 0 14px rgba(255, 51, 0, 0.4);
}

.price-tag {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.compare .col {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
}

.compare ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.compare li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--muted);
}

.compare li:last-child {
  border-bottom: none;
}

.pill-label {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 700;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: center;
}

.badge-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0 0;
  padding: 0;
}

.badge-list li {
  list-style: none;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.badge-list li .li-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 51, 0, 0.12);
  color: var(--accent);
  flex: 0 0 22px;
  margin-top: 2px;
}

.badge-list li .li-icon i {
  font-size: 0.95rem;
}

.contact {
  background: linear-gradient(180deg, rgba(21, 27, 30, 0.9), rgba(13, 18, 20, 0.95)),
    url("img/25_2x.jpg") center/cover no-repeat;
}

.contact .grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-card {
  background: rgba(21, 27, 30, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.contact-item .icon-pill {
  background: rgba(255, 51, 0, 0.18);
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1418;
  color: var(--text);
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 51, 0, 0.2);
}

footer {
  text-align: center;
  padding: 22px;
  border-top: 1px solid var(--border);
  background: #0a0d0f;
  color: var(--muted);
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.notice {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Stats strip (social proof) */
.stats-strip {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}

.stat {
  text-align: center;
  min-width: 120px;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  font-family: 'Lexend Deca', sans-serif;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* FAQ section */
.faq-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 4px;
}

.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.faq-list details[open] {
  border-color: rgba(255, 51, 0, 0.35);
}

.faq-list summary {
  font-weight: 700;
  list-style: none;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  color: var(--muted);
  margin: 0.75rem 0 0 0;
  line-height: 1.65;
}

/* Risk box (DIN SPEC urgency) */
.risk-box {
  border-color: rgba(255, 51, 0, 0.4) !important;
  background: radial-gradient(circle at 0% 0%, rgba(255, 51, 0, 0.1), transparent 60%), var(--card);
}

.risk-box .risk-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

/* Honeypot field: hidden for humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    right: 18px;
    top: 70px;
    background: rgba(13, 18, 20, 0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    min-width: 210px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .burger {
    display: inline-flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 4px;
    padding: 4px;
    display: none;
  }

  .dropdown-menu::before {
    display: none; /* no mouse-bridge trick needed on mobile */
  }

  .nav-dropdown.open .dropdown-menu {
    display: flex;
  }

  .timeline-step {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }

  .step-image {
    order: 3;
    grid-column: 1 / -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* Remove default list indentation on mobile */
  ul,
  ol {
    padding-left: 0;
    margin-left: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  section {
    padding: 64px 16px;
  }
}

/* Technology partners (homepage) */
.partners {
  padding: 36px 0;
}

.partners-head {
  text-align: center;
  margin-bottom: 16px;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.partner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--text);
}

.partner img {
  width: 44px;
  height: 44px;
  filter: invert(1);
  opacity: 0.95;
}

.partner span {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.partner-mark {
  font-size: 1.15rem;
}

/* Kiosk presentation mode (enabled via URL token in script.js) */
html.presentation-mode {
  font-size: 180%;
}

body.presentation-mode {
  overflow-x: hidden;
}

body.presentation-mode header,
body.presentation-mode footer {
  display: none !important;
}

body.presentation-mode main {
  overflow: visible;
}

body.presentation-mode section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

body.presentation-mode .shell {
  width: min(96vw, 1820px);
  max-width: none;
}

body.presentation-mode .cta-row {
  display: none;
}

body.presentation-mode .contact .grid {
  grid-template-columns: 1fr;
}

body.presentation-mode .presentation-qr {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
  justify-items: center;
}

body.presentation-mode .presentation-qr-label {
  margin: 0;
  font-weight: 700;
}

body.presentation-mode .presentation-qr img {
  width: min(56vw, 416px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 8px;
  border-radius: 10px;
}

body.presentation-mode .presentation-qr a {
  font-size: 0.7em;
  word-break: break-all;
}

body.presentation-mode .badge-list li {
  gap: 18px;
}

body.presentation-mode .badge-list li .li-icon {
  margin-right: 6px;
}

body.presentation-mode .contact-item {
  gap: 18px;
}

body.presentation-mode .compare {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
}

body.presentation-mode .compare .col {
  width: 100%;
}

body.presentation-mode .compare li {
  overflow-wrap: anywhere;
}

body.presentation-mode.presentation-subpage main > section:first-of-type .shell {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px;
}

@media (orientation: portrait), (max-width: 1600px) {
  body.presentation-mode .hero .shell {
    grid-template-columns: 1fr !important;
  }

  body.presentation-mode section {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  body.presentation-mode .shell {
    width: 96vw;
  }

  body.presentation-mode .two-col,
  body.presentation-mode .about,
  body.presentation-mode .compare,
  body.presentation-mode .timeline-step,
  body.presentation-mode .grid-3 {
    grid-template-columns: 1fr !important;
  }

  body.presentation-mode .step-image {
    order: initial;
    grid-column: auto;
  }

  body.presentation-mode .hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
  }
}
