:root {
  --bg: #020617;
  --bg-alt: #020617;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --primary: #2563eb;
  --primary-soft: #1d4ed8;
  --accent: #22c55e;
  --border: #1f2937;
  --radius: 14px;
  --shadow-soft: 0 10px 25px rgba(15,23,42,0.6);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER / NAV */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(2,6,23,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31,41,55,0.9);
  transition: box-shadow 0.2s ease, padding 0.2s ease, background-color 0.2s ease;
}

header.header-scrolled {
  box-shadow: 0 6px 20px rgba(15,23,42,0.9);
  background: rgba(2,6,23,0.96);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: padding 0.2s ease;
  position: relative;
}

header.header-scrolled .nav {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform 0.25s ease;
}

header.header-scrolled .logo-img {
  transform: scale(0.92);
}

.logo span {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

nav {
  position: relative;
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

nav a:hover {
  color: #e5e7eb;
  border-color: var(--primary);
}

.btn-nav {
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(37,99,235,0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37,99,235,0.9);
}

/* Burger-Button */

.nav-toggle {
  display: none;
  background: rgba(15,23,42,0.9);
  border: 1px solid #4b5563;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  color: #e5e7eb;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle.open span {
  background: transparent;
}

.nav-toggle.open span::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.open span::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* LAYOUT MAIN / SECTIONS */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

section {
  padding: 2.5rem 0;
  scroll-margin-top: 90px;
}

/* HERO MIT VIDEO */

.hero {
  position: relative;
  width: 100%;
  /*min-height: 75vh;*/
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /*padding: 3rem 0 3.2rem;*/
  overflow: hidden;
}
@supports (height: 100svh) {
  .hero {
    min-height: 100svh;
  }
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  /*width: 100vw;*/
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at top left, #1e293b, #020617 60%);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.2) contrast(1.05) brightness(0.9);
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2; /* statt -1 → Video wird jetzt abgedunkelt */
  pointer-events: none; /* damit Buttons klickbar bleiben */
  background:
      linear-gradient(to bottom, rgba(0,0,0,0.60), rgba(0,0,0,0.80));
  mix-blend-mode: normal;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.8);
  color: #bfdbfe;
  font-size: 0.78rem;
  border: 1px solid rgba(37,99,235,0.6);
  box-shadow: 0 8px 26px rgba(15,23,42,0.75);
  margin-bottom: 0.8rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.8);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.8); }
  70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

h1 {
  font-size: clamp(2.2rem, 3.3vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .hero-inner h1 {
    font-size: 2.2rem;     /* kleiner für Handy */
    line-height: 1.2;      /* etwas mehr Zeilenhöhe */
  }
}

@media (max-width: 480px) {
  .hero-inner h1 {
    font-size: 2rem;     /* sehr kleine Geräte */
  }
}

.hero-tagline {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.7rem;
}

.hero-tagline strong {
  color: #f9fafb;
}

.hero-sub {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 35rem;
  margin-bottom: 1.25rem;
}

.hero-sub strong {
  color: #e5e7eb;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.btn-primary {
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 500;
  font-size: 0.92rem;
  box-shadow: 0 12px 30px rgba(37,99,235,0.7);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.9);
}

.btn-secondary {
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.9);
  background: rgba(15,23,42,0.8);
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(30,64,175,0.9);
  border-color: rgba(129,140,248,1);
  color: #f9fafb;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.hero-meta strong {
  color: #e5e7eb;
  font-weight: 600;
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(37,99,235,0.6), rgba(15,23,42,0.95));
  border-radius: var(--radius);
  padding: 1.15rem 1.05rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.4);
  font-size: 0.9rem;
  color: var(--text-muted);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(14px);
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.95);
  border-color: rgba(191,219,254,0.8);
}

.hero-card h2 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #e5e7eb;
}

.hero-list {
  list-style: none;
}

.hero-list li {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  color: #cbd5f5;
  font-size: 0.86rem;
}

.hero-icon {
  font-size: 0.85rem;
  color: #22c55e;
  margin-top: 0.1rem;
}

/* GENERISCHE SECTIONS */

.section-title {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
  color: #e5e7eb;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

/* LEISTUNGEN */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: radial-gradient(circle at top left, rgba(15,23,42,0.95), rgba(15,23,42,0.98));
  border-radius: var(--radius);
  border: 1px solid rgba(31,41,55,1);
  padding: 1.05rem 1rem;
  box-shadow: 0 10px 28px rgba(15,23,42,0.9);
  font-size: 0.9rem;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,1);
  border-color: rgba(59,130,246,0.8);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,1);
  background: rgba(15,23,42,0.9);
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.card ul {
  list-style: none;
  color: var(--text-muted);
}

.card ul li {
  margin-bottom: 0.25rem;
  padding-left: 1rem;
  position: relative;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--accent);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(37,99,235,0.15);
  color: #bfdbfe;
}

/* SHOWROOM / GALLERY */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: rgba(15,23,42,0.98);
  border-radius: var(--radius);
  border: 1px solid rgba(31,41,55,1);
  box-shadow: 0 10px 28px rgba(15,23,42,1);
  overflow: hidden;
  font-size: 0.85rem;
  color: var(--text-muted);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,1);
  border-color: rgba(59,130,246,0.8);
}

.gallery-slider {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateX(5px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.gallery-slide.active {
  opacity: 1;
  transform: translateX(0); 
}


.gallery-body {
  padding: 0.6rem 0.75rem 0.7rem;
}

.gallery-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 0.2rem;
}

.gallery-title {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.15rem;
}

/* 2-column Layout */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.6rem;
}

.highlight-box {
  background: rgba(15,23,42,0.98);
  border-radius: var(--radius);
  border: 1px solid rgba(31,41,55,1);
  padding: 1rem 1rem;
  box-shadow: 0 10px 28px rgba(15,23,42,1);
  font-size: 0.9rem;
  color: var(--text-muted);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.highlight-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15,23,42,1);
  border-color: rgba(59,130,246,0.8);
}

.highlight-box h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.benefit-list {
  list-style: none;
  margin-top: 0.4rem;
}

.benefit-list li {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.benefit-icon {
  font-size: 0.85rem;
  color: #60a5fa;
  margin-top: 0.05rem;
}

/* Ablauf / Steps */

.steps {
  list-style: none;
  counter-reset: step;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.steps li {
  counter-increment: step;
  margin-bottom: 0.8rem;
  padding-left: 2.1rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 1px solid #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #bfdbfe;
  background: rgba(15,23,42,0.95);
}

/* FAQ */

.faq-item {
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(31,41,55,1);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  box-shadow: 0 8px 24px rgba(15,23,42,1);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15,23,42,1);
  border-color: rgba(59,130,246,0.8);
}

.faq-item strong {
  display: block;
  color: #e5e7eb;
  margin-bottom: 0.2rem;
}

/* Kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.6rem;
}

form {
  display: grid;
  gap: 0.75rem;
  font-size: 0.9rem;
}

label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(31,41,55,1);
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: rgba(15,23,42,0.98);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.6);
  background: #020617;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(22,163,74,0.75);
  justify-self: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(22,163,74,0.95);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.contact-card {
  background: rgba(15,23,42,0.98);
  border-radius: var(--radius);
  border: 1px solid rgba(31,41,55,1);
  padding: 1rem 1rem;
  box-shadow: 0 10px 28px rgba(15,23,42,1);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.contact-card a {
  color: #93c5fd;
  font-weight: 500;
}

.contact-card a:hover {
  color: #bfdbfe;
}

.contact-note {
  margin-top: 0.7rem;
  font-size: 0.85rem;
}

/* Footer */

footer {
  border-top: 1px solid rgba(31,41,55,1);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #020617;
  margin-top: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-color: #3b82f6;
  color: #e5e7eb;
}

/* Cookie-Banner */

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 420px;
  width: calc(100% - 2rem);
  background: rgba(15,23,42,0.98);
  border-radius: 12px;
  border: 1px solid rgba(55,65,81,1);
  box-shadow: 0 18px 40px rgba(15,23,42,0.95);
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 9999;
  display: none;
}

.cookie-banner h3 {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.3rem;
}

.cookie-banner p {
  margin-bottom: 0.5rem;
}

.cookie-banner a {
  color: #93c5fd;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-btn {
  border-radius: 999px;
  border: 1px solid rgba(75,85,99,1);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
}

.cookie-btn.primary {
  border-color: #22c55e;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22,163,74,0.8);
}

.cookie-btn.primary:hover {
  box-shadow: 0 12px 30px rgba(22,163,74,0.95);
}

/* Scroll-Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal].reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-reveal-delay="1"] {
  transition-delay: 0.1s;
}

[data-reveal][data-reveal-delay="2"] {
  transition-delay: 0.2s;
}

[data-reveal][data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  main {
    padding-inline: 1rem;
  }
  .grid-3,
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 80vh;
    padding-top: 3.4rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    position: absolute;
    right: 0;
    top: 2.8rem;
    background: rgba(15,23,42,0.98);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #374151;
    box-shadow: 0 16px 30px rgba(15,23,42,0.95);
    min-width: 180px;
  }

  nav ul.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-nav {
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }

  .logo-img {
    height: 36px;
  }
}
