﻿/* Common Content Utilities */
.max-width-md {
    max-width: 850px;
}

.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }

:root[data-theme='light'] .text-slate-300 { color: #475569; }
:root[data-theme='light'] .text-slate-400 { color: #64748b; }

/* Policy / legal pages - improved readability in both themes */
.policy-page .glass-container {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 56px rgba(2, 6, 23, 0.34);
}

.policy-page .policy-callout,
.policy-page .policy-settings-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.policy-page .text-slate-300,
.policy-page .text-slate-400,
.policy-page p,
.policy-page li {
  color: rgba(226, 232, 240, 0.92);
}

.policy-page .small,
.policy-page .cookie-settings-box .small,
.policy-page .opening-note {
  color: rgba(203, 213, 225, 0.82);
}

.policy-page h2.text-white,
.policy-page h3.text-white,
.policy-page h4.text-white,
.policy-page strong.text-white,
.policy-page .text-white {
  color: #f8fafc !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.policy-page a.text-primary,
.policy-page a[href^="tel:"],
.policy-page a[href^="mailto:"] {
  color: #93c5fd;
}

.policy-page a.text-primary:hover,
.policy-page a[href^="tel:"]:hover,
.policy-page a[href^="mailto:"]:hover {
  color: #bfdbfe;
}

.policy-page .policy-settings-box {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.policy-page .policy-callout {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

:root[data-theme='light'] .policy-page .glass-container {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, 0.16), 0 2px 8px -2px rgba(15, 23, 42, 0.05) !important;
}

:root[data-theme='light'] .policy-page h2.text-white,
:root[data-theme='light'] .policy-page h3.text-white,
:root[data-theme='light'] .policy-page h4.text-white,
:root[data-theme='light'] .policy-page strong.text-white,
:root[data-theme='light'] .policy-page .text-white {
  color: #0f172a !important;
  text-shadow: none !important;
}

:root[data-theme='light'] .policy-page .text-slate-300,
:root[data-theme='light'] .policy-page .text-slate-400,
:root[data-theme='light'] .policy-page p,
:root[data-theme='light'] .policy-page li {
  color: #334155 !important;
}

:root[data-theme='light'] .policy-page .text-slate-400,
:root[data-theme='light'] .policy-page .small,
:root[data-theme='light'] .policy-page .opening-note,
:root[data-theme='light'] .policy-page .cookie-settings-box .small {
  color: #64748b !important;
}

:root[data-theme='light'] .policy-page .policy-callout,
:root[data-theme='light'] .policy-page .policy-settings-box {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme='light'] .policy-page a.text-primary,
:root[data-theme='light'] .policy-page a[href^="tel:"],
:root[data-theme='light'] .policy-page a[href^="mailto:"] {
  color: #1d4ed8 !important;
}

:root[data-theme='light'] .policy-page a.text-primary:hover,
:root[data-theme='light'] .policy-page a[href^="tel:"]:hover,
:root[data-theme='light'] .policy-page a[href^="mailto:"]:hover {
  color: #1e40af !important;
}

/* Text utilities */
.text-balance {
  text-wrap: balance;
}

/* Smooth scrolling (respects prefers-reduced-motion) */
:root {
  --scroll-offset: 80px; /* adjust if you have a fixed header */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

/* Specific highlight for IGeL notes */
.igel-note {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(96, 165, 250, 0.08);
  border-left: 3px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 0 6px 6px 0;
  font-weight: 500;
}

:root[data-theme='light'] .igel-note {
  background: rgba(37, 99, 235, 0.05);
  border-left-color: rgba(37, 99, 235, 0.3);
  color: #1d4ed8;
}

/* Specific highlight for GKV / Kassenleistung notes */
.gkv-note {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 0 6px 6px 0;
  font-weight: 500;
}

:root[data-theme='light'] .gkv-note {
  background: rgba(5, 150, 105, 0.06);
  border-left-color: rgba(5, 150, 105, 0.35);
  color: #047857;
}
