:root {
  --red: #C8102E;
  --red-dark: #A00C24;
  --ink: #171719;
  --ink-soft: #45464b;
  --bg: #ffffff;
  --bg-alt: #f6f6f8;
  --bg-dark: #121214;
  --border: #e7e7ea;
  --radius: 14px;
  --max-width: 1180px;
  --shadow: 0 20px 40px -20px rgba(20,20,25,0.25);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

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

.brand-text small {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--red); }

.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 100px;
  transition: background 0.2s;
}

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

.lang-switch {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.lang-switch:hover { border-color: var(--red); color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); }

.btn-ghost {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(200,16,46,0.35) 0%, rgba(200,16,46,0) 45%),
    linear-gradient(135deg, #0c0c0e 0%, #171719 55%, #2a1013 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-grid-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-content {
  max-width: 620px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* KI spotlight section */
.ki-section {
  position: relative;
  overflow: hidden;
}

.ki-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ki-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: center;
}

.ki-node {
  display: flex;
  justify-content: center;
}

.ki-node svg {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.ki-content h2,
.ki-content .eyebrow {
  text-align: left;
}

.ki-content h2 {
  max-width: 640px;
}

/* Smart Home orbit */
.orbit {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 56px auto 24px;
}

.orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
}

.orbit-center svg { width: 100%; height: auto; display: block; }

.orbit-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 118px;
  text-align: center;
}

.orbit-node span {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.node-1 { top: 8%; left: 50%; }
.node-2 { top: 29%; left: 86.4%; }
.node-3 { top: 71%; left: 86.4%; }
.node-4 { top: 92%; left: 50%; }
.node-5 { top: 71%; left: 13.6%; }
.node-6 { top: 29%; left: 13.6%; }

/* Zielgruppen growth journey */
.journey {
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.journey-icons {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.journey-icon-cell {
  flex: 1;
  display: flex;
  justify-content: center;
}

.journey-icon {
  display: block;
}

.size-1 { width: 34px; height: 34px; }
.size-2 { width: 44px; height: 44px; }
.size-3 { width: 54px; height: 54px; }
.size-4 { width: 64px; height: 64px; }
.size-5 { width: 74px; height: 74px; }

.journey-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}

.journey-label {
  flex: 1;
  text-align: center;
  padding: 0 6px;
}

.journey-label h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

.journey-label p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 14px;
}

.hero .eyebrow { color: var(--red); }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.86);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.icon-xs {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 100px 0;
}

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

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-dark .eyebrow { color: var(--red); }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-dark .fact-list li { color: rgba(255,255,255,0.92); }
.section-dark .list-icon,
.section-dark .icon-sm {
  border-radius: 30%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.section-dark .stat-label { color: rgba(255,255,255,0.65); }

/* One continuous background (dot-grid + red glows) spanning "Warum ich",
   Kontakt and Footer, so the whole dark zone reads as a single surface
   instead of three stacked sections. */
.dark-zone {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(700px 700px at 6% 8%, rgba(200,16,46,0.16) 0%, rgba(200,16,46,0) 70%),
    radial-gradient(600px 600px at 94% 92%, rgba(200,16,46,0.13) 0%, rgba(200,16,46,0) 70%),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}

.stats-band,
.kontakt-section,
.site-footer {
  background: transparent;
}

.stats-band { position: relative; }

.stats-band .container,
.kontakt-layout,
.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.center { text-align: center; }

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 760px;
}
h2.center { margin-left: auto; margin-right: auto; }

.section-lead {
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-lead p {
  margin: 0 0 14px;
}

.section-lead p:last-child {
  margin-bottom: 0;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split > * {
  /* Grid items default to min-width:auto, so an unbreakable child (e.g. a
     <select>'s longest option) can force the whole track wider than the
     viewport. min-width:0 lets the track shrink to the container's width. */
  min-width: 0;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 70% at 100% 100%, rgba(200,16,46,0.32) 0%, rgba(200,16,46,0.14) 30%, rgba(23,23,25,0) 62%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.photo-frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, rgba(200,16,46,0) 0%, var(--red) 22%, var(--red) 78%, rgba(200,16,46,0) 100%);
  z-index: 1;
}

.photo-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
}

.ai-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(23,23,25,0.72);
  color: rgba(255,255,255,0.92);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 100px;
  backdrop-filter: blur(2px);
}

.ai-badge-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: #ff8a8a;
}

.split-text p:not(.eyebrow) { color: var(--ink-soft); }
.section-dark .split-text p:not(.eyebrow) { color: rgba(255,255,255,0.65); }

.fact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fact-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  color: var(--ink);
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.link-arrow {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  color: var(--red);
}

/* List rows (replaces boxed cards/tiles) */
.list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  max-width: 920px;
  margin: 0 auto;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.list-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.list-num {
  flex-shrink: 0;
  width: 48px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--red);
  opacity: 0.85;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.num-list .list-item { align-items: center; }

.list-item h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.list-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Two-column text (KI section) */
.text-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 820px;
  margin: 0 auto;
}

.text-grid-2 h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.text-grid-2 .fact-list { margin-top: 0; }

.icon-sm {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--red);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Contact form */
.kontakt-section {
  position: relative;
  overflow: hidden;
}

.kontakt-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kontakt-layout {
  position: relative;
  z-index: 1;
}

.kontakt-perks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kontakt-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  border-top: 4px solid var(--red);
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  /* 16px minimum prevents iOS Safari from auto-zooming the page on focus */
  font-size: 16px;
  color: var(--ink);
  background: #fafafa;
  -webkit-appearance: none;
  appearance: none;
}

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345464b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  background: #fff;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.footer-brand p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.footer-bottom {
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 36px;
}

.legal p, .legal li { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero-grid-layout { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 320px; }
  .ki-layout { grid-template-columns: 1fr; }
  .ki-node svg { max-width: 140px; }
  .ki-content h2, .ki-content .eyebrow { text-align: center; margin-left: auto; margin-right: auto; }
  .ki-content .section-lead { text-align: center !important; margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 18px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .list-grid { grid-template-columns: 1fr; }
  .text-grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .orbit { max-width: 340px; margin-top: 70px; }
  .orbit-node { width: 84px; }
  .orbit-node span { font-size: 0.72rem; }
  .orbit-node .icon-sm { width: 24px; height: 24px; }
  .size-1 { width: 22px; height: 22px; }
  .size-2 { width: 28px; height: 28px; }
  .size-3 { width: 34px; height: 34px; }
  .size-4 { width: 40px; height: 40px; }
  .size-5 { width: 46px; height: 46px; }
  .journey-icons, .journey-labels { gap: 2px; }
  .journey-icon-cell, .journey-label { min-width: 0; padding: 0 2px; }
  .journey-label h3 { font-size: 0.7rem; word-break: break-word; line-height: 1.2; }
  .journey-label p { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 70px 0; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px;
  background: #171719;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-banner a { color: #fff; text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-ghost-dark {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); }
