/* ==========================================================================
   KRANKENFAHRDIENST NEU - Modern Stylesheet
   Fahrdienst NEU GmbH | Wetzlar & Mittelhessen
   Brand Color: #2ea3f2 | Gradient: #00d2ff -> #2ea3f2 -> #005ce6 | Dark: #000c3c
   ========================================================================== */

/* Google-Fonts-Import entfernt 21.09.2026: Schriften werden lokal aus
   assets/css/fonts.css geladen (LG Muenchen I, 20.01.2022, Az. 3 O 17493/20). */
:root {
  --font-main: 'Plus Jakarta Sans', 'Plus Jakarta Fallback', Arial, Helvetica, sans-serif;
  --color-primary: #2ea3f2;
  --color-primary-hover: #1b8cd4;
  --color-primary-active: #147abf;
  --color-primary-light: #eaf5fd;
  --color-primary-border: #bce1fa;
  
  --color-brand-navy: #000c3c;
  --color-brand-navy-dark: #000826;
  --color-brand-navy-light: #0d1a4d;
  
  --color-gradient-start: #00d2ff;
  --color-gradient-mid: #2ea3f2;
  --color-gradient-end: #005ce6;
  
  --color-emergency: #dc2626;
  --color-emergency-light: #fee2e2;
  --color-surface-card: #ffffff;
  --color-surface-bg: #f8fafc;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  
  --shadow-subtle: 0 4px 20px -2px rgba(0, 12, 60, 0.06);
  --shadow-hover: 0 12px 30px -4px rgba(0, 12, 60, 0.12);
  --shadow-primary: 0 8px 25px -4px rgba(46, 163, 242, 0.35);
  --radius-card: 1.25rem;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-surface-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #2ea3f2;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1b8cd4;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #000c3c;
}

/* Header & Dark Banner */
.banner-header {
  background-color: #000c3c;
  background-image: linear-gradient(180deg, #000826 0%, #000c3c 100%);
  border-bottom: 1px solid rgba(46, 163, 242, 0.2);
  transition: all 0.3s ease;
}
.banner-header.scrolled {
  box-shadow: 0 10px 30px -5px rgba(0, 12, 60, 0.35);
  background-color: rgba(0, 12, 60, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Brand Buttons */
.btn-primary {
  background-color: #2ea3f2;
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(46, 163, 242, 0.3);
}
.btn-primary:hover {
  background-color: #1b8cd4;
  box-shadow: 0 8px 20px rgba(46, 163, 242, 0.45);
  transform: translateY(-1px);
}
.btn-primary:active {
  background-color: #147abf;
  transform: translateY(0);
}

.btn-gradient {
  background: linear-gradient(135deg, #00d2ff 0%, #2ea3f2 50%, #005ce6 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(46, 163, 242, 0.35);
}
.btn-gradient:hover {
  background: linear-gradient(135deg, #05dcff 0%, #1b8cd4 50%, #004ecc 100%);
  box-shadow: 0 10px 25px rgba(46, 163, 242, 0.5);
  transform: translateY(-2px);
}

/* Logo Gradient Highlights */
.text-gradient-logo {
  background: linear-gradient(135deg, #00d2ff 0%, #2ea3f2 50%, #005ce6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-logo-subtle {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(46, 163, 242, 0.14) 100%);
}

.bg-gradient-hero {
  background: radial-gradient(1200px circle at 80% 20%, rgba(234, 245, 253, 0.8) 0%, rgba(248, 250, 252, 0.95) 70%), #f8fafc;
}

.bg-pattern-dots {
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Card Styling */
.med-card {
  background: var(--color-surface-card);
  border-radius: var(--radius-card);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-subtle);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.med-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #93c5fd;
}

/* Pulsing Badge */
.pulse-emergency {
  animation: pulseBadge 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pulseBadge {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

/* Wizard / Multi-Step Stepper */
.step-item {
  position: relative;
  flex: 1;
  text-align: center;
}
.step-item:not(:last-child):after {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 50%;
  width: 100%;
  height: 3px;
  background-color: #e2e8f0;
  z-index: 1;
  transition: background-color 0.3s ease;
}
.step-item.completed:not(:last-child):after {
  background-color: #2ea3f2;
}
.step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  background-color: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.step-item.active .step-circle {
  background-color: #2ea3f2;
  border-color: #2ea3f2;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(46, 163, 242, 0.25);
}
.step-item.completed .step-circle {
  background: linear-gradient(135deg, #00d2ff 0%, #2ea3f2 100%);
  border-color: #2ea3f2;
  color: #ffffff;
}

/* Option Select Cards in Wizard */
.option-select-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
}
.option-select-card:hover {
  border-color: #93c5fd;
  background-color: #f8fafc;
}
.option-select-card.selected {
  border-color: #2ea3f2;
  background-color: #f0f8ff;
  box-shadow: 0 4px 16px rgba(46, 163, 242, 0.16);
}

/* Accordion */
.faq-trigger svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-trigger svg {
  transform: rotate(180deg);
  color: #2ea3f2;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}
.faq-item.open .faq-content {
  max-height: 1000px;
  transition: max-height 0.5s ease-in-out;
}

/* Floating Action Bar on Mobile */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(0, 12, 60, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(46, 163, 242, 0.3);
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 25px rgba(0, 12, 60, 0.2);
}

/* Region Filter Chips */
.region-chip {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  transition: all 0.2s ease;
}
.region-chip:hover {
  background-color: #f1f5f9;
  border-color: #2ea3f2;
  color: #2ea3f2;
}
.region-chip.active {
  background-color: #000c3c;
  color: #ffffff;
  border-color: #2ea3f2;
  box-shadow: 0 2px 8px rgba(46, 163, 242, 0.25);
}

/* Print Styles */
@media print {
  .no-print, .mobile-action-bar, .banner-header, footer {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}

/* ==========================================================================
   Krankenkassen-Laufband (Namen, Endlosschleife rechts -> links)
   ========================================================================== */
.kk-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 6%, #000 20%, #000 80%, rgba(0,0,0,0.15) 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 6%, #000 20%, #000 80%, rgba(0,0,0,0.15) 94%, transparent 100%);
}
.kk-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  animation: kkScroll 28s linear infinite;
  will-change: transform;
}
.kk-marquee:hover .kk-track,
.kk-marquee:focus-within .kk-track {
  animation-play-state: paused;
}
@keyframes kkScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.kk-item {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-right: 0.875rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-brand-navy);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.kk-item:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
@media (max-width: 640px) {
  .kk-item {
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
  }
  .kk-item { margin-right: 0.625rem; }
  .kk-track { animation-duration: 20s; }
}
@media (prefers-reduced-motion: reduce) {
  .kk-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .kk-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .kk-track [aria-hidden="true"] { display: none; }
}

/* --------------------------------------------------------------------------
   Nachtrag 21.09.2026: Klassen, die im HTML verwendet werden, aber weder im
   Tailwind-Build noch bisher hier definiert waren. Vorher wurden sie vom
   Play-CDN teils zur Laufzeit erzeugt, teils gar nicht (prose braucht das
   Typography-Plugin, das nie konfiguriert war).
   -------------------------------------------------------------------------- */

/* Tailwind v4 nennt shadow-sm inzwischen shadow-xs. Beides gleich behandeln. */
.shadow-xs{box-shadow:0 1px 2px 0 rgb(0 0 0 / .05)}

/* Ersatz fuer das Typography-Plugin: nur die Basisregeln, die hier gebraucht
   werden. Kein Layout-Reset, damit bestehende Utility-Klassen weiter greifen. */
.prose{color:#334155;max-width:65ch}
.prose :where(p):not(:where([class~="not-prose"] *)){margin-top:1.1em;margin-bottom:1.1em;line-height:1.75}
.prose :where(ul,ol):not(:where([class~="not-prose"] *)){margin-top:1.1em;margin-bottom:1.1em;padding-left:1.5em}
.prose :where(li):not(:where([class~="not-prose"] *)){margin-top:.4em;margin-bottom:.4em}
.prose :where(strong):not(:where([class~="not-prose"] *)){color:#0f172a;font-weight:600}
.prose :where(a):not(:where([class~="not-prose"] *)){color:#2ea3f2;text-decoration:underline}
.prose :where(h2,h3,h4):not(:where([class~="not-prose"] *)){color:#000c3c;font-weight:700}
.prose.max-w-none{max-width:none}
.prose-slate{--tw-prose-body:#334155}

/* Navigationslink in der mobilen Klappnavigation */
.mobile-nav-link{
  display:block;padding:.75rem 1rem;border-radius:.75rem;
  font-weight:700;color:#000c3c;text-decoration:none;transition:background .15s,color .15s;
}
.mobile-nav-link:hover,.mobile-nav-link:focus-visible{background:#eff6ff;color:#2ea3f2}

/* Von den Rechtstexten verwendete Utilities, die im Build fehlen */
.list-disc{list-style-type:disc}
.pl-6{padding-left:1.5rem}

/* Honeypot-Feld im Kontaktformular: fuer Menschen unsichtbar, fuer Bots sichtbar */
.hp-feld{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Deckkraft-Utilities: im Tailwind-Build nicht enthalten, hier nachgezogen */
.opacity-40{opacity:.4}
.opacity-50{opacity:.5}
.opacity-60{opacity:.6}
.opacity-70{opacity:.7}
.opacity-80{opacity:.8}

/* Karte hinter dem Bewertungssiegel: 40 Prozent Deckkraft, damit das Siegel
   auf dem Punktmuster liegt statt darauf zu kleben. Gilt NUR hier --
   ein globaler bg-white-Override wuerde auch Formularfelder, Eingaben und
   das Erfolgs-Modal durchsichtig machen. */
.siegel-karte {
  background-color: rgba(255, 255, 255, 0.4);
}
