/* ============================================================
   Jäggi Treuhand AG – Aufgabenverwaltung
   style.css – Noble Business Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variablen ─────────────────────────────────────────────── */
:root {
  --c-bg:         #F7F5F1;
  --c-surface:    #FFFFFF;
  --c-border:     #E2DDD5;
  --c-text:       #1A1714;
  --c-muted:      #7A7570;
  --c-accent:     #2C3E6B;
  --c-accent-lt:  #EEF1F8;
  --c-gold:       #B8933A;
  --c-gold-lt:    #FBF5E6;
  --c-danger:     #C0392B;
  --c-danger-lt:  #FDEEEC;
  --c-warn:       #D97706;
  --c-warn-lt:    #FEF3C7;
  --c-success:    #2D6A4F;
  --c-success-lt: #D8F3DC;
  --c-wip:        #1D4E8A;
  --c-wip-lt:     #DBEAFE;
  --c-start:      #92400E;
  --c-start-lt:   #FDE8C8;

  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 2px 12px rgba(26,23,20,0.08);
  --shadow-lg:    0 8px 32px rgba(26,23,20,0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typografie ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p  { color: var(--c-muted); font-size: 0.925rem; }
a  { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-layout {
  display: flex;
  flex: 1;
}

/* ── Sidebar / Navigation ───────────────────────────────────── */
.sidebar {
  width: 240px;
  background: var(--c-text);
  color: #E8E4DC;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-gold);
  display: block;
  line-height: 1.2;
}

.sidebar-brand .brand-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: block;
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.nav-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 1.2rem 1.5rem 0.4rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.sidebar-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

.sidebar-nav a.aktiv {
  color: var(--c-gold);
  background: rgba(184,147,58,0.1);
  border-left-color: var(--c-gold);
  font-weight: 500;
}

.sidebar-nav .nav-icon {
  font-size: 1rem;
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-user {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.sidebar-user strong {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}

.sidebar-user a {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  display: inline-block;
  margin-top: 0.3rem;
  text-decoration: none;
}
.sidebar-user a:hover { color: var(--c-danger); text-decoration: none; }

/* ── Content Area ───────────────────────────────────────────── */
.content {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
  max-width: 1200px;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-header p {
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ── Formulare ──────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(44,62,107,0.1);
  background: #fff;
}

textarea { resize: vertical; min-height: 80px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7570' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover { background: #243459; text-decoration: none; color: #fff; }

.btn-gold {
  background: var(--c-gold);
  color: #fff;
}
.btn-gold:hover { background: #a07d2e; text-decoration: none; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
}
.btn-outline:hover { background: var(--c-accent-lt); text-decoration: none; }

.btn-danger {
  background: var(--c-danger);
  color: #fff;
}
.btn-danger:hover { background: #a93226; text-decoration: none; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--c-muted);
  border: 1.5px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg); text-decoration: none; }

.btn-sm { font-size: 0.78rem; padding: 0.38rem 0.8rem; }
.btn-lg { font-size: 1rem; padding: 0.85rem 1.8rem; }

.btn-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Tabelle ────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--c-bg);
  border-bottom: 2px solid var(--c-border);
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--c-bg); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Priorität */
.prio-1 { background: var(--c-danger-lt); color: var(--c-danger); }
.prio-2 { background: var(--c-warn-lt);   color: var(--c-warn); }
.prio-3 { background: var(--c-wip-lt);    color: var(--c-wip); }

/* Status */
.status-open  { background: #F3F4F6; color: #4B5563; }
.status-start { background: var(--c-start-lt); color: var(--c-start); }
.status-wip   { background: var(--c-wip-lt);   color: var(--c-wip); }
.status-done  { background: var(--c-success-lt); color: var(--c-success); }

/* Fälligkeit */
.badge-danger  { background: var(--c-danger-lt); color: var(--c-danger); }
.badge-warning { background: var(--c-warn-lt);   color: var(--c-warn); }
.badge-info    { background: var(--c-accent-lt); color: var(--c-accent); }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
}
.alert-success { background: var(--c-success-lt); border-color: var(--c-success); color: var(--c-success); }
.alert-danger  { background: var(--c-danger-lt);  border-color: var(--c-danger);  color: var(--c-danger); }
.alert-warning { background: var(--c-warn-lt);    border-color: var(--c-warn);    color: var(--c-warn); }
.alert-info    { background: var(--c-accent-lt);  border-color: var(--c-accent);  color: var(--c-accent); }

/* ── Stats Karten (Dashboard) ───────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .stat-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent);
  display: block;
  margin-bottom: 0.3rem;
}

.stat-card .stat-val.gold  { color: var(--c-gold); }
.stat-card .stat-val.red   { color: var(--c-danger); }
.stat-card .stat-val.green { color: var(--c-success); }

.stat-card .stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}

/* ── Kalender ───────────────────────────────────────────────── */
.kalender-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.kalender-nav h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  min-width: 200px;
  text-align: center;
}

.kalender-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.kalender-kopf {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 0.4rem 0;
}

.kalender-tag {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  min-height: 90px;
  padding: 0.4rem;
  position: relative;
  font-size: 0.78rem;
  transition: background 0.1s;
}

.kalender-tag:hover { background: var(--c-bg); }

.kalender-tag.heute {
  border-color: var(--c-accent);
  background: var(--c-accent-lt);
}

.kalender-tag.leer {
  background: transparent;
  border-color: transparent;
}

.kalender-tag .tag-nr {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.kalender-tag.heute .tag-nr { color: var(--c-accent); }

.kal-aufgabe {
  display: block;
  padding: 2px 5px;
  border-radius: 4px;
  border-left: 3px solid;
  font-size: 0.68rem;
  margin-bottom: 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kal-aufgabe.prio-1 { background: var(--c-danger-lt); border-color: var(--c-danger); color: var(--c-text); }
.kal-aufgabe.prio-2 { background: var(--c-warn-lt);   border-color: var(--c-warn);   color: var(--c-text); }
.kal-aufgabe.prio-3 { background: var(--c-wip-lt);    border-color: var(--c-wip);    color: var(--c-text); }
.kal-aufgabe.erledigt { text-decoration: line-through; opacity: 0.55; }

/* 🔔 Reminder-Glocke auf Aufgaben-Eintrag */
.kal-aufgabe.hat-reminder {
  padding-right: 1.2rem;
  position: relative;
}
.kal-aufgabe.hat-reminder::after {
  content: '🔔';
  font-size: 0.6rem;
  position: absolute;
  top: 1px;
  right: 2px;
  line-height: 1;
}

/* 🔥 Feuer-Markierung: Kalender-Tag hat mind. 1 Reminder */
.kalender-tag.hat-reminder-tag {
  border-color: var(--c-gold);
  box-shadow: inset 0 0 0 1.5px var(--c-gold);
}
.reminder-feuer {
  display: inline-block;
  font-size: 0.7rem;
  margin-right: 2px;
  vertical-align: middle;
}

/* ── Login-Seite ────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A1714 0%, #2C3E6B 100%);
  padding: 1rem;
}

.login-box {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-box .login-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 0.25rem;
}

.login-box .login-sub {
  font-size: 0.8rem;
  color: var(--c-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: block;
}

.login-box .form-group { text-align: left; margin-bottom: 1rem; }

.login-box .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.8rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ── Utility ────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--c-muted); font-size: 0.85rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.erledigt-row td { color: var(--c-muted); }
.erledigt-row td .aufgabe-text { text-decoration: line-through; }

/* Prio-Linie in Tabelle */
.prio-line { display: flex; align-items: center; gap: 0.5rem; }
.prio-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.prio-dot.p1 { background: var(--c-danger); }
.prio-dot.p2 { background: var(--c-warn); }
.prio-dot.p3 { background: var(--c-wip); }

/* ── Mobile / Android & iPhone ──────────────────────────────── */
@media (max-width: 768px) {

  /* Sidebar */
  .sidebar {
    display: none;
    position: fixed;
    z-index: 1000;
    width: 82vw;
    max-width: 300px;
    height: 100%;
    height: 100dvh; /* dynamic viewport height – Android Chrome fix */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar.open { display: flex; }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-overlay.open { display: block; }

  /* Top-Bar */
  .mobile-topbar {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    background: var(--c-text);
    color: var(--c-gold);
    padding: 0.9rem 1rem;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 54px;
  }
  .mobile-topbar .brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-gold);
  }
  .burger-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Content */
  .content {
    padding: 0.9rem;
    width: 100%;
    min-width: 0;
  }

  /* Layout */
  .main-layout {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .page-header {
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: flex-start;
    align-items: flex-start;
  }

  /* Formulare */
  .form-grid {
    grid-template-columns: 1fr;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px; /* verhindert Auto-Zoom auf Android */
    padding: 0.7rem 0.85rem;
  }
  .btn { padding: 0.65rem 1rem; font-size: 0.88rem; touch-action: manipulation; }
  .btn-sm { padding: 0.5rem 0.75rem; font-size: 0.8rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .stat-card .stat-val { font-size: 1.8rem; }

  /* Filter-Bar */
  .filter-bar {
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0.5rem;
  }
  .filter-bar .form-group { min-width: unset; width: 100%; }

  /* Tabelle */
  .table-wrap { font-size: 0.82rem; border-radius: 8px; }
  th { font-size: 0.68rem; padding: 0.6rem 0.6rem; }
  td { padding: 0.65rem 0.6rem; }
  .hide-mobile { display: none; }

  /* Button-Actions in Tabelle: stacken */
  .btn-actions { flex-wrap: wrap; gap: 0.35rem; }

  /* Kalender */
  .kalender-nav { gap: 0.5rem; }
  .kalender-nav h3 { font-size: 1.1rem; min-width: unset; text-align: center; flex: 1; }
  .kalender-grid { grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .kalender-tag {
    min-height: 52px;
    font-size: 0.62rem;
    padding: 0.2rem;
    border-radius: 6px;
  }
  .kalender-tag .tag-nr { font-size: 0.85rem; }
  .kal-aufgabe { font-size: 0.56rem; padding: 1px 3px; border-radius: 3px; }
  .kalender-kopf { font-size: 0.62rem; padding: 0.3rem 0; }

  /* Card */
  .card { padding: 1rem; border-radius: 12px; }
  .card-header { margin-bottom: 0.75rem; padding-bottom: 0.6rem; }

  /* Login */
  .login-box { padding: 1.75rem 1.25rem; }
}

/* Desktop: mobile Topbar ausblenden */
@media (min-width: 769px) {
  .mobile-topbar { display: none; }
  .mobile-overlay { display: none !important; }
}

/* ── Paginierung ────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  align-items: center;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  text-decoration: none;
  transition: background 0.1s;
}
.pagination a:hover { background: var(--c-bg); }
.pagination span.aktiv {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

/* ── Filter-Bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  align-items: flex-end;
}
.filter-bar .form-group { margin: 0; min-width: 160px; }

/* ── Kommentar-Widget ───────────────────────────────────────── */
.kommentar-eintrag {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.kommentar-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.kommentar-meta strong { font-size: 0.85rem; color: var(--c-accent); }
.kommentar-datum { font-size: 0.75rem; color: var(--c-muted); }
.kommentar-loeschen-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.25rem;
  border-radius: 4px;
  transition: color 0.1s;
}
.kommentar-loeschen-btn:hover { color: var(--c-danger); }
.kommentar-text { font-size: 0.875rem; color: var(--c-text); line-height: 1.5; }
.kommentar-eingabe textarea { font-size: 16px; }
.kommentar-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  color: var(--c-muted);
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ── Recurring-Badge ────────────────────────────────────────── */
.recurring-badge { background: #EDE9FE; color: #5B21B6; font-size: 0.7rem; }

/* ── Toast-Animation ────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
