/* Talente gewinnen Studio im LearningSuite-Look, Werte und Bausteine aus dem KundenbetreuungOS (app/globals.css, components/ui).
   Ecken nur über --ecke, Tiefe nur über --schatten-karte und --schatten-hoch. Liegt als Letztes, gilt also für alles. */

/* ---------------------------------------------------------------- Grundlagen */
body { font: 400 16px/24px var(--font-sans); background: var(--bg-base); color: var(--fg-primary); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
button:not(:disabled), [role=button], summary { cursor: pointer; }
a { color: var(--accent-text); }
h1 { font-size: 1.875rem; line-height: 1.25; font-weight: 500; letter-spacing: -.025em; }
h2 { font-size: 1rem; font-weight: 500; line-height: 1.5; letter-spacing: -.015em; }
h3 { font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; }
.eyebrow { font-size: 1.125rem; line-height: 1.2; color: var(--accent); }
.label-klein { font-size: .75rem; line-height: 18px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-muted); }
.abschnitt-titel, .karten-kopf h2, .panel-titel h2, .karte > h2:first-child { display: flex; align-items: center; gap: 10px; }
.abschnitt-titel::before, .karten-kopf > h2::before, .karte > h2:first-child::before { content: ""; flex: none; width: 4px; height: 1.25em; background: var(--accent); }
kbd { display: inline-flex; min-width: 1.25rem; align-items: center; justify-content: center; border: 1px solid var(--border-default); background: var(--bg-sunken); padding: 0 .25rem; font: 500 .65rem/1rem var(--font-sans); color: var(--fg-secondary); }
svg.fa { width: 18px; height: 18px; flex: none; }
.nur-breit { display: inline; } .nur-schmal { display: none; }
@media (max-width: 1023px) { .nur-breit { display: none; } .nur-schmal { display: inline; } }

/* ---------------------------------------------------------------- Rahmen */
.shell { display: flex; min-height: 100vh; background: none; animation: panel-ein 200ms ease-out; }
.sidebar { width: 240px; height: 100vh; border: 0; background: var(--bg-elevated); box-shadow: var(--schatten-karte); overflow: hidden; }
.sidebar-marke { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 8px; border: 0; }
.sidebar-marke img { height: 36px; width: auto; display: block; }
.logo-dunkel { display: none !important; }
html.dark .logo-hell { display: none !important; } html.dark .logo-dunkel { display: block !important; }
@media (prefers-color-scheme: dark) { html:not(.light) .logo-hell { display: none !important; } html:not(.light) .logo-dunkel { display: block !important; } }
.person { display: flex; align-items: center; gap: 10px; margin: 8px 14px 0; padding: 8px 10px; background: var(--bg-hover); }
.person .initialen { width: 36px; height: 36px; }
.person .wer { min-width: 0; line-height: 1.25; } .person strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .person em { font: 400 12px/1.3 var(--font-sans); color: var(--fg-muted); }
.initialen { display: inline-flex; width: 32px; height: 32px; flex: none; align-items: center; justify-content: center; border-radius: 50%; font-size: .7rem; font-weight: 700; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-text); }
.initialen.voll { background: var(--accent); color: #fff; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 0 14px 16px; display: block; scrollbar-width: thin; }
.sidebar-nav .label-klein { padding: 16px 10px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 2px; border: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg-primary); transition: background-color .15s var(--kurve); }
.nav-link:hover { background: var(--bg-hover); color: var(--fg-primary); text-decoration: none; }
.nav-link svg, .nav-link:hover svg { color: var(--accent); width: 18px; height: 18px; }
.nav-link[aria-current=page] { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-text); font-weight: 600; box-shadow: none; }
.nav-zahl { margin-left: auto; border-radius: 999px; padding: 2px 6px; font-size: .7rem; line-height: 1; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-text); font-weight: 500; }
.nav-zahl.warn { background: color-mix(in srgb, var(--destructive) 10%, transparent); color: var(--destructive-fg); } .nav-zahl.warn:not([hidden]) + .nav-zahl { margin-left: 0; } .nav-zahl[hidden] { display: none; }
.hauptbereich { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: static; height: 64px; padding: 0 24px; gap: 8px; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; justify-content: flex-start; }
.suchknopf { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--bg-hover); padding: 8px 12px; font: 400 14px/20px var(--font-sans); color: var(--fg-secondary); transition: color .15s; } .suchknopf:hover { color: var(--fg-primary); } .suchknopf svg { width: 14px; height: 14px; }
.brotkrumen { margin-left: 10px; font-size: 13px; } .brotkrumen:not(:has(a)) { display: none; } .brotkrumen a { color: var(--fg-secondary); } .brotkrumen a:hover { color: var(--accent-text); text-decoration: none; } .brotkrumen .hier { font-weight: 400; color: var(--fg-muted); }
.topbar-gruppe { margin-left: auto; display: flex; align-items: center; gap: 2px; background: var(--bg-hover); padding: 4px; } .topbar-gruppe form { display: flex; margin: 0; } .topbar-gruppe .initialen { margin-left: 2px; }
.kopf-knopf { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: var(--fg-secondary); transition: background-color .15s, color .15s; } .kopf-knopf:hover { background: var(--bg-hover); color: var(--fg-primary); } .kopf-knopf svg { width: 14px; height: 14px; display: block; }
.icon-knopf { border-radius: 50%; width: 32px; height: 32px; }
.inhalt { max-width: none; margin: 0; padding: 4px 24px 32px; overflow-x: clip; }
.seitenkopf { margin-bottom: 24px; gap: 12px; align-items: flex-end; } .seitenkopf .titelblock { gap: 4px; } .seitenkopf h1 { font-size: 1.875rem; } .seitenkopf .beschreibung { font-size: 14px; line-height: 20px; max-width: 42rem; }
.kopf-aktionen { align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- Flächen */
.karte { background: var(--bg-elevated); border: 1px solid var(--rand-karte); box-shadow: var(--schatten-karte); padding: 20px; margin-bottom: 24px; }
.karte.panel { padding: 0; overflow: hidden; }
.karte-klick { transition: transform 250ms var(--kurve), box-shadow 250ms var(--kurve), border-color 250ms var(--kurve); }
@media (hover: hover) { .karte-klick:hover { transform: translateY(-2px); box-shadow: var(--schatten-hoch); } }
.karten-kopf { margin-bottom: 16px; } .karten-kopf .anzahl { font-size: 12px; }
.tabellen-huelle { margin: 0 -20px; padding: 0; }
.kennzahlen > div { background: var(--bg-sunken); border: 0; padding: 12px 14px; } .kennzahlen dd { font-weight: 500; font-size: 1.25rem; }
.kennzahlen.frei > div { background: var(--bg-elevated); box-shadow: var(--schatten-karte); border: 1px solid var(--rand-karte); padding: 16px 20px; } .kennzahlen.frei { gap: 16px; }
.panel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; flex-wrap: wrap; }
.panel-titel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); min-height: 60px; } .panel-titel h2 { margin: 0; }
.panel-filter { padding: 0 16px 12px; } .panel-filter:has(+ .liste-kopf) { padding-bottom: 16px; }
.panel-fuss { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-subtle); padding: 8px 16px; font-size: 12px; color: var(--fg-muted); }
.streifen { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 9px 16px; font-size: 12px; line-height: 18px; color: var(--fg-secondary); } .streifen span { display: inline-flex; align-items: center; gap: 8px; } .streifen svg { width: 14px; height: 14px; color: var(--fg-muted); } .streifen .stark { color: var(--fg-primary); font-weight: 500; } .streifen .stark svg { color: var(--accent-text); }

/* ---------------------------------------------------------------- Knöpfe, Chips, Badges */
.knopf { height: 36px; padding: 0 14px; gap: 6px; border: 0; font: 500 .8125rem/1 var(--font-sans); background: var(--accent); color: #fff; box-shadow: none; transition: background-color .15s, border-color .15s, color .15s, transform .15s, opacity .15s; }
.knopf:hover { background: var(--accent-dunkel); box-shadow: none; text-decoration: none; } .knopf:active { transform: scale(.98); } .knopf:focus-visible, .icon-knopf:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.knopf:disabled, .knopf[aria-disabled=true] { opacity: .5; }
.knopf.klein { height: 32px; padding: 0 12px; font-size: .8125rem; } .knopf svg.ic { width: 14px; height: 14px; } .knopf.primaer::after { display: none; }
.leise-knopf { background: var(--bg-hover); color: var(--fg-primary); } .leise-knopf:hover { background: var(--bg-hover-stark); color: var(--fg-primary); }
.geist-knopf { background: none; color: var(--fg-primary); } .geist-knopf:hover { background: var(--bg-hover); color: var(--fg-primary); }
.rand-knopf { background: none; border: 1px solid var(--border-default); color: var(--fg-primary); } .rand-knopf:hover { background: none; border-color: var(--border-glow); color: var(--accent-text); } .rand-knopf svg { color: var(--accent-text); }
.gefahr { background: var(--destructive-soft); color: var(--destructive-fg); } .gefahr:hover { background: color-mix(in srgb, var(--destructive) 16%, transparent); color: var(--destructive-fg); } .gefahr.voll { background: var(--destructive); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 4px; flex: none; border: 0; padding: 6px 12px; font: 500 12px/16px var(--font-sans); background: var(--bg-hover); color: var(--fg-secondary); box-shadow: none; transition: background-color .15s, color .15s, transform .15s; } .chip:hover { color: var(--fg-primary); } .chip:active { transform: scale(.98); } .chip.aktiv { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-text); box-shadow: none; } .chip .n { font-size: 12px; color: inherit; opacity: .7; font-variant-numeric: tabular-nums; } .chip svg { width: 14px; height: 14px; }
.chipzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .chipzeile > .leise { margin-right: 4px; font-size: 12px; color: var(--fg-muted); }
.badge, .marke-chip { padding: 2px 8px; gap: 5px; font-size: 12px; line-height: 16px; font-weight: 500; border: 0; background: var(--bg-hover); color: var(--fg-primary); }
.badge.akzent, .st-rueckfrage, .paket-status.rueckfrage { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-text); }
.badge.laeuft, .st-laeuft, .st-wartet, .paket-status.laeuft, .paket-status.wartet { background: var(--bg-hover); color: var(--fg-primary); box-shadow: none; border: 0; animation: none; }
.st-laeuft::before, .paket-status.laeuft::before, .badge.laeuft .punkt { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: punkt-puls 1.4s ease-in-out infinite; } .st-wartet::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-muted); }
.st-fertig, .st-bereit, .paket-status.fertig, .paket-status.bereit { background: var(--success-soft); color: var(--success-fg); } .st-pruefen, .st-budget, .paket-status.pruefen { background: var(--warning-soft); color: var(--warning-fg); } .st-fehlgeschlagen, .st-fehler, .paket-status.fehlgeschlagen, .paket-status.fehler { background: var(--destructive-soft); color: var(--destructive-fg); }
.zeitchip { background: var(--bg-hover); padding: 2px 8px; font-size: 12px; line-height: 16px; color: var(--fg-secondary); white-space: nowrap; }
.kachel-icon { display: inline-flex; width: 40px; height: 40px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); } .kachel-icon svg { width: 18px; height: 18px; } .kachel-icon.klein { width: 32px; height: 32px; } .kachel-icon.klein svg { width: 14px; height: 14px; } .kachel-icon.gross { width: 48px; height: 48px; } .kachel-icon.gross svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- Felder */
input, select, textarea { font-size: 14px; line-height: 20px; padding: 8px 12px; min-height: 36px; border: 1px solid var(--border-default); background-color: var(--bg-elevated); transition: box-shadow .15s, border-color .15s; } input:hover, select:hover, textarea:hover { border-color: var(--border-strong); } input:focus, select:focus, textarea:focus { border-color: var(--border-glow); box-shadow: var(--accent-glow); }
input[type=checkbox] { min-height: 0; } input[type=file] { border-style: solid; background: var(--bg-hover); border-color: transparent; padding: 5px; min-height: 0; font-weight: 400; color: var(--fg-secondary); } input[type=file]::file-selector-button { border: 0; background: var(--bg-elevated); padding: 6px 10px; margin-right: 10px; font-weight: 500; }
label, .feld > span, .paket-formular .feld > span { font-size: 14px; font-weight: 500; color: var(--fg-primary); } label small, .feld small { font-size: 12px; line-height: 16px; color: var(--fg-muted); } legend { font-family: var(--font-sans); font-style: normal; font-weight: 500; font-size: 1rem; color: var(--fg-primary); }
.formular { gap: 16px; } .spalten { gap: 16px; } .spalten.eng { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.suchfeld { position: relative; display: block; width: 100%; max-width: 24rem; } .suchfeld svg { position: absolute; left: 12px; top: 10px; width: 16px; height: 16px; color: var(--fg-muted); pointer-events: none; } .suchfeld input { padding-left: 36px; padding-right: 36px; border-color: transparent; background-color: var(--bg-base); } .suchfeld kbd { position: absolute; right: 12px; top: 10px; pointer-events: none; } .suchfeld input:not(:placeholder-shown) ~ kbd { display: none; } input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; height: 14px; width: 14px; cursor: pointer; background: var(--fg-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------------------------------------------------------------- Reiter */
@property --tab-rand { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes tab-rand { from, 90% { --tab-rand: 2.5rem; } to { --tab-rand: 0px; } }
.tab-leiste { position: relative; display: flex; align-items: center; gap: 2px; width: fit-content; max-width: 100%; overflow-x: auto; padding: 3px; background: var(--bg-hover); scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--tab-rand)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--tab-rand)), transparent); }
@supports (animation-timeline: scroll()) { .tab-leiste { animation: tab-rand linear both; animation-timeline: scroll(self inline); } }
.tab-leiste::-webkit-scrollbar { display: none; }
.tab-pille { position: absolute; top: 3px; bottom: 3px; left: 0; background: var(--bg-pille); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); opacity: 0; } .tab-leiste[data-gleitet] .tab-pille { opacity: 1; transition: transform 300ms var(--kurve), width 300ms var(--kurve); }
.tab-leiste:not([data-gleitet]) [role=tab][aria-selected=true] { background: var(--bg-pille); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.tab-leiste [role=tab] { position: relative; display: inline-flex; flex: none; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px; font: 500 14px/20px var(--font-sans); color: var(--fg-secondary); white-space: nowrap; transition: color .2s; } .tab-leiste [role=tab]:hover { color: var(--fg-primary); } .tab-leiste [role=tab][aria-selected=true] { color: var(--accent-text); }
.tab-zahl { border-radius: 999px; padding: 2px 6px; font-size: .7rem; line-height: 1; background: var(--bg-hover); color: var(--fg-muted); font-variant-numeric: tabular-nums; } .tab-zahl.akzent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-text); }
main > .tab-leiste { margin-bottom: 24px; } [role=tabpanel]:not([hidden]) { animation: panel-ein 140ms ease-out; }

/* ---------------------------------------------------------------- Listen */
.liste-kopf { display: none; align-items: center; column-gap: 16px; padding: 8px 16px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-base); } .liste-kopf > * { display: inline-flex; min-width: 0; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: 500 .8125rem/20px var(--font-sans); color: var(--fg-muted); text-align: left; transition: color .15s; } .liste-kopf button:hover { color: var(--fg-primary); } .liste-kopf svg { width: 12px; height: 12px; opacity: 0; transition: opacity .15s; } .liste-kopf button:hover svg { opacity: .5; } .liste-kopf [aria-sort] { color: var(--accent-text); } .liste-kopf [aria-sort] svg { opacity: 1; } .liste-kopf .rechts { justify-content: flex-end; }
.liste-zeilen { list-style: none; margin: 0; padding: 0; } .liste-zeilen > li + li { border-top: 1px solid var(--border-subtle); } .liste-zeilen > li[hidden] { display: none; }
.zeile { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 16px; min-height: 52px; color: var(--fg-primary); transition: background-color .12s ease-out; } .zeile:hover { text-decoration: none; background: var(--bg-hover); } .zeile:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.z-haupt { display: flex; width: 100%; min-width: 0; align-items: center; gap: 10px; } .z-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; line-height: 1.375; } .z-neben { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--fg-secondary); } .z-klein { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--fg-muted); } .z-klein em { font-style: normal; background: var(--bg-hover); padding: 2px 6px; } .z-marke { flex: none; font-size: .6875rem; color: var(--fg-muted); }
.z-bereiche { display: flex; flex-wrap: wrap; gap: 4px 10px; } .z-bereiche i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; color: var(--fg-secondary); font-variant-numeric: tabular-nums; } .z-bereiche svg { width: 12px; height: 12px; color: var(--accent); } .z-signale { display: flex; flex-wrap: wrap; gap: 6px; }
.z-klein:empty, .z-bereiche:empty, .z-signale:empty, .z-zeit:empty { display: none; }
@media (min-width: 1024px) {
  .liste-kopf { display: grid; } .zeile { display: grid; column-gap: 16px; } .z-haupt { width: auto; } .z-klein:empty, .z-bereiche:empty, .z-signale:empty, .z-zeit:empty { display: block; }
  .liste-kopf.kunden, .zeile.kunden { grid-template-columns: minmax(0, 1fr) 5rem 8.5rem 15rem 13rem; }
  .liste-kopf.mit-kunde, .zeile.mit-kunde { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 8rem 5.5rem 10rem 6rem 8rem; }
  .liste-kopf.mit-bereich, .zeile.mit-bereich { grid-template-columns: minmax(0, 1fr) 7rem 8rem 5.5rem 0 5.5rem 8rem; } .zeile.mit-bereich .z-von { visibility: hidden; }
  .liste-kopf.nur, .zeile:not(.kunden):not(.mit-kunde):not(.mit-bereich) { grid-template-columns: minmax(0, 1fr) 8rem 5.5rem 10rem 6rem 8rem; }
}
.liste-leer { border-top: 1px solid var(--border-subtle); padding: 40px 16px; text-align: center; font-size: 14px; color: var(--fg-secondary); } .liste-leer[hidden] { display: none; } .liste-leer p { margin: 0 0 12px; } .liste-leer p:last-child { margin: 0; } .panel-titel + .liste-leer { border-top: 0; }
.tabelle { font-size: 14px; line-height: 20px; } .tabelle th, .tabelle td { padding: 12px 20px; } .tabelle thead th { font-size: .8125rem; letter-spacing: 0; text-transform: none; color: var(--fg-muted); background: var(--bg-base); border-bottom: 1px solid var(--border-subtle); padding: 8px 20px; } .tabelle.klein th, .tabelle.klein td { padding: 9px 20px; }
.karte > .tabellen-huelle:last-child { margin-bottom: -20px; }

/* ---------------------------------------------------------------- Kacheln statt Liste: dieselben Zeilen, anders gelegt */
.ansicht-wahl { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-hover); } .ansicht-wahl button { display: inline-flex; width: 32px; height: 28px; align-items: center; justify-content: center; border: 0; background: none; color: var(--fg-muted); transition: color .15s, background-color .15s; } .ansicht-wahl button:hover { color: var(--fg-primary); } .ansicht-wahl button[aria-pressed=true] { background: var(--bg-pille); color: var(--accent-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); } .ansicht-wahl svg { width: 15px; height: 15px; }
.panel-kopf .ansicht-wahl { margin-left: auto; } .titel-rechts { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; } .panel-kopf .suchfeld { flex: 1 1 16rem; } .panel-kopf { justify-content: flex-start; }
.z-bild, .z-logo-huelle, [data-ansicht]:not([data-ansicht=kacheln]) .nur-kachel { display: none; }
[data-ansicht=kacheln] .liste-kopf { display: none !important; } [data-ansicht=kacheln] .nur-liste { display: none; }
[data-ansicht=kacheln] .liste-zeilen { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; padding: 4px 16px 20px; } [data-ansicht=kacheln] .panel-titel ~ .liste-zeilen { padding-top: 16px; } [data-ansicht=kacheln] .liste-zeilen:has(> li:not([hidden])) ~ .panel-fuss { margin-top: 0; }
[data-ansicht=kacheln] .liste-zeilen > li { border: 0 !important; min-width: 0; } [data-ansicht=kacheln] .liste-zeilen:not(:has(> li:not([hidden]))) { display: none; }
[data-ansicht=kacheln] a.zeile { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 8px 10px; height: 100%; padding: 0 16px 14px; border: 1px solid var(--rand-karte); background: var(--bg-elevated); box-shadow: var(--schatten-karte); transition: transform 250ms var(--kurve), box-shadow 250ms var(--kurve); } [data-ansicht=kacheln] a.zeile::before, [data-ansicht=kacheln] a.zeile::after { display: none; }
@media (hover: hover) { [data-ansicht=kacheln] a.zeile:hover { transform: translateY(-2px); background: var(--bg-elevated); box-shadow: var(--schatten-hoch); } [data-ansicht=kacheln] a.zeile:hover .z-reihe { transform: scale(1.03); } }
[data-ansicht=kacheln] .z-bild { position: relative; display: flex; flex: none; width: calc(100% + 32px); height: 168px; margin: 0 -16px 6px; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-sunken); color: var(--fg-muted); } [data-ansicht=kacheln] .kunden .z-bild { height: 176px; }
.z-bild > b { font-size: 2.25rem; font-weight: 500; letter-spacing: -.02em; color: color-mix(in srgb, var(--fg-muted) 70%, transparent); } .z-bild > svg { width: 32px; height: 32px; color: color-mix(in srgb, var(--accent) 55%, transparent); } .z-bild.mit-bild > b, .z-bild.mit-bild > svg, .z-bild.logo-gross > b { display: none; }
.z-bild.mit-marke { background: color-mix(in srgb, var(--marke) 12%, var(--bg-sunken)); } .z-bild.mit-marke > b { color: color-mix(in srgb, var(--marke) 75%, var(--fg-primary)); }
.z-reihe { position: absolute; inset: 0; display: flex; gap: 3px; align-items: flex-start; transition: transform 400ms var(--kurve); transform-origin: top center; } .z-reihe img { display: block; flex: 1 1 0; width: 0; min-width: 0; min-height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .3s; } .z-reihe img.da { opacity: 1; } .z-reihe.eins img { height: 100%; aspect-ratio: auto !important; }
.z-farben { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; height: 4px; } .z-farben b { flex: 1; }
[data-ansicht=kacheln] .z-logo-huelle { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 64px; height: 36px; padding: 4px 6px; background: #fff; border: 1px solid var(--border-subtle); } .z-logo-huelle img { max-width: 100%; max-height: 100%; object-fit: contain; } .z-logo-huelle.auf-dunkel { background: #222; } [data-ansicht=kacheln] .z-bild .z-logo-huelle { width: 62%; height: 84px; padding: 12px 16px; border: 0; }
[data-ansicht=kacheln] .z-haupt { width: 100%; } [data-ansicht=kacheln] .z-titel { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } [data-ansicht=kacheln] .kunden .z-titel { display: block; white-space: nowrap; font-size: 1rem; } [data-ansicht=kacheln] .z-neben { width: 100%; margin-top: -4px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } [data-ansicht=kacheln] .kachel-icon.klein { width: 28px; height: 28px; }
[data-ansicht=kacheln] .z-klein:empty, [data-ansicht=kacheln] .z-bereiche:empty, [data-ansicht=kacheln] .z-signale:empty, [data-ansicht=kacheln] .z-zeit:empty, [data-ansicht=kacheln] .z-zeit:not(:has(.zeitchip)) { display: none; } [data-ansicht=kacheln] .z-von { visibility: visible !important; } [data-ansicht=kacheln] .z-zeit { margin-left: auto; } [data-ansicht=kacheln] .z-bereiche { order: 5; width: 100%; } [data-ansicht=kacheln] .z-signale { order: 6; width: 100%; justify-content: flex-start; } [data-ansicht=kacheln] .nur-schmal { display: inline; } [data-ansicht=kacheln] .nur-breit { display: none; } [data-ansicht=kacheln] .zahlen.rechts { text-align: left; }
@media (max-width: 767px) { [data-ansicht=kacheln] .liste-zeilen { grid-template-columns: minmax(0, 1fr); padding: 4px 12px 16px; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { [data-ansicht=kacheln] a.zeile, .z-reihe, .z-reihe img { transition: none; } }

/* ---------------------------------------------------------------- Kundenseite */
.kunde-zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; } .kunde-zwei[hidden] { display: none; } @media (min-width: 1200px) { .kunde-zwei { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; } .kunde-zwei .zeile.mit-bereich { grid-template-columns: minmax(0, 1fr) 7rem 7rem 7rem; } .kunde-zwei .zeile.mit-bereich .z-klein { display: none; } }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; } .kachel { display: grid; justify-items: start; gap: 4px; margin: 0; padding: 20px; border: 1px solid var(--rand-karte); font: inherit; text-align: left; color: var(--fg-primary); } .kachel strong { margin-top: 8px; font-weight: 500; line-height: 1.4; } .kachel > span:last-child { font-size: 12px; line-height: 16px; color: var(--fg-muted); }
@media (min-width: 1200px) { .kunde-zwei .kacheln { grid-template-columns: 1fr 1fr; } }
.menue-huelle { position: relative; } .menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px; background: var(--bg-elevated); border: 1px solid var(--rand-karte); box-shadow: var(--schatten-hoch); padding: 6px; transform-origin: top right; animation: menue-ein 160ms var(--kurve); } .menue[hidden] { display: none; } .menue button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 10px; font: 500 14px/20px var(--font-sans); color: var(--fg-primary); text-align: left; } .menue button:hover, .menue button:focus-visible { background: var(--bg-hover); outline: none; } .menue svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------------------------------------------------------------- Fenster, Suche, Meldungen, Lader */
dialog.dialog { border: 1px solid var(--rand-karte); background: var(--bg-elevated); color: var(--fg-primary); box-shadow: var(--schatten-hoch); } dialog[open] { animation: dialog-ein 200ms var(--kurve); } dialog::backdrop, dialog.dialog::backdrop { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: none; backdrop-filter: none; } dialog[open]::backdrop { animation: panel-ein 200ms ease-out; }
dialog.fenster { width: min(40rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 3rem); padding: 0; overflow: hidden; } dialog.fenster[open] { display: flex; flex-direction: column; } .fenster-kopf { display: flex; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid var(--border-subtle); } .fenster-kopf > div { min-width: 0; flex: 1; } .fenster-kopf h2 { margin: 0; font-size: 1.125rem; } .fenster-kopf h2::before { display: none; } .fenster-kopf p { margin: 0; font-size: 14px; line-height: 20px; color: var(--fg-secondary); } dialog.fenster .formular { padding: 20px 20px 0; overflow-y: auto; } .fenster-fuss { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 4px -20px 0; padding: 14px 20px; border-top: 1px solid var(--border-subtle); background: var(--bg-elevated); } .fenster-fuss > .leise { margin-right: auto; font-size: 12px; line-height: 16px; }
dialog.frage { width: min(28rem, calc(100vw - 2rem)); padding: 0; } .frage .dialog-inhalt, #bestaetigen-dialog .dialog-inhalt { padding: 20px; } .frage h3, #bestaetigen-dialog h3 { font-size: 1.125rem; margin-bottom: 4px; } .frage p, #bestaetigen-dialog p { font-size: 14px; line-height: 20px; color: var(--fg-secondary); } .frage textarea { margin-top: 10px; } .frage .knopfreihe, #bestaetigen-dialog .knopfreihe { justify-content: flex-end; margin-top: 20px; } #bestaetigen-dialog .dialog-icon { display: none; } #bestaetigen-dialog .dialog-inhalt { text-align: left; display: block; }
dialog.palette { width: min(40rem, calc(100vw - 2rem)); margin: 10vh auto auto; padding: 0; border: 1px solid var(--rand-karte); background: var(--bg-elevated); color: var(--fg-primary); box-shadow: var(--schatten-hoch); overflow: hidden; } .palette-kopf { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border-subtle); } .palette-kopf svg { color: var(--fg-muted); } .palette-kopf input { height: 48px; border: 0; background: none; padding: 0; } .palette-kopf input:focus { box-shadow: none; } .palette ul { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow-y: auto; } .palette li.gruppe { padding: 8px 8px 4px; font-size: .7rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); } .palette li.treffer { display: flex; align-items: center; gap: 12px; padding: 8px; font-size: 14px; line-height: 20px; cursor: pointer; } .palette li.treffer[aria-selected=true] { background: color-mix(in srgb, var(--accent) 10%, transparent); } .palette li.treffer svg { width: 16px; height: 16px; color: var(--fg-muted); } .palette li.treffer[aria-selected=true] svg { color: var(--accent-text); } .palette li span { min-width: 0; flex: 1; } .palette li b, .palette li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; } .palette li small { font-size: 12px; line-height: 16px; color: var(--fg-muted); } .palette li.nichts { padding: 12px 8px; font-size: 14px; color: var(--fg-secondary); } .palette-fuss { display: flex; gap: 4px 16px; border-top: 1px solid var(--border-subtle); padding: 8px 16px; font-size: 12px; color: var(--fg-muted); } .palette-fuss span { display: inline-flex; align-items: center; gap: 5px; }
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 300; display: grid; gap: 10px; width: min(26rem, calc(100vw - 32px)); } .toast-karte { display: flex; align-items: flex-start; gap: 10px; background: var(--bg-elevated); border: 1px solid var(--rand-karte); box-shadow: var(--schatten-hoch); padding: 12px 14px; font-size: 14px; line-height: 20px; animation: toast-ein 180ms ease-out; } .toast-karte > svg { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--success); } .toast-karte.fehler > svg { color: var(--destructive); } .toast-karte.warnung > svg { color: var(--warning); } .toast-karte > div { flex: 1; min-width: 0; } .toast-karte button { border: 0; background: none; padding: 2px; color: var(--fg-muted); } .toast-karte button svg { width: 14px; height: 14px; display: block; } .toast-karte.geht { opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s; }
.hinweis { border: 0; border-left: 4px solid var(--success); background: var(--bg-elevated); box-shadow: var(--schatten-karte); padding: 12px 16px; margin-bottom: 24px; font-size: 14px; line-height: 20px; } .hinweis.warnung { border-left-color: var(--warning); background: var(--bg-elevated); } .hinweis.fehler { border-left-color: var(--destructive); background: var(--bg-elevated); } .hinweis.info { border-left-color: var(--accent); background: var(--bg-elevated); } .hinweis.klein { box-shadow: none; background: var(--bg-hover); }
.toast { background: var(--fg-primary); color: var(--bg-elevated); box-shadow: var(--schatten-hoch); border: 0; }
.marken-lader { position: fixed; inset: 0; z-index: 15; display: flex; align-items: center; justify-content: center; background: var(--bg-base); overflow: hidden; } @media (min-width: 1101px) { .marken-lader { left: 240px; top: 64px; } } .marken-lader svg { width: 64px; height: 64px; color: var(--accent); animation: lader-logo 3.6s ease-in-out infinite; } .marken-lader i { position: absolute; box-sizing: border-box; border-style: solid; border-color: var(--lader-ring); animation-duration: 3.6s; animation-timing-function: linear; animation-iteration-count: infinite; } .marken-lader i:nth-of-type(1) { width: 100px; height: 100px; border-width: 3px; animation-name: lader-ring-innen; } .marken-lader i:nth-of-type(2) { width: 120px; height: 120px; border-width: 8px; animation-name: lader-ring-aussen; } .marken-lader p { position: absolute; margin: 224px 0 0; font-size: 1.25rem; font-weight: 500; text-align: center; opacity: 0; } .marken-lader p:nth-of-type(1) { animation: lader-text-kurz 4.2s ease-in-out 3.4s both; } .marken-lader p:nth-of-type(2) { animation: lader-text-kurz 4.2s ease-in-out 9.7s both; } .marken-lader p:nth-of-type(3) { animation: lader-text-bleibt .84s ease-in-out 16s both; }
@keyframes lader-logo { 0%, 100% { transform: scale(1); } 50% { transform: scale(.8); } }
@keyframes lader-ring-innen { 0% { transform: scale(1.2) rotate(270deg); opacity: .25; border-radius: 17%; } 25% { transform: scale(1) rotate(0deg); opacity: 1; border-radius: 17%; } 50% { transform: scale(1) rotate(0deg); opacity: 1; border-radius: 40%; } 75% { transform: scale(1.2) rotate(270deg); opacity: 1; border-radius: 40%; } 100% { transform: scale(1.2) rotate(270deg); opacity: .25; border-radius: 17%; } }
@keyframes lader-ring-aussen { 0% { transform: scale(1) rotate(0deg); opacity: 1; border-radius: 17%; } 25% { transform: scale(1.2) rotate(270deg); opacity: .25; border-radius: 17%; } 50% { transform: scale(1.2) rotate(270deg); opacity: .25; border-radius: 40%; } 75% { transform: scale(1) rotate(0deg); opacity: .25; border-radius: 40%; } 100% { transform: scale(1) rotate(0deg); opacity: 1; border-radius: 17%; } }
@keyframes lader-text-kurz { 0% { opacity: 0; transform: translateY(24px); } 20%, 80% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-24px); } }
@keyframes lader-text-bleibt { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panel-ein { from { opacity: 0; } } @keyframes dialog-ein { from { opacity: 0; transform: translateY(8px) scale(.98); } } @keyframes menue-ein { from { opacity: 0; transform: translateY(-4px) scale(.97); } } @keyframes toast-ein { from { opacity: 0; transform: translateY(8px); } }
.skeleton { position: relative; overflow: hidden; background: var(--bg-hover); animation: panel-ein 200ms ease-out 150ms both; } .skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bg-elevated) 75%, transparent), transparent); animation: skelett-welle 2s linear .5s infinite; } @keyframes skelett-welle { 0% { transform: translateX(-100%); } 50%, 100% { transform: translateX(100%); } }
details { interpolate-size: allow-keywords; } details::details-content { height: 0; overflow: clip; transition: height 180ms ease-out, content-visibility 180ms allow-discrete; } details[open]::details-content { height: auto; }
.leer-zustand .leer-icon { border-radius: 50%; border: 0; box-shadow: none; } .leer-zustand h3 { font-weight: 500; }

/* ---------------------------------------------------------------- Auftrag: Chat und Ergebnis */
.paket-kopf { margin-bottom: 24px; align-items: flex-end; } .paket-kopf h1 { font-size: 1.875rem; line-height: 1.25; } .paket-kopf .eyebrow a { color: inherit; } .paket-kopf h1 span { font: inherit; color: var(--fg-muted); }
.paket-buehne { gap: 24px; } .paket-chat { top: 24px; height: calc(100vh - 170px); border: 1px solid var(--rand-karte); box-shadow: var(--schatten-karte); } .paket-post { border: 1px solid var(--rand-karte); box-shadow: var(--schatten-karte); padding: 20px; margin-bottom: 24px; } .paket-post h2 { font-size: 1rem; display: flex; align-items: center; gap: 10px; } .paket-post h2::before { content: ""; flex: none; width: 4px; height: 1.25em; background: var(--accent); } .paket-post header small { color: var(--fg-muted); font-weight: 500; font-size: 12px; }
.paket-post > summary { font-weight: 500; font-size: 14px; } .paket-leer { border: 0; background: var(--bg-sunken); font-size: 14px; } .chat-liste { padding: 20px; gap: 14px; } .blase { font-size: 14px; line-height: 1.6; } .blase.nutzer { background: color-mix(in srgb, var(--accent) 10%, transparent); } .blase.system { background: var(--bg-hover); color: var(--fg-secondary); font-size: 12px; line-height: 18px; } .blase .wer { font-size: 12px; } .chat-eingabe { border-top: 1px solid var(--border-subtle); padding: 14px 16px; } .chat-eingabe textarea { font-size: 14px; border-color: transparent; background: var(--bg-base); } .chat-laeuft { padding: 9px 20px; }
.paket-folien img, .paket-folien button { transition: transform .25s var(--kurve); } .paket-folie { overflow: hidden; } .paket-folie:hover button img { transform: scale(1.04); } .paket-stift { border-radius: var(--ecke); } .paket-reiter button { font-weight: 500; font-size: 14px; border: 0; background: var(--bg-hover); padding: 8px; } .paket-reiter .aktiv { background: var(--bg-elevated); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); color: var(--accent-text); }
.st-leiste { gap: 8px; margin-bottom: 16px; } .st-dateien { font-size: 14px; } .vi { gap: 24px; } .vi-rechts { gap: 24px; } .vi-rechts h2 { font-size: 1rem; display: flex; align-items: center; gap: 10px; } .vi-rechts h2::before { content: ""; width: 4px; height: 1.25em; background: var(--accent); } .vi-phase { font-weight: 500; font-size: 14px; } .vi summary { font-weight: 500; font-size: 14px; } .vi-version button { border: 0; background: var(--bg-hover); font-weight: 500; } .vi-version .aktiv { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-text); } .vi-szene { border-top: 1px solid var(--border-subtle); }
.dp-teil h3 { font-size: .75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-muted); } .dp-text summary { font-weight: 500; } .st-neu form { border: 0; background: var(--bg-sunken); padding: 20px; }

/* ---------------------------------------------------------------- Editor */
.editor { font-family: var(--font-sans); } .editor h3 { font-size: .75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-muted); } .ed-kopf { border-bottom: 0; box-shadow: var(--schatten-karte); z-index: 4; position: relative; } .ed-links, .ed-rechts { border: 0 !important; box-shadow: var(--schatten-karte); } .ed-kopf .knopf { flex: none; } .ed-werkzeug button { border-radius: 50%; } .site .ed-werkzeug button[data-g] { border-radius: var(--ecke); } .ed-ebene.aktiv, .st-zweig.aktiv { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-text); }

/* ---------------------------------------------------------------- Anmeldung */
.login-buehne { min-height: 100vh; display: grid; place-items: center; padding: 16px; } .login-spalte { width: 100%; max-width: 24rem; } .login-kopf { text-align: center; margin-bottom: 24px; } .login-kopf img { width: 48px; height: 48px; margin: 0 auto 12px; display: block; } .login-kopf img.login-logo { width: 200px; height: auto; } .login-kopf h1 { font-weight: 700; font-size: 1.875rem; } .login-kopf h1 span { color: var(--accent); } .login-kopf p { font-size: 14px; color: var(--fg-secondary); margin: 4px 0 0; } .karte.login { max-width: none; padding: 20px; } .login .formular { margin: 0; } .login .knopf { padding: 0 14px; margin: 0; width: 100%; }

/* ---------------------------------------------------------------- Schmal und ruhig */
@media (max-width: 1100px) { .sidebar { position: fixed; box-shadow: var(--schatten-hoch); } .sidebar-schatten { animation: panel-ein 200ms ease-out; } .topbar { padding: 0 12px; } .inhalt { padding: 4px 24px 80px; } }
@media (max-width: 767px) { .inhalt { padding: 4px 12px 80px; } .seitenkopf h1, .paket-kopf h1 { font-size: 1.625rem; } .suchknopf kbd, .suchfeld kbd, .brotkrumen { display: none; } input:not([type=checkbox]):not([type=file]), textarea, select { font-size: 16px !important; } .karte { padding: 16px; } .tabellen-huelle { margin: 0 -16px; } .seitenkopf { align-items: stretch; flex-direction: column; } .kopf-aktionen .knopf, .menue-huelle { flex: 1; } .menue-huelle .knopf { width: 100%; } .menue { left: 0; } .toasts { right: 16px; bottom: 16px; } .fenster-fuss { flex-wrap: wrap; } .fenster-fuss > .leise { width: 100%; } .kacheln { grid-template-columns: 1fr 1fr; gap: 12px; } .kachel { padding: 14px; } .panel-titel { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .shell, [role=tabpanel], dialog[open], dialog[open]::backdrop, .menue, .toast-karte, .marken-lader svg, .marken-lader i, .skeleton::after { animation: none !important; } .tab-leiste[data-gleitet] .tab-pille, details::details-content, .karte-klick { transition: none; } }
.kb-knopf { width: 100%; justify-content: center; height: 42px; } .kb-text { margin: 10px 0 18px; } .kb-passwort { border-top: 1px solid var(--border-subtle); padding-top: 14px; } .kb-passwort summary { font-size: 13px; color: var(--fg-secondary); } .kb-passwort form { padding-top: 14px; }
.nav-wechsel { display: flex; flex: none; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 8px 10px; border: 1px solid var(--border-subtle); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg-primary); transition: border-color .15s, color .15s; } .nav-wechsel:hover { border-color: var(--border-glow); color: var(--accent-text); text-decoration: none; } .nav-wechsel svg { color: var(--accent); } .rand-knopf svg.fa { width: 14px; height: 14px; }
