/* Beratungsflow – gemeinsames Erscheinungsbild der Plattform-Seiten (Markenfarben: plattform/marke/farben.css, Board: marke/neu/board.png) */
:root {
  /* Markenfarben (Markenboard plattform/marke/neu/board.png): Navy für Schrift/dunkle Flächen, Markenblau als Primärfarbe,
     Cyan/Türkis als Akzent, Verlauf „flow“; Flow-KI blau-violett. Weißer Text auf Markenblau: 4,9 : 1. */
  --bf-navy: #0b1f3a; --bf-blau: #0a6fd6; --bf-blau-dunkel: #0a5fc0; --bf-cyan: #25cfea; --bf-tuerkis: #18d6a7;
  --bf-verlauf: linear-gradient(120deg, #0a5fd0, #25cfea); --flow-a: #2055e7; --flow-b: #8559fc; --flow-verlauf: linear-gradient(120deg, #2055e7, #8559fc);
  --navy-900: #0b1f3a; --navy-800: #12305a; --navy-700: #1a4278; --blue-500: #0a6fd6; --blue-400: #3b8ff0; --blue-200: #c4defb; --blue-100: #dcecfd; --blue-50: #eef6fe;
  /* Bereichsfarben (Icon-Flächen, Akzente): je Ton + helle Fläche */
  --c-flow: #4a4fe0; --c-flow-bg: #eef0fe; --c-zb: #0e9f7e; --c-zb-bg: #e3f8f1; --c-pa: #0a6fd6; --c-pa-bg: #e8f3fe;
  --c-au: #c26a0a; --c-au-bg: #fff2e0; --c-vo: #0f766e; --c-vo-bg: #e2f5f2; --c-fr: #0b8fb3; --c-fr-bg: #e2f6fb; --c-ad: #4b5a73; --c-ad-bg: #eef1f6;
  --bg: #ffffff; --bg-soft: #f6f8fb; --ink: #111827; --muted: #5b687e; --line: #e3e8ef; --line-strong: #cfd7e3;
  --green: #1f7a4d; --green-bg: #e7f5ee; --red: #b42318; --red-bg: #fdecea; --amber: #b7791f; --amber-bg: #fff6e5;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px -12px rgba(16,24,40,.18);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif;
  --ppt-leiste-h: 56px; --leiste: var(--ppt-leiste-h);
  --surface: #ffffff; --surface-2: #f6f8fb; --field: #ffffff; --heading: var(--navy-900); --accent-ink: var(--navy-800); --link: var(--bf-blau);
  --btn-bg: var(--bf-blau); --btn-ink: #ffffff; --btn-hover: var(--bf-blau-dunkel); --chip-bg: var(--blue-50); --chip-line: var(--blue-200);
  --btn-danger: var(--red); --step-bg: var(--bf-blau);
  --select-pfeil: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b687e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  color-scheme: light;
}
/* Dunkle Darstellung: ein Schalter in der Oberleiste für die ganze Plattform (Klasse dark auf <html>) */
html.dark {
  --bg: #10151d; --bg-soft: #151b25; --surface: #171e29; --surface-2: #1d2531; --field: #121821; --ink: #e7ebf2; --muted: #9aa6b8;
  --line: #273041; --line-strong: #364156; --heading: #f2f5fa; --accent-ink: #cfe0f7; --link: #6fb1f5;
  --blue-50: #15253b; --blue-100: #1b3150; --blue-200: #26446c;
  /* Weißer Text auf #1a73d9: 4,7 : 1 */
  --btn-bg: #1a73d9; --btn-ink: #ffffff; --btn-hover: #1666c2; --chip-bg: #15253b; --chip-line: #26446c;
  --btn-danger: #c2392d; --step-bg: #1a73d9;
  --c-flow: #a3a9ff; --c-flow-bg: #1f2550; --c-zb: #4fd8b2; --c-zb-bg: #0f2e29; --c-pa: #6fb1f5; --c-pa-bg: #14294a;
  --c-au: #f2b25c; --c-au-bg: #2f2414; --c-vo: #5fd4c4; --c-vo-bg: #0f2e2b; --c-fr: #5fd0ee; --c-fr-bg: #0f2b36; --c-ad: #aab6c8; --c-ad-bg: #1d2531;
  --select-pfeil: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa6b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  --green: #4cc38a; --green-bg: #12291f; --red: #f27a6e; --red-bg: #2e1715; --amber: #e6b04f; --amber-bg: #2c2414;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 15px/1.55 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--heading); letter-spacing: -0.01em; margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; } h2 { font-size: 24px; font-weight: 650; } h3 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 1em; } .muted { color: var(--muted); } .small { font-size: 13px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 480px; margin: 0 auto; padding: 0 24px; }

/* Kopfleiste (abgemeldet; angemeldet übernimmt plattform/leiste.js) */
.leiste { position: sticky; top: 0; z-index: 50; height: var(--leiste); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 20px; }
.leiste .marke { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.025em; color: var(--heading); white-space: nowrap; }
.leiste .marke:hover { text-decoration: none; }
.leiste .marke img { width: 28px; height: 28px; }
/* Wortmarke „Beratungsflow“: Systemschrift fett, leicht negative Laufweite, „flow“ im Blau-Cyan-Verlauf */
.leiste .marke em, .wortmarke em { font-style: normal; background: var(--bf-verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.dark .leiste .marke em, html.dark .wortmarke em { background-image: linear-gradient(120deg, #3b8ff0, #4fdcf0); }
.wortmarke { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 30px; letter-spacing: -0.03em; color: var(--heading); line-height: 1.1; }
.wortmarke img { width: 44px; height: 44px; flex: none; }
.wortmarke .wm-text { display: flex; flex-direction: column; gap: 3px; }
.wortmarke.klein, .wortmarke.gross { display: flex; width: fit-content; }
.wortmarke.klein { font-size: 22px; gap: 11px; margin-bottom: 22px; } .wortmarke.klein img { width: 38px; height: 38px; }
.wortmarke.gross { font-size: 34px; gap: 14px; margin-bottom: 26px; } .wortmarke.gross img { width: 56px; height: 56px; }
.wortmarke.gross .slogan { font-size: 13.5px; }
a.wortmarke:hover { text-decoration: none; }
.slogan { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); line-height: 1.3; }
/* Flow (KI): Blau-Violett als Akzent */
.icon.flow { background: var(--c-flow-bg) !important; color: var(--c-flow) !important; }
.chip.flow { background: var(--c-flow-bg); color: var(--c-flow); border-color: color-mix(in srgb, var(--c-flow) 30%, transparent); }
.btn.flow { background: var(--flow-a); border-color: var(--flow-a); color: #fff; } .btn.flow:hover { background: #1a47c9; }
.leiste nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.leiste nav a { padding: 7px 12px; border-radius: 9px; color: var(--accent-ink); font-weight: 500; white-space: nowrap; font-size: 14px; }
.leiste nav a:hover { background: var(--blue-50); text-decoration: none; }
.leiste nav a.aktiv { background: var(--blue-50); color: var(--bf-blau); }
.leiste .rechts { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.leiste .nutzer { font-size: 13px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* Buttons, Felder */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 11px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; font-size: 14px; line-height: 1.2; transition: background .15s, transform .05s; }
.btn:hover { background: var(--btn-hover); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn.sekundaer { background: var(--surface); color: var(--accent-ink); border-color: var(--line-strong); } .btn.sekundaer:hover { background: var(--blue-50); }
.btn.leise { background: transparent; border-color: transparent; color: var(--accent-ink); padding: 8px 10px; } .btn.leise:hover { background: var(--blue-50); }
.btn.gefahr { background: var(--btn-danger); border-color: var(--btn-danger); color: #fff; } .btn.klein { padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .55; cursor: default; }
.feld { display: block; margin-bottom: 14px; } .feld > span { display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-bottom: 6px; }
.feld small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], input[type=search], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background-color: var(--field); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
/* Auswahlfelder: eigener Pfeil mit 12 px Abstand zum Rand, Text endet davor */
select:not([multiple]):not([size]) { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: var(--select-pfeil); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; cursor: pointer; text-overflow: ellipsis; }
select option { background-color: var(--surface); color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
input:disabled, textarea:disabled, select:disabled { background: var(--bg-soft); color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--btn-bg); }
textarea { resize: vertical; min-height: 90px; }
.hinweis { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); font-size: 14px; margin: 12px 0; }
.hinweis.ok { background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 35%, transparent); color: var(--green); } .hinweis.fehler { background: var(--red-bg); border-color: color-mix(in srgb, var(--red) 35%, transparent); color: var(--red); } .hinweis.warn { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 40%, transparent); color: var(--amber); }
.hinweis code, .hinweis a { word-break: break-all; }
.betrag.plus { color: var(--green); } .betrag.minus { color: var(--red); }

/* Karten */
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.karte.tool { display: flex; flex-direction: column; gap: 10px; min-height: 190px; transition: transform .15s, box-shadow .15s; color: inherit; }
a.karte.tool:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 16px 32px -14px rgba(16,24,40,.28); }
.karte.tool { --ton: var(--bf-blau); --ton-bg: var(--blue-50); position: relative; overflow: hidden; }
.karte.tool .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--ton-bg); color: var(--ton); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ton) 16%, transparent); }
.karte.tool .icon img { width: 28px; height: 28px; }
/* Bereichston: feine farbige Kopfkante, Icon-Fläche, Link in der Bereichsfarbe */
.karte.tool[data-ton]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ton); opacity: .9; }
.karte.tool[data-ton] .mehr { color: var(--ton); }
a.karte.tool[data-ton]:hover { border-color: color-mix(in srgb, var(--ton) 40%, var(--line)); }
.karte.tool[data-ton="flow"] { --ton: var(--c-flow); --ton-bg: var(--c-flow-bg); }
.karte.tool[data-ton="flow"]::before { background: var(--flow-verlauf); }
.karte.tool[data-ton="zb"] { --ton: var(--c-zb); --ton-bg: var(--c-zb-bg); }
.karte.tool[data-ton="pa"] { --ton: var(--c-pa); --ton-bg: var(--c-pa-bg); }
.karte.tool[data-ton="pa"]::before { background: var(--bf-verlauf); }
.karte.tool[data-ton="au"] { --ton: var(--c-au); --ton-bg: var(--c-au-bg); }
.karte.tool[data-ton="vo"] { --ton: var(--c-vo); --ton-bg: var(--c-vo-bg); }
.karte.tool[data-ton="fr"] { --ton: var(--c-fr); --ton-bg: var(--c-fr-bg); }
.karte.tool[data-ton="ad"] { --ton: var(--c-ad); --ton-bg: var(--c-ad-bg); }
.karte.tool .kopf { display: flex; align-items: center; gap: 14px; }
.karte.tool .kopf h3 { margin: 0; }
.karte.tool .icon svg { width: 24px; height: 24px; }
.karte.tool h3 { margin: 4px 0 0; } .karte.tool p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.karte.tool .mehr { color: var(--link); font-weight: 600; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--chip-bg); color: var(--accent-ink); border: 1px solid var(--chip-line); }
.chip.gruen { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); } .chip.grau { background: var(--bg-soft); color: var(--muted); border-color: var(--line); }

/* Tabellen */
table.liste { width: 100%; border-collapse: collapse; font-size: 14px; } table.liste th, table.liste td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.liste th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
table.liste tr:hover td { background: var(--bg-soft); }

/* Startseite */
.hero { padding: 72px 0 40px; } .hero h1 { font-size: 44px; max-width: 760px; } .hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.hero .aktionen { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.abschnitt { padding: 36px 0; } .abschnitt + .abschnitt { border-top: 1px solid var(--line); }
.wrap.hero, .wrap.abschnitt, .wrap.fuss { padding-left: 24px; padding-right: 24px; }
.fuss { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.auth { min-height: calc(100vh - var(--leiste)); display: grid; place-items: center; align-content: center; gap: 22px; padding: 40px 16px; background: var(--bg-soft); }
.auth .auth-marke { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.auth .auth-marke .wortmarke { font-size: 26px; gap: 10px; }
.auth .auth-marke .wortmarke img { width: 38px; height: 38px; }
.auth .karte { border-top: 3px solid var(--bf-blau); }
.auth .karte { width: 100%; max-width: 440px; padding: 30px; }
.auth h1 { font-size: 26px; }
.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .zeile.zwischen { justify-content: space-between; }
.leer { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
@media (max-width: 720px) { .hero h1 { font-size: 32px; } .leiste .nutzer { display: none; } .wrap, .wrap.hero, .wrap.abschnitt, .wrap.fuss { padding-left: 16px; padding-right: 16px; } .wortmarke.gross { font-size: 28px; } .wortmarke.gross img { width: 46px; height: 46px; } }
@media (max-width: 480px) { .leiste { padding: 0 12px; gap: 8px; } .leiste nav { display: none; } .leiste .rechts { margin-left: auto; gap: 6px; } .leiste .rechts .btn { padding: 6px 9px; } }

/* Mit der gemeinsamen Oberleiste (leiste.js) bleibt die alte Kopfzeile leer */
body.ppt-leiste > header.leiste { display: none; }
body.ppt-leiste { padding-top: var(--ppt-leiste-h); }
body.ppt-leiste .auth { min-height: calc(100vh - var(--ppt-leiste-h)); }
