/* Version 1.5.0 (2026-09-28) – Hell/Dunkel, Anmeldung zuerst */
/* Teams-Chat-Export – Septeo Design System (Socle commun)
   Farben aus tokens/colors.css, Typo aus typography.css, Radien/Schatten aus spacing.css/effects.css.
   Dunkles Schema: offizieller Hintergrund bg-dark.png, Flächen in Navy #2E3862, Text weiß.
   Poppins wird lokal ausgeliefert (kein Google-Fonts-Aufruf). */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/poppins-latin-400-normal.woff2') format('woff2'); 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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); 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: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); 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: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/poppins-latin-ext-400-normal.woff2') format('woff2'); 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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/poppins-latin-ext-500-normal.woff2') format('woff2'); 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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/poppins-latin-ext-600-normal.woff2') format('woff2'); 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 {
  /* Marke */
  --septeo-white: #ffffff;
  --septeo-orange: #ff6136;
  --septeo-i6: #4d54d1;
  --septeo-blue: #7096ff;
  --action: #ff6136;
  --action-hover: #e9491f;
  --action-active: #d33e17;
  --gradient-brand: linear-gradient(90deg, #ff6136 0%, #ff8e8b 17%, #ff96be 35%, #4d54d1 58%, #64e4dd 100%);
  --font-sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --ls-tight: -0.02em;
  --ls-kicker: 0.14em;
  --radius-xl: 24px;
  --radius-3xl: 32px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-base: 220ms;

  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --inset: #f2f5fe;
  --ink: #101828;
  --muted: #6b7391;
  --line: #e4e8f2;
  --hair: #caccf1;
  --field-bg: #ffffff;
  --field-border: #d8dee9;
  --hover: #f2f5fe;
  --accent-soft: #edeefa;
  --accent-ink: #4d54d1;
  --step-border: #c0c3d0;
  --track: #edeefa;
  --notice-bg: #ffefeb;
  --notice-border: #ffc0af;
  --shadow: 0 8px 24px rgba(46, 56, 98, 0.10);
  --hero-img: url('assets/bg-light-subtle.png');
  --logo-light: block;
  --logo-dark: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1d49;
  --surface: #2e3862;
  --inset: rgba(16, 24, 40, 0.28);
  --ink: #ffffff;
  --muted: #c0c3d0;
  --line: #434c72;
  --hair: #434c72;
  --field-bg: rgba(16, 24, 40, 0.32);
  --field-border: #6d7491;
  --hover: rgba(255, 255, 255, 0.06);
  --accent-soft: rgba(77, 84, 209, 0.28);
  --accent-ink: #b8bbed;
  --step-border: #6d7491;
  --track: rgba(255, 255, 255, 0.10);
  --notice-bg: rgba(255, 97, 54, 0.14);
  --notice-border: #ff815e;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.45);
  --hero-img: url('assets/bg-dark.png');
  --logo-light: none;
  --logo-dark: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1b1d49;
    --surface: #2e3862;
    --inset: rgba(16, 24, 40, 0.28);
    --ink: #ffffff;
    --muted: #c0c3d0;
    --line: #434c72;
    --hair: #434c72;
    --field-bg: rgba(16, 24, 40, 0.32);
    --field-border: #6d7491;
    --hover: rgba(255, 255, 255, 0.06);
    --accent-soft: rgba(77, 84, 209, 0.28);
    --accent-ink: #b8bbed;
    --step-border: #6d7491;
    --track: rgba(255, 255, 255, 0.10);
    --notice-bg: rgba(255, 97, 54, 0.14);
    --notice-border: #ff815e;
    --shadow: 0 18px 48px rgba(16, 24, 40, 0.45);
    --hero-img: url('assets/bg-dark.png');
    --logo-light: none;
    --logo-dark: block;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
b, strong { font-weight: 500; }
:focus-visible { outline: 3px solid var(--septeo-blue); outline-offset: 2px; border-radius: 6px; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--septeo-orange); text-underline-offset: 3px; }

/* ---------- Anzeige je nach Anmeldestatus ---------- */
body:not([data-auth="in"]) .intro,
body:not([data-auth="in"]) main,
body:not([data-auth="in"]) .who { display: none !important; }
body[data-auth="in"] .signin { display: none !important; }
body[data-auth="pending"] #btnLogin { display: none; }
body:not([data-auth="pending"]) #authPending { display: none; }

/* ---------- Kopfbereich ---------- */
.hero { position: relative; isolation: isolate; padding-bottom: 112px; }
body:not([data-auth="in"]) .hero { flex: 1; padding-bottom: 72px; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-img) center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, rgba(16, 24, 40, 1) 70%, rgba(16, 24, 40, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(16, 24, 40, 1) 70%, rgba(16, 24, 40, 0) 100%);
}

.top, .intro, main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo { height: 30px; width: auto; }
.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }
.product { font-size: 14px; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--field-border); line-height: 30px; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.who { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-right: 6px; }

/* Umschalter Sprache / Design */
.lang, .theme-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hair);
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.lang { padding: 3px; }
.lang button {
  min-width: 44px; min-height: 36px; padding: 0 12px;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; cursor: pointer;
}
.lang button[aria-pressed=true] { background: var(--septeo-i6); color: var(--septeo-white); }
.theme-toggle {
  gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.theme-toggle:hover, .lang button:not([aria-pressed=true]):hover { background: var(--hover); }
.theme-toggle .icon { width: 20px; height: 20px; color: var(--accent-ink); }

/* ---------- Anmeldung (vor dem Login) ---------- */
.signin {
  width: min(520px, calc(100% - 40px));
  margin: clamp(32px, 10vh, 120px) auto 0;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow);
}
.signin h1 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 36px); font-weight: 500; line-height: 1.15; letter-spacing: var(--ls-tight); }
.signin p { margin: 0 0 28px; }
.signin .btn { width: 100%; }
.signin .notice { margin: 20px 0 0; }
#authPending { color: var(--muted); margin: 0; }

.kicker { margin: 0 0 16px; font-size: 13px; font-weight: 500; letter-spacing: var(--ls-kicker); text-transform: uppercase; color: var(--muted); }
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Einleitung (nach dem Login) ---------- */
.intro { padding-top: 32px; }
.intro h1 { margin: 0 0 20px; font-size: clamp(32px, 4vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: var(--ls-tight); max-width: 24ch; }
.lead { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.65; }

/* ---------- Karte ---------- */
main { margin-top: -64px; padding-bottom: 48px; position: relative; flex: 1; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-3xl); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: clamp(24px, 3.6vw, 40px); }
.card-body h2 { margin: 0 0 16px; font-size: 24px; font-weight: 500; letter-spacing: var(--ls-tight); line-height: 1.25; }

.steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0; padding: 0 clamp(24px, 3.6vw, 40px);
  border-bottom: 1px solid var(--line); background: var(--inset);
}
.steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 0; font-size: 15px; color: var(--muted); }
.steps li.active::after { content: ''; position: absolute; left: 0; right: 24px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--septeo-i6); }
.steps .n {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--step-border); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 14px;   /* Ziffer – SemiBold nur auf Zahlen */
}
.steps li.active { color: var(--ink); font-weight: 500; }
.steps li.active .n { background: var(--septeo-i6); border-color: var(--septeo-i6); color: var(--septeo-white); }
.steps li.done { color: var(--ink); }
.steps li.done .n { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }

.note { display: flex; gap: 14px; align-items: center; margin: 0 0 20px; padding: 14px 18px; background: var(--inset); border-radius: var(--radius-xl); font-size: 14px; }
.note p { margin: 0; }
.note .icon { color: var(--accent-ink); }
.status { color: var(--muted); margin: 0 0 16px; }
.fine { font-size: 13px; color: var(--muted); }

/* ---------- Icons (Septeo-Linienset) ---------- */
.icon { display: inline-block; flex: none; color: currentColor; }
.icon svg { width: 100%; height: 100%; display: block; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; line-height: 1; cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform 80ms;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--action); color: var(--septeo-white); }
.btn-primary:hover:not(:disabled) { background: var(--action-hover); }
.btn-primary:active:not(:disabled) { background: var(--action-active); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--field-border); }
.btn-outline:hover:not(:disabled) { background: var(--hover); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--hover); }
.btn-sm { padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- Auswahl ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 280px; display: block; }
.search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 0 18px 0 46px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: var(--radius-pill);
}
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--hair); background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.chip:hover { background: var(--hover); }
.chip[aria-pressed=true] { background: var(--septeo-i6); border-color: var(--septeo-i6); color: var(--septeo-white); }
.chip .count { font-weight: 600; margin-left: 8px; }

.tablewrap { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-xl); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); box-shadow: inset 0 -1px 0 var(--line); text-align: left; font-weight: 500; padding: 12px 14px; }
thead th::before { content: ''; position: absolute; inset: 0; background: var(--inset); z-index: -1; }
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background-color var(--dur-base) var(--ease-out); }
tbody tr:hover { background: var(--hover); }
th.c, td.c { width: 48px; text-align: center; }
td .name { display: block; }
td .people { display: block; color: var(--muted); font-size: 13px; }
td.when { white-space: nowrap; color: var(--muted); }
.empty { padding: 20px; margin: 0; color: var(--muted); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--septeo-i6); cursor: pointer; }

.options { border: 0; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.options legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.format {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--hair); border-radius: var(--radius-xl);
  cursor: pointer; transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.format:hover { background: var(--hover); }
.format:has(input:checked) { border-color: var(--septeo-i6); box-shadow: inset 0 0 0 1px var(--septeo-i6); background: var(--accent-soft); }
.format input { margin-top: 3px; accent-color: var(--septeo-i6); width: 18px; height: 18px; flex: none; }
.format .fname { display: block; font-weight: 500; }
.formats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.format.disabled { opacity: .55; cursor: not-allowed; }
.pick-set { margin-top: 0; }
.pick-hint { margin: 12px 0 0; }
.format .fine { display: block; }
.opt { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.opt .fine { display: block; }
.opt.date .icon { color: var(--muted); }
.opt input[type=date] { font: inherit; font-size: 14px; min-height: 40px; padding: 0 14px; color: var(--ink); background: var(--field-bg); border: 1px solid var(--field-border); border-radius: var(--radius-pill); }

.actionbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.actionbar > span { margin-right: auto; color: var(--muted); }

/* ---------- Export ---------- */
.progress { height: 8px; background: var(--track); border-radius: var(--radius-pill); overflow: hidden; margin: 0 0 14px; }
#bar { height: 100%; width: 0; background: var(--septeo-i6); border-radius: var(--radius-pill); transition: width .3s var(--ease-out); }
.log { list-style: none; padding: 0; margin: 0; max-height: 40vh; overflow: auto; font-size: 14px; }
.log li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log li .icon { width: 20px; height: 20px; color: var(--accent-ink); margin-top: 1px; }
.log li.bad .icon { color: var(--septeo-orange); }
.log li.done { font-weight: 500; }
.log li.head { font-weight: 500; padding-top: 16px; }
.log li.info .icon { color: var(--septeo-orange); }
.log li.head:first-child { padding-top: 8px; }
.multi-hint { margin: 0 0 12px; }
.zips-wrap { margin-top: 24px; }
.zips-wrap h3 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.zips { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-xl); }
.zips li { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.zips li:last-child { border-bottom: 0; }
.zips li .icon { width: 20px; height: 20px; color: var(--accent-ink); }
.zips .zname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; margin-left: 4px; padding: 1px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 500; vertical-align: 1px; }

.notice { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 18px; background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: var(--radius-xl); white-space: pre-wrap; }
.notice .icon { color: var(--septeo-orange); }

footer { text-align: center; font-size: 13px; color: var(--muted); padding: 8px 16px 40px; }
footer .version { display: block; margin-top: 6px; font-size: 12px; }

@media (max-width: 680px) {
  .product, .who #whoName, .theme-toggle .label { display: none; }
  .theme-toggle { padding: 0 12px; }
  .intro { padding-top: 16px; }
  .hero { padding-bottom: 96px; }
  main { margin-top: -56px; }
  .steps li .label { display: none; }
  .steps li.active .label { display: inline; }
  th.type, td.type { display: none; }
  .formats, .formats.two { grid-template-columns: 1fr; }
  .actionbar > span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
