/* ==========================================================================
   domisana.de – Shared Design System
   Warm, ruhig, gut lesbar – Zielgruppe: pflegebedürftige Menschen & Angehörige
   ========================================================================== */

:root {
  --color-primary: #143f56;
  --color-primary-dark: #0a2734;
  --color-primary-light: #e7eef2;
  --color-accent: #ff3131;
  --color-accent-dark: #d91f1f;
  --color-bg: #f6f8f9;
  --color-surface: #ffffff;
  --color-text: #16232b;
  --color-text-muted: #55666f;
  --color-border: #dfe6ea;
  --color-success-bg: #eaf1f4;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 20px rgba(10, 39, 52, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(10, 39, 52, 0.16);
  --max-width: 1160px;
  --font-base: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--color-text);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.inline-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}
.inline-icon svg { display: block; width: 100%; height: 100%; }
.nav-phone .inline-icon { width: 17px; height: 17px; vertical-align: -3px; color: var(--color-primary-dark); }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 800;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}
.logo:hover { transform: scale(1.03); }
.logo img { display: block; height: 32px; width: auto; }
.logo.logo-footer img { height: 28px; }
@media (max-width: 500px) {
  .logo img { height: 26px; }
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--color-primary);
}
nav.main-nav a:hover::after,
nav.main-nav a[aria-current="page"]::after {
  width: 100%;
}
@media (max-width: 900px) {
  nav.main-nav a::after { display: none; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-phone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--color-primary-light);
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-phone:hover { background: var(--color-accent); color: #fff; transform: translateY(-1px); }
.nav-phone:hover .inline-icon { color: #fff; }
.nav-phone .inline-icon {
  position: relative;
  z-index: 1;
}
.nav-phone .inline-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.35;
  z-index: -1;
  animation: pulseRing 2.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .nav-phone .inline-icon::before { animation: none; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 900px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 24px 20px;
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 14px;
  }
  .nav-toggle { display: inline-flex; }
  .nav-phone span.phone-text { display: none; }
  .nav-phone {
    padding: 10px;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 49, 49, 0.28);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 8px 22px rgba(255, 49, 49, 0.38);
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.btn-secondary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(10, 39, 52, 0.25);
}
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}
.hero-visual {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

/* ---------- Fact strip ---------- */
.fact-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 760px) {
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
}
.fact-grid strong {
  display: block;
  font-size: 1.9rem;
  color: var(--color-primary-dark);
}
.fact-grid span {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* ---------- Sections ---------- */
section {
  padding: 64px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head p { color: var(--color-text-muted); font-size: 1.1rem; }
.section-head h2 { position: relative; display: inline-block; padding-bottom: 14px; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ease 0.15s;
}
.section-head.is-visible h2::after { transform: translateX(-50%) scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .section-head h2::after { transition: none; transform: translateX(-50%) scaleX(1); }
}
.bg-alt { background: var(--color-surface); }
.bg-tint { background: var(--color-primary-light); }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.product-grid.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .product-grid.product-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .product-grid.product-grid--3 { grid-template-columns: 1fr; }
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
  border-color: var(--color-primary);
}
.product-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.product-icon svg { width: 28px; height: 28px; }
.product-card:hover .product-icon { transform: scale(1.12) rotate(-4deg); }
.product-card ul {
  padding-left: 20px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.product-card ul li { margin-bottom: 8px; }
.price-tag {
  display: inline-block;
  background: var(--color-success-bg);
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.product-card .btn { margin-top: auto; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Notruf-Ablauf (animated emergency-call flow) ---------- */
.notruf-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.notruf-node {
  flex: 1;
  min-width: 0;
  max-width: 260px;
  text-align: center;
  padding: 0 10px;
}
.notruf-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.notruf-icon svg { width: 34px; height: 34px; }
.notruf-node:hover .notruf-icon {
  transform: scale(1.1);
  background: var(--color-accent);
  color: #fff;
}
.notruf-node h3 { font-size: 1.1rem; margin-bottom: 6px; }
.notruf-node p { color: var(--color-text-muted); font-size: 0.95rem; }
.notruf-tags { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.notruf-tags span {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
}
.notruf-connector {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  margin-top: 36px;
  overflow: visible;
}
.notruf-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px 2px rgba(255, 49, 49, 0.55);
  transform: translate(-50%, -50%);
  animation: notrufPulseX 2.6s ease-in-out infinite;
}
.notruf-pulse-delay { animation-delay: 1.3s; }
@keyframes notrufPulseX {
  0% { left: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@media (max-width: 760px) {
  .notruf-flow { flex-direction: column; align-items: center; }
  .notruf-node { max-width: 360px; padding: 0; }
  .notruf-connector {
    width: 3px;
    height: 44px;
    flex: 0 0 44px;
    margin: 2px 0;
  }
  .notruf-pulse {
    left: 50%;
    top: 0%;
    animation-name: notrufPulseY;
  }
  @keyframes notrufPulseY {
    0% { top: 0%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .notruf-pulse { animation: none; opacity: 0; }
}

/* ---------- Geräte-Illustrationen (Armband / Kette / Basisstation) ---------- */
.device-card { text-align: center; }
.device-visual {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
}
.device-visual svg { width: 100%; height: 100%; display: block; }

@keyframes deviceBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
.device-button { animation: deviceBeat 2.3s ease-in-out infinite; }
.device-card:hover .device-button { animation-duration: 0.9s; }

@keyframes deviceRipple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.75); opacity: 0; }
}
.device-ripple { animation: deviceRipple 2.2s ease-out infinite; }
.device-card:hover .device-ripple { animation-duration: 1.1s; }

@keyframes deviceSway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
.device-necklace { animation: deviceSway 4.5s ease-in-out infinite; }

@keyframes deviceSignal {
  0% { r: 8px; opacity: 0.7; }
  100% { r: 27px; opacity: 0; }
}
.device-signal { animation: deviceSignal 2.4s ease-out infinite; }
.device-signal-2 { animation-delay: 0.8s; }
.device-signal-3 { animation-delay: 1.6s; }

@keyframes deviceLed {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.device-led { animation: deviceLed 1.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .device-button, .device-necklace, .device-signal, .device-led {
    animation: none !important;
  }
  .device-ripple { animation: none !important; opacity: 0; }
}

.step {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}
.step:hover .step-number { transform: scale(1.15) rotate(-6deg); }

/* ---------- Why-us grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-item {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, background 0.25s ease;
}
.why-item:hover {
  transform: translateY(-4px);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.why-item .icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.why-item .icon-circle svg { width: 30px; height: 30px; }
.why-item:hover .icon-circle {
  transform: scale(1.15);
  background: var(--color-accent);
  color: #fff;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-left: 12px;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item:hover { border-color: var(--color-accent); }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--color-text-muted);
  animation: faqIn 0.25s ease;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Insurer / logo strip ---------- */
.insurer-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.insurer-pill {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.insurer-pill:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* ---------- Callout / final CTA ---------- */
.callout {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,0.85); }
.callout .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.callout .btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ---------- Note / disclaimer box ---------- */
.note-box {
  background: var(--color-success-bg);
  border: 1px solid var(--color-primary-light);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
  color: var(--color-text-muted);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.98rem; }

.form-field input,
.form-field select,
.form-field textarea,
.callback-widget input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover,
.callback-widget input:hover { border-color: var(--color-primary); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.callback-widget input:focus {
  border-color: var(--color-primary);
  outline: none;
  background: var(--color-surface);
  box-shadow: 0 0 0 4px rgba(20, 63, 86, 0.12);
}
.form-field .hint { color: var(--color-text-muted); font-size: 0.88rem; }

/* Icon-prefixed inputs — declared after the base input rules above so the
   padding-left override always wins regardless of source order/specificity. */
.field-icon-wrap { position: relative; display: block; }
.field-icon-wrap .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--color-primary);
  opacity: 0.55;
  pointer-events: none;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.field-icon-wrap .field-icon svg { display: block; width: 100%; height: 100%; }
.field-icon-wrap input,
.field-icon-wrap select,
.field-icon-wrap textarea {
  padding-left: 44px !important;
}
.field-icon-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23143f56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px !important;
}
.field-icon-wrap--textarea .field-icon { top: 18px; transform: none; }
.field-icon-wrap:focus-within .field-icon {
  opacity: 1;
  color: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
}
.field-icon-wrap--textarea:focus-within .field-icon { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  .field-icon-wrap .field-icon { transition: none; }
}
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.checkbox-field input { margin-top: 5px; }

/* Honeypot anti-spam field: present in the DOM for bots, invisible for people */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-success-bg);
  color: var(--color-primary-dark);
  font-weight: 600;
  display: none;
}
.form-status.visible { display: block; }
.form-status.form-status--success-pop { animation: statusPop 0.45s cubic-bezier(.34,1.56,.64,1); }
@keyframes statusPop {
  0% { transform: scale(0.92) translateY(4px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.form-status.form-status--error {
  background: #fdeceb;
  color: #b3261e;
}
@media (prefers-reduced-motion: reduce) {
  .form-status.form-status--success-pop { animation: none; }
}

/* ---------- Scroll-reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-1 { transition-delay: 0.05s; }
.reveal-2 { transition-delay: 0.15s; }
.reveal-3 { transition-delay: 0.25s; }
.reveal-4 { transition-delay: 0.35s; }

/* Icon entrance "pop" — plays once when the surrounding card scrolls into
   view, then hands control back to the normal hover rules (no fill-mode,
   so the transform cleanly reverts to the static/hover cascade). */
@keyframes iconPop {
  0% { transform: scale(0.4) rotate(-12deg); }
  60% { transform: scale(1.12) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.reveal.is-visible .icon-circle,
.reveal.is-visible .product-icon {
  animation: iconPop 0.55s cubic-bezier(.34,1.56,.64,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.is-visible .icon-circle,
  .reveal.is-visible .product-icon { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Page-load fade-in ---------- */
.hero-fade-in { animation: heroFadeIn 0.7s ease both; }
.hero-fade-in-delay { animation: heroFadeIn 0.7s ease both 0.12s; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Gentle float for hero visual card (combined with its fade-in) ---------- */
.hero-visual {
  animation: heroFadeIn 0.7s ease both 0.12s, gentleFloat 5s ease-in-out infinite 0.8s;
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Pulse ring (e.g. emergency / notruf icon) ---------- */
.pulse-ring {
  position: relative;
  display: inline-flex;
}
.pulse-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade-in, .hero-fade-in-delay, .hero-visual, .pulse-ring::before {
    animation: none !important;
  }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  z-index: 300;
  transition: width 0.1s linear;
}

/* ---------- Header gains depth once the page is scrolled ---------- */
header.site-header {
  transition: box-shadow 0.25s ease;
}
header.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(10, 39, 52, 0.1);
}

/* ---------- Soft drifting glow behind hero sections ---------- */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 49, 49, 0.14) 0%, rgba(255, 49, 49, 0) 70%);
  animation: heroDrift 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 63, 86, 0.12) 0%, rgba(20, 63, 86, 0) 70%);
  animation: heroDrift 11s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}
.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}
@keyframes heroDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 18px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .page-hero::before, .page-hero::after {
    animation: none !important;
  }
}

/* ---------- Shine sweep on primary buttons ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover::before { left: 125%; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary::before { transition: none; display: none; }
}

/* ---------- Process flow (connected steps) ---------- */
.flow {
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 10px, transparent 10px 18px);
  z-index: 0;
}
@media (max-width: 760px) {
  .flow::before { display: none; }
}
.flow .step { position: relative; z-index: 1; }

/* ---------- Callback widget ---------- */
.callback-widget {
  background: var(--color-surface);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.callback-widget form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}
.callback-widget .field-icon-wrap {
  flex: 1;
  min-width: 180px;
}
.callback-widget input { min-width: 0; }

/* ---------- Comparison table ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.compare-table th {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 700; width: 40%; }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #081b24;
  color: #cfdde3;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
footer.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}
footer.site-footer a {
  color: #9fb5bf;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}
footer.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.9rem;
  color: #96a9a1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--color-primary-light);
  padding: 44px 0;
}
.breadcrumb {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--color-text-muted); }

/* Two column content layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.sticky-box { position: sticky; top: 110px; }

.tick-list { list-style: none; padding: 0; margin: 0 0 20px; }
.tick-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}
.tick-list li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 800;
  flex-shrink: 0;
}
