/* ==========================================================================
   Design v20 – Grundlagen (Wunsch der Eigentümer 19.11.2026: „leichter, aufgeräumter, cleaner“)

   Idee: Ostsee bei klarem Wetter. Helle, kühle Fläche statt Nachtblau; ein einziger Akzent
   (Ostseegrün) für das, was man anklicken kann; Text in Tiefwasser-Blau statt Schwarz.
   Karten tragen keine farbigen Balken mehr – Überschriften stehen schlicht im Weiß.
   Diese Datei wird nach den älteren Stylesheets geladen und überschreibt deren Aussehen;
   Aufbau und Abstände der Seiten bleiben, wie sie sind.
   ========================================================================== */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                   U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                   U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Farben */
    --paper: #f3f6f5;          /* Seitenfläche */
    --surface: #ffffff;        /* Karten */
    --surface-sunk: #f7f9f9;   /* Zeilen-Hover, Eingabefelder */
    --ink: #17323b;            /* Text */
    --ink-muted: #5a707a;      /* Nebentext */
    --ink-faint: #8798a0;      /* Hinweise, Platzhalter */
    --line: #e1e8e7;           /* Trennlinien */
    --line-strong: #c9d4d3;    /* Rahmen von Eingaben */
    --sea: #0d7a78;            /* Akzent: Links, Hauptknöpfe */
    --sea-strong: #095f5d;
    --sea-tint: #e2f1ef;
    --coral: #b8443a;          /* Löschen, negativ */
    --coral-tint: #fbebe8;
    --amber: #92600f;
    --amber-tint: #fcf1dc;
    --leaf: #2c7a4b;
    --leaf-tint: #e4f3ea;

    /* Ältere Variablen auf die neuen Werte umbiegen */
    --primary: var(--sea);
    --primary-dark: var(--sea-strong);
    --primary-light: var(--sea);
    --background: var(--paper);
    --text-dark: var(--ink);
    --text-light: var(--ink);
    --gray-light: var(--surface-sunk);
    --gray: var(--line);
    --gray-dark: var(--ink-faint);
    --danger: var(--coral);
    --success: var(--leaf);
    --warning: #d99a2b;
    --info: var(--sea);
    --box-shadow: none;

    /* Form */
    --radius-lg: 14px;
    --radius: 8px;
    --radius-pill: 999px;
    --border-radius: var(--radius);
    --focus-ring: 0 0 0 3px rgba(13, 122, 120, 0.28);
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --- Grundlage ------------------------------------------------------------ */
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--sea);
    transition: color 0.15s ease;
}

a:hover {
    color: var(--sea-strong);
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius);
}

h1, h2, h3, h4 {
    color: var(--ink);
    letter-spacing: -0.01em;
}

.num,
td.num,
th.num,
table td,
.kpi-value {
    font-variant-numeric: tabular-nums;
}

th.num,
td.num {
    text-align: right;
}

.nowrap {
    white-space: nowrap;
}

.text-muted,
small.text-muted {
    color: var(--ink-muted);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ui-icon {
    flex-shrink: 0;
    vertical-align: -0.2em;
}

main {
    padding: 28px 0 48px;
}

/* --- Kopfzeile ------------------------------------------------------------- */
header.site-header,
header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    padding: 10px 0;
}

.logo,
.logo:hover {
    color: var(--ink);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.nav-link,
.nav-dropdown > a,
.nav-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--ink-muted);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-dropdown > a:hover,
.nav-logout:hover {
    color: var(--ink);
    background-color: var(--surface-sunk);
}

.nav-link.active,
.nav-dropdown.active > a {
    color: var(--sea-strong);
    background-color: var(--sea-tint);
}

.nav-icon {
    display: inline-flex;
    margin: 0;
    font-size: inherit;
}

.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(23, 50, 59, 0.12);
    padding: 6px;
    min-width: 220px;
}

.dropdown-item {
    display: block;
    padding: 9px 12px;
    color: var(--ink);
    border-radius: 6px;
    border: none;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--surface-sunk);
    color: var(--ink);
}

.dropdown-item.active {
    background: var(--sea-tint);
    color: var(--sea-strong);
    font-weight: 650;
}

.mobile-menu-toggle {
    color: var(--ink);
}

.mobile-menu-toggle[aria-expanded="true"] {
    background-color: var(--sea-tint);
    color: var(--sea-strong);
}

/* --- Seitenkopf ------------------------------------------------------------ */
.page-title {
    color: var(--ink);
    font-size: 26px;
    font-weight: 750;
    line-height: 1.2;
    margin-bottom: 6px;
}

.page-intro,
.insights .page-intro,
.dashboard-intro,
.insights-question {
    color: var(--ink-muted);
    opacity: 1;
    max-width: 70ch;
    margin: 0 0 22px;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.page-head .page-title {
    margin: 0;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* --- Karten ------------------------------------------------------------------ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: none;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 4px;
    background: transparent;
    color: var(--ink);
    border: none;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.card-header-link {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.card-body {
    padding: 14px 22px 22px;
    color: var(--ink);
}

.empty-state {
    padding: 28px 22px;
    text-align: center;
    color: var(--ink-muted);
}

.empty-state p {
    margin-bottom: 12px;
}
