/* Taskpool — Tamedes Design System */

:root {
  /* === Offizielles Tamedes Design-System === */
  /* Brand / Grün + Gold */
  --brand-dark:    #1a3328;    /* nav-bg — Header & Kartenköpfe */
  --brand-dark-2:  #2a5a43;    /* accent — Interaktion */
  --accent:        #2a5a43;
  --accent-mid:    #367052;
  --accent-light:  #EBF4EE;
  --brand-gold:    #b5984e;
  --brand-gold-2:  #8a6820;

  /* Background / Flächen */
  --bg:        #F5F4F0;
  --bg-soft:   #FAFBFA;
  --card:      #FFFFFF;
  --info-bg:   #EBF4EE;        /* zartes Grün für Info-/Akzentboxen */

  /* Text */
  --text:      #1A1917;
  --muted:     #5C5A56;
  --text3:     #9C9A96;
  --on-dark:   #E8E4DC;

  /* Borders */
  --border:        #E2DDD8;
  --border-strong: #C8C3BC;

  /* Status */
  --ok:        #2a5a43;
  --ok-bg:     #EBF4EE;
  --warn:      #8a6820;
  --warn-bg:   #F7EFD8;
  --danger:    #a83232;
  --danger-bg: #f3d6d6;
  --info:      #2a5a43;
  --info-bg:   #EBF4EE;

  /* Shadow */
  --shadow:    0 4px 16px rgba(26, 51, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(26, 51, 40, 0.12);

  /* Sizing — Design-System: Karten 10px, Inputs/Buttons 6px */
  --radius:    8px;
  --radius-lg: 10px;
  --gap:       1.5rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Jost', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.4rem; font-weight: 700; margin: 0 0 0.5rem; letter-spacing: .01em; color: var(--brand-dark); }
h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.7rem; font-weight: 700; margin: 0 0 0.6rem; color: var(--brand-dark); }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }

/* Gold-Trennlinie (Design-System) */
.gold-line { height: 3px; background: linear-gradient(90deg, #8a6820, #b5984e, #e8d9b0, #b5984e, #8a6820); }
p  { margin: 0.5rem 0; }
a  { color: var(--brand-gold-2); }

.hidden { display: none !important; }
.hint  { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.error { color: var(--danger); font-weight: 600; margin: 0.5rem 0; }
.status { color: var(--muted); font-size: 0.95rem; }

/* =========== Brand Header (Design-System) =========== */
.brand-header {
  background: #1a3328;
  color: var(--on-dark);
  padding: 0 28px;
  min-height: 74px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}
.brand-header .brand {
  display: flex; align-items: center;
}
/* Logo direkt auf Grün (transparentes Gold-Logo) */
.brand-header .header-logo {
  height: 50px; width: auto; display: block;
}
.brand-header .header-divider { display: none; }
/* Projekt-Titel = logo-sub */
.brand-header .header-title {
  font-size: 14px; font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #e8d9b0;
  border-left: 1px solid #3a5a48;
  padding-left: 20px; margin-left: 20px;
}
/* Fallback-Schriftzug, falls logo.png fehlt */
.brand-header .brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem; font-weight: 700;
  letter-spacing: 0.04em; line-height: 1;
  color: var(--on-dark);
}
.brand-header .brand-name .dot { color: var(--brand-gold); }
.brand-header .header-actions {
  display: flex; align-items: center; gap: 0.5rem;
}
.brand-header .header-user {
  font-size: 12px; font-weight: 600; color: #e8d9b0;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-right: 0.4rem;
}
/* Header-Buttons im nav-link-Stil */
.brand-header .header-actions button {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 5px;
}
.brand-header .header-actions button:hover {
  color: #f5f0e8;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.1);
}

/* =========== Buttons (Design-System) =========== */
button {
  font: inherit; font-size: 0.95rem; font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
}
button:hover { background: var(--bg); border-color: var(--border-strong); }
button:active { transform: translateY(1px); }

button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
button.primary:hover {
  background: var(--accent-mid);
  border-color: var(--accent-mid);
}

button.gold {
  background: var(--brand-gold);
  color: #fff;
  border-color: var(--brand-gold);
  font-weight: 600;
}
button.gold:hover { background: var(--brand-gold-2); border-color: var(--brand-gold-2); }

button.ghost  { background: transparent; border-color: var(--border); }
button.danger { background: #fff; color: var(--danger); border-color: var(--danger-bg); }
button.danger:hover { background: var(--danger-bg); }

button.big {
  font-size: 1.15rem;
  padding: 1rem 1.5rem;
}

/* =========== Inputs =========== */
label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
input, textarea, select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit; font-size: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--brand-gold);
  outline-offset: -1px;
  border-color: var(--brand-gold);
}

/* =========== Cards =========== */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--brand-gold);
}
.card.plain { border-top: 0; }
.card.narrow { max-width: 520px; width: 100%; }
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1rem;
}

/* =========== Splash (Startseite) =========== */
.splash {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem;
}
.splash-card {
  background: var(--card);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--brand-gold);
  text-align: center;
  max-width: 520px; width: 100%;
}
.splash-card h1 { font-size: 2rem; }
.splash-buttons {
  display: flex; flex-direction: column; gap: 0.85rem;
  margin: 1.75rem 0 1rem;
}
.big-button {
  display: block;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: var(--on-dark);
  text-decoration: none;
  border: 1px solid var(--brand-dark);
  transition: background 0.12s, border-color 0.12s;
}
.big-button:hover {
  background: var(--brand-dark-2);
  border-color: var(--brand-gold);
}
.big-button-title { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; }
.big-button-sub   { display: block; font-size: 0.95rem; opacity: 0.85; margin-top: 0.3rem; }

/* =========== Overlay =========== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(15, 30, 22, 0.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 1rem;
}

/* =========== Zentrale Layout (alt — wird nur noch von Redirect-Stub verwendet) =========== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--gap);
  padding: var(--gap);
  align-items: start;
}
@media (max-width: 980px) { .main-grid { grid-template-columns: 1fr; } }

/* =========== Peer-to-Peer App Layout =========== */
.main-tabs {
  display: flex; gap: 0.25rem;
  padding: 0 var(--gap);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.main-tabs .tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  font-size: 1rem; font-weight: 600;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
}
.main-tabs .tab:hover { color: var(--brand-dark); background: var(--bg-soft); }
/* Aktiver Tab: gruener Hintergrund -> heller Text (gut lesbar) */
.main-tabs .tab.active {
  background: var(--brand-dark);
  color: var(--on-dark);
  border-bottom-color: var(--brand-gold);
}
.main-tabs .tab.active:hover { background: var(--brand-dark); color: var(--on-dark); }
.tab-ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.tab-badge {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  background: var(--brand-gold);
  color: #fff;
  border-radius: 12px;
  margin-left: 0.4rem;
}

.app-main { padding: var(--gap); }
.tab-pane { display: block; }

.pane-tabs {
  display: flex; gap: 0.4rem;
  margin-bottom: 1rem;
}
.pane-tabs .tab {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}
.pane-tabs .tab.active {
  background: var(--brand-dark);
  color: var(--on-dark);
  border-color: var(--brand-dark);
}

.create-toggle {
  display: inline-flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.create-toggle button {
  border: 0; border-radius: 0;
  padding: 0.65rem 1.2rem;
  font-size: 1rem; font-weight: 600;
  background: transparent;
  color: var(--muted);
}
.create-toggle button.active {
  background: var(--brand-dark);
  color: var(--on-dark);
}

.badge.manager { background: var(--brand-dark); color: var(--brand-gold); margin-left: 0.5rem; }

.check-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.check-row input { width: auto; }
.check-row span { font-weight: normal; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 0.95rem; }

.task-meta-line {
  font-size: 0.85rem; color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
}
.task-meta-line strong { color: var(--brand-dark); font-weight: 600; }

@media (max-width: 720px) {
  .main-tabs { padding: 0 0.5rem; }
  .main-tabs .tab { padding: 0.65rem 0.8rem; font-size: 0.9rem; }
  .app-main { padding: 1rem 0.75rem; }
}

/* =========== Tabs =========== */
.input-mode-tabs, .filter-tabs {
  display: flex; gap: 0.4rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.tab {
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
}
.tab:hover { color: var(--text); border-color: var(--border); }
.tab.active {
  background: var(--brand-dark);
  color: var(--on-dark);
  border-color: var(--brand-dark);
}

/* =========== Assignee Picker (gross, unten, dick) =========== */
.assignee-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--info-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand-gold);
}
.assignee-block label {
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.1em;
}
.assignee-block select {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.95rem 1.1rem;
  background: #fff;
}

/* =========== Aufgaben-Liste (Zentrale) =========== */
.task-list { list-style: none; padding: 0; margin: 0; max-height: 72vh; overflow-y: auto; }
.task-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-soft);
}
.task-item.done { background: #f0ede4; opacity: 0.7; }
.task-item .task-main { flex: 1; min-width: 0; }
.task-item .task-title { font-weight: 600; font-size: 1.05rem; word-wrap: break-word; }
.task-item .task-desc { color: var(--muted); margin-top: 0.3rem; word-wrap: break-word; white-space: pre-wrap; }
.task-item .task-meta {
  color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge.open      { background: var(--warn-bg);   color: var(--warn); }
.badge.done      { background: var(--ok-bg);     color: var(--ok); }
.badge.all       { background: var(--info-bg);   color: var(--brand-gold-2); }
.badge.assigned  { background: var(--ok-bg);     color: var(--ok); }

/* =========== Aufgaben-Board (Terminal) =========== */
.task-board {
  padding: var(--gap);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.task-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.65rem;
  border-left: 6px solid var(--brand-dark);
  transition: box-shadow 0.15s, transform 0.1s;
}
.task-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.task-card.allgemein { border-left-color: var(--brand-gold); }
.task-card h3 { font-size: 1.25rem; word-wrap: break-word; color: var(--brand-dark); }
.task-card .task-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
}
.task-card .task-desc {
  color: var(--text); word-wrap: break-word; white-space: pre-wrap;
  font-size: 1rem;
  margin: 0;
}
/* Footer klebt IMMER unten — egal ob Beschreibung lang, kurz oder leer */
.task-card .task-footer {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-top: 0.5rem;
}
.task-card .for-whom {
  font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.task-card .for-whom.allgemein { color: var(--brand-gold-2); }
.task-card .done-btn { font-size: 1.05rem; padding: 0.9rem; }

.empty {
  text-align: center; color: var(--muted);
  padding: 4rem 1rem; grid-column: 1 / -1;
}
.empty h2 { color: var(--muted); font-weight: 500; }

/* =========== Mitarbeiter-Auswahl (Login) =========== */
.emp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem; margin: 1.25rem 0;
}
.emp-btn {
  padding: 1.2rem;
  font-size: 1.1rem; font-weight: 600;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--brand-dark);
}
.emp-btn:hover {
  background: var(--brand-dark);
  color: var(--on-dark);
  border-color: var(--brand-dark);
}

/* =========== PIN-Pad =========== */
.pin-display {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 2.2rem; letter-spacing: 0.5rem;
  text-align: center;
  padding: 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  min-height: 3.4rem;
  margin: 1rem 0;
  background: var(--bg-soft);
  color: var(--brand-dark);
}
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.pin-key {
  padding: 1.3rem 0;
  font-size: 1.5rem; font-weight: 600;
  background: #fff;
}
.pin-key:hover { background: var(--bg); }

/* =========== Mikrofon-Buttons =========== */
/* Inline-Variante (klein, neben Label oder Textarea) */
.label-with-mic {
  display: flex; justify-content: space-between; align-items: center;
  margin: 1rem 0 0.5rem;
}
.mic-inline {
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  background: var(--brand-dark);
  color: var(--on-dark);
  border-color: var(--brand-dark);
}
.mic-inline:hover { background: var(--brand-dark-2); border-color: var(--brand-gold); }
.mic-inline.recording {
  background: var(--danger);
  border-color: var(--danger);
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* =========== Drop-Zone =========== */
.drop-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg-soft);
}
.drop-zone.drag-over {
  border-color: var(--brand-gold);
  background: var(--info-bg);
}
.drop-zone p { margin: 0.4rem 0; }

/* Datei-Anhang-Anzeige (im Formular) */
.attachment-list {
  margin-top: 0.75rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.attachment {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: var(--info-bg);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.attachment .att-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment .att-size { color: var(--muted); font-size: 0.85rem; }
.attachment button { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
.attachment.shared-att { background: linear-gradient(180deg, #fef3d4 0%, var(--info-bg) 100%); border-left: 3px solid var(--brand-gold); }
.attachment .att-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-gold-2);
  background: rgba(255,255,255,0.6);
  padding: 0.15rem 0.5rem; border-radius: 10px;
}

/* Anhang-Links in Task-Karten und Task-Liste */
.task-atts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.att-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: var(--info-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--brand-dark);
  font-size: 0.9rem; font-weight: 500;
  word-break: break-all;
}
.att-link:hover { background: #f8e9c0; border-color: var(--brand-gold); }
.att-link .att-size { color: var(--muted); font-weight: 400; font-size: 0.82rem; }

/* =========== Mitarbeiter-Liste =========== */
.employee-list { list-style: none; padding: 0; margin: 0; }
.employee-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border); gap: 0.5rem;
}
.employee-list li:last-child { border-bottom: none; }

/* =========== Popup-Flash =========== */
.popup-flash .card { animation: flash 0.6s ease-out 2; }
@keyframes flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 160, 98, 0); }
  50%      { box-shadow: 0 0 0 14px rgba(196, 160, 98, 0.4); }
}

/* =========== Hinweise / Infos =========== */

/* In der Zentrale: kompakter Bereich oberhalb des Haupt-Grids */
.hinweise-section {
  margin: var(--gap) var(--gap) 0;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--brand-gold);
}
.hinweise-section h3 {
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}
.hinweise-section .h-text-row {
  display: flex; gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.75rem;
}
.hinweise-section .h-text-row textarea {
  flex: 1; min-height: 2.6rem; resize: vertical;
}
.hinweise-section .h-text-row .mic-inline {
  flex-shrink: 0; padding: 0.5rem 0.85rem; font-size: 1.2rem;
}
.hinweise-section .h-time-row {
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
}
.hinweise-section .h-time-row input[type="datetime-local"] {
  width: 200px;
}
@media (max-width: 720px) {
  .hinweise-section .h-time-row { flex-direction: column; align-items: stretch; }
  .hinweise-section .h-time-row input[type="datetime-local"] { width: 100%; }
  .hinweise-section .h-time-row .quick-buttons { justify-content: flex-start; }
}
.hinweise-section .quick-buttons {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.hinweise-section .quick-buttons button {
  font-size: 0.85rem; padding: 0.4rem 0.7rem;
}
.hinweise-section .active-list {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.hinweise-section .active-list li {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--info-bg);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  border-left: 3px solid var(--brand-gold);
}
.hinweise-section .active-list .h-expires {
  color: var(--muted); font-size: 0.82rem;
}

/* Auf dem Terminal: prominenter Banner ueber dem Task-Board */
.hinweise-banner {
  margin: var(--gap) var(--gap) 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.hinweis-card {
  background: linear-gradient(180deg, #fef3d4 0%, var(--info-bg) 100%);
  border-left: 6px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 1rem;
}
.hinweis-card .h-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.hinweis-card .h-body { flex: 1; min-width: 0; }
.hinweis-card .h-text {
  font-size: 1.1rem; font-weight: 600;
  color: var(--brand-dark);
  white-space: pre-wrap; word-wrap: break-word;
  margin: 0;
}
.hinweis-card .h-meta {
  font-size: 0.85rem; color: var(--muted);
  margin-top: 0.3rem;
}

/* =========== Toast =========== */
#toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: var(--brand-dark); color: var(--on-dark);
  padding: 0.9rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  font-size: 1rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-0.5rem); }
#toast.ok    { border-left: 4px solid var(--ok); }
#toast.err   { border-left: 4px solid var(--danger); }

/* =========== Section-Header in Karten =========== */
.section-title {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-title .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand-dark); color: var(--brand-gold);
  font-size: 0.95rem; font-weight: 700;
}

/* =================================================================
   PORTO-DESIGN ERWEITERUNG (Nachweise-Look)
   ================================================================= */

/* ---------- Öffentliche Startseite ---------- */
.welcome-screen {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(120% 90% at 50% 0%, #2a5a43 0%, #1a3328 55%, #14211b 100%),
    #1a3328;
}
.welcome-card {
  background: var(--card);
  border-radius: 18px;
  padding: 3rem 2.5rem 2.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  border-top: 5px solid var(--brand-gold);
  text-align: center;
  max-width: 460px; width: 100%;
}
.welcome-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-dark);
  padding-left: 0.14em;
}
.welcome-logo .dot { color: var(--brand-gold); }
.welcome-divider {
  width: 64px; height: 3px; margin: 0.85rem auto 0.6rem;
  background: var(--brand-gold);
}
.welcome-sub {
  font-size: 0.95rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.welcome-text { color: var(--text); margin: 1.5rem 0; line-height: 1.6; }
.welcome-btn { width: 100%; }
.welcome-foot { color: var(--muted); font-size: 0.82rem; margin-top: 1.25rem; }

/* ---------- Brand-Wordmark im Header (Porto) ---------- */
.brand-header .brand-name {
  font-family: Georgia, "Times New Roman", serif;
}

/* ---------- Porto-Karte (grüner Kopf-Balken + Body) ---------- */
.porto-card { padding: 0; overflow: hidden; border-top: 0; }
.porto-card-head {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--brand-dark);
  color: var(--on-dark);
  padding: 1rem 1.4rem;
}
.porto-card-head h2 { margin: 0; color: var(--on-dark); font-size: 1.2rem; }
.porto-card-head .step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
  color: var(--brand-gold);
  font-weight: 700; font-size: 1rem;
}
.porto-card-head .step-badge.gold-badge {
  background: var(--brand-gold); color: #fff; border-color: var(--brand-gold);
}
.porto-card-head .head-right-btn {
  margin-left: auto;
  background: transparent; color: var(--on-dark);
  border: 1px solid rgba(245,241,232,0.4);
  padding: 0.45rem 0.9rem; font-size: 0.9rem;
}
.porto-card-head .head-right-btn:hover { border-color: var(--brand-gold); background: rgba(245,241,232,0.1); }
.porto-card-body { padding: 1.5rem; }

.block-btn { width: 100%; margin-top: 1.25rem; }

/* ---------- Mikrofon-Button links + Icon ---------- */
.label-with-mic {
  display: flex; align-items: center; gap: 0.85rem;
  margin: 1rem 0 0.5rem;
}
.mic-inline {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; font-weight: 600;
  padding: 0.45rem 0.9rem;
  background: var(--brand-dark); color: var(--on-dark);
  border-color: var(--brand-dark);
  flex-shrink: 0;
}
.mic-inline:hover { background: var(--brand-dark-2); border-color: var(--brand-gold); }
.mic-inline.recording { background: var(--danger); border-color: var(--danger); animation: pulse 1.2s infinite; }
.mic-ico { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Drop-Zone mit Icon ---------- */
.drop-ico {
  width: 2.2rem; height: 2.2rem; display: block; margin: 0 auto 0.5rem;
  fill: none; stroke: var(--brand-gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Datums-Filter ---------- */
.date-range {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--info-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand-gold);
  margin-bottom: 1rem;
}
.date-range .dr-label { font-size: 0.85rem; font-weight: 700; color: var(--brand-dark); letter-spacing: 0.04em; text-transform: uppercase; }
.date-range input[type="date"] { width: auto; padding: 0.5rem 0.6rem; }
.date-range .dr-sep { color: var(--muted); }
.date-range .dr-quick { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-left: auto; }
.date-range .dr-quick button { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
.date-range .dr-quick button.active { background: var(--brand-dark); color: var(--on-dark); border-color: var(--brand-dark); }

/* ---------- Hinweis-Schnellauswahl ---------- */
.quick-buttons.spaced {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem;
  margin: 0.75rem 0 0;
}
.quick-buttons.spaced .quick-label { font-size: 0.85rem; color: var(--muted); margin-right: 0.25rem; }
.quick-buttons.spaced button { padding: 0.5rem 0.9rem; font-size: 0.9rem; }

/* ---------- Inline-Reihe (Input + Button) ---------- */
.inline-row { display: flex; gap: 0.6rem; align-items: stretch; }
.inline-row input { flex: 1; }
.soft-hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ---------- Anhang-Links (Download) ---------- */
.task-atts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.att-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--info-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: var(--brand-dark);
  font-size: 0.9rem; font-weight: 600;
  word-break: break-all;
}
.att-link:hover { background: #f8e9c0; border-color: var(--brand-gold); }
.att-link .att-size { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.att-link svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Hinweis-Archiv ---------- */
.archive-list { list-style: none; padding: 0; margin: 0; max-height: 60vh; overflow-y: auto; }
.archive-list li {
  padding: 0.75rem 0.9rem; margin-bottom: 0.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--border-strong);
  background: var(--bg-soft);
}
.archive-list li.active { border-left-color: var(--ok); background: #f3f9f3; }
.archive-list li.expired { opacity: 0.7; }
.archive-list .a-text { font-weight: 600; white-space: pre-wrap; word-wrap: break-word; }
.archive-list .a-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.archive-list .a-state { font-weight: 700; }
.archive-list .a-state.on { color: var(--ok); }
.archive-list .a-state.off { color: var(--muted); }

/* ---------- Badge: Manager ---------- */
.badge.manager { background: var(--brand-dark); color: var(--brand-gold); margin-left: 0.5rem; }

/* ---------- Profil / Verwaltung Reihen ---------- */
.check-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.check-row input { width: auto; }
.check-row span { font-weight: normal; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 0.95rem; }

/* ---------- Task-Meta-Zeile auf Karten ---------- */
.task-meta-line { font-size: 0.85rem; color: var(--muted); margin: 0; }
.task-meta-line strong { color: var(--brand-dark); font-weight: 600; }

/* ---------- Echtes Logo (Bild) ---------- */
.welcome-logo-img {
  display: block;
  max-width: 320px; width: 100%; height: auto;
  margin: 0 auto 0.5rem;
}
@media (max-width: 720px) {
  .brand-header .header-logo { height: 40px; }
  .brand-header .header-title { font-size: 1rem; letter-spacing: 0.16em; }
  .welcome-logo-img { max-width: 240px; }
}

/* =================================================================
   LOGIN — offizielles Tamedes-Layout (Belbo-Stil)
   ================================================================= */
.auth-screen {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
}
.auth-card {
  background: var(--surface);
  border-radius: 16px;
  border-top: 3px solid var(--brand-gold);
  box-shadow: 0 18px 50px rgba(26,51,40,0.14);
  padding: 2rem 2.25rem 2.25rem;
  width: 100%; max-width: 380px;
}
/* Logo auf dunkelgrünem Panel (logo-stage) */
.auth-card .logo-stage {
  background: #1a3328;
  border-radius: 10px;
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: center;
}
.auth-card .auth-logo { width: 100%; max-width: 220px; height: auto; display: block; }
.auth-card .auth-logo-fallback {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem; font-weight: 700; letter-spacing: .04em; color: #e8d9b0;
}
.auth-card .auth-logo-fallback .dot { color: var(--brand-gold); }

.auth-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem; font-weight: 700;
  color: #1a3328; text-align: center;
  margin: 1.25rem 0 0.15rem;
}
.auth-sub {
  text-align: center;
  color: var(--brand-gold);
  font-size: 13px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.auth-step { display: block; }
.auth-label {
  display: block;
  font-size: 14px; font-weight: 600;
  color: #1a3328;
  letter-spacing: 0; text-transform: none;
  margin: 0 0 0.6rem;
}
.pin-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.6rem;
  color: #1a3328;
  background: var(--surface);
}
.pin-input:focus { outline: none; border-color: var(--brand-gold); box-shadow: 0 0 0 3px rgba(181,152,78,0.15); }

.auth-btn {
  width: 100%;
  margin-top: 1rem;
  background: #1a3328;
  color: #fff;
  border: 1px solid #1a3328;
  border-radius: 6px;
  padding: 0.85rem;
  font-size: 1rem; font-weight: 600;
}
.auth-btn:hover { background: #234234; border-color: #234234; }

.auth-back-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.85rem;
}
.auth-back-row .ghost.small { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
.auth-greet { font-weight: 600; color: #1a3328; }

/* Namensauswahl im Auth-Card */
.auth-card .emp-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin: 0.5rem 0 0; }
.auth-card .emp-btn {
  background: var(--bg); border: 1px solid var(--border);
  color: #1a3328; font-weight: 600; padding: 0.9rem;
}
.auth-card .emp-btn:hover { background: #1a3328; color: #fff; border-color: #1a3328; }
