:root {
  --primary: #0a2e52;
  --primary-2: #123f69;
  --accent: #0e6aa6;
  --ink: #0b2237;
  --muted: #667788;
  --line: #dce5ed;
  --soft: #f6f9fc;
  --white: #ffffff;
  --radius: 5px;
  --shadow: 0 14px 38px rgba(10, 46, 82, 0.09);
  --container: min(1180px, calc(100% - 40px));
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
}

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

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.skip-link {
  position: fixed;
  left: 12px;
  top: -70px;
  background: #ffffff;
  color: #000000;
  padding: 10px 14px;
  z-index: 9999;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid #f1b84b;
  outline-offset: 3px;
}

/* =========================================================
   HEADER
========================================================= */

.contact-bar {
  background: var(--primary);
  color: #ffffff;
}

.contact-bar-inner {
  min-height: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
}

.contact-email {
  justify-self: start;
}

.contact-whatsapp {
  justify-self: center;
}

.contact-phone {
  justify-self: end;
}

.contact-mobile-label {
  display: none;
}

.contact-bar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.contact-bar a .icon {
  width: 15px;
  height: 15px;
}

.contact-bar a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(10, 46, 82, 0.09);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 82px;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo */

.brand img {
  width: 142px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  padding: 10px;
}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 650;
}

.primary-nav > a,
.nav-dropdown-toggle {
  color: #1f3347;
}

.primary-nav > a:hover,
.nav-dropdown-toggle:hover {
  color: var(--accent);
}

.primary-nav > a,
.nav-dropdown-toggle {
  transition: color 0.18s ease;
}

/* =========================================================
   DIENSTE DROPDOWN
========================================================= */

.nav-dropdown {
  position: relative;
}

/* Dienste Button */

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 12px 0;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  color: #1f3347;
  white-space: nowrap;
}

.nav-dropdown-label {
  display: inline-block;
  line-height: 1;
}

/* =========================================================
   DROPDOWN PFEIL
========================================================= */

.nav-dropdown-arrow {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform 0.18s ease;
  margin-left: 1px;
}

/* Pfeil nach oben wenn geöffnet */

.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(225deg) translate(-1px, -1px);
}

/* =========================================================
   DROPDOWN MENÜ
========================================================= */

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: #ffffff;
  border: 1px solid rgba(10, 46, 82, 0.12);
  box-shadow: 0 20px 45px rgba(10, 46, 82, 0.16);
  padding: 8px;
  border-radius: var(--radius);
  display: none;
  overflow: hidden;
  z-index: 100;
}

/* Linie oben */

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

/* geöffnet */

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  animation: dropdownIn 0.16s ease-out;
}

/* Dropdown Links */

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 650;
  color: #243a4e;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    padding-left 0.15s ease;
}

.nav-dropdown-menu a + a {
  border-top: 1px solid #edf2f6;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: #f2f6f9;
  color: var(--primary);
  padding-left: 15px;
  outline: none;
}

/* Animation */

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* =========================================================
   HEADER CTA
========================================================= */

.header-cta {
  margin-left: 6px;
}

/* =========================================================
   MOBILE MENÜ BUTTON
========================================================= */

.menu-toggle {
  display: none;
  margin-left: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
  border: 1px solid transparent;
  transition: 0.18s ease;
  cursor: pointer;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-2);
}

.btn-accent {
  background: #1e9bd8;
  color: #0a2e52;
}

.btn-accent:hover {
  background: #43afe3;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 757px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(165deg, #164f7d 0%, #0a2e52 58%, #071f39 100%);
}

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

.hero-video.video-unavailable {
  display: none;
}

.hero-video-play {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  background: rgba(7, 31, 57, 0.8);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hero-video-play[hidden] {
  display: none;
}

.hero-video-play .icon {
  width: 16px;
  height: 16px;
}

.hero-video-play:hover {
  background: var(--primary);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 31, 55, 0.9) 0%,
    rgba(10, 46, 82, 0.7) 58%,
    rgba(10, 46, 82, 0.28) 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(transparent, rgba(5, 30, 53, 0.28));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 0;
  transform: translateY(-56px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #aee0ff;
}

.hero h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 850;
}

.hero-copy {
  max-width: 600px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
  margin: 22px auto 44px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-height: 62px;
  padding-inline: 28px;
  font-size: 18px;
}

.hero-proof {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof .icon {
  color: #aee0ff;
}

/* =========================================================
   TRUST STRIP
========================================================= */

.trust-strip {
  position: relative;
  margin-top: 0;
  z-index: 1;
}

.trust-grid {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-grid article {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-grid article > div {
  min-width: 0;
}

.trust-icon {
  width: 36px;
  height: 36px;
  padding: 7px;
  flex: 0 0 auto;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: #eaf4fa;
  border-radius: var(--radius);
}

.trust-grid article:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  font-size: 15px;
}

.trust-grid span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
  padding: 88px 0;
}

.section[id],
.service-card[id] {
  scroll-margin-top: 96px;
}

.section-soft {
  background: var(--soft);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.section h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

.section-intro > p:not(.eyebrow),
.section-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
}

/* =========================================================
   CHECK LIST
========================================================= */

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

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list .icon {
  color: var(--accent);
  margin-top: 3px;
}

/* =========================================================
   FORMULAR
========================================================= */

.quote-form {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
  border-radius: var(--radius);
}

.quote-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}

.quote-form legend {
  font-weight: 800;
  margin-bottom: 10px;
}

/* Kundentyp */

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-card {
  position: relative;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  gap: 10px;
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(14, 106, 166, 0.09);
}

.choice-card input {
  margin-top: 4px;
}

.choice-card-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--accent);
}

.choice-card:has(input:checked) .choice-card-icon {
  color: var(--primary);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card small {
  color: var(--muted);
  margin-top: 2px;
}

/* Form Grid */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #cfdbe5;
  background: #ffffff;
  padding: 12px 13px;
  border-radius: var(--radius);
  outline: none;
  color: var(--ink);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 106, 166, 0.09);
}

.form-submit-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.form-challenge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.form-challenge > span {
  font-size: 12px;
  font-weight: 700;
}

.form-challenge input {
  width: 82px;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #cfdbe5;
  border-radius: var(--radius);
  color: var(--ink);
}

.form-challenge input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(14, 106, 166, 0.12);
}

/* Datenschutz */

.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 12px;
  color: var(--muted);
}

.consent a {
  text-decoration: underline;
  color: var(--primary);
}

.form-submit {
  width: auto;
  min-width: 190px;
  min-height: 42px;
  flex: 0 0 auto;
}

.form-status {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 13px;
}

.form-status.ok {
  color: #156f43;
}

.form-status.error {
  color: #a52727;
}

/* Honeypot Spam Schutz */

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

/* =========================================================
   SERVICES
========================================================= */

.service-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--accent);
  background: #eaf4fa;
  border-radius: var(--radius);
}

.service-icon .icon {
  width: 22px;
  height: 22px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: var(--radius);
  min-height: 220px;
  transition: 0.18s ease;
}

.service-card:focus-within {
  border-color: var(--accent);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 46, 82, 0.08);
}

.service-no {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.service-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 24px 0 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* =========================================================
   BENEFITS
========================================================= */

.benefits-layout {
  grid-template-columns: 1fr 1.1fr;
}

.benefit-section {
  background: var(--soft);
}

.benefit-list {
  display: grid;
}

.benefit-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.benefit-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.benefit-list > article > span {
  color: var(--accent);
  font-weight: 900;
}

.benefit-list h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.benefit-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   ABLAUF
========================================================= */

.center {
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.steps-grid article {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid #cddae5;
}

.steps-grid span {
  position: absolute;
  top: -17px;
  left: 0;
  width: 34px;
  height: 34px;
  background: #ffffff;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.steps-grid h3 {
  font-size: 18px;
  margin: 16px 0 7px;
}

.steps-grid p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* =========================================================
   PARTNER
========================================================= */

.partners-section {
  padding-top: 60px;
}

.partners-card {
  background: var(--primary);
  color: #ffffff;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 52px;
  border-radius: var(--radius);
}

.partners-card h2 {
  margin-bottom: 10px;
}

.partners-card > div:first-child > p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.partner-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px;
  border-radius: var(--radius);
  display: grid;
  gap: 7px;
}

.partner-grid strong {
  font-size: 18px;
}

.partner-grid span {
  font-size: 12px;
  color: #add7f2;
}

.partner-grid a {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: #071e34;
  color: #d9e6f0;
  padding: 30px 0 24px;
}

.footer-grid {
  display: block;
}

.footer-brand img {
  filter: brightness(0) invert(1);
  width: 112px;
  height: auto;
}

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

.footer-brand p,
.footer-grid p {
  color: #9db1c1;
  font-size: 13px;
  max-width: 330px;
  margin: 0;
}

.footer-grid h3 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: 14px;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-grid a {
  font-size: 13px;
  color: #b9cbd8;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 22px;
  padding-top: 14px;
  color: #7f97a8;
  font-size: 12px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-legal-buttons button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b9cbd8;
  font-size: inherit;
  cursor: pointer;
}

.footer-legal-buttons button:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-credit {
  color: #9db1c1;
}

.footer-credit a {
  color: #ffffff;
  font-weight: 700;
}

.footer-credit a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   FLOATING MOBILE ACTIONS
========================================================= */

.floating-actions {
  position: fixed;
  z-index: 40;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: none;
  width: min(420px, calc(100% - 28px));
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 4px;
}

.floating-actions a {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 5px;
  white-space: nowrap;
}

.floating-actions .icon {
  width: 16px;
  height: 16px;
}

.floating-actions .active {
  background: var(--accent);
  color: #ffffff;
}

/* =========================================================
   LEGAL
========================================================= */

.legal-page {
  background: var(--soft);
  min-height: 100vh;
}

.legal-card {
  max-width: 850px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: 44px;
  letter-spacing: -0.03em;
}

.legal-card h2 {
  font-size: 22px;
  margin-top: 34px;
}

.legal-card h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.legal-section {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.legal-section[hidden] {
  display: none;
}

.legal-section .legal-card {
  position: relative;
  width: min(850px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 44px;
}

.legal-section .legal-card > h2 {
  font-size: 36px;
  margin: 0 0 20px;
}

.legal-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -25px -25px 4px 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.legal-modal-close:hover {
  background: var(--soft);
}

body.legal-modal-open {
  overflow: hidden;
}

.legal-card p,
.legal-card li {
  color: #405569;
}

.legal-note {
  background: #fff4d7;
  border: 1px solid #efd791;
  padding: 14px;
  border-radius: var(--radius);
  color: #6a5416 !important;
}

/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 960px) {
  .section[id],
  .service-card[id] {
    scroll-margin-top: 82px;
  }

  .contact-bar-inner {
    justify-content: center;
  }

  /* Header CTA ausblenden */

  .header-cta {
    display: none;
  }

  /* Menü Button */

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

  /* Mobile Hauptnavigation */

  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 1px);
    background: #ffffff;
    border: 1px solid rgba(10, 46, 82, 0.12);
    box-shadow: 0 18px 45px rgba(10, 46, 82, 0.16);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    border-radius: var(--radius);
  }

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

  .primary-nav > a,
  .nav-dropdown-toggle {
    width: 100%;
    padding: 12px 10px;
    border-radius: var(--radius);
  }

  .primary-nav > a:hover,
  .nav-dropdown-toggle:hover,
  .nav-dropdown.open > .nav-dropdown-toggle {
    background: #f2f6f9;
    color: var(--primary);
  }

  /* =====================================================
       MOBILE DIENSTE BUTTON
    ===================================================== */

  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
  }

  /*
     * Wichtig:
     * Pfeil bleibt direkt neben dem Text.
     */

  /* =====================================================
       MOBILE DROPDOWN
    ===================================================== */

  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    border: 1px solid #e2eaf0;
    background: #f7f9fb;
    margin: 4px 0 3px;
    padding: 6px;
    overflow: hidden;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  /*
     * Mobil bleibt dieses Menü geöffnet,
     * bis erneut auf "Dienste" geklickt wird.
     */

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    animation: mobileDropdownIn 0.16s ease-out;
  }

  .nav-dropdown-menu a {
    min-height: 42px;
    padding: 10px 12px;
    background: #ffffff;
  }

  .nav-dropdown-menu a + a {
    margin-top: 4px;
    border-top: 0;
  }

  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:focus-visible {
    padding-left: 15px;
    background: #edf3f7;
  }

  /* Restliche Responsive Bereiche */

  .hero {
    min-height: 600px;
  }

  .header-inner {
    height: 72px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: 42px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid article:nth-child(2) {
    border-right: 0;
  }

  .trust-grid article:nth-child(3) {
    border-right: 0;
  }

  .split-layout,
  .benefits-layout,
  .partners-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 45px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Dropdown Animation */

@keyframes mobileDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   HANDY
========================================================= */

@media (max-width: 620px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .header-inner {
    height: 66px;
  }

  .hero-video-play {
    top: 12px;
    right: 12px;
    bottom: auto;
  }

  .form-submit-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .form-submit {
    width: 100%;
    min-width: 190px;
    min-height: 54px;
    padding-inline: 20px;
  }

  .contact-bar-inner {
    min-height: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 2px;
  }

  .contact-bar a {
    min-width: 0;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    line-height: 1.2;
  }

  .contact-bar a strong {
    min-width: 0;
    font-size: 10px;
    white-space: nowrap;
  }

  .contact-desktop-label {
    display: none;
  }

  .contact-mobile-label {
    display: inline;
  }

  .contact-bar a .icon {
    width: 14px;
    height: 14px;
  }

  .brand img {
    width: 108px;
    height: auto;
    padding: 5px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding: 0;
    transform: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-actions .btn {
    min-height: 54px;
    padding-inline: 18px;
    font-size: 15px;
  }

  .hero-copy {
    font-size: 15px;
    margin: 18px auto 24px;
  }

  .hero-proof {
    justify-content: center;
    gap: 10px 18px;
    font-size: 13px;
  }

  .trust-strip {
    margin-top: 0;
  }

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

  .trust-grid article {
    border-bottom: 1px solid var(--line);
    padding: 14px 10px;
    gap: 9px;
  }

  .trust-grid article:nth-child(even) {
    border-right: 0;
  }

  .trust-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .trust-icon {
    width: 30px;
    height: 30px;
    padding: 6px;
  }

  .trust-grid strong {
    font-size: 14px;
  }

  .trust-grid span {
    font-size: 11px;
  }

  .section {
    padding: 72px 0;
  }

  .section h2 {
    font-size: 34px;
  }

  .section-intro > p:not(.eyebrow),
  .section-lead {
    font-size: 16px;
  }

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

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

  .steps-grid {
    gap: 38px 16px;
  }

  .partner-grid {
    gap: 8px;
  }

  .partner-grid article {
    padding: 14px;
  }

  .quote-form {
    padding: 20px;
  }

  .service-card {
    min-height: 0;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .service-card p,
  .benefit-list p,
  .steps-grid p {
    font-size: 13px;
  }

  .benefit-list h3 {
    font-size: 18px;
  }

  .steps-grid h3 {
    font-size: 16px;
  }

  .partner-grid strong {
    font-size: 17px;
  }

  .partner-grid a {
    font-size: 13px;
  }

  .steps-grid {
    gap: 44px;
  }

  .partners-card {
    padding: 26px;
  }

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

  .footer-brand img {
    width: 92px;
    flex: 0 0 auto;
  }

  .footer-brand p {
    font-size: 11px;
    line-height: 1.4;
  }

  .footer-bottom {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 11px;
  }

  .footer-bottom-links {
    gap: 12px;
  }

  .floating-actions {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .floating-actions a {
    flex: 1;
    padding: 8px 6px;
    gap: 5px;
    font-size: 11px;
  }

  .floating-actions .icon {
    width: 14px;
    height: 14px;
  }

  .legal-card {
    padding: 24px;
  }

  .legal-section {
    padding: 12px;
  }

  .legal-section .legal-card {
    max-height: 92vh;
    padding: 30px 20px;
  }

  .legal-modal-close {
    margin: -12px -4px 4px 10px;
  }

  .legal-card h1 {
    font-size: 36px;
  }

  .legal-section .legal-card > h2 {
    font-size: 30px;
  }
}

@media (max-width: 360px) {
  .trust-grid,
  .steps-grid,
  .partner-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-grid article,
  .trust-grid article:nth-child(even) {
    border-right: 0;
  }

  .trust-grid article:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .partner-grid article {
    padding: 18px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .service-card {
    transition: none;
  }
}
