/* rockinbear Cloud – gleiche Tonwelt wie rockinCRM (DESIGN.md), aber ohne Seitenleiste. */
:root {
  --bg: #f3f1ed;
  --card: #ffffff;
  --ink: #232326;
  --muted: #75767d;
  --hair: rgba(35, 35, 38, .07);
  --fill: rgba(35, 35, 38, .045);
  --fill-hover: rgba(35, 35, 38, .075);
  --accent: #8f2a2a;
  --accent-dark: #6f1f1f;
  --taupe: #dcd7cf;
  --taupe-hover: #cdc8bf;
  --ok: #2f7a54;
  --err: #a8372c;
  --ring: 0 0 0 3px rgba(143, 42, 42, .18);
  --soft: 0 1px 2px rgba(35, 35, 38, .04), 0 8px 24px -12px rgba(35, 35, 38, .10);
  --r: 10px;
  --font: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 .9rem/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
button, input, select { font: inherit; color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(243, 241, 237, .88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hair); }
.kopf-innen { max-width: 1180px; margin: 0 auto; padding: 10px 22px; display: flex; align-items: center; gap: 22px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.marke img { width: 30px; height: 30px; object-fit: contain; }
.marke span em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.nav a:hover { background: var(--fill); color: var(--ink); }
.nav a.aktiv { background: var(--card); color: var(--ink); box-shadow: var(--soft); }
.wer { display: flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; }
.wer form { margin: 0; }

.seite { max-width: 1180px; margin: 0 auto; padding: 26px 22px 80px; }
.krumen { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.krumen a:hover { color: var(--accent); }
.krumen .trenn { opacity: .5; }
h1 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 4px; }
h2 { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.unter { color: var(--muted); margin: 0 0 18px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 0; border-radius: 8px; background: var(--fill);
  cursor: pointer; white-space: nowrap; transition: background .15s ease, transform .1s ease; }
.knopf:hover { background: var(--fill-hover); color: var(--ink); }
.knopf:active { transform: scale(.97); }
.knopf.haupt { background: var(--taupe); font-weight: 500; }
.knopf.haupt:hover { background: var(--taupe-hover); }
.knopf.gefahr { color: var(--err); }
.knopf.klein { padding: 5px 10px; font-size: .82rem; }
.knopf[disabled] { opacity: .45; pointer-events: none; }
.knopf svg { width: 16px; height: 16px; flex: none; }

/* Karten und Raster */
.karte { background: var(--card); border-radius: 12px; box-shadow: var(--soft); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kachel { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; background: var(--card); border-radius: 12px; box-shadow: var(--soft);
  transition: transform .15s ease, box-shadow .15s ease; min-height: 104px; }
.kachel:hover { transform: translateY(-1px); color: inherit; box-shadow: 0 1px 2px rgba(35,35,38,.05), 0 14px 30px -14px rgba(35,35,38,.2); }
.kachel .t { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.kachel .z { color: var(--muted); font-size: .82rem; margin-top: auto; }
.kachel .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--fill); display: grid; place-items: center; color: var(--accent); }
.kachel .ico svg { width: 18px; height: 18px; }

/* Fach-Reiter */
.reiter { display: flex; gap: 4px; flex-wrap: wrap; margin: 16px 0 18px; padding: 4px; background: var(--fill); border-radius: 10px; width: fit-content; max-width: 100%; }
.reiter a { padding: 6px 12px; border-radius: 7px; color: var(--muted); white-space: nowrap; }
.reiter a:hover { color: var(--ink); }
.reiter a.aktiv { background: var(--card); color: var(--ink); box-shadow: var(--soft); }
.reiter .n { font-size: .75rem; margin-left: 5px; color: var(--muted); }

/* Listen */
.liste { width: 100%; border-collapse: collapse; }
.liste th { text-align: left; font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.liste td { padding: 9px 12px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.liste tr:last-child td { border-bottom: 0; }
.liste tbody tr:hover { background: rgba(35,35,38,.02); }
.liste tr.gewaehlt { background: rgba(143,42,42,.05); }
.liste .rechts { text-align: right; }
.liste .grau { color: var(--muted); font-size: .84rem; }
.liste .wahl { width: 36px; }
.liste .name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.liste .name a { overflow-wrap: anywhere; }
.liste .name svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.liste .name .ordner svg { color: var(--accent); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.marker { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: var(--muted); }
.marker.warte { background: rgba(176, 125, 30, .12); color: #8a6114; }
.leer { padding: 38px 20px; text-align: center; color: var(--muted); }

/* Werkzeugleiste */
.werkzeug { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-bottom: 1px solid var(--hair); }
.werkzeug .platz { flex: 1; }
.werkzeug .auswahl { color: var(--muted); font-size: .84rem; }

/* Ablagezone */
.zone { position: relative; }
.zone.ueber::after { content: 'Dateien hier ablegen'; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px;
  background: rgba(243,241,237,.92); border: 2px dashed var(--accent); color: var(--accent); font-weight: 600; font-size: 1.05rem; z-index: 5; }

/* Fortschritt */
.fortschritt { position: fixed; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 40px)); background: var(--card); border-radius: 12px;
  box-shadow: 0 2px 6px rgba(35,35,38,.08), 0 18px 40px -16px rgba(35,35,38,.3); z-index: 40; overflow: hidden; }
.fortschritt[hidden] { display: none; }
.fortschritt .k { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 600; border-bottom: 1px solid var(--hair); }
.fortschritt .inhalt { max-height: 260px; overflow: auto; }
.fz { padding: 9px 14px; border-bottom: 1px solid var(--hair); font-size: .84rem; }
.fz .n { display: flex; justify-content: space-between; gap: 10px; }
.fz .n span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balken { height: 4px; background: var(--fill); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.fz.fertig .balken i { background: var(--ok); }
.fz.fehler { color: var(--err); }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.feld label { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eingabe, select.eingabe { padding: 9px 12px; border: 0; border-radius: 8px; background: var(--fill); width: 100%; }
.eingabe:focus { outline: none; box-shadow: var(--ring); background: var(--card); }
.meldung { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.meldung.ok { background: rgba(47,122,84,.1); color: var(--ok); }
.meldung.err { background: rgba(168,55,44,.1); color: var(--err); }

/* Anmeldung */
.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.anmeldung .karte { width: min(380px, 100%); padding: 30px 30px 26px; }
.anmeldung .marke { justify-content: center; margin-bottom: 22px; font-size: 1.15rem; }
.anmeldung .marke img { width: 44px; height: 44px; }

/* Assistent */
.schritte { display: grid; gap: 14px; }
.schritt { padding: 18px 20px; }
.schritt h3 { margin: 0 0 12px; font-size: 1rem; }
.schritt h3 .nr { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fill); font-size: .78rem; margin-right: 8px; }
.wahlen { display: flex; flex-wrap: wrap; gap: 6px; }
.wahlen button { padding: 7px 12px; border: 0; border-radius: 8px; background: var(--fill); cursor: pointer; }
.wahlen button:hover { background: var(--fill-hover); }
.wahlen button.an { background: var(--ink); color: #fff; }
.abwurf { display: block; border: 2px dashed rgba(35,35,38,.18); border-radius: 12px; padding: 34px 20px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.abwurf:hover, .abwurf.ueber { border-color: var(--accent); background: rgba(143,42,42,.03); color: var(--ink); }

/* Verwaltung */
.matrix { overflow-x: auto; }
.matrix table { border-collapse: collapse; min-width: 100%; }
.matrix th, .matrix td { padding: 8px 10px; border-bottom: 1px solid var(--hair); text-align: left; white-space: nowrap; }
.matrix th { font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.matrix select { padding: 5px 8px; border: 0; border-radius: 6px; background: var(--fill); }

@media (max-width: 720px) {
  .kopf-innen { flex-wrap: wrap; gap: 8px 14px; padding: 10px 14px; }
  .nav { order: 3; flex-basis: 100%; }
  .seite { padding: 18px 14px 80px; }
  .liste .breit { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
