/* Cor Intensivpflege — Direction: "Die Tiefenfahrt"
   Bold cinematic dive: the page descends from bright surface light through
   deepening blue-black toward a mesophotic garden, then ascends back toward
   warmth for the human handoff at the end. Replaces the earlier "ruhiger
   Monitor" world — old look is anti-reference only. */

:root {
  /* depth palette, surface → trench → ascent */
  --depth-surface: #eaf6f2;
  --depth-surface-ink: #0d2b28;
  --depth-shallow: #cdeae2;
  --depth-mid: #0f3b47;
  --depth-deep: #05141d;
  --depth-deep-2: #020a10;
  --depth-ascend: #123244;
  --depth-return: #e9f5f1;

  --thermokline: #57e0d6;
  --thermokline-glow: rgba(87, 224, 214, 0.45);

  --paper: #faf7f1;
  --ink: #0d211f;
  --ink-soft: #3d5451;

  --on-dark: #eef7f4;
  --on-dark-muted: rgba(238, 247, 244, 0.68);
  --on-dark-faint: rgba(238, 247, 244, 0.42);

  --accent: #17b3a3;
  --accent-strong: #0e8a7d;
  --accent-on-dark: #6be8da;

  --line-on-light: rgba(13, 43, 40, 0.16);
  --line-on-dark: rgba(238, 247, 244, 0.12);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --shadow-card: 0 1px 2px rgba(13, 33, 31, 0.07), 0 14px 30px -16px rgba(13, 33, 31, 0.28);
  --shadow-card-dark: 0 1px 2px rgba(0,0,0,0.5), 0 24px 48px -22px rgba(0,0,0,0.7);

  --font-display: "Familjen Grotesk", "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--depth-deep);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }

p { margin: 0; max-width: 62ch; }

a { color: inherit; }

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

::selection { background: var(--accent-on-dark); color: var(--depth-deep-2); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--depth-deep); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; border: 3px solid var(--depth-deep); }
* { scrollbar-color: var(--accent) var(--depth-deep); scrollbar-width: thin; }

:focus-visible {
  outline: 2px solid var(--accent-on-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--on-dark);
  color: var(--depth-deep-2);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* ---------- Header (the hull, stays put at every depth) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3, 14, 19, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-on-dark);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--on-dark);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--on-dark);
}
.logo-mark { color: var(--accent-on-dark); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-text em { font-style: normal; color: var(--on-dark-muted); font-weight: 500; }

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--on-dark-muted);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--on-dark); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 9px 16px;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.header-phone:hover {
  border-color: var(--accent-on-dark);
  background: rgba(107, 232, 218, 0.1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent-on-dark); }

.mobile-nav {
  display: grid;
  gap: 2px;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--line-on-dark);
  background: rgba(3, 14, 19, 0.97);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 12px 4px;
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--on-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-strong);
  color: var(--on-dark);
  box-shadow: 0 10px 24px -10px rgba(14, 138, 125, 0.55);
}
.btn-primary:hover { background: var(--accent); box-shadow: 0 14px 30px -10px rgba(23, 179, 163, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--depth-surface-ink);
  border-color: rgba(13, 43, 40, 0.28);
}
.btn-ghost:hover { border-color: var(--depth-surface-ink); background: rgba(13,43,40,0.06); }

.depth-mid .btn-ghost,
.depth-deep .btn-ghost,
.depth-ascend .btn-ghost {
  color: var(--on-dark);
  border-color: rgba(238,247,244,0.3);
}
.depth-mid .btn-ghost:hover,
.depth-deep .btn-ghost:hover,
.depth-ascend .btn-ghost:hover {
  border-color: var(--on-dark);
  background: rgba(238,247,244,0.08);
}

/* ---------- Depth sections: shared plumbing ---------- */

section { position: relative; }

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 35%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 15%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px 1px at 92% 55%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 20% 90%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 45% 10%, rgba(255,255,255,0.3), transparent 60%);
  background-repeat: repeat;
  background-size: 380px 420px;
  opacity: 0.5;
  animation: drift 34s linear infinite;
}
.particles--dense { opacity: 0.8; background-size: 300px 340px; }

@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 120px 480px; }
}

@media (prefers-reduced-motion: reduce) {
  .particles { animation: none; }
}

.thermokline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--thermokline);
  box-shadow: 0 0 16px 2px var(--thermokline-glow), 0 0 40px 8px rgba(87, 224, 214, 0.18);
  opacity: 0.8;
}
.thermokline--ascend { box-shadow: 0 0 16px 2px rgba(255, 226, 173, 0.3), 0 0 40px 8px rgba(255, 226, 173, 0.12); background: rgba(238, 247, 244, 0.5); }

/* ---------- Hero — surface ---------- */

.depth-surface {
  background: radial-gradient(130% 150% at 20% -20%, #ffffff 0%, var(--depth-surface) 45%, var(--depth-shallow) 100%);
  color: var(--depth-surface-ink);
  overflow: hidden;
  padding: 96px 0 88px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
  font-weight: 600;
  line-height: 1.06;
  color: var(--depth-surface-ink);
  max-width: 17ch;
}

.hero-lede {
  margin-top: 24px;
  font-size: 1.08rem;
  color: rgba(13, 43, 40, 0.72);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* dive computer panel */

.dive-panel {
  position: relative;
  background: rgba(5, 20, 29, 0.92);
  border: 1px solid rgba(107, 232, 218, 0.25);
  border-radius: var(--radius-lg);
  padding: 26px 26px 18px;
  box-shadow: var(--shadow-card-dark);
  color: var(--on-dark);
}

.dive-svg { width: 100%; height: auto; overflow: visible; }
.grid-line { stroke: rgba(238,247,244,0.08); stroke-width: 1; }

.dive-path-ghost {
  fill: none;
  stroke: rgba(238,247,244,0.1);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dive-path {
  fill: none;
  stroke: var(--accent-on-dark);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  filter: drop-shadow(0 0 6px rgba(107, 232, 218, 0.45));
  animation: dive-draw 3.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes dive-draw {
  to { stroke-dashoffset: 0; }
}

.dive-readout {
  display: flex;
  gap: 24px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(238,247,244,0.14);
}
.dive-stat { display: flex; flex-direction: column; gap: 4px; }
.dive-label {
  font-size: 0.74rem;
  color: var(--on-dark-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dive-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent-on-dark);
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .dive-path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Promise strip — shallow ---------- */

.depth-shallow {
  background: linear-gradient(180deg, var(--depth-shallow) 0%, #9fd9cc 100%);
  color: var(--depth-surface-ink);
}
.promise-inner {
  padding: 56px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}
.promise-item svg { color: var(--accent-strong); margin-bottom: 14px; }
.promise-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.promise-item p { color: rgba(13,43,40,0.75); font-size: 0.96rem; }

/* ---------- Services — mid depth ---------- */

.depth-mid {
  background: linear-gradient(180deg, #123f4b 0%, var(--depth-mid) 40%, #082733 100%);
  color: var(--on-dark);
  padding: 108px 0;
}

.section-head { max-width: 52ch; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--on-dark);
}
.section-head p { color: var(--on-dark-muted); font-size: 1.05rem; }

.service-list {
  border-top: 1px solid var(--line-on-dark);
}
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-on-dark);
}
.service-row h3 { font-size: 1.2rem; font-weight: 600; color: var(--on-dark); }
.service-row p { color: var(--on-dark-muted); }

/* ---------- Process / timeline — deepest point ---------- */

.depth-deep {
  background: linear-gradient(180deg, #071e29 0%, var(--depth-deep) 45%, var(--depth-deep-2) 100%);
  color: var(--on-dark);
  padding: 112px 0;
}

.section-head--light p { color: var(--on-dark-muted); }
.section-head--light h2 { color: var(--on-dark); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line-on-dark);
}

.timeline-step {
  position: relative;
  padding: 0 0 48px 40px;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -6.5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--depth-deep-2);
  border: 2px solid var(--accent-on-dark);
  box-shadow: 0 0 0 6px rgba(107, 232, 218, 0.14);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 8px;
}
.timeline-content p { color: var(--on-dark-muted); max-width: 56ch; }

/* ---------- Values — ascending ---------- */

.depth-ascend {
  background: linear-gradient(180deg, var(--depth-deep-2) 0%, var(--depth-ascend) 55%, #1c4a5a 100%);
  color: var(--on-dark);
  padding: 108px 0;
}
.values-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.values-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 18px;
  max-width: 12ch;
  color: var(--on-dark);
}
.values-copy p { color: var(--on-dark-muted); font-size: 1.05rem; }

.values-list {
  margin: 0;
  display: grid;
  gap: 28px;
}
.value-item {
  padding-top: 20px;
  border-top: 1px solid var(--line-on-dark);
}
.value-item dt {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: 8px;
}
.value-item dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--on-dark);
  max-width: 52ch;
}

/* ---------- Contact — back at the surface ---------- */

.depth-surface-return {
  position: relative;
  background: linear-gradient(180deg, #2c6e73 0%, var(--depth-return) 60%);
  color: var(--depth-surface-ink);
  overflow: hidden;
  padding: 112px 0 96px;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--depth-surface-ink);
}
.contact-copy p { color: rgba(13,43,40,0.75); font-size: 1.05rem; margin-bottom: 32px; }

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact-details li { display: flex; align-items: center; gap: 12px; }
.contact-details svg { color: var(--accent-strong); flex-shrink: 0; }
.contact-details a { text-decoration: none; font-size: 1.05rem; }
.contact-details a:hover { color: var(--accent-strong); }

.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(13,43,40,0.2);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(14, 138, 125, 0.18);
}
.contact-form .btn-primary {
  justify-content: center;
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--depth-return);
  color: rgba(13,43,40,0.55);
  border-top: 1px solid rgba(13,43,40,0.12);
}
.footer-inner {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}
.logo-text--footer { color: rgba(13,43,40,0.85); }
.logo-text--footer em { color: rgba(13,43,40,0.55); }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { text-decoration: none; color: rgba(13,43,40,0.55); }
.footer-nav a:hover { color: var(--depth-surface-ink); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .promise-inner { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .values-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .phone-text { display: none; }
  .header-phone { padding: 10px; }
  .wrap { padding: 0 20px; }
  .header-inner { height: 68px; }
}

@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 480px) {
  .depth-surface { padding: 64px 0 72px; }
  .promise-inner, .depth-mid, .depth-deep, .depth-ascend, .depth-surface-return { padding-top: 64px; padding-bottom: 64px; }
  .contact-form { padding: 24px; }
}
