/* Farbpalette & Grundlayout */
:root {
  --color-bg: #050816;
  --color-bg-alt: #0b1120;
  --color-primary: #38bdf8;
  --color-primary-soft: rgba(56, 189, 248, 0.15);
  --color-accent: #a855f7;
  --color-text: #e5e7eb;
  --color-muted: #9ca3af;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
}

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

html {
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #87CEEB;
  color: var(--color-text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* Prevent any stray child from creating horizontal scroll */
  overflow-x: clip;
}

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

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

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  max-width: 100%;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.55),
    rgba(15, 23, 42, 0.35),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.35rem 0.3rem;
  color: #ffffff;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background-color: rgba(15, 23, 42, 0.7);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.45);
  white-space: nowrap;
}

.nav-cta:hover {
  filter: brightness(1.06);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle span {
  font-size: 1.4rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding: 3.5rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 560px;
  /* Break slightly out of page padding for full-bleed feel */
  margin: 1rem -1.5rem 0;
  min-width: 0;
}

.hero-text-col {
  max-width: 700px;
  min-width: 0;
}

/* ── Video background reel ── */
.hero-reel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: grid;
  /* Avoid rounding overflow on some mobile browsers */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.hero-reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-width: 0;
}

.hero-reel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(5, 8, 22, 0.08)  0%,
      rgba(5, 8, 22, 0.12) 45%,
      rgba(5, 8, 22, 0.55) 70%,
      rgba(5, 8, 22, 0.90) 100%
    );
}


/* All direct hero children float above the reel */
.hero > *:not(.hero-reel) {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-bottom: 0.7rem;
}

.hero-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #22c55e, #16a34a);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(5, 8, 22, 0.85), 0 1px 4px rgba(5, 8, 22, 0.9);
  overflow-wrap: anywhere;
}

.hero-title span {
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-subtitle {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #ffffff;
  max-width: 32rem;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 2px 12px rgba(0, 0, 0, 0.75),
    0 4px 28px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: unset;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.badge {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--color-muted);
  background: rgba(15, 23, 42, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--color-text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-meta strong {
  display: block;
  font-size: 1rem;
  color: var(--color-text);
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: 20px;
  padding: 0.9rem 1rem;
  background: rgba(5, 8, 22, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(56, 189, 248, 0.08);
  overflow: hidden;
}

.hero-card-inner {
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.7rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.stat-card {
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.75rem;
}

.stat-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.08rem;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.72rem;
  color: var(--color-muted);
}

/* Sektionen */
.section {
  padding: 2.4rem 0 1.4rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d4ed8;
  font-weight: 700;
}

.section-title {
  font-size: 1.5rem;
  margin: 0.15rem 0;
  color: #0d1117;
  font-weight: 700;
}

.section-description {
  font-size: 0.9rem;
  color: #1e293b;
  max-width: 28rem;
  font-weight: 500;
}

/* Service card image */
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  display: block;
}

/* Service page hero image */
.service-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 1.2rem 0 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-soft);
  display: block;
}

/* Kartenraster */
.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #020617, #020617 40%, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.2rem 1.1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.2),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.card-title {
  font-size: 1rem;
  margin: 0;
  color: #ffffff;
  font-weight: 700;
}

.card-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--color-muted);
}

.card-body {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  font-size: 0.8rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #7dd3fc;
}

.card-link span {
  font-size: 1rem;
}

/* Whole card is clickable via JS — show pointer and lift on hover */
.card:has(.card-link) {
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:has(.card-link):hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(10, 18, 40, 0.95), 0 0 0 1px rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.45);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.9rem 1rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.92rem;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-toggle {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

details[open] .faq-toggle,
div.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  border-color: rgba(148, 163, 184, 0.9);
}

/* div-based faq items (leistung pages): hide answers by default */
div.faq-item .faq-answer {
  display: none;
}
div.faq-item.open .faq-answer {
  display: block;
}

.faq-answer {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Kontaktbereich */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.contact-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, #020617, #020617 40%, #020617);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.contact-panel-title {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.86rem;
  color: var(--color-muted);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-row-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.contact-row-icon svg {
  width: 18px;
  height: 18px;
}

.contact-row-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.1rem;
}

.contact-row-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.contact-row-body strong {
  color: var(--color-text);
  font-size: 0.9rem;
}

.contact-row-body span {
  color: var(--color-muted);
  font-size: 0.84rem;
}

.contact-row-body a {
  color: inherit;
  transition: color 0.18s;
}

.contact-row-body a:hover {
  color: #38bdf8;
}

.contact-meta strong {
  color: var(--color-text);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
}

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

.field input,
.field select,
.field textarea {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.6rem 0.8rem;
  font-size: 0.86rem;
  color: var(--color-text);
  outline: none;
}

.field textarea {
  border-radius: 14px;
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Sekundäre Seiten */
.page-hero {
  padding: 3rem 0 1.2rem;
}

.page-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d4ed8;
  font-weight: 700;
}

.page-title {
  font-size: 1.9rem;
  margin: 0.25rem 0 0.8rem;
  color: #0d1117;
  font-weight: 700;
}

.page-intro {
  max-width: 68rem;
  font-size: 0.94rem;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.7;
}

.content {
  max-width: 52rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
}

.content h2 {
  font-size: 1.2rem;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  color: #0d1117;
  font-weight: 700;
}

.content h3 {
  font-size: 1.02rem;
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.content p {
  margin: 0.3rem 0 0.6rem;
}

.content ul {
  margin: 0.2rem 0 0.8rem 1.1rem;
  padding: 0;
}

.content li {
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.96);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 1.8rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "copy links"
    "area links";
  align-items: start;
  gap: 1rem;
}

.footer-inner > span:first-child {
  grid-area: copy;
}

.footer-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
  align-self: center;
}

.footer-links a {
  color: var(--color-muted);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-area {
  grid-area: area;
  max-width: 620px;
  line-height: 1.35;
  color: var(--color-muted);
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "area"
      "links";
    justify-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-area {
    max-width: 100%;
  }
}

/* Erfolgsfaktoren grid */
.erfolgsfaktoren-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.erfolgsfaktor-item {
  padding: 1.25rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.erfolgsfaktor-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.erfolgsfaktor-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.45rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(168, 85, 247, 0.45));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.erfolgsfaktor-item h3 {
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.erfolgsfaktor-item p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .erfolgsfaktoren-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .erfolgsfaktoren-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Section forward link – used at the end of homepage sections to link to full pages */
.section-forward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  margin-top: 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-left: 3px solid #38bdf8;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.section-forward:hover {
  background: rgba(56, 189, 248, 0.07);
  border-color: rgba(56, 189, 248, 0.45);
  border-left-color: #38bdf8;
  transform: translateX(4px);
}

.section-forward-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.section-forward-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.section-forward-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
}

.section-forward-arrow {
  font-size: 1.3rem;
  color: #38bdf8;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.section-forward:hover .section-forward-arrow {
  transform: translateX(4px);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #334155;
  margin-bottom: 0.6rem;
}

.breadcrumb a {
  color: #1d4ed8;
  font-weight: 500;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: #1e40af;
}

.breadcrumb-sep {
  color: #64748b;
}

/* Service feature list */
.service-features {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.service-feature {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.service-feature-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.service-feature strong {
  display: block;
  color: var(--color-text);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

/* Service grid (2-column) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

/* Highlight / info banner */
.highlight-banner {
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #1d4ed8;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: #1e3a8a;
  font-weight: 500;
  line-height: 1.7;
  margin: 1.4rem 0;
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.08);
}

/* CTA block */
.cta-block {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 55%),
    rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2.2rem 1.8rem;
  text-align: center;
  margin: 2.2rem 0;
}

.cta-block h2 {
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.cta-block p {
  color: var(--color-muted);
  font-size: 0.9rem;
  max-width: 36rem;
  margin: 0 auto 1.4rem;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* About / team box */
.about-box {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-values {
  display: grid;
  gap: 0.75rem;
}

.about-value {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.about-value strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

/* Why Planet full page */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.why-item--wide {
  grid-column: span 2;
}

.why-item.why-item--white {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.why-item.why-item--white .why-item-icon,
.why-item.why-item--white h3 {
  color: #0f172a;
}

.why-item.why-item--white p {
  color: #475569;
}

.why-item.why-item--white::before {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.06), transparent 55%);
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 0.75rem;
  padding: 1.3rem 1.1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #020617, #020617 40%, #020617);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.7);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
}

.why-item:hover::before {
  opacity: 1;
}

.why-item-icon {
  grid-column: 1;
  grid-row: 1;
  font-size: 1.5rem;
  margin-bottom: 0;
  align-self: center;
  position: relative;
}

.why-item h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1rem;
  margin: 0 0 0.3rem;
  align-self: center;
  position: relative;
}

.why-item p {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0.4rem 0 0;
  position: relative;
}

/* Stats strip */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.4rem 0;
}

.stat-strip-item {
  flex: 1 1 140px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.28);
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.stat-strip-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── WhatsApp floating button ── */
.whatsapp-fab {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-fab svg {
  width: 38px;
  height: 38px;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
}

.whatsapp-fab-tooltip {
  position: absolute;
  right: 66px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-fab:hover .whatsapp-fab-tooltip {
  opacity: 1;
}

/* ── Unsere Arbeiten – Scrolling Before/After Bar ── */
.arbeiten-section {
  overflow: hidden;
}

.arbeiten-track-wrapper {
  overflow: hidden;
  /* Fade edges for a polished look */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  margin: 0 -1.5rem;
  /* Force GPU compositing layer so overflow:hidden clips CSS-transform children correctly (iOS Safari fix) */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.arbeiten-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: arbeiten-scroll 28s linear infinite;
  padding: 0.5rem 1.5rem 1rem;
}

.arbeiten-track:hover {
  animation-play-state: paused;
}

@keyframes arbeiten-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.vn-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.7);
}

.vn-card--composite {
  flex-direction: column;
  gap: 0.4rem;
}

.vn-card--composite .vn-img-wrap {
  width: 540px;
  height: 210px;
}

.vn-card--composite .vn-composite-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.vn-card--single .vn-img-wrap {
  width: 300px;
  height: 210px;
}

.vn-card--single .vn-label {
  font-size: 0.8rem;
}

.vn-img-wrap {
  position: relative;
  width: 300px;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.vn-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.vn-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vn-vor {
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
}

.vn-nach {
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
}

.vn-arrow {
  font-size: 1.6rem;
  color: #38bdf8;
  flex-shrink: 0;
  line-height: 1;
}

/* Responsiv */
@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  /* Use the mobile menu earlier to prevent overflow */
  .nav-links {
    position: absolute;
    inset: 54px 1.25rem auto;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.5);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    max-width: calc(100vw - 2.5rem);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    /* Prevent horizontal overflow on narrow devices */
    margin: 1rem 0 0;
    padding: 2.5rem 1.5rem 2.5rem;
    min-height: 480px;
  }

  /* Hide stat card on all tablet/mobile sizes — it doesn't fit in stacked layout */
  .hero-visual {
    display: none;
  }

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

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

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

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

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

  /* Prevent double-width cards from overflowing when grid is 1 column */
  .why-item--wide {
    grid-column: span 1;
  }

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

@media (max-width: 720px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Mobile optimizations (≤ 600px) ─── */
@media (max-width: 600px) {
  /* Tighter page padding on small screens */
  .page {
    padding: 0 1rem 2rem;
  }

  /* Logo slightly smaller */
  .logo-img {
    height: 44px;
  }

  /* Nav bar tighter */
  .nav {
    padding: 0.3rem 1rem;
  }

  /* Hero */
  .hero {
    padding: 2rem 1rem 2rem;
    /* Prevent horizontal overflow on small screens */
    margin: 0.5rem 0 0;
    min-height: 340px;
    border-radius: 12px;
    width: 100%;
  }

  /* Hide the stat card panel on phones — it overflows and isn't needed */
  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    max-width: 100%;
  }

  /* Allow pill text to wrap instead of overflowing */
  .hero-pill {
    white-space: normal;
    text-align: left;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
  }

  .hero-meta {
    gap: 1rem;
    margin-top: 1.2rem;
  }

  /* Sections */
  .section {
    padding: 1.6rem 0 1rem;
  }

  .section-header {
    flex-direction: column;
    gap: 0.4rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  /* Stats strip: 2 cols on mobile */
  .stats-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip-item {
    font-size: 0.82rem;
    padding: 0.7rem 0.8rem;
  }

  /* Page hero (detail pages) */
  .page-hero {
    padding: 1.4rem 0 1rem;
  }

  .page-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .page-intro {
    font-size: 0.88rem;
  }

  /* Service feature list: 1 column */
  .service-features {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Wide card title: allow it to wrap nicely on small screens */
  .why-item--wide h3 {
    font-size: 0.92rem;
  }

  /* CTA block */
  .cta-block {
    padding: 2rem 1.2rem;
    text-align: center;
  }

  .cta-block h2 {
    font-size: 1.2rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .cta-actions .btn-primary,
  .cta-actions .btn-ghost {
    justify-content: center;
  }

  /* Highlight banner wraps */
  .highlight-banner {
    font-size: 0.82rem;
    padding: 0.85rem 1rem;
    line-height: 1.6;
  }

  /* About values: one per row */
  .about-values {
    grid-template-columns: minmax(0, 1fr);
  }

  /* FAQ */
  .faq-item summary {
    font-size: 0.88rem;
  }

  /* Unsere Arbeiten: show on mobile as swipe gallery (no auto-scrolling overflow) */
  .arbeiten-section {
    display: block !important;
    overflow: visible;
  }

  .arbeiten-track-wrapper {
    margin: 0;
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    padding-bottom: 0.25rem;
  }

  .arbeiten-track {
    width: auto;
    animation: none;
    padding: 0.5rem 1rem 0.75rem;
    gap: 0.85rem;
  }

  .vn-card {
    scroll-snap-align: start;
    flex-direction: column;
    align-items: stretch;
    /* Must be viewport-based because parent track is max-content */
    width: min(340px, calc(100vw - 2rem));
    flex: 0 0 auto;
  }

  .vn-img-wrap {
    width: 100%;
    height: 170px;
  }

  .vn-card--single .vn-img-wrap {
    width: 100%;
    height: 190px;
  }

  .vn-card--composite .vn-img-wrap {
    width: 100%;
    height: 200px;
  }

  .vn-arrow {
    font-size: 1.25rem;
    transform: rotate(90deg);
    align-self: center;
  }

  /* Service hero image */
  .service-hero-img {
    max-height: 220px;
    margin: 0.8rem 0 1.2rem;
  }

  /* Erfolgsfaktoren: 1 column */
  .erfolgsfaktoren-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Section-forward strip */
  .section-forward {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
  }

  /* Contact form: full-width fields for easier tapping */
  .field input,
  .field select,
  .field textarea {
    font-size: 1rem; /* prevents iOS auto-zoom on input focus */
  }

  /* Footer */
  .footer-inner {
    padding: 1.5rem 1rem;
    gap: 0.9rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.78rem;
  }

  /* Prevent any badge/pill text from overflowing */
  .badge,
  .card-pill,
  .hero-kicker {
    white-space: normal;
  }

  /* Cards: make sure content doesn't push the card wider */
  .card {
    min-width: 0;
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arbeiten-track {
    animation: none !important;
  }
}

