/* Zentrale 2.0 – Aussehen. Farben/Schriften nur aus tokens.css. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--schwarz);
  color: var(--text-hell);
  font-family: var(--schrift-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3, .titel { font-family: var(--schrift-titel); color: var(--weiss); line-height: 1.3; margin: 0; }
h2 { font-weight: 800; font-size: 24px; }
h3 { font-weight: 700; font-size: 18px; }
a { color: var(--orange); }
button, input, select, textarea { font: inherit; color: inherit; }
.leise { color: var(--text-grau); }
.klein { font-size: 13px; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 20px 10px;
  background: rgba(6, 9, 11, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.logo { height: 28px; width: auto; }
.kopf-titel {
  font-family: var(--schrift-titel); font-weight: 600; text-transform: uppercase;
  letter-spacing: .2em; font-size: 13px; color: var(--orange);
}
.kopf-rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }

main { max-width: 1280px; margin: 0 auto; padding: 20px; }
section.bereich { margin: 8px 0 36px; }
.bereich-kopf { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* Etiketten (Orange-Fläche, schwarze Saira) */
.etikett {
  display: inline-block; font-family: var(--schrift-titel); font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em; font-size: 11px;
  background: var(--orange); color: var(--schwarz);
  padding: 3px 8px; border-radius: 4px; white-space: nowrap;
}
.etikett-leise { background: var(--flaeche); color: var(--text-grau); border: 1px solid var(--linie); }

/* Knöpfe: voll rund, auf Orange schwarze Schrift */
.knopf {
  border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer;
  font-family: var(--schrift-titel); font-weight: 700; font-size: 14px;
  background: var(--orange); color: var(--schwarz);
}
.knopf:hover { background: var(--orange-dunkel); }
.knopf-leise { background: transparent; color: var(--text-hell); border: 1px solid var(--linie); }
.knopf-leise:hover { background: var(--flaeche); }
.knopf-klein { padding: 5px 12px; font-size: 13px; }
.knopf[disabled] { opacity: .45; cursor: default; }

/* Eingaben */
input[type=text], input[type=email], input[type=date], input[type=number], select, textarea {
  width: 100%; background: var(--schwarz); border: 1px solid var(--linie);
  border-radius: var(--ecke-klein); padding: 9px 11px; color: var(--text-hell);
}
input:focus, select:focus, textarea:focus, .knopf:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
label { display: block; font-size: 13px; color: var(--text-grau); margin: 12px 0 4px; }
textarea { min-height: 70px; resize: vertical; }

/* Anmeldung */
.anmelden { max-width: 420px; margin: 12vh auto; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 16px; padding: 28px; }
.anmelden h2 { margin-bottom: 8px; }
.anmelden .knopf { margin-top: 16px; width: 100%; }
.wahl { display: flex; gap: 10px; margin-top: 16px; }
.wahl .knopf { flex: 1; margin: 0; }

/* Meldungen */
.meldung { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--flaeche); border: 1px solid var(--orange); color: var(--text-hell);
  padding: 10px 16px; border-radius: 999px; z-index: 50; max-width: 92vw; }

/* Dialog */
.schleier { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40;
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 4vh 12px; }
.dialog { width: 100%; max-width: 640px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 16px; padding: 22px; }
.dialog-fuss { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 20px; }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .raster2 { grid-template-columns: 1fr; } }

/* ---------- Board ---------- */
.filter { display: flex; gap: 6px; }
.hinweis { border-left: 3px solid var(--orange); background: var(--flaeche); padding: 10px 14px;
  border-radius: var(--ecke-klein); margin-bottom: 14px; font-size: 14px; }
.spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.spalte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--ecke); padding: 14px; min-width: 0; }
.spalte-dran { border-color: rgba(255, 140, 0, .45); }
.spalte-kopf { display: flex; align-items: baseline; justify-content: space-between; }
.spalte-dran .spalte-kopf h3 { color: var(--orange); }
.zahl { font-family: var(--schrift-titel); font-weight: 700; color: var(--text-grau); }
.spalte-unter { margin: 2px 0 10px; }
.mehr { width: 100%; margin-top: 4px; }
.handy-tabs { display: none; }

.karte { display: flex; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  background: var(--schwarz); border: 1px solid var(--linie); border-radius: var(--ecke-klein);
  padding: 10px 12px; margin-bottom: 8px; }
.karte:hover { border-color: var(--text-grau); }
.karte.top { border-color: rgba(255, 140, 0, .55); }
.karte.lange { border-left: 3px solid var(--orange); }
.punkt { flex: 0 0 12px; height: 12px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--text-grau);
  font-size: 13px; line-height: 8px; color: var(--orange); text-align: center; }
.karte.p1 .punkt { background: var(--orange); border-color: var(--orange); }
.karte.p2 .punkt { border-color: var(--orange); }
.karte.top .punkt { background: none; border: 0; width: auto; height: auto; line-height: 1; margin-top: 2px; }
.karte-inhalt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.karte-titel { color: var(--weiss); font-weight: 600; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.karte-meta { color: var(--text-grau); font-size: 13px; }
.faellig-bald { color: var(--text-hell); font-weight: 600; }
.faellig-neu { color: var(--orange); font-weight: 600; }
.fertig-teil { color: var(--text-hell); }
.karte-wartet { font-size: 13px; color: var(--text-hell); border-left: 2px solid var(--orange); padding-left: 6px; }
.karte.erledigt .karte-titel { color: var(--text-grau); text-decoration: line-through; }
.karte.erledigt .punkt { background: var(--text-grau); border-color: var(--text-grau); }

.wartet-kasten { margin-top: 16px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--ecke); padding: 12px 14px; }
.wartet-kasten summary { cursor: pointer; }
.wartet-kasten summary .titel { font-weight: 800; font-size: 18px; }
.wartet-gruppe h3 { font-size: 15px; margin: 14px 0 8px; color: var(--text-hell); }
.karten-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 10px; }

/* Dialog-Inhalte */
.dialog-kopf { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.gemeinsam { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.wartet-hinweis { border-left: 3px solid var(--orange); background: var(--schwarz); padding: 10px 12px;
  border-radius: var(--ecke-klein); margin: 10px 0; display: grid; gap: 6px; justify-items: start; }
.zwischen { font-size: 15px; margin: 18px 0 6px; }
.links { margin: 0; padding-left: 18px; }
.verlauf ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.verlauf li { background: var(--schwarz); border-radius: var(--ecke-klein); padding: 8px 10px; }

@media (max-width: 760px) {
  main { padding: 14px; }
  .handy-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
  .handy-tabs button { flex: 1; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 999px;
    padding: 7px 6px; font-family: var(--schrift-titel); font-weight: 600; font-size: 13px; cursor: pointer; }
  .handy-tabs button.aktiv { background: var(--orange); color: var(--schwarz); border-color: var(--orange); }
  .spalten { grid-template-columns: 1fr; }
  .spalte { display: none; }
  .spalte.handy-aktiv { display: block; }
  .kopf-titel { display: none; }
  .kopf { flex-wrap: wrap; padding-left: 14px; padding-right: 14px; }
  #testhinweis { order: 3; flex-basis: 100%; text-align: center; }
  .bereich-kopf .knopf[style] { margin-left: 0 !important; }
}
