/* ============================================================
   Rehavio Marketing – Shared Stylesheet
   Farben: #185FA5 (Blau), #0F6E56 (Teal), #444441 (Warm-Grau)
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       #185FA5;
  --primary-dark:  #124a82;
  --primary-light: #e8f1fb;
  --teal:          #0F6E56;
  --teal-dark:     #0b5542;
  --teal-light:    #e6f4f1;
  --gray:          #444441;
  --gray-light:    #6b6b68;
  --gray-muted:    #9e9e9b;
  --border:        #e4e4e1;
  --bg:            #fafafa;
  --white:         #ffffff;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }


/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { color: var(--gray-light); }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* --- Layout Utilities ------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.text-center { text-align: center; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(24, 95, 165, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 110, 86, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--gray);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* --- Navigation ------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
              backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.nav-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-light);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* --- Language Switcher ------------------------------------ */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
}
.lang-switch-item {
  color: var(--gray-muted);
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  transition: color var(--transition);
}
.lang-switch-item:hover { color: var(--primary); }
.lang-switch-item.is-current {
  color: var(--primary);
  pointer-events: none;
}
.lang-switch-sep { color: var(--border); user-select: none; }
.lang-switch-mobile {
  display: flex;
  gap: 0.75rem;
  border-left: none;
  padding-left: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  color: var(--gray);
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Mobile Nav ------------------------------------------ */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

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

.nav-mobile a:not(.btn) {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .btn { width: 100%; justify-content: center; }
.nav-mobile .btn-primary { color: var(--white); }
.nav-mobile .btn-outline { border-color: var(--primary); }

/* --- Hero Section ---------------------------------------- */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(160deg, var(--white) 50%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--gray-light);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-login-link {
  font-size: 0.9rem;
  color: var(--gray-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition);
}

.hero-login-link:hover { color: var(--primary); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* --- Phone Mockup ---------------------------------------- */
.phone-wrapper {
  position: relative;
  display: inline-block;
}

.phone-wrapper::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(24, 95, 165, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.phone {
  width: 230px;
  height: 470px;
  background: var(--gray);
  border-radius: 40px;
  padding: 3px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.1) inset;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f0f4f8;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: var(--gray);
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 4px 16px 0;
  font-size: 9px;
  font-weight: 600;
  color: var(--gray);
}

.phone-app {
  flex: 1;
  padding: 12px;
  overflow: hidden;
  text-align: left;
}

.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.phone-app-title {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.phone-greeting {
  font-size: 9px;
  color: var(--gray-muted);
  margin-bottom: 12px;
}

.phone-plan-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 8px;
}

.phone-exercise {
  background: var(--white);
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.phone-exercise-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-exercise-icon.done { background: var(--teal-light); }
.phone-exercise-icon.active { background: var(--primary-light); }
.phone-exercise-icon.locked { background: #f0f0f0; }

.phone-exercise-info { flex: 1; min-width: 0; }
.phone-exercise-name {
  font-size: 9px;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone-exercise-meta { font-size: 8px; color: var(--gray-muted); }

.phone-progress {
  background: var(--white);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
}

.phone-progress-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--gray-muted);
  margin-bottom: 5px;
}

.phone-progress-bar {
  height: 5px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}

.phone-progress-fill {
  height: 100%;
  width: 66%;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: 3px;
}

.phone-tab-bar {
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 6px 0 10px;
}

.phone-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 7px;
  font-weight: 500;
  color: var(--gray-muted);
}

.phone-tab.active { color: var(--primary); }

.phone-tab-dot {
  width: 18px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 2px;
}


/* --- Section: Problem ------------------------------------ */
.problem {
  background: var(--bg);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  width: 48px;
  height: 48px;
  background: #fff3f3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #e53e3e;
}

.problem-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }

/* --- Section: Features ----------------------------------- */
.features { background: var(--white); }

.cards-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* --- Section: Pricing ------------------------------------ */
.pricing { background: var(--bg); }

.pricing-subline {
  color: var(--gray-muted);
  margin-top: 0.5rem;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 2px solid var(--border);
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03) translateY(-4px);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.pricing-plan-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.pricing-price-amount {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray);
  line-height: 1;
}

.pricing-price-period {
  font-size: 0.85rem;
  color: var(--gray-muted);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--gray-muted);
  margin-bottom: 1.5rem;
  min-height: 1.4em;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--gray-light);
}

.check-icon {
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 1px;
}

.pricing-card .btn { width: 100%; justify-content: center; }

.pricing-no-cc {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--gray-muted);
}

.pricing-trial-note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--gray-muted);
  text-align: center;
}

.pricing-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--gray-muted);
}

.pricing-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Section: Privacy Trust ------------------------------ */
.privacy-trust {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}

.privacy-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.privacy-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-top: 2px;
}

.privacy-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

@media (max-width: 640px) {
  .privacy-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --- Section: Patients ----------------------------------- */
.patients {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  padding: 5rem 0;
}

.patients h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.patients p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
}

.patients-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.patients-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 100px;
}

.patients-trust-sep {
  color: rgba(255,255,255,0.3);
  font-size: 1.25rem;
}

@media (max-width: 640px) {
  .patients-trust-sep { display: none; }
  .patients-trust { gap: 0.5rem; }
}

/* --- Footer ---------------------------------------------- */
.footer {
  background: var(--gray);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-ext {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  flex-basis: 100%;
  margin-top: 0.75rem;
  text-align: center;
}

/* App-Download-Badges im Footer */
.footer-apps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-apps a {
  display: inline-flex;
  transition: opacity var(--transition);
}

.footer-apps a:hover { opacity: 0.85; }

.store-badge-img {
  height: 40px;
  width: auto;
  display: block;
}

/* --- Inner Page Layout (Impressum, Datenschutz, etc.) --- */
.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(160deg, var(--white) 50%, var(--primary-light) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { font-size: 1rem; }

.page-content {
  padding: 3.5rem 0 5rem;
  max-width: 760px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--gray);
}

.page-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--gray);
}

.page-content p, .page-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.page-content ul { padding-left: 1.5rem; }

.placeholder-block {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
  text-align: center;
  color: var(--gray-muted);
  font-size: 0.9rem;
}


/* --- Scroll Animations ----------------------------------- */
/* Nur verstecken wenn JS verfügbar ist (js-Klasse auf <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }


  .cards-3 { grid-template-columns: 1fr; }
  .cards-6 { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-apps { justify-content: center; flex-basis: 100%; }

  .page-content { padding: 2.5rem 1.5rem 4rem; }

}

@media (max-width: 480px) {
  .cards-6 { grid-template-columns: 1fr; }
  .phone { width: 200px; height: 410px; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ============================================================
   Workflow Section & Mockups
   ============================================================ */

/* --- Workflow overview (index.html) ----------------------- */
.workflow { background: var(--bg); }

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  align-items: start;
  margin-top: 3.5rem;
}

.workflow-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3.25rem;
  color: var(--primary);
  opacity: 0.45;
}

.workflow-step { text-align: center; }

.workflow-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

.workflow-step h3  { font-size: 1rem; margin-bottom: 0.35rem; }
.workflow-step > p { font-size: 0.875rem; max-width: 220px; margin: 0.35rem auto 0; }

/* Mini Dashboard Mockup */
.dm {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 280px;
  margin: 0 auto 1.25rem;
}

.dm-chrome {
  background: #f5f5f4;
  border-bottom: 1px solid var(--border);
  padding: 7px 10px;
  display: flex; align-items: center; gap: 4px;
}

.dm-chrome-dot { width: 7px; height: 7px; border-radius: 50%; }
.dm-chrome-dot:nth-child(1) { background: #ff5f57; }
.dm-chrome-dot:nth-child(2) { background: #febc2e; }
.dm-chrome-dot:nth-child(3) { background: #28c840; }

.dm-chrome-url {
  flex: 1; margin: 0 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 8px; color: var(--gray-muted); text-align: center;
  white-space: nowrap; overflow: hidden;
}

.dm-body { padding: 10px; }

.dm-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.dm-title { font-size: 10px; font-weight: 700; color: var(--gray); }
.dm-btn {
  background: var(--primary); color: var(--white);
  font-size: 7px; font-weight: 600;
  padding: 3px 7px; border-radius: 4px;
}

.dm-stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 5px; margin-bottom: 8px;
}
.dm-stat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 4px; text-align: center;
}
.dm-stat-val { display: block; font-size: 13px; font-weight: 700; color: var(--gray); line-height: 1; }
.dm-stat-lbl { display: block; font-size: 6.5px; color: var(--gray-muted); margin-top: 2px; line-height: 1.2; }

.dm-section-label {
  font-size: 7px; font-weight: 700; color: var(--gray-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px;
}

.dm-patient-row {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 8px;
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.dm-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dm-status-dot.green { background: #22c55e; }
.dm-status-dot.amber { background: #f59e0b; }
.dm-status-dot.gray  { background: #d1d5db; }

.dm-patient-label { font-size: 8.5px; font-weight: 500; color: var(--gray); flex: 1; }
.dm-patient-days  { font-size: 7.5px; color: var(--gray-muted); }

/* dm-lg: größere Variante für Detailseite */
.dm-lg {
  width: 100%;
  max-width: none;
}
.dm-lg .dm-chrome { padding: 8px 14px; }
.dm-lg .dm-chrome-dot { width: 9px; height: 9px; }
.dm-lg .dm-chrome-url { font-size: 10px; padding: 3px 10px; }
.dm-lg .dm-body { padding: 14px; }
.dm-lg .dm-title { font-size: 13px; }
.dm-lg .dm-stat-val { font-size: 16px; }
.dm-lg .dm-stat-lbl { font-size: 7.5px; }
.dm-lg .dm-patient-label { font-size: 10px; }
.dm-lg .dm-patient-days { font-size: 8.5px; }
.dm-lg .dm-section-label { font-size: 8px; margin-bottom: 6px; }
.dm-lg .dm-patient-row { padding: 6px 10px; border-radius: 7px; }
.dm-lg .dm-status-dot { width: 8px; height: 8px; }
.dm-lg .dm-btn { font-size: 8px; padding: 4px 9px; }

/* Desktop: Mockup füllt die Spalte aus, Schrift skaliert mit */
@media (min-width: 901px) {
  .dm-lg .dm-chrome { padding: 10px 18px; }
  .dm-lg .dm-chrome-dot { width: 11px; height: 11px; }
  .dm-lg .dm-chrome-url { font-size: 12px; padding: 4px 12px; }
  .dm-lg .dm-nav { padding: 9px 18px; }
  .dm-lg .dm-nav-logo { font-size: 13px; }
  .dm-lg .dm-nav-link { font-size: 10px; }
  .dm-lg .dm-body { padding: 18px; }
  .dm-lg .dm-title { font-size: 16px; }
  .dm-lg .dm-header-row { margin-bottom: 12px; }
  .dm-lg .dm-stats-row { gap: 8px; margin-bottom: 12px; }
  .dm-lg .dm-stat-card { padding: 10px 8px; }
  .dm-lg .dm-stat-val { font-size: 22px; }
  .dm-lg .dm-stat-lbl { font-size: 9px; }
  .dm-lg .dm-section-label { font-size: 9.5px; margin-bottom: 7px; }
  .dm-lg .dm-patient-row { padding: 8px 12px; border-radius: 8px; margin-bottom: 5px; }
  .dm-lg .dm-status-dot { width: 10px; height: 10px; }
  .dm-lg .dm-patient-label { font-size: 12px; }
  .dm-lg .dm-patient-plan { font-size: 8.5px; }
  .dm-lg .dm-patient-days { font-size: 10px; }
  .dm-lg .dm-btn { font-size: 10px; padding: 5px 11px; }
}

/* Tablet: leicht kompakter */
@media (max-width: 900px) and (min-width: 769px) {
  .dm-lg { max-width: 420px; }
}

/* Mobile: zentriert, nicht zu breit */
@media (max-width: 768px) {
  .dm-lg { max-width: 360px; }
}

.dm-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 7px 14px;
  display: flex; align-items: center; gap: 10px;
}
.dm-nav-logo { font-family: Georgia, serif; font-size: 10px; font-weight: 700; color: var(--primary); }
.dm-nav-links { display: flex; gap: 8px; margin-left: auto; }
.dm-nav-link  { font-size: 8px; color: var(--gray-muted); }

.dm-patient-plan { font-size: 7px; color: var(--gray-muted); margin-top: 1px; }

/* QR-Card Mockup */
.qr-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-md);
  max-width: 152px;
  margin: 0 auto 1.25rem;
  text-align: center;
}
.qr-card-logo {
  font-family: Georgia, serif;
  font-size: 11px; font-weight: 700;
  color: var(--primary); margin-bottom: 8px;
}
.qr-card-hint { font-size: 8px; color: var(--gray-muted); line-height: 1.4; margin-top: 8px; }

/* Mini Phone Mockup */
.mini-phone {
  width: 140px; height: 288px;
  background: var(--gray);
  border-radius: 28px; padding: 3px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 1.25rem;
  display: block;
}
.mini-phone-screen {
  width: 100%; height: 100%;
  background: #f0f4f8;
  border-radius: 26px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mini-phone-notch {
  width: 50px; height: 14px;
  background: var(--gray);
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
}
.mini-phone-app { flex: 1; padding: 8px; overflow: hidden; }
.mini-phone-logo {
  font-family: Georgia, serif; font-size: 9px; font-weight: 700;
  color: var(--primary); margin-bottom: 6px;
}
.mini-phone-plan-name {
  font-size: 8px; font-weight: 700; color: var(--gray); margin-bottom: 5px;
}
.mini-ex {
  background: var(--white); border-radius: 6px;
  padding: 4px 6px; margin-bottom: 3px;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.mini-ex-icon {
  width: 18px; height: 18px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mini-ex-icon.done   { background: var(--teal-light); }
.mini-ex-icon.active { background: var(--primary-light); }
.mini-ex-icon.locked { background: #f0f0f0; opacity: 0.6; }
.mini-ex-name {
  font-size: 7px; font-weight: 600; color: var(--gray);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.mini-prog {
  background: var(--white); border-radius: 6px; padding: 5px 6px; margin-top: 3px;
}
.mini-prog-lbl { font-size: 6px; color: var(--gray-muted); margin-bottom: 3px; }
.mini-prog-bar { height: 4px; background: #e8e8e8; border-radius: 2px; overflow: hidden; }
.mini-prog-fill {
  height: 100%; width: 33%;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: 2px;
}

/* --- Wie-es-funktioniert Detailseite --------------------- */
.howto-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.step-list { list-style: none; display: flex; flex-direction: column; gap: 1.75rem; }

.step-list-item { display: flex; gap: 1rem; align-items: flex-start; }

.step-list-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

.step-list-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.step-list-item p  { font-size: 0.875rem; }

/* DSGVO-Block */
.dsgvo-block {
  background: linear-gradient(135deg, var(--teal) 0%, var(--primary) 100%);
  padding: 4.5rem 0;
  text-align: center;
}
.dsgvo-block h2 { color: var(--white); margin-bottom: 0.75rem; }
.dsgvo-block > .container > p {
  color: rgba(255,255,255,0.85);
  max-width: 540px; margin: 0 auto;
}

.dsgvo-pills {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem;
}
.dsgvo-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  padding: 0.45rem 1rem; border-radius: 100px;
}

/* Mediathek-Mockup */
.media-grid-mock {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto 1.25rem;
}
.mgm-header {
  background: #f5f5f4; border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.mgm-title { font-size: 10px; font-weight: 700; color: var(--gray); }
.mgm-btn {
  background: var(--primary); color: var(--white);
  font-size: 7px; font-weight: 600;
  padding: 3px 7px; border-radius: 4px;
}
.mgm-body { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mgm-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 7px; overflow: hidden;
}
.mgm-thumb {
  height: 40px;
  background: linear-gradient(135deg, #c8d8ee 0%, #b3c8e0 100%);
  display: flex; align-items: center; justify-content: center;
}
.mgm-item-name {
  font-size: 7.5px; font-weight: 600; color: var(--gray);
  padding: 4px 6px 2px;
}
.mgm-item-meta {
  font-size: 6.5px; color: var(--gray-muted);
  padding: 0 6px 5px;
}

/* Responsive */
@media (max-width: 900px) {
  .howto-split { gap: 2.5rem; }
}

@media (max-width: 768px) {
  .workflow-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .workflow-connector {
    height: 32px;
    padding-top: 0;
    transform: rotate(90deg);
  }
  .howto-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
