/* =====================================================================
   Zeiterfassung – "Nachtschicht"
   Dunkles Glas-Design. Signatur: die Zeit leuchtet.
   Akzente: Cyan-Grünspan (aktiv) · Bernstein (Pause) · Koralle (Ende)
   ===================================================================== */
:root {
  color-scheme: dark;
  --bg-0:      #070B0E;
  --bg-1:      #0B1116;
  --glass:     rgba(20, 32, 40, 0.55);
  --glass-2:   rgba(28, 44, 54, 0.65);
  --stroke:    rgba(120, 200, 210, 0.14);
  --stroke-2:  rgba(120, 200, 210, 0.28);
  --ink:       #E6F0F2;
  --ink-soft:  #8CA3AB;
  --ink-faint: #5C7078;
  --cyan:      #2FE6C4;
  --cyan-dim:  #1BAF95;
  --amber:     #F5B843;
  --coral:     #FF6B5E;
  --violet:    #8B7BFF;
  --glow-cyan:  0 0 24px rgba(47, 230, 196, 0.35);
  --glow-amber: 0 0 24px rgba(245, 184, 67, 0.30);
  --glow-coral: 0 0 24px rgba(255, 107, 94, 0.30);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-0:      #EAF0F1;
  --bg-1:      #F4F8F8;
  --glass:     rgba(255, 255, 255, 0.72);
  --glass-2:   rgba(255, 255, 255, 0.85);
  --stroke:    rgba(20, 60, 66, 0.12);
  --stroke-2:  rgba(20, 60, 66, 0.22);
  --ink:       #10242A;
  --ink-soft:  #46626A;
  --ink-faint: #7B939B;
  --cyan:      #0F9E86;
  --cyan-dim:  #0C7D6A;
  --amber:     #C4881E;
  --coral:     #D8483B;
  --shadow: 0 8px 32px rgba(20, 60, 66, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.55; color: var(--ink);
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(47, 230, 196, 0.10), transparent 60%),
    radial-gradient(900px 600px at 108% 12%, rgba(139, 123, 255, 0.10), transparent 55%),
    var(--bg-0);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h2, h3 { font-weight: 650; letter-spacing: -0.015em; margin: 0 0 .75rem; }
small { color: var(--ink-soft); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--cyan); }
.neg { color: var(--coral); }
.empty { color: var(--ink-faint); text-align: center; padding: 1.75rem !important; }
.center { text-align: center; }
.hint { color: var(--ink-soft); font-size: .85rem; }

.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex-shrink: 0;
  background: linear-gradient(180deg, #0E1A20, #080F13);
  border-right: 1px solid rgba(120,200,210,0.12); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; padding: 1.1rem .85rem;
  position: sticky; top: 0; height: 100vh;
  /* eigene, theme-unabhängige Textfarben (Sidebar ist immer dunkel) */
  --nav-text: #A9BEC6;
  --nav-text-hover: #EAF6F4;
  --nav-group: #5E7178;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.02rem; margin-bottom: 1.1rem; letter-spacing: -0.01em; color: #F0F8F6; }
.brand-mark {
  font-size: 1.1rem; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 10px; background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: #04110E; box-shadow: var(--glow-cyan); flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-mark.big { width: 72px; height: 72px; font-size: 2rem; border-radius: 20px; box-shadow: 0 8px 30px rgba(47,230,196,0.45); }
.brand-mark.big svg { width: 40px; height: 40px; }
.nav { display: flex; flex-direction: column; gap: .04rem; flex: 1; overflow-y: auto; min-height: 0; padding-right: .2rem; }
.nav-group { margin: .7rem .6rem .25rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--nav-group); }
.nav-link {
  color: var(--nav-text); padding: .44rem .6rem; border-radius: 9px; font-weight: 500;
  display: flex; align-items: center; gap: .6rem; position: relative;
  transition: all .16s ease; font-size: .86rem; white-space: nowrap;
}
.nav-link span { overflow: hidden; text-overflow: ellipsis; }
.nav-ico { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.nav-link span { line-height: 1.2; }
.nav-link:hover { background: rgba(255,255,255,0.06); color: var(--nav-text-hover); text-decoration: none; }
.nav-link.active { background: linear-gradient(90deg, rgba(47,230,196,0.14), transparent); color: var(--cyan); }
.nav-link.active .nav-ico { opacity: 1; }
.nav-link.active::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 3px; background: var(--cyan); box-shadow: var(--glow-cyan);
}
.sidebar-footer { display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; }
.btn-ghost {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(120,200,210,0.18); color: #A9BEC6;
  border-radius: 10px; padding: .5rem .7rem; cursor: pointer; font: inherit; width: 100%;
  transition: all .16s ease;
}
.btn-ghost:hover { border-color: rgba(120,200,210,0.4); color: #EAF6F4; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.75rem;
  background:
    radial-gradient(600px 200px at 20% -60%, rgba(23,214,165,0.18), transparent 70%),
    linear-gradient(180deg, #103038, #0A1A20);
  border-bottom: 1px solid rgba(23,214,165,0.35);
  box-shadow: 0 4px 24px rgba(0,0,0,0.28), inset 0 -1px 0 rgba(23,214,165,0.15);
  position: sticky; top: 0; z-index: 5;
}
.topbar-title { font-weight: 650; font-size: 1.05rem; flex: 1; letter-spacing: -0.01em; color: #E9F5F0; }
.topbar-user { font-size: .88rem; color: #9FC9BB; display: flex; align-items: center; gap: .6rem; }
.topbar-user .badge { background: rgba(23,214,165,0.18); color: #DFF7EC; }
.burger { display: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 9px; font-size: 1.1rem; padding: .3rem .6rem; cursor: pointer; color: #E9F5F0; }
.content { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.4rem; max-width: 1240px; width: 100%; }

.card {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 1.4rem; backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); padding: .55rem .65rem; border-bottom: 1px solid var(--stroke); white-space: nowrap; }
td { padding: .65rem .65rem; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: rgba(47, 230, 196, 0.035); }
.row-inactive td { opacity: .4; }
.actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.actions form { display: inline; }

.badge {
  display: inline-block; font-size: .68rem; font-weight: 600; padding: .16rem .55rem;
  border-radius: 999px; background: var(--glass-2); color: var(--ink-soft);
  border: 1px solid var(--stroke); white-space: nowrap;
}
.badge-in, .badge-approved { background: rgba(47,230,196,0.12); color: var(--cyan); border-color: rgba(47,230,196,0.3); }
.badge-break, .badge-warn, .badge-open { background: rgba(245,184,67,0.12); color: var(--amber); border-color: rgba(245,184,67,0.3); }
.badge-rejected { background: rgba(255,107,94,0.12); color: var(--coral); border-color: rgba(255,107,94,0.3); }
.badge-holiday { background: rgba(139,123,255,0.14); color: var(--violet); border-color: rgba(139,123,255,0.3); }

.alert {
  margin: 1rem 1.75rem 0; padding: .85rem 1.1rem; border-radius: 12px; font-size: .9rem;
  border: 1px solid var(--stroke); backdrop-filter: blur(12px);
}
.guest .alert, .pinpopup-body .alert { margin: 0 0 1rem; }
.alert-success { background: rgba(47,230,196,0.1);  color: var(--cyan);  border-color: rgba(47,230,196,0.3); }
.alert-error   { background: rgba(255,107,94,0.1);  color: var(--coral); border-color: rgba(255,107,94,0.3); }
.alert-info    { background: rgba(245,184,67,0.1);  color: var(--amber); border-color: rgba(245,184,67,0.3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--glass-2); border: 1px solid var(--stroke); color: var(--ink);
  border-radius: 11px; padding: .55rem 1rem; font: inherit; font-weight: 600; cursor: pointer;
  transition: all .16s ease;
}
.btn:hover { border-color: var(--stroke-2); background: var(--glass); text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  border-color: transparent; color: #04110E; box-shadow: var(--glow-cyan);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-danger { color: var(--coral); border-color: rgba(255,107,94,0.35); }
.btn-danger:hover { background: rgba(255,107,94,0.1); }
.btn-small { padding: .3rem .65rem; font-size: .78rem; border-radius: 9px; }
.btn-block { width: 100%; }
.page-actions { display: flex; justify-content: flex-end; }

.form { display: flex; flex-direction: column; gap: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem 1.3rem; }
.span-2 { grid-column: span 2; }
.form-grid h3 { margin: .85rem 0 0; padding-bottom: .4rem; border-bottom: 1px solid var(--stroke); color: var(--cyan); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.inline-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.inline-form .grow { flex: 1; min-width: 180px; }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; font-weight: 600; }
.field small { font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; padding: .6rem .75rem;
  border: 1px solid var(--stroke); border-radius: 10px;
  background: rgba(7,11,14,0.5); color: var(--ink); min-width: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea { background: rgba(255,255,255,0.6); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47,230,196,0.15);
}
.btn:focus-visible, .stamp:focus-visible, a:focus-visible, .key:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.form-narrow { max-width: 460px; }

.punch {
  position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 85% -20%, rgba(47,230,196,0.12), transparent 70%), var(--glass);
}
.punch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.punch-welcome { font-size: 1.35rem; margin-bottom: .1rem; letter-spacing: -0.02em; }
.punch-date { color: var(--ink-soft); margin: 0; font-size: .92rem; }
.lamp { display: flex; align-items: center; gap: .55rem; font-weight: 650; font-size: .95rem; }
.lamp-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-faint); transition: all .3s ease; }
.punch[data-state="in"]    .lamp { color: var(--cyan); }
.punch[data-state="in"]    .lamp-dot { background: var(--cyan); box-shadow: var(--glow-cyan); animation: pulse 2.4s infinite; }
.punch[data-state="break"] .lamp { color: var(--amber); }
.punch[data-state="break"] .lamp-dot { background: var(--amber); box-shadow: var(--glow-amber); animation: pulse 2.4s infinite; }
.punch[data-state="done"]  .lamp { color: var(--ink-soft); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .lamp-dot { animation: none !important; } }

.clock {
  font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(3.2rem, 11vw, 6rem); letter-spacing: 0.01em; line-height: 1;
  margin: 1rem 0 1.25rem; color: var(--ink); text-shadow: 0 0 30px rgba(47, 230, 196, 0.25);
}
.punch[data-state="in"]    .clock { color: #EAFFF9; text-shadow: 0 0 40px rgba(47,230,196,0.45); }
.punch[data-state="break"] .clock { text-shadow: 0 0 40px rgba(245,184,67,0.4); }

.punch-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.stamp {
  font: inherit; font-weight: 650; font-size: 1rem; padding: 1.05rem .5rem; border-radius: 13px;
  cursor: pointer; border: 1px solid var(--stroke); background: var(--glass-2); color: var(--ink);
  transition: all .14s ease; backdrop-filter: blur(8px);
}
.stamp:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--stroke-2); }
.stamp:active:not(:disabled) { transform: translateY(0); }
.stamp:disabled { opacity: .3; cursor: not-allowed; }
.stamp-in { background: linear-gradient(135deg, var(--cyan), var(--cyan-dim)); border-color: transparent; color: #04110E; box-shadow: var(--glow-cyan); }
.stamp-out { background: linear-gradient(135deg, var(--coral), #D8483B); border-color: transparent; color: #fff; box-shadow: var(--glow-coral); }
.stamp-break { color: var(--amber); border-color: rgba(245,184,67,0.35); background: rgba(245,184,67,0.08); }
.stamp-break:hover:not(:disabled) { background: rgba(245,184,67,0.14); }
.punch-error { color: var(--coral); font-weight: 600; margin: .7rem 0 0; }
.punch-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin: 1.4rem 0 0; }
.punch-stats > div { border-top: 1px solid var(--stroke); padding-top: .6rem; }
.punch-stats dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.punch-stats dd { margin: .15rem 0 0; font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 1rem; }
.kpi { display: flex; flex-direction: column; gap: .25rem; padding: 1.15rem; position: relative; overflow: hidden; }
.kpi::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  border-radius: 50%; background: radial-gradient(circle, rgba(47,230,196,0.12), transparent 70%);
}
.kpi-value { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; }
.kpi-label { font-size: .76rem; color: var(--ink-soft); }
.kpi-warn .kpi-value { color: var(--coral); }
.kpi-warn::after { background: radial-gradient(circle, rgba(255,107,94,0.14), transparent 70%); }

.chart { display: flex; align-items: flex-end; gap: .45rem; height: 170px; padding-top: .5rem; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .35rem; height: 100%; }
.chart-bar {
  width: 100%; max-width: 42px; min-height: 3px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-dim));
  box-shadow: 0 0 16px rgba(47,230,196,0.35); transition: height .4s ease;
}
.chart-label { font-size: .66rem; color: var(--ink-faint); font-family: var(--font-mono); }
.pager { display: flex; justify-content: space-between; margin-top: 1rem; }
.ua { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--stroke); }
.tab {
  padding: .6rem .95rem; color: var(--ink-soft); font-weight: 600;
  border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: .45rem;
  transition: color .16s ease;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab-active { color: var(--cyan); border-bottom-color: var(--cyan); }
.tab-count { background: var(--glass-2); color: var(--ink-soft); border: 1px solid var(--stroke); border-radius: 999px; padding: .05rem .5rem; font-size: .76rem; }
.tab-active .tab-count { background: rgba(47,230,196,0.14); color: var(--cyan); border-color: rgba(47,230,196,0.3); }

.vac-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; width: 100%; }
.kpi-highlight { border-color: rgba(47,230,196,0.35); }
.kpi-highlight .kpi-value { color: var(--cyan); text-shadow: 0 0 20px rgba(47,230,196,0.4); }
.pin-emp { margin: 0 0 1rem; font-size: 1.05rem; }
.pin-emp .mono { color: var(--ink-soft); margin-left: .4rem; font-size: .9rem; }

body.guest {
  display: grid; place-items: center; min-height: 100vh; padding: 1.5rem;
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(47,230,196,0.14), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(139,123,255,0.12), transparent 55%),
    var(--bg-0);
}
.guest-wrap { width: 100%; max-width: 400px; }
.guest-brand { text-align: center; margin-bottom: 1.75rem; }
.guest-brand .brand-mark { margin: 0 auto 1rem; }
.guest-title { margin: .3rem 0 0; font-size: 1.7rem; letter-spacing: -0.02em; font-weight: 700; }
.guest-sub { margin: .3rem 0 0; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; }
.guest-card {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 1.75rem; backdrop-filter: blur(16px); box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 20; height: 100vh; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
  .burger { display: block; }
  .content { padding: 1.1rem; }
  .punch-buttons { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .inline-form { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .punch-buttons { grid-template-columns: 1fr; }
  .topbar-user .badge { display: none; }
}

/* ------------------------- Abwesenheits-Modul ------------------------- */
.type-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }
.checkbox-field { flex-direction: row; align-items: center; gap: .6rem; font-weight: 500; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--cyan); flex-shrink: 0; }

/* Kalender */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; }
.cal-wrap { overflow-x: auto; }
.cal-table { border-collapse: collapse; font-size: .8rem; }
.cal-table th, .cal-table td { border: 1px solid var(--stroke); padding: 0; text-align: center; }
.cal-name { text-align: left !important; padding: .5rem .7rem !important; white-space: nowrap; position: sticky; left: 0; background: var(--glass-2); backdrop-filter: blur(12px); font-weight: 600; min-width: 160px; }
.cal-day { width: 30px; min-width: 30px; padding: .35rem 0 !important; }
.cal-wd { display: block; font-size: .6rem; color: var(--ink-faint); }
.cal-num { display: block; font-family: var(--font-mono); font-weight: 600; }
.cal-we { background: rgba(120,200,210,0.05); }
.cal-cell { height: 34px; }
.cal-mark { display: inline-block; width: 20px; height: 20px; border-radius: 6px; }
.cal-pending { opacity: .4; }

/* ------------------------- Auswertung / Report ------------------------- */
.report-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.row-we td { color: var(--ink-faint); }
.report-empty { color: var(--ink-faint); font-size: .85rem; }
.report-sum td { font-weight: 700; border-top: 2px solid var(--stroke-2); background: rgba(47,230,196,0.04); }
tfoot td { padding: .7rem .65rem; }

/* ------------------------- Zeitkorrektur (Ist/Wunsch-Gegenüberstellung) ------------------------- */
.corr-compare { display: flex; align-items: stretch; gap: 1rem; margin: 1.25rem 0; flex-wrap: wrap; }
.corr-col { flex: 1; min-width: 200px; background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 12px; padding: 1rem 1.15rem; }
.corr-col-old { opacity: .85; }
.corr-col-new { border-color: rgba(47,230,196,0.35); }
.corr-col-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: .6rem; }
.corr-col-new .corr-col-head { color: var(--cyan); }
.corr-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .35rem 0; border-bottom: 1px solid var(--stroke); }
.corr-row:last-child { border-bottom: none; }
.corr-row > span:first-child { color: var(--ink-soft); font-size: .85rem; }
.corr-col-new .corr-row input { width: 120px; font: inherit; padding: .4rem .6rem; border: 1px solid var(--stroke); border-radius: 8px; background: rgba(7,11,14,0.5); color: var(--ink); }
html[data-theme="light"] .corr-col-new .corr-row input { background: rgba(255,255,255,0.6); }
.corr-arrow { display: flex; align-items: center; font-size: 1.6rem; color: var(--cyan); }
.corr-hl { color: var(--cyan); font-weight: 600; }

/* Admin-Karten pro Antrag */
.corr-card { border: 1px solid var(--stroke); border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; background: var(--glass); }
.corr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.corr-compare-admin { margin: .9rem 0; }
.corr-reason { margin: .3rem 0 .8rem; font-size: .9rem; color: var(--ink-soft); }
.corr-decide { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.corr-note { flex: 1; min-width: 200px; font: inherit; padding: .5rem .7rem; border: 1px solid var(--stroke); border-radius: 9px; background: rgba(7,11,14,0.5); color: var(--ink); }
html[data-theme="light"] .corr-note { background: rgba(255,255,255,0.6); }
@media (max-width: 640px) { .corr-arrow { transform: rotate(90deg); justify-content: center; } }

/* Zeitkorrektur: Kennzeichnungen */
.corr-auto-tag {
  display: inline-block; font-size: .66rem; font-weight: 600; padding: .1rem .45rem;
  border-radius: 999px; background: rgba(245,184,67,0.15); color: var(--amber);
  border: 1px solid rgba(245,184,67,0.35); margin-left: .35rem; vertical-align: middle;
  text-transform: none; letter-spacing: 0; font-family: var(--font-body);
}
.corr-empty-note {
  font-size: .9rem; color: var(--ink-soft); padding: .8rem; border-radius: 10px;
  background: rgba(245,184,67,0.08); border: 1px solid rgba(245,184,67,0.25);
}

