/* ==========================================================================
   File: css/style.css (REVISION)
   Rolle: Senior UX/Frontend-Architekt · Design System & Komponenten-Styles
   Ziel: Einheitliches, performantes, zugängliches UI/UX für die SPA
   Highlights:
   - Design Tokens (Light/Dark), konsistente Komponenten (Buttons, Cards, Modals)
   - Barrierefreiheit (Focus-Styles, ARIA-Kompatibilität), klare Lesbarkeit
   - Mikroanimationen (Hover, Stroke-Draw, Top-Loader, Skeleton)
   - Passgenau zu index.html und der revidierten App-Logik (app.js)
   ========================================================================== */

/* ---------------------------
   0) ROOT TOKENS & BASELINE
   --------------------------- */

:root {
  /* Brand */
  --brand-50: #E6F7FE;
  --brand-100: #C9EEFD;
  --brand-200: #9EE0FB;
  --brand-300: #6BCDF8;
  --brand-400: #25B5F4;
  --brand-500: #0A98D6; /* Primary */
  --brand-600: #0779AB;
  --brand-700: #055E85;

  /* Semantic colors (Light) */
  --ink-1: #0B1220;     /* Body text */
  --ink-2: #1E293B;     /* Headings */
  --muted: #6B7280;     /* Secondary text */
  --muted-2: #94A3B8;   /* Tertiary text */

  --surface: #FFFFFF;   /* Page background */
  --elev-1: #FFFFFF;    /* Card background */
  --elev-2: #F8FAFC;    /* Sub-panels */
  --header: rgba(255,255,255,.75);
  --footer: #F8FAFC;
  --divider: #E5E7EB;

  /* Status */
  --ok: #0BA37F;
  --warn: #F59E0B;
  --err: #EF4444;
  --info: #0EA5E9;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New";

  /* Spacing & Radius */
  --radius: 0.9rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;

  /* Shadows (Light) */
  --shadow-sm: 0 1px 2px rgba(2,6,23,.05), 0 1px 1.5px rgba(2,6,23,.03);
  --shadow:    0 10px 25px rgba(2,6,23,.08), 0 2px 6px rgba(2,6,23,.04);
  --shadow-lg: 0 24px 48px rgba(2,6,23,.12), 0 6px 12px rgba(2,6,23,.06);

  /* Motion */
  --dur-1: .16s;
  --dur-2: .28s;
  --dur-3: .45s;
  --ease-1: cubic-bezier(.2,.9,.2,1);
  --ease-2: cubic-bezier(.16,.84,.44,1);

  /* Container */
  --container-w: 1200px;

  /* Focus ring */
  --ring: 0 0 0 3px rgba(10, 152, 214, .22);
  --ring-strong: 0 0 0 4px rgba(10, 152, 214, .30);

  /* Loader progress (driven by JS) */
  --loader-progress: 0%;
}

/* Dark scheme - automatic (pref) */
@media (prefers-color-scheme: dark) {
  :root {
    --ink-1: #E5EAF2;
    --ink-2: #F1F5F9;
    --muted: #A2AAB8;
    --muted-2: #8B93A5;

    --surface: #0B1220;
    --elev-1: #101827;
    --elev-2: #0F172A;
    --header: rgba(15, 23, 42, .72);
    --footer: #0F172A;
    --divider: #1F2937;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.25), 0 1px 1.5px rgba(0,0,0,.22);
    --shadow:    0 10px 25px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
    --shadow-lg: 0 24px 48px rgba(0,0,0,.45), 0 6px 12px rgba(0,0,0,.35);
  }
}

/* Explicit theme override via [data-theme="dark"] */
[data-theme="dark"] {
  --ink-1: #E5EAF2;
  --ink-2: #F1F5F9;
  --muted: #A2AAB8;
  --muted-2: #8B93A5;

  --surface: #0B1220;
  --elev-1: #101827;
  --elev-2: #0F172A;
  --header: rgba(15, 23, 42, .72);
  --footer: #0F172A;
  --divider: #1F2937;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.25), 0 1px 1.5px rgba(0,0,0,.22);
  --shadow:    0 10px 25px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
  --shadow-lg: 0 24px 48px rgba(0,0,0,.45), 0 6px 12px rgba(0,0,0,.35);
}

/* Base */
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-1);
  background: var(--surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Utility bridges (used by HTML/JS) */
.container { max-width: var(--container-w); }
.bg-surface { background: var(--surface); }
.bg-header { background: var(--header); }
.bg-footer { background: var(--footer); }
.text-ink { color: var(--ink-1); }
.text-muted { color: var(--muted); }
.border-divider { border-color: var(--divider); }
.stroke-brand { stroke: var(--brand-500); }

/* Focus */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: .5rem; }
.modality--keyboard .focus--keyboard { box-shadow: var(--ring) !important; }

/* Screen-reader only */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Gradient text (used in hero titles) */
.text-gradient {
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------
   1) HEADER & NAVIGATION
   --------------------------- */

#app-header {
  backdrop-filter: saturate(140%) blur(8px);
}
.nav-link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem;
  border-radius: .75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-1), background var(--dur-1) var(--ease-1), transform var(--dur-1) var(--ease-1);
}
.nav-link:hover { color: var(--ink-1); background: rgba(2,6,23,.05); transform: translateY(-1px); }
[data-theme="dark"] .nav-link:hover { background: rgba(255,255,255,.06); }

.nav-item {
  display: inline-flex; padding: .6rem .85rem;
  border-radius: .8rem; color: var(--muted);
  background: var(--elev-2); text-decoration: none;
  transition: transform var(--dur-1) var(--ease-1), background var(--dur-1) var(--ease-1), color var(--dur-1) var(--ease-1);
}
.nav-item:hover { transform: translateY(-1px); color: var(--ink-1); }

#logo-svg path {
  stroke-dasharray: 56;
  stroke-dashoffset: 56;
}
body.ready #logo-svg path {
  transition: stroke-dashoffset 1.2s var(--ease-2);
  stroke-dashoffset: 0;
}

/* ---------------------------
   2) BUTTONS
   --------------------------- */

.btn,
.btn-ghost,
.btn-outline,
.btn-primary,
.btn-xs,
.btn-small,
.btn--primary,
.btn--ghost,
.btn--outline,
.btn--sm,
.btn--xs {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 44px; padding: 0 1rem;
  border-radius: .9rem;
  font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer; user-select: none;
  transition: transform var(--dur-1) var(--ease-1), box-shadow var(--dur-1) var(--ease-1), background var(--dur-1) var(--ease-1), color var(--dur-1) var(--ease-1), border-color var(--dur-1) var(--ease-1);
}

.btn--primary, .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 8px 20px rgba(10,152,214,.25), inset 0 -1px 0 rgba(255,255,255,.15);
}
.btn--primary:hover, .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(10,152,214,.3); }
.btn--primary:active, .btn-primary:active { transform: translateY(0); }

.btn--outline, .btn-outline {
  background: transparent; color: var(--brand-500);
  border-color: rgba(10,152,214,.45);
}
.btn--outline:hover, .btn-outline:hover { background: rgba(10,152,214,.10); }

.btn--ghost, .btn-ghost {
  background: transparent; color: var(--ink-1); border-color: transparent;
}
.btn--ghost:hover, .btn-ghost:hover { background: rgba(2,6,23,.06); }
[data-theme="dark"] .btn--ghost:hover, [data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,.06); }

.btn--xs, .btn-xs { height: 28px; padding: 0 .55rem; font-size: .78rem; }
.btn--sm, .btn-small { height: 34px; padding: 0 .8rem; font-size: .875rem; }
.btn__icon { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; }

/* SVG stroke-hover (Vivus-like effect for inline icons) */
.with-stroke svg path {
  stroke-dasharray: 28; stroke-dashoffset: 28;
  transition: stroke-dashoffset .9s var(--ease-2);
}
.with-stroke:hover svg path { stroke-dashoffset: 0; }

/* ---------------------------
   3) FORMS & CONTROLS
   --------------------------- */

.input-wrap {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--divider);
  background: var(--elev-1);
  padding: .45rem .65rem .45rem .55rem;
  border-radius: .75rem; box-shadow: var(--shadow-sm);
}
.input-wrap input {
  border: none; outline: none; background: transparent; color: var(--ink-1);
  min-width: 220px;
}
.input-wrap svg { color: var(--muted); }

.form-grid { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.form-row { display: grid; gap: .35rem; }
.form-row > label, .form-grid > label { color: var(--muted); font-size: .9rem; }
.form-row input[type="number"],
.form-row input[type="text"],
.form-row input[type="month"],
.form-row select,
.form-grid input[type="number"],
.form-grid input[type="text"],
.form-grid input[type="month"],
.form-grid select {
  appearance: none; width: 100%; height: 42px; padding: 0 .65rem;
  border-radius: .7rem; border: 1px solid var(--divider);
  background: var(--elev-1); color: var(--ink-1);
  transition: box-shadow var(--dur-1) var(--ease-1), border-color var(--dur-1) var(--ease-1);
}
.form-row input:focus, .form-row select:focus, .form-grid input:focus, .form-grid select:focus {
  box-shadow: var(--ring); border-color: rgba(10,152,214,.45);
}

/* Details/summary */
details { border-radius: .7rem; }
details > summary {
  cursor: pointer; user-select: none;
  padding: .6rem .75rem;
  background: var(--elev-2);
  border: 1px solid var(--divider);
  border-radius: .7rem; color: var(--ink-2);
}
details[open] > summary { box-shadow: var(--shadow-sm); }

/* Segmented control */
.segmented {
  display: inline-flex; gap: .25rem; padding: .25rem;
  background: var(--elev-2);
  border: 1px solid var(--divider);
  border-radius: .9rem;
}
.segmented button {
  appearance: none; border: none; cursor: pointer; user-select: none;
  background: transparent; color: var(--muted);
  padding: .45rem .75rem; border-radius: .65rem; font-weight: 600;
  transition: background var(--dur-1) var(--ease-1), color var(--dur-1) var(--ease-1), transform var(--dur-1) var(--ease-1);
}
.segmented button[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(37,181,244,.18), rgba(10,152,214,.18)); color: var(--ink-1);
}
.segmented button:hover { transform: translateY(-1px); }

/* Helper spacing */
.mt { margin-top: .9rem; }

/* ---------------------------
   4) TYPOGRAPHY & LISTS
   --------------------------- */

.section-title {
  font-size: clamp(1.35rem, 1.1rem + 1.5vw, 2rem);
  font-weight: 800; color: var(--ink-2);
  letter-spacing: -.01em;
}
.section-subtitle { color: var(--muted); }
.muted { color: var(--muted); }

.list-inline { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.list-inline li {
  display: inline-flex; align-items: center; gap: .5rem;
  position: relative; padding-left: .9rem; color: var(--muted);
}
.list-inline li::before { content: "•"; position: absolute; left: 0; color: var(--brand-500); }

/* Bullet lists in detail views */
.bullets { list-style: disc; padding-left: 1.1rem; display: grid; gap: .35rem; }
.bullets.small { font-size: .9rem; color: var(--muted); }

/* Tags & Badges */
.tag, .badge, .chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .6rem;
  border-radius: .65rem;
  background: var(--elev-2);
  color: var(--muted);
  border: 1px solid var(--divider);
  font-size: .82rem;
}
.badge { font-weight: 700; color: var(--brand-600); border-color: rgba(10,152,214,.24); background: rgba(10,152,214,.12); }

/* ---------------------------
   5) CARDS & LAYOUT
   --------------------------- */

.card {
  background: var(--elev-1);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-2) var(--ease-1), transform var(--dur-2) var(--ease-2);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.card__body { display: grid; gap: .6rem; }
.card__footer { margin-top: .6rem; display: flex; gap: .5rem; }

.kpi h3 { font-weight: 800; color: var(--ink-2); }
.kpi .hl { display: flex; justify-content: space-between; color: var(--muted); }

.overview-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 920px) { .overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cards-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 740px) { .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Track card */
.card.track .actions { display: inline-flex; gap: .35rem; }
.card.track .badges { display: inline-flex; flex-wrap: wrap; gap: .35rem; }

/* Positions inside modals */
.positions { display: grid; gap: .8rem; }
.position { border: 1px dashed var(--divider); border-radius: .75rem; padding: .75rem; background: var(--elev-1); }
.position__head h5 { font-weight: 800; color: var(--ink-2); }
.position__grid { display: grid; gap: .3rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 740px) { .position__grid { grid-template-columns: 1fr; } }

/* Section spacing */
.section-space { padding-top: 2.4rem; padding-bottom: 1.4rem; }

/* ---------------------------
   6) MODALS (Dialog)
   --------------------------- */

.modal {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: 1.2rem; z-index: 60;
}
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(2,6,23,.55);
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  width: min(820px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  background: var(--elev-1);
  border: 1px solid var(--divider);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-rows: auto 1fr auto;
  animation: modal-in var(--dur-3) var(--ease-2);
}
.modal-header, .modal-footer {
  padding: .9rem 1rem; border-bottom: 1px solid var(--divider);
}
.modal-footer { border-top: 1px solid var(--divider); border-bottom: 0; display: flex; gap: .5rem; justify-content: flex-end; }
.modal-title { font-weight: 800; color: var(--ink-2); }
.modal-body { padding: 1rem; overflow: auto; }
@keyframes modal-in {
  0% { opacity: 0; transform: translateY(8px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dialog element default (for <dialog class="modal">) */
dialog.modal {
  border: none; background: transparent; padding: 0; color: inherit;
}
dialog.modal::backdrop { background: rgba(2,6,23,.55); backdrop-filter: blur(2px); }

/* ---------------------------
   7) TOASTS
   --------------------------- */

.toasts {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 70;
  display: grid; gap: .5rem; width: min(360px, 90vw);
}
.toast {
  display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center;
  background: var(--elev-1);
  border: 1px solid var(--divider);
  border-left: 4px solid var(--brand-500);
  color: var(--ink-1);
  border-radius: .75rem;
  padding: .6rem .8rem; box-shadow: var(--shadow);
  animation: toast-in var(--dur-3) var(--ease-2);
}
.toast--success { border-left-color: var(--ok); }
.toast--warning { border-left-color: var(--warn); }
.toast--danger  { border-left-color: var(--err); }
.toast button { border: none; background: transparent; color: inherit; cursor: pointer; }
@keyframes toast-in {
  0% { opacity: 0; transform: translateY(8px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------------------
   8) TABLES
   --------------------------- */

.table-wrapper { width: 100%; overflow-x: auto; }
.table {
  width: 100%; border-collapse: separate; border-spacing: 0 8px;
}
.table thead th {
  text-align: left; padding: .6rem .7rem;
  color: var(--muted); font-weight: 700;
}
.table tbody tr {
  background: var(--elev-2);
  border: 1px solid var(--divider);
}
.table tbody td {
  padding: .65rem .7rem; color: var(--ink-1);
}
.table tbody tr td:first-child { border-top-left-radius: .6rem; border-bottom-left-radius: .6rem; }
.table tbody tr td:last-child  { border-top-right-radius: .6rem; border-bottom-right-radius: .6rem; }

/* ---------------------------
   9) CALCULATOR COMPONENTS
   --------------------------- */

.calc { display: block; }
.calc__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .calc__grid { grid-template-columns: 1fr 2fr; } }

.panel {
  background: var(--elev-1);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 1.1rem; box-shadow: var(--shadow-sm);
}
.panel h3 { font-weight: 800; color: var(--ink-2); margin-bottom: .5rem; }

.result-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 920px) { .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.result-card {
  background: var(--elev-2);
  border: 1px solid var(--divider);
  border-radius: .9rem;
  padding: .9rem; box-shadow: var(--shadow-sm);
}
.result-card.total {
  background: linear-gradient(180deg, rgba(10,152,214,.08), rgba(10,152,214,.03));
  border-color: rgba(10,152,214,.28);
}
.result-card__header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.result-amount { font-size: 1.35rem; font-weight: 800; color: var(--ink-2); }
.result-details { display: grid; gap: .35rem; margin-top: .5rem; }
.result-item { display: flex; justify-content: space-between; gap: .6rem; color: var(--muted); }
.result-item span:last-child { color: var(--ink-1); font-weight: 600; }

/* ---------------------------
   10) SEARCH & FILTERS (Tracks)
   --------------------------- */

.tracks-controls {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between;
  margin-bottom: .8rem;
}
.tracks-controls .search { flex: 1 1 260px; }
.tracks-controls .search input[type="search"] {
  width: 100%; height: 46px; border-radius: .8rem;
  border: 1px solid var(--divider); background: var(--elev-1);
  padding: 0 .75rem; color: var(--ink-1);
  transition: box-shadow var(--dur-1) var(--ease-1), border-color var(--dur-1) var(--ease-1);
}
.tracks-controls .search input:focus { box-shadow: var(--ring); border-color: rgba(10,152,214,.45); }
.tracks-controls .filters { display: inline-flex; gap: .35rem; }

/* ---------------------------
   11) LINKS
   --------------------------- */

a.link {
  color: var(--brand-600);
  text-decoration: none; border-bottom: 1px solid rgba(10,152,214,.25);
}
a.link:hover { background: rgba(10,152,214,.08); }

/* Link lists in sources */
.links { list-style: none; padding: 0; margin: .4rem 0 0 0; display: grid; gap: .35rem; }
.links a { color: var(--brand-600); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* ---------------------------
   12) SPLIDE (Carousel) OVERRIDES
   --------------------------- */

.splide { visibility: visible; }
.splide__slide {
  background: var(--elev-1);
  border: 1px solid var(--divider);
  border-radius: .9rem; padding: .75rem;
}
.splide__pagination__page.is-active {
  background: var(--brand-500) !important; transform: scale(1.2);
}

/* ---------------------------
   13) TOP LOADER
   --------------------------- */

.top-loader {
  position: sticky; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, rgba(10,152,214,.12), transparent);
  overflow: hidden; z-index: 80;
}
.top-loader::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--loader-progress);
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 0 12px rgba(10,152,214,.45);
  transition: width .25s var(--ease-1);
}

/* ---------------------------
   14) SKELETON / PLACEHOLDER
   --------------------------- */

.skeleton-line {
  height: 14px; border-radius: .5rem;
  background: linear-gradient(90deg, var(--elev-2), var(--elev-1), var(--elev-2));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
.skeleton-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); }
.skeleton-card { height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, var(--elev-2), var(--elev-1), var(--elev-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer {
  0% { background-position: 0% 50%; } 100% { background-position: -200% 50%; }
}

/* ---------------------------
   15) ANIMATION HOOKS
   --------------------------- */

.fade-in { opacity: 0; transform: translateY(8px); }
body.ready .fade-in { opacity: 1; transform: none; transition: opacity .5s var(--ease-2), transform .5s var(--ease-2); }

/* ---------------------------
   16) FOOTER
   --------------------------- */

footer { backdrop-filter: saturate(120%); }
footer .link { color: var(--muted); border: none; }
footer .link:hover { color: var(--ink-1); text-decoration: underline; }

/* ---------------------------
   17) RESPONSIVE TWEAKS
   --------------------------- */

@media (max-width: 1024px) {
  .form-grid { grid-template-columns: 1fr; }
  .position__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .overview-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
}

/* ---------------------------
   18) PRINT
   --------------------------- */

@media print {
  header, #top-loader, .toasts, .modal, .splide { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ddd; }
}
