/* ============ Handy Ambulance – Design System ============ */
:root {
  --navy: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --accent: #0369A1;
  --accent-hover: #075985;
  --accent-light: #38BDF8;
  --brand-blue: #1D4ED8;
  --bg: #F8FAFC;
  --fg: #020617;
  --muted: #64748B;
  --muted-bg: #EEF2F7;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --green: #16A34A;
  --red: #DC2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(2, 6, 23, .08);
  --shadow-md: 0 8px 24px rgba(2, 6, 23, .10);
  --shadow-lg: 0 20px 50px rgba(2, 6, 23, .18);
  --font-head: 'Lexend', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 600; }

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

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(3, 105, 161, .35); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2, 6, 23, .25); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .92rem; min-height: 42px; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }

/* ============ Topbar ============ */
.topbar { background: var(--navy); color: #CBD5E1; font-size: .86rem; }
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 40px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 15px; height: 15px; color: var(--accent-light); }
.topbar-phone { margin-left: auto; color: var(--white); font-weight: 600; }
.topbar-phone:hover { color: var(--accent-light); }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand-logo { height: 48px; width: auto; border-radius: 8px; }

/* ---- 3D-Logo ---- */
.brand { perspective: 520px; display: inline-block; }
.logo-3d {
  position: relative; display: inline-block;
  transform-style: preserve-3d;
  animation: logoSway 7s ease-in-out infinite;
  will-change: transform;
}
.logo-3d img { border-radius: 8px; display: block; }
.logo-3d img:not(:first-child) {
  position: absolute; inset: 0; height: 100%; width: 100%;
}
.logo-3d img:nth-child(1) { position: relative; z-index: 2; box-shadow: 0 10px 22px rgba(2, 6, 23, .35); }
.logo-3d img:nth-child(2) { transform: translateZ(-2.5px); filter: brightness(.72); }
.logo-3d img:nth-child(3) { transform: translateZ(-5px);  filter: brightness(.5); }
.logo-3d img:nth-child(4) { transform: translateZ(-7.5px); filter: brightness(.32); }
.logo-3d::after {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: 8px;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 48%, rgba(255,255,255,.12) 54%, transparent 70%);
  background-size: 260% 100%;
  animation: logoShine 7s ease-in-out infinite;
  pointer-events: none;
  transform: translateZ(1px);
}
@keyframes logoSway {
  0%, 100% { transform: rotateY(-22deg) rotateX(5deg); }
  50%      { transform: rotateY(22deg) rotateX(-5deg); }
}
@keyframes logoShine {
  0%, 55%  { background-position: 130% 0; }
  85%, 100% { background-position: -130% 0; }
}
.brand:hover .logo-3d { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .logo-3d, .logo-3d::after { animation: none; }
}
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav-cta { display: none; }
.nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 98;
  background: rgba(2, 6, 23, .5); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--navy-700);
  padding: 10px 16px; border-radius: 999px; transition: all .18s ease; cursor: pointer;
}
.nav-link:hover { color: var(--accent); background: var(--muted-bg); }
.nav-link.active { color: var(--accent); background: #E0F2FE; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--white); cursor: pointer; align-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; background: linear-gradient(160deg, #0F172A 0%, #16324e 55%, #0C4A6E 100%); color: var(--white); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; opacity: .35;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(56, 189, 248, .25), transparent 60%),
    radial-gradient(500px 500px at 10% 90%, rgba(3, 105, 161, .35), transparent 60%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  align-items: center; padding-top: 72px; padding-bottom: 120px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  font-family: var(--font-head); color: #E0F2FE; margin-bottom: 24px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-light); position: relative; flex-shrink: 0; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent-light); opacity: .6; animation: pulse 2s ease-out infinite;
}
.pulse-dot-green { background: #4ADE80; }
.pulse-dot-green::after { border-color: #4ADE80; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero-sub { font-size: 1.18rem; color: #CBD5E1; max-width: 54ch; margin-bottom: 32px; }
.hero-sub strong { color: var(--white); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.35); }
.hero .btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }

.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--white); line-height: 1.1; }
.stat-label { font-size: .88rem; color: #94A3B8; }
.stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,.15); }

.hero-visual { position: relative; }
.hero-img-card { position: relative; border-radius: 24px; overflow: visible; }
.hero-img-card > img {
  border-radius: 24px; box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,.12);
  width: 100%; height: auto;
}
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--navy); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow-lg); font-size: .85rem;
  animation: float 5s ease-in-out infinite;
}
.float-badge svg { width: 26px; height: 26px; color: var(--green); background: #DCFCE7; border-radius: 8px; padding: 5px; flex-shrink: 0; }
.float-badge div { display: flex; flex-direction: column; line-height: 1.3; }
.float-badge strong { font-family: var(--font-head); font-size: .9rem; }
.float-badge span { color: var(--muted); }
.float-badge-1 { top: -18px; right: -8px; }
.float-badge-2 { bottom: -18px; left: -8px; animation-delay: 2.5s; }
.float-badge-2 svg { color: var(--accent); background: #E0F2FE; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ============ Brands / Partner ============ */
.brands { padding: 44px 0 20px; background: var(--white); }
.brands-title {
  text-align: center; font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 24px;
}
.brands-row { display: flex; justify-content: center; }
.brands-img { max-height: 74px; width: auto; object-fit: contain; }

.partners { padding: 30px 0 60px; background: var(--white); }
.partners-row { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.partners-carriers { max-height: 84px; width: auto; object-fit: contain; }
.partners-logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: center; }
.partners-logos img { height: 54px; width: auto; object-fit: contain; border-radius: 8px; }

/* ============ Sections ============ */
.section { padding: 90px 0; }
.section-muted { background: var(--bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-family: var(--font-head); font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
  background: #E0F2FE; padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

/* ============ Cards ============ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: all .25s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #BAE6FD; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #E0F2FE, #F0F9FF); color: var(--accent); margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; flex-grow: 1; }
.card p strong { color: var(--navy-700); }
.card-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; cursor: pointer;
}
.card-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* ============ Split (Warum wir / Über uns) ============ */
.section-dark { background: linear-gradient(160deg, #0F172A 0%, #14283f 60%, #0C4A6E 130%); color: #CBD5E1; }
.section-dark h2 { color: var(--white); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-reverse .split-media { order: 2; }
.split-reverse .split-content { order: 1; }
.split-media { position: relative; }
.split-img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-img-tall { aspect-ratio: 4 / 4.4; object-position: 50% 65%; }
.split-media-badge {
  position: absolute; bottom: 20px; left: 20px; background: rgba(15, 23, 42, .85);
  backdrop-filter: blur(8px); color: var(--white); border-radius: 12px; padding: 12px 20px;
  display: flex; flex-direction: column; font-size: .85rem; border: 1px solid rgba(255,255,255,.15);
}
.split-media-badge strong { font-family: var(--font-head); font-size: .95rem; }
.split-media-badge span { color: #94A3B8; }
.split-media-badge-light { background: rgba(255, 255, 255, .92); color: var(--navy); border-color: var(--border); }
.split-media-badge-light span { color: var(--muted); }
.split-content .section-tag { background: rgba(56, 189, 248, .15); color: var(--accent-light); }
#ueber-uns .section-tag { background: #E0F2FE; color: var(--accent); }
.split-content h2 { margin-bottom: 22px; }
.split-content > p { margin-bottom: 18px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 22px; margin: 30px 0 34px; }
.check-list li { display: flex; gap: 16px; align-items: flex-start; }
.check-icon {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(74, 222, 128, .15);
  color: #4ADE80; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}
.check-icon svg { width: 18px; height: 18px; }
.check-list strong { font-family: var(--font-head); color: var(--white); font-size: 1.05rem; display: block; margin-bottom: 3px; }
.check-list p { color: #94A3B8; font-size: .95rem; }

.quote {
  border-left: 4px solid var(--accent); background: var(--bg); border-radius: 0 14px 14px 0;
  padding: 24px 28px; margin: 24px 0; position: relative;
}
.quote svg { width: 26px; height: 26px; color: #BAE6FD; margin-bottom: 8px; }
.quote p { font-size: 1.08rem; color: var(--navy-700); font-style: italic; }
.quote footer { margin-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--accent); }

/* ============ 360° Panorama ============ */
.pano {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4 / 3; background: #0B1120; box-shadow: var(--shadow-lg);
  cursor: grab; touch-action: pan-y; user-select: none;
}
.pano.dragging { cursor: grabbing; }
.pano-canvas { width: 100%; height: 100%; display: block; }
.pano-hint {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15, 23, 42, .78); backdrop-filter: blur(8px);
  color: var(--white); font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}
.pano-hint svg { width: 15px; height: 15px; color: var(--accent-light); animation: spinHint 6s linear infinite; }
@keyframes spinHint { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pano-hint svg { animation: none; } }

/* ============ Team ============ */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.team-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 18px; text-align: center; transition: all .25s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #BAE6FD; }
.team-avatar {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--navy)); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
}
.team-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.team-role { font-size: .85rem; color: var(--muted); }

/* ============ CTA Banner ============ */
.cta-banner { background: linear-gradient(120deg, var(--accent) 0%, #0C4A6E 100%); color: var(--white); padding: 64px 0; }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: #BAE6FD; font-size: 1.1rem; }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Kontakt ============ */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-icon {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #E0F2FE, #F0F9FF); color: var(--accent);
  display: grid; place-items: center;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-item strong { font-family: var(--font-head); display: block; margin-bottom: 4px; color: var(--navy); }
.contact-item p { color: var(--muted); }
.contact-item a { font-weight: 600; }
.open-status { display: inline-block; margin-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: 4px 14px; border-radius: 999px; }
.open-status.open { background: #DCFCE7; color: var(--green); }
.open-status.closed { background: #FEE2E2; color: var(--red); }

.contact-form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy); }
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--fg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; background: var(--bg); transition: all .2s ease; min-height: 48px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 4px rgba(3, 105, 161, .12);
}
.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-bottom: 22px; cursor: pointer; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.form-note { margin-top: 16px; background: #DCFCE7; color: #15803D; padding: 12px 18px; border-radius: var(--radius-sm); font-size: .92rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ============ Footer ============ */
.footer { background: var(--navy); color: #94A3B8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-col a { display: block; color: #94A3B8; padding: 4px 0; transition: color .18s ease; }
.footer-col a:hover { color: var(--accent-light); }
.footer-col p { font-size: .93rem; }
.footer-logo { height: 52px; width: auto; border-radius: 8px; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-legal-info { line-height: 1.9; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem;
}
.footer-credit { color: #64748B; }

/* ============ Chatbot ============ */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
.chat-fab {
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #0C4A6E); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(3, 105, 161, .45);
  transition: all .25s ease; position: relative;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 27px; height: 27px; grid-area: 1 / 1; transition: all .25s ease; }
.chat-fab .chat-fab-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.chat-widget.open .chat-fab-open { opacity: 0; transform: rotate(90deg) scale(.5); }
.chat-widget.open .chat-fab-close { opacity: 1; transform: rotate(0) scale(1); }
.chat-fab-badge {
  position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: .75rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--white);
}
.chat-widget.open .chat-fab-badge, .chat-fab-badge.hidden { display: none; }

.chat-panel {
  position: absolute; bottom: 80px; right: 0;
  width: min(390px, calc(100vw - 40px));
  height: min(560px, calc(100dvh - 130px));
  background: var(--white); border-radius: 20px; box-shadow: 0 24px 70px rgba(2, 6, 23, .3);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none;
  transition: all .28s cubic-bezier(.2, .9, .3, 1.2);
  border: 1px solid var(--border);
}
.chat-widget.open .chat-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-header {
  background: linear-gradient(135deg, var(--navy), #0C4A6E); color: var(--white);
  padding: 16px 18px; display: flex; align-items: center; gap: 13px; flex-shrink: 0;
}
.chat-header-avatar {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12);
  display: grid; place-items: center; flex-shrink: 0;
}
.chat-header-avatar svg { width: 22px; height: 22px; }
.chat-header-info { display: flex; flex-direction: column; line-height: 1.35; }
.chat-header-info strong { font-family: var(--font-head); font-size: .98rem; }
.chat-header-info span { font-size: .8rem; color: #BAE6FD; display: inline-flex; align-items: center; gap: 7px; }
.chat-close {
  margin-left: auto; background: rgba(255,255,255,.1); border: none; color: var(--white);
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center;
  transition: background .18s ease;
}
.chat-close:hover { background: rgba(255,255,255,.22); }
.chat-close svg { width: 17px; height: 17px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 16px; font-size: .94rem; line-height: 1.5; animation: msgIn .25s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.msg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--fg); }
.msg-bot a { font-weight: 600; }
.msg-bot strong { color: var(--navy); }
.msg-user { align-self: flex-end; background: var(--accent); color: var(--white); border-bottom-right-radius: 4px; }
.msg-typing { display: inline-flex; gap: 5px; align-items: center; padding: 15px 17px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; animation: blink 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .2s; }
.msg-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-quick { display: flex; gap: 8px; padding: 10px 14px; flex-wrap: wrap; background: var(--bg); flex-shrink: 0; border-top: 1px solid var(--border); }
.chat-quick:empty { display: none; }
.chat-quick button {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--accent);
  background: var(--white); border: 1.5px solid #BAE6FD; border-radius: 999px;
  padding: 7px 14px; cursor: pointer; transition: all .18s ease;
}
.chat-quick button:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

.chat-input-row { display: flex; gap: 10px; padding: 13px 14px; background: var(--white); border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-input-row input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 999px; padding: 11px 18px;
  font-family: var(--font-body); font-size: .95rem; background: var(--bg); transition: all .2s ease; min-height: 44px;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(3, 105, 161, .12); }
.chat-input-row button {
  width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--accent); color: var(--white);
  cursor: pointer; display: grid; place-items: center; transition: all .2s ease; flex-shrink: 0;
}
.chat-input-row button:hover { background: var(--accent-hover); transform: scale(1.06); }
.chat-input-row button svg { width: 19px; height: 19px; }

/* ============ Reveal Animations ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .float-badge { animation: none; }
  .pulse-dot::after { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 100px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  /* iOS-Fix: backdrop-filter auf dem Header sperrt position:fixed-Kinder
     (das Klappmenü) in den Header-Bereich ein – daher am Handy deaktivieren */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .section { padding: 64px 0; }
  .topbar-inner { justify-content: center; }
  .topbar-item:first-child { display: none; }
  .topbar-phone { margin-left: 0; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
    background: var(--white); flex-direction: column; gap: 4px;
    padding: 100px 24px 24px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .3s ease; z-index: 99; margin-left: 0;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; padding: 14px 18px; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-backdrop { display: block; }
  .nav-cta { display: inline-flex; margin-top: auto; width: 100%; }
  .header-call { padding: 0; width: 46px; min-height: 46px; border-radius: 12px; }
  .header-call .btn-label { display: none; }
  .header-call svg { width: 20px; height: 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
  .float-badge { font-size: .78rem; padding: 10px 14px; }
  .float-badge-1 { top: -14px; right: 4px; }
  .float-badge-2 { bottom: -14px; left: 4px; }
  .hero-stats { gap: 18px; }
  .stat-num { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .brands-img, .partners-carriers { max-height: 54px; }
  .partners-logos img { height: 42px; }
  .chat-widget { bottom: 16px; right: 16px; }
  /* 16px verhindert Auto-Zoom beim Fokus auf iOS */
  .chat-input-row input, .form-field input, .form-field textarea { font-size: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-card { padding: 22px 12px; }
  .hero-inner { padding-top: 48px; padding-bottom: 88px; gap: 36px; }
  .hero-cta .btn { width: 100%; }
  .hero-sub { font-size: 1.05rem; }
  .hero-stats { gap: 14px; }
  .stat-divider { height: 36px; }
  .card { padding: 28px 22px; }
  .split { gap: 32px; }
  .split-media-badge { bottom: 12px; left: 12px; padding: 10px 16px; font-size: .8rem; }
  .quote { padding: 18px 20px; }
  .cta-banner { padding: 48px 0; }
  .cta-banner-actions { width: 100%; flex-direction: column; }
  .cta-banner-actions .btn { width: 100%; }
  .btn-lg { padding: 14px 26px; font-size: 1rem; }
  .contact-form { padding: 22px 16px; }
  .topbar { font-size: .8rem; }
  .topbar-inner { gap: 6px 20px; }
}
