body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f4f5f7;
    color: #222;
}

/* Global Layout Container */
.app-container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px; /* genau die "kleine Luft" links/rechts */
}

/* Header: ruhiger, weniger Banner */
.app-header{
  background: #0b5ea8;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.app-header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 0;
}

/* Brand links */
.app-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.app-logo img{
  width: 60px;
  height: 26px;
  border-radius: 8px;
  object-fit: contain;
}
.app-logo{
  opacity: .9;
  filter: saturate(.9);
}


.app-title{
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.app-subtitle{
  font-size: 12px;
  opacity: .8;
  margin-top: 2px;
}

/* Right side */
.app-header-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

.user-pill{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  max-width: 420px;
}

.user-initials{
  width: 26px;
  height: 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(255,255,255,.20);
  font-weight: 700;
  font-size: 12px;
}

.user-name{
  font-size: 13px;
  opacity: .95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Logout Button */
.btn-ghost{
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  background: transparent;
  transition: all .18s ease;
}
.btn-ghost:hover{
  background: rgba(255,255,255,.14);
}

/* Main spacing */
.app-main{
  padding: 18px 0 28px;
}

/* === Karten, Layout, Text === */

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

.card-center {
    max-width: 420px;
    margin: 40px auto;
}

h1 {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 28px;
}

h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.text-muted {
    color: #6b7280;
}

.small {
    font-size: 12px;
}

/* === Formulare & Buttons === */

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35);
    transform: translateY(-1px);
}

.btn-primary-soft {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.btn-primary-soft:hover {
    background: #dbeafe;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
}





.btn-ghost {
    border: 1px solid #e5e7eb;
    background: rgba(15, 23, 42, 0.15);
    color: #f9fafb;
    padding-inline: 20px;
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.25);
}



.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === Demo-Box (Login) === */

.demo-box {
    margin-top: 20px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    font-size: 13px;
}

.demo-title {
    font-weight: 600;
    margin-bottom: 4px;
}

/* === Tabelle === */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    text-align: left;
    background: #eff6ff;
}

/* === Pills / Badges === */

.pill {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.pill-good {
    background: #dcfce7;
    color: #166534;
}

.pill-muted {
    background: #e5e7eb;
    color: #374151;
}

/* === Projekt-Dashboard === */

.dashboard-intro {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.project-card {
    padding: 18px 18px 16px;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.project-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.project-name {
    font-weight: 600;
    font-size: 15px;
}

.project-code {
    font-size: 12px;
    color: #6b7280;
}

.project-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 10px;
}

.kpi-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.kpi {
    flex: 1;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 6px 8px;
}

.kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
}

.kpi-value {
    font-size: 16px;
    font-weight: 600;
    margin-top: 2px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === Projektseite Ablesung (kleines Finetuning) === */

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
}

.meta-list dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
}

.meta-list dd {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.feature-list {
    padding-left: 18px;
    font-size: 14px;
}


.member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.member-pill {
    background: #e5e7eb;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.section-title {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
}

.chart-placeholder {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 13px;
    color: #6b7280;
    border: 1px dashed #d1d5db;
}

.header-preview {
    background: #f9fafb;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    overflow-x: auto;
}

.message-info {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    font-size: 13px;
}

.small {
    font-size: 12px;
}


.page-header-sub {
    margin-top: 4px;
    margin-bottom: 6px;
    color: #6b7280;
}

.members-inline {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.members-label {
    font-weight: 600;
    margin-right: 4px;
}

.members-name {
    margin-right: 6px;
}

/* Action-Bar / Tabs */

.action-bar {
    margin: 12px 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    font-size: 13px;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
}

.action-item:hover {
    background: #e5e7eb;
}

.action-item-active {
    background: #e0f2fe;
    border-color: #bfdbfe;
    color: #0f172a;
    font-weight: 600;
}

.action-item-ghost {
    background: transparent;
    border-style: dashed;
    color: #9ca3af;
}

.action-item-ghost:disabled {
    cursor: default;
}


.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.jahr-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.pagination {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.page-link {
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #111827;
}

.page-link:hover {
    background: #e5e7eb;
}

.page-info {
    color: #6b7280;
}


.fu-bar {
    width: 120px;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    display: flex;
}

.fu-bar-fu {
    height: 100%;
    background: #1d4ed8; /* kräftiges Blau für FU */
}

.fu-bar-man {
    height: 100%;
    background: #93c5fd; /* helleres Blau für manuell */
}

.fu-bar-label {
    margin-top: 2px;
}







.filter-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}



/* Tabelle etwas lebendiger */

.table tbody tr:hover {
    background-color: #f9fafb;
}


.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.jahr-switch {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

/* Filter modern */










/* Tabelle etwas lebendiger */

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* --- Filterbereich Dashboard Ablesung --- */

.filter-form {
    margin-top: 12px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.filter-field {
    width: 100%;
}

.filter-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    font-size: 13px;
    background: #f9fafb;
    box-sizing: border-box;
}

.filter-input::placeholder {
    color: #9ca3af;
}

.filter-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


.card-title-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-title-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.hint-text {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

/* Für Fristen-Karte: drei Spalten nebeneinander, responsiv */
.grid-3-fristen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}


/* Fristen-Karte leicht hervorheben */
.card-fristen {
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
}

.card-title-text h2 {
    margin-bottom: 2px;
}

.label-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

/* Dezent mehr Blau im Seitenhintergrund */
body {
    background: #f3f4f6;
}
.main-container {
    /* falls du so einen Wrapper nutzt – sonst ignorieren */
}



/* --- FU vs. man.: Compass/Dial Indicator --- */
/* FU vs. man – Clean Badges */

.fu-badge-row{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.fu-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  font-size:12px;
  font-weight:600;
  border-radius:999px;
  border:1px solid transparent;
  white-space:nowrap;
}

.fu-badge.fu{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}

.fu-badge.man{
  background:#f8fafc;
  color:#334155;
  border-color:#e2e8f0;
}
/* Tabellen-Zentrierung FU vs. man. */

.text-center {
  text-align: center;
}

.fu-badge-row {
  justify-content: center;
}

.fu-badge-row + .text-muted {
  text-align: center;
}

/* FU vs. man. – Tabellenkopf zentrieren */
th.fu-col-header {
  text-align: center !important;
}



.abrech-col { white-space: nowrap; }

.pill-ab{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  border:1px solid transparent;
  margin-right:6px;
}

.pill-water{ background:#ecfeff; color:#0e7490; border-color:#a5f3fc; }
.pill-heat { background:#fff7ed; color:#9a3412; border-color:#fed7aa; }
.pill-rwm  { background:#fef2f2; color:#991b1b; border-color:#fecaca; }
.pill-none { background:#f1f5f9; color:#334155; border-color:#e2e8f0; }
.pill-neutral{ background:#f8fafc; color:#334155; border-color:#e2e8f0; }

.pill-manual{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
  font-weight:700;
}



/* Inline Edit (Abrechnungsart) */
.inline-edit { display:inline-block; }
.inline-edit > summary { list-style:none; cursor:pointer; }
.inline-edit > summary::-webkit-details-marker { display:none; }

.inline-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.edit-hint{
  color:#94a3b8;
  font-size:12px;
  margin-left:4px;
}

.inline-form{
  margin-top:8px;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.inline-select{
  padding:6px 10px;
  border-radius:10px;
  border:1px solid #e2e8f0;
  background:#fff;
  font-size:13px;
}

.inline-actions{
  display:flex;
  gap:8px;
}


/* schöneres Select (Filter) */
.filter-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
                    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}


.pill-clean{ background:#ecfdf5; color:#047857; border-color:#a7f3d0; }
.pill-todo { background:#fff7ed; color:#9a3412; border-color:#fed7aa; }


.card-header{display:flex; justify-content:space-between; align-items:flex-start; gap:16px;}
.card-title{margin:0;}
.card-badges{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end;}

.grid{display:grid; gap:14px;}
.grid-1{grid-template-columns:1fr;}
.grid-2{grid-template-columns:1fr 1fr;}
.grid-4{grid-template-columns:repeat(4, minmax(0, 1fr));}
@media (max-width: 1100px){ .grid-4{grid-template-columns:repeat(2, minmax(0, 1fr));} }
@media (max-width: 700px){ .grid-2, .grid-4{grid-template-columns:1fr;} }

.kv{display:grid; grid-template-columns:140px 1fr; gap:10px 14px;}
.k{font-size:12px; color:#64748b; text-transform:uppercase; letter-spacing:.04em;}
.v{font-size:14px;}

.form-section{margin-top:18px; padding-top:8px; border-top:1px solid #eef2f7;}
.section-title{font-weight:700; margin:4px 0 12px 0;}
.field label{display:block; font-size:13px; font-weight:600; margin-bottom:6px;}
.input{width:100%; padding:10px 12px; border:1px solid #e2e8f0; border-radius:12px; background:#fff;}
.textarea{resize:vertical;}

.pill{display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; border:1px solid #e2e8f0; font-size:12px; font-weight:600;}
.pill-water{background:#ecfeff; border-color:#a5f3fc; color:#0369a1;}
.pill-heat{background:#fff7ed; border-color:#fed7aa; color:#9a3412;}
.pill-rwm{background:#fef2f2; border-color:#fecaca; color:#b91c1c;}
.pill-none{background:#f1f5f9; border-color:#e2e8f0; color:#475569;}
.pill-clean{background:#ecfdf5; border-color:#a7f3d0; color:#047857;}
.pill-todo{background:#fff7ed; border-color:#fed7aa; color:#9a3412;}



/* Panels */
.grid-2x {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.panel-full {
  margin-top: 16px;
}

.panel-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

/* Inputs */
.field {
  margin-bottom: 12px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  background: #ffffff;
}

/* Action Bar */
.form-actions-sticky {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* Buttons */
.btn-secondary {
  background: #e2e8f0;
  color: #475569;
}



/* 2-Spalten Panels wie Übersicht */
.grid-2x{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width: 900px){ .grid-2x{grid-template-columns:1fr;} }

.panel{background:#f8fafc; border:1px solid #e2e8f0; border-radius:16px; padding:16px;}
.panel-full{margin-top:16px;}
.panel-title{font-weight:800; margin-bottom:12px; color:#0f172a;}
.hint{font-size:12px; color:#64748b; margin-top:6px;}
.hint-box{margin-top:12px; padding:12px; background:#eef2ff; border:1px solid #c7d2fe; border-radius:12px; color:#1e3a8a;}

.input-readonly{background:#f1f5f9; border-color:#e2e8f0; color:#0f172a;}

/* Quote Ring */
.quote-wrap{display:flex; align-items:center; gap:14px; margin-top:6px;}
.quote-ring{
  --size: 74px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: conic-gradient(#2563eb calc(var(--p) * 1%), #e2e8f0 0);
  display:flex; align-items:center; justify-content:center;
}
.quote-ring::after{
  content:"";
  width: calc(var(--size) - 18px);
  height: calc(var(--size) - 18px);
  background: #fff;
  border-radius: 999px;
  position:absolute;
  opacity:0;
}
/* inner */
.quote-center{
  width: calc(var(--size) - 18px);
  height: calc(var(--size) - 18px);
  background:#fff;
  border-radius:999px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  border:1px solid #e2e8f0;
}
.quote-pct{font-weight:900; font-size:14px; color:#0f172a; line-height:1;}
.quote-sub{font-size:11px; color:#64748b; margin-top:4px;}

.quote-legend{display:flex; flex-direction:column; gap:6px;}
.legend-row{display:flex; align-items:center; gap:8px;}
.dot{width:10px; height:10px; border-radius:999px; display:inline-block;}
.dot-a{background:#2563eb;}
.dot-b{background:#e2e8f0;}
.legend-text{font-size:12px; color:#334155;}


/* Grid-Fixes: verhindert Überlappungen */
.grid {
  display: grid;
  gap: 12px;
}

.grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.grid-2x {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Wichtig: damit Inputs in Grid-Zellen nicht "drüber" wachsen */
.field, .panel, .card, .kv {
  min-width: 0;
}

.input, select.input, textarea.input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.textarea {
  resize: none;
}


/* Status LG Pills */
.pill-status-open {
  background: #e5e7eb;
  color: #374151;
}

.pill-status-route {
  background: #dbeafe;
  color: #1d4ed8;
}

.pill-status-na {
  background: #fff7ed;
  color: #c2410c;
}

.pill-status-done {
  background: #dcfce7;
  color: #15803d;
}

.pill-status-none {
  background: #fee2e2;
  color: #b91c1c;
}

.pill-status-neutral {
  background: #f1f5f9;
  color: #334155;
}


.filter-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
                    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}


.kpi-card{
  background:#fff;
  border:1px solid #e8eef7;
  border-radius:18px;
  padding:14px 14px 10px;
  box-shadow:0 10px 30px rgba(12, 35, 64, 0.06);
  min-height:260px;
}
.kpi-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.kpi-title{
  font-weight:800;
  font-size:16px;
}
.kpi-badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#0b3a77;
  white-space:nowrap;
}
.kpi-body{
  padding-top:6px;
}

.progress-wrap{ margin-top:4px; }
.progress-labels{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  margin-bottom:8px;
}
.progress{
  height:10px;
  background:#eef2f7;
  border-radius:999px;
  overflow:hidden;
  border:1px solid #e5eaf2;
}
.progress-bar{
  height:100%;
  background:linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius:999px;
}


/* ---------- Kompakte KPI-Charts ---------- */
.chart-wrap{
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}
.chart-sm{ height: 160px; }
.chart-xs{ height: 130px; }
canvas{
  width: 100% !important;
  height: 100% !important;
}


/* KPI Header */
.kpi-center{
  text-align:center;
  margin-bottom:6px;
}
.kpi-number{
  font-size:28px;
  font-weight:800;
  color:#0b3a77;
}
.kpi-label{
  font-size:12px;
  color:#6b7280;
}


/* KPI Grid */
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}
@media (max-width: 1100px){
  .kpi-grid{ grid-template-columns: 1fr; }
}

/* KPI Card */
.kpi-card{
  background:#fff;
  border:1px solid #e7eef8;
  border-radius:16px;
  padding:16px;
  box-shadow: 0 8px 24px rgba(15, 38, 74, .06);

  /* Farbskala Status LG: hell -> dunkel */
  --c0: #dbeafe; /* Offen (hell) */
  --c1: #93c5fd; /* Restroute */
  --c2: #60a5fa; /* NA */
  --c3: #2563eb; /* Abgeschlossen (dunkel) */
  --c4: #e5e7eb; /* keine Abrechnung (grau) */
}

.kpi-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:10px;
}
.kpi-title{font-weight:800;font-size:16px;}
.kpi-sub{color:#6b7a90;font-size:12px;margin-top:2px;}

.kpi-body{display:flex;gap:14px;align-items:center;}

/* ---------- Legend ---------- */
.legend{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.legend-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  padding: 2px 0;
}
.legend-label{color:#263549;}
.legend-right{color:#6b7a90;white-space:nowrap;}

/* ---------- Dots (Status) ---------- */
.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  margin-right:10px;
}

/* Status LG: Offen hell -> Abgeschlossen dunkel, keine Abrechnung grau */
.dot-0{ background: var(--c0); box-shadow: inset 0 0 0 1px rgba(15,23,42,.10); }
.dot-1{ background: var(--c1); }
.dot-2{ background: var(--c2); }
.dot-3{ background: var(--c3); }
.dot-4{ background: var(--c4); box-shadow: inset 0 0 0 1px rgba(15,23,42,.10); }

/* ---------- Dots (Quote Chips) ---------- */
.dotq-0{ background:#dbeafe; box-shadow: inset 0 0 0 1px rgba(15,23,42,.10); }
.dotq-1{ background:#93c5fd; }
.dotq-2{ background:#60a5fa; }
.dotq-3{ background:#3b82f6; }
.dotq-4{ background:#2563eb; }

/* ---------- Donut (Status LG) ---------- */
.donut{
  width:120px;
  height:120px;
  border-radius:50%;
  background:
    conic-gradient(
      var(--c0) 0 calc(var(--p0)*1%),
      var(--c1) calc(var(--p0)*1%) calc((var(--p0)+var(--p1))*1%),
      var(--c2) calc((var(--p0)+var(--p1))*1%) calc((var(--p0)+var(--p1)+var(--p2))*1%),
      var(--c3) calc((var(--p0)+var(--p1)+var(--p2))*1%) calc((var(--p0)+var(--p1)+var(--p2)+var(--p3))*1%),
      var(--c4) calc((var(--p0)+var(--p1)+var(--p2)+var(--p3))*1%) 100%
    );
  position:relative;
}
.donut::after{
  content:"";
  position:absolute;
  inset:14px;
  background:#fff;
  border-radius:50%;
  box-shadow: inset 0 0 0 1px #e7eef8;
}
.donut-center{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  z-index:2;
}
.donut-big{font-weight:900;font-size:18px;}
.donut-small{color:#6b7a90;font-size:12px;}

/* ---------- Segbar (Quote Buckets) ---------- */
.segbar{
  height:12px;
  border-radius:999px;
  overflow:hidden;
  background:#eef4ff;
  border:1px solid #e7eef8;
  display:flex;
}
.seg{ height:100%; }

/* Quote: 0% hell -> 95–100% dunkel */
.seg-0{ background:#dbeafe; }
.seg-1{ background:#93c5fd; }
.seg-2{ background:#60a5fa; }
.seg-3{ background:#3b82f6; }
.seg-4{ background:#2563eb; }

.seg-legend{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.seg-chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:#f6f9ff;
  border:1px solid #e7eef8;
  font-size:12px;
}

/* ---------- IST MT Fortschritt: Ring + Progress ---------- */
.ring{
  width:120px;
  height:120px;
  border-radius:50%;
  background: conic-gradient(#2563eb 0 calc(var(--pct)*1%), #e9f1ff calc(var(--pct)*1%) 100%);
  position:relative;
}
.ring::after{
  content:"";
  position:absolute;
  inset:14px;
  background:#fff;
  border-radius:50%;
  box-shadow: inset 0 0 0 1px #e7eef8;
}
.ring-center{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  z-index:2;
}

.numbers{display:flex;flex-direction:column;gap:10px;}
.num-big{font-weight:900;font-size:18px;}

.progress{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:#eef4ff;
  border:1px solid #e7eef8;
  margin-top:12px;
}
.progress-bar{
  height:100%;
  background:#2563eb;
}

/* ---------- (Optional) Status/Quote Pills (falls du die nutzt) ---------- */
/* Status LG Pill-Styles (hell->dunkel) */
.status-offen{ color:#2563eb; background:#eff6ff; }
.status-restroute{ color:#1d4ed8; background:#dbeafe; }
.status-na{ color:#1e40af; background:#bfdbfe; }
.status-abgeschlossen{ color:#ffffff; background:#1e3a8a; }
.status-keine{ color:#6b7280; background:#f3f4f6; }

/* Quote Pills (hell->dunkel) */
.quote-0{ background:#eff6ff; color:#2563eb; }
.quote-0-50{ background:#dbeafe; color:#1d4ed8; }
.quote-50-90{ background:#bfdbfe; color:#1e40af; }
.quote-90-95{ background:#93c5fd; color:#1e3a8a; }
.quote-95-100{ background:#1e3a8a; color:#ffffff; }



.timeline-card{
  margin-top:14px;
  border:1px solid #e7eefc;
  border-radius:16px;
  padding:14px 14px 16px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
  box-shadow:0 8px 22px rgba(17, 40, 120, 0.06);
}

.timeline-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.timeline-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.timeline-icon{
  width:34px;
  height:34px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef5ff;
  border:1px solid #dbe8ff;
}

.timeline-h{ font-weight:700; }
.timeline-sub{ font-size:12.5px; color:#6b7a99; margin-top:2px; }

.timeline-badge{
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #e8eefc;
  background: #f7f9ff;
  color:#2c3b55;
  white-space: nowrap;
}

.timeline-badge.is-ok{ background:#eefbf3; border-color:#c9f2d6; color:#1c7a3e; }
.timeline-badge.is-late{ background:#fff0f0; border-color:#ffd0d0; color:#b42318; }
.timeline-badge.is-soon{ background:#fff7e6; border-color:#ffe2b3; color:#8a5a00; }
.timeline-badge.is-neutral{ background:#f7f9ff; border-color:#e8eefc; color:#2c3b55; }

/* --- Track --- */
.timeline-track{
  position:relative;
  height:34px;
  margin:10px 6px 12px;  /* etwas Luft rechts/links */
}

.timeline-rail{
  position:absolute;
  left:0; right:0;
  top:50%;
  transform:translateY(-50%);
  height:10px;
  border-radius:999px;
  background:#eef3ff;
  border:1px solid #dce7ff;
}

.timeline-fill{
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg,#9cc7ff 0%, #2f7cff 100%);
}

/* Start/End Dots */
.timeline-dot{
  position:absolute;
  top:50%;
  transform:translate(-50%,-50%);
  width:12px;
  height:12px;
  border-radius:50%;
  background:#fff;
  border:2px solid #2f7cff;
  box-shadow:0 2px 8px rgba(47,124,255,.18);
}

.timeline-dot.start{ left:0%; }
.timeline-dot.end{ left:100%; }

/* --- Today Marker (Fix) --- */
.timeline-today{
  position:absolute;
  top:50%;
  transform:translate(-50%,-50%); /* <-- das ist der Haupt-Fix */
  z-index:4;
}

.timeline-pin{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#2f7cff;
  border:3px solid #fff;
  box-shadow:0 6px 16px rgba(47,124,255,.30);
}

.timeline-pin-label{
  position:absolute;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  font-size:12px;
  color:#2b3a55;
  background:#ffffff;
  border:1px solid #e2ebff;
  border-radius:999px;
  padding:2px 8px;
  box-shadow:0 6px 18px rgba(16,30,70,.06);
  white-space:nowrap;
}


/* Meta-Bereich schöner */
.timeline-meta{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}

.timeline-meta-item{
  border:1px solid #edf2ff;
  border-radius:14px;
  padding:10px 12px;
  background:#ffffff;
}

.timeline-meta-item .k{
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#7a8aa7;
  margin-bottom:4px;
}
.timeline-meta-item .v{
  font-weight:700;
  color:#0f1e3a;
}

.timeline-empty{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed #d7e2ff;
  background: #f7faff;
  color:#50607a;
  font-size: 13px;
}


/* Abrechnung – Filterlayout kompakt, ohne Überlappung */
.filter-grid-abrechnung{
  display: grid;
  grid-template-columns: 140px 180px 120px 190px 190px 170px;
  gap: 10px;
  align-items: center;
}

/* zweite Zeile: Status Abrechnung darf breiter sein */
.filter-grid-abrechnung .filter-span-2{
  grid-column: 1 / span 2; /* LGNR+Ort Breite */
}

/* Responsiv: wenn Bildschirm schmal -> automatisch umbrechen */
@media (max-width: 1200px){
  .filter-grid-abrechnung{
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
  .filter-grid-abrechnung .filter-span-2{
    grid-column: auto;
  }
}

/* Zusätzliche Sicherheit: Select-Pfeil braucht Platz */
.filter-input{
  width: 100%;
}
.filter-input select,
select.filter-input{
  padding-right: 34px; /* verhindert, dass Text unter Pfeil rutscht */
}

/* === Abrechnung Tabelle: keine Zeilenumbrüche === */

/* gesamte Tabellenzellen schützen */
.table-abrechnung td,
.table-abrechnung th {
  white-space: nowrap;
  vertical-align: middle;
}

/* Pills / Status-Badges */
.table-abrechnung .pill {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Betrag (€) */
.table-abrechnung .betrag {
  white-space: nowrap;
  font-weight: 600;
}

/* Status Abrechnung explizit */
.table-abrechnung .status-abrechnung {
  white-space: nowrap;
}


.table-abrechnung th:nth-child(7),
.table-abrechnung td:nth-child(7) {
  min-width: 190px; /* Status Abrechnung */
}

.table-abrechnung th:nth-child(8),
.table-abrechnung td:nth-child(8) {
  min-width: 90px; /* Betrag */
  text-align: right;
}


/* ===== Abrechnung Statistik: 12er Grid responsive fix ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

/* Desktop default: passt zu den inline styles (span 3/5/7) */
@media (max-width: 1100px) {
  /* Tablet: 2 Spalten Layout */
  .kpi-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Karten, die per inline "span 3" gesetzt sind => halbe Breite */
  .kpi-card[style*="grid-column: span 3"] { grid-column: span 3 !important; }

  /* Breite Karten => volle Breite */
  .kpi-card[style*="grid-column: span 7"],
  .kpi-card[style*="grid-column: span 5"] { grid-column: span 6 !important; }
}

@media (max-width: 720px) {
  /* Mobile: alles untereinander */
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card { grid-column: 1 / -1 !important; }
}

/* ===== KPI-Karten kompakter + sauberer Textflow ===== */
.kpi-card {
  min-height: unset !important;
}

.kpi-title {
  line-height: 1.15;
}

.kpi-sub {
  line-height: 1.25;
}

.kpi-body .muted.small {
  display: block;
  line-height: 1.45;
}


/* ===== KPI: Test (2/806 + Prozent Ring) ===== */
.kpi-test{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.kpi-test-ratio .big{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  display:block;
}

.kpi-test-ratio .muted{
  display:block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(15,23,42,.65);
}

.kpi-test-right{
  min-width: 140px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}

/* Mini-Ring */
.mini-ring{
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background:
    conic-gradient(currentColor calc(var(--pct) * 1%), rgba(37,99,235,.12) 0);
  color: rgb(37,99,235);
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}

.mini-ring::after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.12);
}

.mini-ring-center{
  position: relative;
  z-index: 1;
  text-align:center;
  line-height: 1.1;
}

.mini-ring-big{
  font-weight: 800;
  font-size: 14px;
}

.mini-ring-sub{
  font-size: 11px;
  color: rgba(15,23,42,.55);
  margin-top: 2px;
}

/* Mini-Bar */
.mini-bar{
  width: 140px;
  height: 8px;
  border-radius: 999px;
  background: rgba(37,99,235,.12);
  overflow:hidden;
}

.mini-bar-fill{
  height: 100%;
  border-radius: 999px;
  background: rgb(37,99,235);
}


.kpi-progress-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.kpi-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-big {
  font-size: 28px;
  font-weight: 700;
}

.progress-ring {
  --size: 64px;
  --stroke: 6px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background:
    conic-gradient(
      var(--accent, #22c55e) calc(var(--pct) * 1%),
      #e5e7eb 0
    );
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  color: #111;
}

.progress-ring span {
  background: white;
  width: calc(var(--size) - 2 * var(--stroke));
  height: calc(var(--size) - 2 * var(--stroke));
  border-radius: 50%;
  display: grid;
  place-items: center;
}


/* KPI Layout: links Inhalt, rechts Ring (einheitlich wie "Test") */
.kpi-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

/* Linke Seite */
.kpi-left{
  flex:1;
  min-width:0;
}

/* Rechte Seite: Ring sauber zentriert */
.kpi-right{
  width:120px;              /* fix wie bei Test */
  display:flex;
  align-items:center;
  justify-content:center;   /* <-- Zentrierung */
}

/* Ring */
.kpi-ring{
  width:92px;
  height:92px;
  border-radius:50%;
  background: conic-gradient(
    #2563eb calc(var(--pct) * 1%),
    #e6eefc 0
  );
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Innerer Kreis */
.kpi-ring-inner{
  width:72px;
  height:72px;
  background:#fff;
  border-radius:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.kpi-ring-pct{
  font-weight:700;
  font-size:14px;
  line-height:1.1;
}

.kpi-ring-sub{
  font-size:11px;
  color:#64748b;
  margin-top:2px;
}

/* grüne Variante für Abrechnung */
.kpi-card.kpi-green .kpi-ring{
  background: conic-gradient(#22c55e calc(var(--pct) * 1%), #eaf7ef 0);
}


/* ===== KPI Test/Abrechnung: gleiche Optik & Alignment ===== */

.kpi-body.kpi-test{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.kpi-test-left{
  min-width:120px;
}

.kpi-test-ratio .big{
  font-weight:800;
  font-size:28px;
  line-height:1.05;
}

.kpi-test-right{
  display:flex;
  flex-direction:column;
  align-items:center;          /* <- Ring + Bar zentriert untereinander */
  justify-content:center;
  gap:10px;
  min-width:140px;             /* <- gleiche Breite bei Test/Abrechnung */
}

.mini-bar{
  width:120px;                 /* <- fixe, ruhige Breite */
  height:8px;
  border-radius:999px;
  background:rgba(59,130,246,.15);
  overflow:hidden;
  position:relative;
}

.mini-bar-fill{
  height:100%;
  border-radius:999px;
  background:rgba(37,99,235,1);
}

/* ===== KPI Test/Abrechnung: gleiche Optik & Alignment ===== */

.kpi-body.kpi-test{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.kpi-test-left{
  min-width:120px;
}

.kpi-test-ratio .big{
  font-weight:800;
  font-size:28px;
  line-height:1.05;
}

.kpi-test-right{
  display:flex;
  flex-direction:column;
  align-items:center;          /* <- Ring + Bar zentriert untereinander */
  justify-content:center;
  gap:10px;
  min-width:140px;             /* <- gleiche Breite bei Test/Abrechnung */
}

.mini-bar{
  width:120px;                 /* <- fixe, ruhige Breite */
  height:8px;
  border-radius:999px;
  background:rgba(59,130,246,.15);
  overflow:hidden;
  position:relative;
}

.mini-bar-fill{
  height:100%;
  border-radius:999px;
  background:rgba(37,99,235,1);
}

/* Grüne KPI-Variante (Abrechnung) */
.kpi-green {
  color: #22c55e;
}

.kpi-green.mini-ring {
  background:
    conic-gradient(
      #22c55e calc(var(--pct) * 1%),
      rgba(34,197,94,.15) 0
    );
}

.kpi-green .mini-ring-big {
  color: #166534;
}


/* Ablesung: immer 3 gleich breite Karten */
.kpi-grid-ablesung {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 1100px) {
  .kpi-grid-ablesung {
    grid-template-columns: 1fr !important;
  }
}

/* Zentriert die Progressbar unter dem Ring */
.kpi-test-right{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.mini-bar{
  width: 120px;          /* oder 140px – wie du willst */
  height: 8px;
  border-radius: 999px;
  background: #e8f0ff;
  overflow: hidden;
  margin-top: 10px;
}

.mini-bar-fill{
  height: 100%;
  border-radius: 999px;
}

/* Grüne Variante für Abrechnung */
.mini-bar-fill-green{
  background: #22c55e;
}

/* ---------- KPI second row: cleaner layout ---------- */
.kpi-compact-body{
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.kpi-big{
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}
.kpi-muted{
  font-size: 12px;
  opacity: .75;
}

.kpi-mini{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap:10px;
}
.kpi-mini-bar{
  flex:1;
  height: 8px;
  border-radius: 999px;
  background: rgba(37,99,235,.10);
  overflow:hidden;
}
.kpi-mini-fill{
  height:100%;
  border-radius: 999px;
  background: rgba(37,99,235,.85);
}
.kpi-mini-text{
  font-size: 12px;
  font-weight: 700;
  opacity: .85;
  min-width: 44px;
  text-align: right;
}

/* Umsatz hero */
.kpi-hero{
  border:1px solid rgba(37,99,235,.20);
  box-shadow: 0 12px 36px rgba(37,99,235,.10);
  background: linear-gradient(180deg, rgba(37,99,235,.07), rgba(255,255,255,0));
}
.kpi-hero-body{
  margin-top: 12px;
  padding: 6px 0 2px;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap: 6px;
}
.kpi-hero-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  font-size: 20px;
}
.kpi-hero-value{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.kpi-hero-sub{
  font-size: 12px;
  opacity: .75;
}

/* Zeitraum kompakt */
.kpi-period{
  margin-top: 12px;
}
.kpi-period-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.kpi-period-item .k{
  font-size: 11px;
  opacity: .65;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.kpi-period-item .v{
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
}
.kpi-period-progress{
  margin-top: 12px;
  display:flex;
  align-items:center;
  gap:10px;
}

.timeline-badge.is-late { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.25); color:#b91c1c; }
.timeline-badge.is-soon { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.25); color:#92400e; }
.timeline-badge.is-ok   { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.25); color:#166534; }

/* Kostendaten KPI: links/rechts Layout ohne Höhe zu sprengen */
.kpi-kost-body{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

/* links soll flexibel bleiben */
.kpi-kost-left{
  flex: 1 1 auto;
  min-width: 0;
}

/* rechte Seite fix klein halten */
.kpi-kost-right{
  flex: 0 0 160px;
  width: 160px;
}

/* Titel rechts */
.kpi-kost-right-title{
  font-size:12px;
  font-weight:800;
  color: rgba(15,23,42,.70);
  margin-top:2px;
  margin-bottom:8px;
}

/* 2 Spalten, sehr kompakt, keine Card-Vergrößerung */
.sb-mini-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:6px;
  max-height: 76px;   /* << wichtig: verhindert dass die Card “wächst” */
  overflow:hidden;    /* bleibt clean */
}

/* Mini-Chips */
.sb-mini{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  line-height:1.1;
}

.sb-mini-code{ font-weight:900; }
.sb-mini-ratio{ font-weight:800; opacity:.85; }

/* Zustände (dezent) */
.sb-mini.is-empty{ opacity:.55; }
.sb-mini.is-none{
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.20);
}
.sb-mini.is-partial{
  background: rgba(245,158,11,.10);
  border-color: rgba(245,158,11,.22);
}
.sb-mini.is-full{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.25);
}

/* ===== Management KPI – Mini Visual sauber einpassen ===== */

.mgmt-kpi-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;                 /* weniger Abstand */
}

/* rechter Grafik-Block */
.mgmt-kpi .mini-vis {
  width: 90px;               /* kleiner als vorher */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: -30px;         /* schiebt Grafik leicht nach links */
}

/* Ring verkleinern */
.mgmt-kpi .mini-ring {
  width: 58px;
  height: 58px;
}

/* Text im Ring */
.mgmt-kpi .mini-ring div {
  font-size: 12px;
  line-height: 1.1;
}

.mgmt-kpi .mini-ring span {
  font-size: 10px;
  opacity: 0.7;
}

/* Fortschrittsbalken schmaler */
.mgmt-kpi .mini-bar {
  width: 64px;
  height: 4px;
  margin-top: 6px;
}

.trends-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trend-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
}

.trend-date {
  font-weight: 600;
  color: #334155;
}

.trend-metric {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trend-metric .label {
  font-size: 12px;
  color: #64748b;
  width: 80px;
}

.trend-metric .value {
  font-size: 18px;
  font-weight: 600;
}

.trend-metric .delta {
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 999px;
}

.delta.up {
  color: #166534;
  background: #dcfce7;
}

.delta.flat {
  color: #475569;
  background: #e5e7eb;
}

.delta.down {
  color: #7f1d1d;
  background: #fee2e2;
}

.trend-row.current {
  background: linear-gradient(90deg, #eef2ff, #ffffff);
  border-left: 4px solid #6366f1;
}


/* ===================== Trends Board ===================== */
.trends-card {
  padding: 18px;
}

.trends-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.trends-title h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.trends-sub {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.trends-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trends-nav {
  padding: 8px 10px;
  border-radius: 999px;
}

.trends-summary {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(59,130,246,.06), rgba(255,255,255,0));
}

.ts-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ts-label {
  font-size: 12px;
  color: #64748b;
}

.ts-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  color: #0f172a;
}

.ts-number {
  font-size: 18px;
}

.ts-delta {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.ts-delta.up {
  color: #166534;
  background: #dcfce7;
}

.ts-delta.flat {
  color: #334155;
  background: #e5e7eb;
}

.ts-delta.down {
  color: #7f1d1d;
  background: #fee2e2;
}

.trends-board {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trend-row {
  display: grid;
  grid-template-columns: 86px 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(148,163,184,.25);
}

.trend-row.is-current {
  background: linear-gradient(90deg, rgba(99,102,241,.10), rgba(255,255,255,0));
  border-color: rgba(99,102,241,.35);
}

.trend-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.td-top {
  font-weight: 800;
  color: #0f172a;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.td-sub {
  font-size: 12px;
  color: #64748b;
}

.trend-metric {
  display: grid;
  grid-template-columns: 84px 56px 90px 1fr;
  align-items: center;
  gap: 10px;
}

.tm-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.tm-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.tm-delta {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  width: fit-content;
}

.tm-delta.up {
  color: #166534;
  background: #dcfce7;
}

.tm-delta.flat {
  color: #334155;
  background: #e5e7eb;
}

.tm-delta.down {
  color: #7f1d1d;
  background: #fee2e2;
}

.tm-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,.25);
  overflow: hidden;
}

.tm-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.tm-bar-fill.up {
  background: rgba(34,197,94,.85);
}

.tm-bar-fill.flat {
  background: rgba(148,163,184,.85);
}

.tm-bar-fill.down {
  background: rgba(239,68,68,.85);
}

.trends-empty {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed rgba(148,163,184,.55);
  color: #64748b;
  font-size: 13px;
}

/* ===================== Top-5 Problems ===================== */
.top5-card {
  padding: 18px;
}

.top5-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.top5-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.top5-sub {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.top5-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top5-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top5-item{
  display:grid;
  grid-template-columns: 86px minmax(320px, 1fr) 220px 220px; /* Prio | Content | Note | CTA */
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.25);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.mini-status{
  font-size:12px;
  color:#64748b;
  font-weight:700;
  margin-left:6px;
}


.top5-note{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:6px;
  min-height:54px;
}

.note-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(148,163,184,.35);
  background:white;
  color:#0f172a;
  min-width:140px;
}

.note-sub{
  font-size:12px;
  color:#64748b;
  font-weight:700;
  line-height:1.1;
}

.note-bad{ background:#fee2e2; border-color:rgba(239,68,68,.35); color:#7f1d1d; }
.note-warn{ background:#fef3c7; border-color:rgba(245,158,11,.35); color:#7c2d12; }
.note-neutral{ background:#e5e7eb; border-color:rgba(148,163,184,.35); color:#334155; }
.note-good{ background:#dcfce7; border-color:rgba(34,197,94,.35); color:#166534; }


@media (max-width: 1100px){
  .top5-item{
    grid-template-columns: 86px 1fr 220px;
    grid-template-areas:
      "prio main cta"
      "prio note cta";
  }
  .top5-prio{ grid-area: prio; }
  .top5-main{ grid-area: main; }
  .top5-note{ grid-area: note; align-items:flex-start; text-align:left; }
  .top5-cta{ grid-area: cta; }
}


.top5-item:hover {
  transform: translateY(-1px);
  border-color: rgba(99,102,241,.35);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

/* Left: priority */
.top5-prio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.prio-badge {
  width: 52px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  border: 1px solid rgba(148,163,184,.35);
  background: white;
}

.prio-text {
  font-size: 12px;
  color: #64748b;
}

.prio-1 { border-color: rgba(239,68,68,.35); background: rgba(254,226,226,.6); }
.prio-2 { border-color: rgba(245,158,11,.35); background: rgba(254,243,199,.6); }
.prio-3 { border-color: rgba(59,130,246,.35); background: rgba(219,234,254,.6); }
.prio-4 { border-color: rgba(148,163,184,.35); background: rgba(241,245,249,.9); }
.prio-5 { border-color: rgba(148,163,184,.35); background: rgba(241,245,249,.9); }

/* Middle: main */
.top5-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.top5-line1 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top5-lgnr {
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.top5-line2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top5-addr {
  min-width: 0;
}

.addr-1 {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 560px;
}

.addr-2 {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* Chips */
.chip {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.35);
  background: white;
  color: #0f172a;
}

.chip-status {
  background: rgba(241,245,249,.9);
  color: #334155;
}

.chip-bad {
  background: #fee2e2;
  border-color: rgba(239,68,68,.35);
  color: #7f1d1d;
}

.chip-warn {
  background: #fef3c7;
  border-color: rgba(245,158,11,.35);
  color: #7c2d12;
}

.chip-neutral {
  background: #e5e7eb;
  border-color: rgba(148,163,184,.35);
  color: #334155;
}

.chip-good {
  background: #dcfce7;
  border-color: rgba(34,197,94,.35);
  color: #166534;
}

/* Hint */
.top5-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(99,102,241,.65);
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}

.hint-text {
  font-weight: 600;
}

/* Right: actions */
.top5-cta {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.35);
  background: white;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.icon-btn span {
  font-size: 12px;
  color: #334155;
  font-weight: 800;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(59,130,246,.35);
  background: rgba(219,234,254,.45);
}

.top5-empty {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed rgba(148,163,184,.55);
  color: #64748b;
  font-size: 13px;
}



/* =========================
   Startseite (Home)
   ========================= */

.home-hero{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:18px;
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(255,255,255,0));
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 18px;
  padding: 18px 18px;
  margin-bottom: 18px;
}

.home-eyebrow{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  font-weight:800;
  margin-bottom:6px;
}

.home-title{
  margin:0;
  font-size:28px;
  line-height:1.15;
}

.home-role{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.home-sub{
  color:#64748b;
  font-weight:600;
  font-size:14px;
}

.home-hero-right{
  min-width:260px;
  display:flex;
  justify-content:flex-end;
}

.home-hint{
  background:#fff;
  border:1px solid rgba(148,163,184,.22);
  border-radius:14px;
  padding:12px 12px;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
  max-width:320px;
}

.home-hint-title{
  font-weight:900;
  font-size:13px;
  color:#0f172a;
  margin-bottom:4px;
}

.home-hint-text{
  font-size:13px;
  color:#64748b;
  line-height:1.35;
}

/* Section Head */
.home-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin: 8px 0 10px 0;
}

.home-section-title{
  margin:0;
  font-size:18px;
  font-weight:900;
}

.home-project-grid{
  margin-top: 8px;
}

/* Project Card */
.home-project-card{
  border-radius:16px;
  border:1px solid rgba(148,163,184,.22);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  overflow:hidden;
}

.home-project-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
  border-color: rgba(37,99,235,.28);
}

.home-project-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.home-project-meta{
  display:flex;
  gap:12px;
  align-items:center;
}

.home-project-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  background: rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.18);
}

.home-project-title{
  font-weight:900;
  font-size:16px;
  line-height:1.2;
}

.home-project-code{
  margin-top:2px;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  font-weight:800;
}

.home-project-desc{
  margin-top:10px;
  font-size:13px;
  line-height:1.35;
  color:#334155;
  min-height:34px;
}

/* Mini KPI Row */
.home-kpi-row{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}

.home-kpi{
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.18);
  border-radius:12px;
  padding:10px 10px;
}

.home-kpi-label{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  font-weight:800;
}

.home-kpi-value{
  margin-top:6px;
  font-size:16px;
  font-weight:900;
  color:#0f172a;
}

/* Footer buttons */
.home-project-footer{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

.home-btn{
  white-space:nowrap;
}

/* Table card */
.home-table-card{
  margin-top:24px;
  border-radius:18px;
  border:1px solid rgba(148,163,184,.22);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.home-table-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.home-table-wrap{
  overflow:auto;
  border-radius:14px;
}

.home-table th{
  white-space:nowrap;
}

.home-footnote{
  margin-top:14px;
}

/* Responsive */
@media (max-width: 980px){
  .home-hero{
    flex-direction:column;
  }
  .home-hero-right{
    justify-content:flex-start;
  }
}


/* BK: SB BV Badge etwas ruhiger */
.pill-sb {
  background: #eef2ff;
  color: #1e3a8a;
}



/* =========================
   START / HOME v2
========================= */

.home2-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(255,255,255,0));
  border: 1px solid rgba(37,99,235,.10);
}

@media (max-width: 980px) {
  .home2-hero { grid-template-columns: 1fr; }
}

.home2-eyebrow {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  margin-bottom: 6px;
}

.home2-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.home2-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.home2-sub { color: rgba(0,0,0,.65); }

.home2-quick {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.home2-quick-title { font-weight: 700; margin-bottom: 6px; }
.home2-quick-desc { color: rgba(0,0,0,.65); font-size: 13px; line-height: 1.35; }

.home2-head {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.home2-h { margin: 0; }
.home2-hsub { font-size: 13px; }

.home2-group {
  margin-top: 14px;
  padding: 14px;
}

.home2-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home2-group-title { font-weight: 800; font-size: 16px; }
.home2-group-sub { font-size: 13px; margin-top: 2px; }

.home2-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  .home2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home2-grid { grid-template-columns: 1fr; }
}

.home2-tile {
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 170px;
}

.home2-tile-tool {
  border: 1px solid rgba(16,185,129,.18);
}

.home2-tile-top {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: start;
}

.home2-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(37,99,235,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(37,99,235,.16);
}

.home2-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.home2-tile-titlewrap { min-width: 0; }

.home2-tile-title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  /* Lange Namen: max 2 Zeilen, kein Überlappen */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home2-tile-code {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  margin-top: 2px;
}

.home2-tile-access { display: flex; align-items: start; justify-content: flex-end; }

.home2-tile-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(0,0,0,.65);
  min-height: 36px;
}

.home2-tile-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.home2-empty {
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 14px;
  color: rgba(0,0,0,.65);
  background: rgba(0,0,0,.02);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home2-empty-title { font-weight: 700; margin-bottom: 4px; }
.home2-empty-sub { font-size: 13px; }

.home2-foot { margin-top: 14px; }


/* ===== Startseite – Gruppierte Projektübersicht ===== */

.home-hero2{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:18px 18px;
  border-radius:16px;
  border:1px solid rgba(37,99,235,.16);
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(255,255,255,0));
  margin-bottom:18px;
}
.home-hero2-left{ min-width: 320px; }
.home-hero2-right{ width: 360px; max-width: 40%; }
.home-hero2 .home-title{ margin:6px 0 8px 0; }
.home-hero2 .home-role{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.home-hero2 .home-sub{ color: #5b677a; font-size: 14px; }

.home-group-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  padding:14px 14px 16px 14px;
  margin-top:14px;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}

.home-group-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.home-group-title{
  font-weight:800;
  letter-spacing:.2px;
  font-size:16px;
}
.home-group-sub{
  color:#6b7280;
  font-size:13px;
  margin-top:2px;
}

.home-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap:12px;
}
@media (max-width: 1200px){
  .home-grid{ grid-template-columns: repeat(3, minmax(220px, 1fr)); }
}
@media (max-width: 900px){
  .home-hero2{ flex-direction:column; }
  .home-hero2-right{ width:100%; max-width:100%; }
  .home-grid{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 560px){
  .home-grid{ grid-template-columns: 1fr; }
}

.home-tile{
  border:1px solid rgba(37,99,235,.14);
  border-radius:16px;
  padding:12px 12px 12px 12px;
  background: linear-gradient(180deg, rgba(2,132,199,.04), rgba(255,255,255,0));
  transition: transform .12s ease, box-shadow .12s ease;
  min-height: 150px;
  display:flex;
  flex-direction:column;
}
.home-tile:hover{
  transform: translateY(-2px);
  box-shadow:0 14px 34px rgba(15,23,42,.10);
}

.home-tile-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.home-logo{
  font-weight:900;
  font-size:12px;
  letter-spacing:.6px;
  color:#0f172a;
}

.home-tile-title{
  font-weight:800;
  line-height:1.2;
  margin-top:2px;
  /* Lange Namen komplett anzeigen */
  white-space: normal;
  overflow: visible;
}
.home-tile-code{
  font-size:12px;
  color:#64748b;
  margin-top:2px;
}
.home-tile-desc{
  font-size:13px;
  line-height:1.35;
  margin-top:8px;
  flex: 1;
}

.home-tile-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin-top:10px;
}

.home-empty{
  grid-column: 1 / -1;
  border:1px dashed rgba(100,116,139,.35);
  border-radius:16px;
  padding:14px;
  color:#475569;
  background: rgba(248,250,252,.7);
}
.home-empty-title{ font-weight:800; }
.home-empty-sub{ margin-top:6px; }

.btn-small{ padding:8px 10px; font-size:13px; }


.home-tile-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;

  border-radius: 12px;
  background: #eef3ff;
  border: 1px solid rgba(37, 99, 235, 0.18);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.home-tile-logo {
  max-width: 26px;
  max-height: 26px;
  width: auto;
  height: auto;

  object-fit: contain;
  display: block;
}


/* START: Logo-Fix in Project-Tiles */
.home-tile-icon{
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;            /* wichtig */
  border-radius: 12px;
}

/* Greift auf jedes <img> im Icon-Container */
.home-tile-icon img{
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  object-fit: contain !important;
  display:block;
}
/* END: Logo-Fix */


.home-tile-open.disabled{
  opacity: .5;
  pointer-events: none;
}


.freigabe-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:16px;
  align-items:start;
}

.mini-title{
  margin:0;
  font-size:14px;
  font-weight:700;
}

.member-list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.member-row{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background: rgba(0,0,0,.02);
}

.member-avatar{
  width:34px;
  height:34px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.06);
  flex: 0 0 34px;
}

.member-info{
  flex:1;
  min-width:0;
}

.member-name{
  font-weight:700;
  line-height:1.2;
}

.member-mail{
  font-size:12px;
  opacity:.7;
  word-break: break-word;
}

.member-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

@media (max-width: 900px){
  .freigabe-grid{ grid-template-columns: 1fr; }
}

/* Projekt-Freigabe Layout */
.freigabe-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:start;
}

.freigabe-panel{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:12px;
  background: rgba(0,0,0,.015);
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.mini-title{
  margin:0;
  font-size:14px;
  font-weight:750;
}

/* Member list */
.member-list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.member-row{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:#fff;
}

.member-avatar{
  width:34px;
  height:34px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.06);
  flex: 0 0 34px;
}

.member-info{ flex:1; min-width:0; }
.member-name{ font-weight:750; line-height:1.2; }
.member-mail{ font-size:12px; opacity:.7; word-break:break-word; }

.member-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

/* Form */
.freigabe-form{ margin-top:10px; }
.freigabe-form .field{ margin-top:10px; }
.form-label{ display:block; font-size:12px; opacity:.75; margin-bottom:6px; }
.form-input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
}

.perm-box{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

.perm-title{
  font-size:12px;
  font-weight:750;
  margin-bottom:8px;
  opacity:.85;
}

.perm-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:8px 10px;
}

.perm-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}

.freigabe-actions{
  margin-top:12px;
  display:flex;
  justify-content:flex-end;
}

/* Buttons small danger */
.inline-form{ display:inline; margin:0; }
.btn-xs{ padding:6px 10px; border-radius:10px; font-size:12px; }
.btn-danger{
  border:1px solid rgba(220,0,0,.25);
  background: rgba(220,0,0,.08);
}
.btn-danger:hover{ border-color: rgba(220,0,0,.45); }

/* Empty state */
.empty-box{
  margin-top:10px;
  padding:12px;
  border-radius:12px;
  border:1px dashed rgba(0,0,0,.18);
  background: rgba(0,0,0,.015);
}
.empty-title{ font-weight:750; margin-bottom:4px; }

@media (max-width: 980px){
  .freigabe-grid{ grid-template-columns: 1fr; }
}


/* Fix: Inputs dürfen nicht über die Card hinaus überlappen */
.card input,
.card select,
.card textarea{
  max-width: 100%;
  box-sizing: border-box;
}


/* Fix: Grid-Items dürfen schrumpfen (verhindert Überlappungen) */
.form-grid > div,
.grid-3-fristen > .field,
.freigabe-grid > *{
  min-width: 0;
}

/* Fristen-Grid robust: bricht sauber um statt zu überlappen */
.grid-3-fristen{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Login */
.login-wrap{
  min-height: calc(100vh - 120px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 14px;
}

.login-card{
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 18px;
}

.login-head{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom: 14px;
}

.login-badge{
  width:42px;
  height:42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.06);
  flex: 0 0 42px;
}

.login-title{
  margin:0;
  font-size: 22px;
  letter-spacing: .2px;
}

.login-subtitle{
  margin: 3px 0 0;
  font-size: 13px;
  opacity: .75;
}

.login-form .field{ margin-top: 12px; }
.login-btn{
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
}

.login-foot{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}


.prozess-grid{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.prozess-section{
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.prozess-section:first-child{ border-top: 0; padding-top: 0; }

.prozess-section h3{
  margin: 0 0 6px;
  font-size: 14px;
}

.prozess-text{
  font-size: 13px;
  line-height: 1.55;
}

.side-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.7);
  margin-bottom: 14px;
}

.side-title{
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

.version-list{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.version-item{
  display:block;
  text-decoration:none;
  color: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
}

.version-item:hover{ background: rgba(0,0,0,.03); }

.version-item.active{
  border-color: rgba(11,94,168,.45);
  background: rgba(11,94,168,.06);
}

.v-title{ font-weight: 600; font-size: 13px; }
.v-meta{ font-size: 12px; opacity: .75; margin-top: 2px; }

@media (max-width: 980px){
  .prozess-grid{ grid-template-columns: 1fr; }
}


/* Prozessbeschreibung Layout */
.prozess-layout{
  display:grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 16px;
  align-items:start;
}

.prozess-main .prozess-form{
  margin-bottom: 16px;
}

.prozess-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.hint-box{
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  opacity: .9;
  background: rgba(255,255,255,.65);
}

.prozess-preview{
  margin-top: 14px;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 14px;
}

.preview-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 10px;
}

.preview-title{
  font-weight: 800;
  font-size: 13px;
}

.preview-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.preview-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.7);
}

.preview-card-title{
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
}

.preview-card-text{
  font-size: 13px;
  line-height: 1.55;
  opacity: .95;
}

/* Version Timeline */
.version-timeline{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.version-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.7);
}

.version-row.active{
  border-color: rgba(11,94,168,.45);
  background: rgba(11,94,168,.06);
}

.version-link{
  text-decoration:none;
  color: inherit;
  display:block;
  flex: 1;
  min-width: 0;
}

.v-top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
}

.v-title{ font-weight: 800; font-size: 13px; }
.v-date{ font-size: 12px; opacity: .75; white-space:nowrap; }

.v-sub{
  font-size: 12.5px;
  opacity: .85;
  margin-top: 3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Detail Box */
.detail-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-item{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.7);
}

.detail-label{
  font-size: 12px;
  opacity: .7;
}

.detail-value{
  margin-top: 3px;
  font-weight: 800;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px){
  .prozess-layout{ grid-template-columns: 1fr; }
  .detail-grid{ grid-template-columns: 1fr; }
}


.v-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

.v-author{
  opacity:.75;
  font-size:12px;
  margin-left:6px;
}

.diff-grid{
  display:grid;
  gap:14px;
}

.diff-block{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.7);
}

.diff-pre{
  margin:10px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  overflow:auto;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre;
}


/* Filter Grid: Actions wie ein Feld behandeln */
.filter-grid{
  display:grid;
  grid-template-columns: 140px 1fr 1fr 220px 160px 420px; /* letzter Block: Actions */
  gap:12px;
  align-items:end;
}
@media (max-width: 1100px){
  .filter-grid{ grid-template-columns: 140px 1fr 1fr; }
}
@media (max-width: 720px){
  .filter-grid{ grid-template-columns: 1fr; }
}

/* Actions Box optisch wie Input-Feld */
.filter-actions-field .form-label{ visibility:hidden; height:18px; }
.filter-actions-box{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  min-height:42px; /* entspricht Input-Höhe */
}
@media (max-width: 1100px){
  .filter-actions-box{ justify-content:flex-start; }
}



/* Panel als Flex-Container => Header oben, Scrollbereich füllt Rest */
.equal-card{
  display:flex;
  flex-direction:column;
  height: calc(100vh - 420px);   /* anpassbar: sorgt für gleiche Höhe */
  min-height: 520px;
}
@media (max-width: 1100px){
  .equal-card{ height:auto; min-height:auto; }
}

/* Scrollbereiche */
.scroll-area{
  flex:1;
  overflow:auto;
  padding-right:4px;
}


.pill-bad{
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: rgb(185, 28, 28);
  font-weight: 900;
}

.tour-card{
  border-left: 5px solid rgba(37, 99, 235, 0.25);
  background: linear-gradient(180deg, rgba(37,99,235,0.06), rgba(255,255,255,0));
}
.tour-card:hover{
  border-left-color: rgba(37, 99, 235, 0.45);
}


<style>
  .tour-detail-head-sticky{
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 10px;
    margin-bottom: 8px;
  }
</style>


<style>
  /* Layout rechts: Header bleibt, Liste scrollt */
  .tour-detail {
    display: flex;
    flex-direction: column;
    min-height: 520px; /* kann bleiben oder anpassen */
    height: 72vh;      /* sorgt für saubere Begrenzung bei langen Listen */
  }

  .tour-detail-head-sticky{
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 12px;
  }

  .tour-head-left { min-width: 0; }
  .tour-head-titleline{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
  }
  .tour-head-title{
    font-weight: 950;
    font-size: 16px;
    letter-spacing: .1px;
  }
  .tour-head-sub{
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tour-head-actions{
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
  }
  .tour-del-form{ display:inline; margin:0; }

  /* Kopfzeile: links Title, rechts Buttons */
  .tour-detail-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
  }

  /* Scrollcontainer: verhindert dass es unten "rausläuft" */
  .tour-detail-scroll{
    flex: 1;
    overflow: auto;
    padding: 12px;
  }

  /* Optional: schöner Scroll */
  .tour-detail-scroll::-webkit-scrollbar { width: 10px; }
  .tour-detail-scroll::-webkit-scrollbar-thumb { border-radius: 999px; }
</style>

/* ⋯ Menü */
.kebab{ position: relative; }
.kebab-btn{
  width: 40px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.kebab-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.14);
}

.kebab-menu{
  position:absolute;
  right:0;
  top: 42px;
  min-width: 190px;
  background:#fff;
  border:1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.10);
  padding: 6px;
  display:none;
  z-index: 20;
}
.kebab-menu.open{ display:block; }

.kebab-item{
  width:100%;
  text-align:left;
  border:none;
  background:transparent;
  padding: 10px 10px;
  border-radius: 10px;
  cursor:pointer;
  font-size: 13px;
}
.kebab-item:hover{
  background: rgba(0,0,0,0.05);
}
.kebab-sep{
  height:1px;
  background: rgba(0,0,0,0.08);
  margin: 6px 4px;
}
.kebab-form{ margin:0; }

.kebab-danger{
  color:#b91c1c;
}
.kebab-danger:hover{
  background: rgba(220,38,38,0.08);
}


/* === Icon-only Quick Actions (SVG) === */

.quick-actions{
  display:flex;
  gap:6px;
  align-items:center;
  padding:6px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.08);
  background:rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
}

.qa-btn{
  width:36px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.10);
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .12s ease,
    background .12s ease;
}

.qa-btn:hover{
  transform: translateY(-1px);
  box-shadow:0 10px 18px rgba(0,0,0,0.06);
  border-color:rgba(0,0,0,0.16);
}

.qa-btn:active{
  transform:none;
  box-shadow:0 6px 12px rgba(0,0,0,0.05);
}

.qa-icon{
  width:18px;
  height:18px;
  fill:none;
  stroke:#374151; /* neutral gray */
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Delete Action */
.qa-danger{
  border-color: rgba(220,38,38,0.22);
}

.qa-danger .qa-icon{
  stroke:#b91c1c;
}

.qa-danger:hover{
  background:rgba(220,38,38,0.04);
  box-shadow:0 12px 22px rgba(220,38,38,0.10);
}





  /* ===== Kalender – modern & professionell ===== */

.cal-toolbar{
display:flex;
justify-content:space-between;
align-items:center;
gap:12px;
flex-wrap:wrap;
margin-bottom:14px;
}

.cal-left{
display:flex;
align-items:center;
gap:10px;
flex-wrap:wrap;
padding:10px 12px;
border:1px solid rgba(0,0,0,0.06);
border-radius:999px;
background: rgba(255,255,255,0.9);
box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

.cal-left .pill{
border-radius:999px;
}

.cal-left .form-input{
border-radius:999px;
background: rgba(0,0,0,0.02);
border: 1px solid rgba(0,0,0,0.08);
}

.cal-right{
padding:10px 12px;
border-radius:999px;
border:1px solid rgba(0,0,0,0.06);
background: rgba(255,255,255,0.75);
}

.cal-wrap{
border:1px solid rgba(0,0,0,0.06);
border-radius:22px;
padding:14px;
background:
  radial-gradient(1200px 300px at 20% 0%, rgba(37,99,235,0.10), transparent 60%),
  radial-gradient(900px 240px at 90% 20%, rgba(16,185,129,0.08), transparent 55%),
  rgba(255,255,255,0.92);
box-shadow: 0 18px 30px rgba(0,0,0,0.05);
}

.cal-weekdays{
display:grid;
grid-template-columns:repeat(7, 1fr);
gap:10px;
padding:0 2px 12px 2px;
color:rgba(0,0,0,0.55);
font-weight:900;
font-size:12px;
letter-spacing:.2px;
text-transform:uppercase;
}

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

.cal-day{
border:1px solid rgba(0,0,0,0.06);
border-radius:18px;
padding:10px;
min-height:124px;
background: rgba(255,255,255,0.86);
box-shadow: 0 10px 18px rgba(0,0,0,0.03);
display:flex;
flex-direction:column;
gap:8px;
transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
overflow:hidden;
}

.cal-day:hover{
transform: translateY(-1px);
box-shadow: 0 18px 26px rgba(0,0,0,0.06);
border-color: rgba(37,99,235,0.20);
}

.cal-day-muted{
background: rgba(0,0,0,0.02);
border-style:dashed;
opacity:.55;
box-shadow:none;
}

/* Wochenende leicht getönt */
.cal-day-weekend{
background: rgba(2,6,23,0.02);
}

/* Heute: dezenter Ring */
.cal-day-today{
border-color: rgba(37,99,235,0.35) !important;
box-shadow: 0 0 0 4px rgba(37,99,235,0.10), 0 18px 28px rgba(0,0,0,0.06);
}

.cal-day-top{
display:flex;
justify-content:space-between;
align-items:center;
gap:8px;
}

.cal-day-num{
font-weight:950;
font-size:13px;
background: rgba(0,0,0,0.03);
padding:4px 8px;
border-radius:999px;
}

.cal-day-badge .pill{
border-radius:999px;
border: 1px solid rgba(37,99,235,0.20);
background: rgba(37,99,235,0.10);
font-weight:900;
}

.cal-day-list{
display:flex;
flex-direction:column;
gap:8px;
min-height:0;
}

/* Tour-Chip im Tag: mehr „lebendig“, aber clean */
.cal-pill{
width:100%;
text-align:left;
border:1px solid rgba(37,99,235,0.20);
background: linear-gradient(180deg, rgba(37,99,235,0.10), rgba(37,99,235,0.06));
border-radius:14px;
padding:9px 10px;
display:flex;
justify-content:space-between;
align-items:center;
gap:10px;
cursor:pointer;
transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.cal-pill:hover{
transform: translateY(-1px);
border-color: rgba(37,99,235,0.32);
box-shadow: 0 14px 20px rgba(37,99,235,0.10);
}

.cal-pill-name{
display:flex;
align-items:center;
gap:8px;
font-weight:950;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
max-width: 78%;
}

.cal-pill-name::before{
content:"";
width:10px;height:10px;border-radius:999px;
background: rgba(37,99,235,0.95);
box-shadow: 0 0 0 4px rgba(37,99,235,0.14);
flex: 0 0 auto;
}

.cal-pill-count{
font-size:12px;
font-weight:950;
padding:3px 8px;
border-radius:999px;
border:1px solid rgba(0,0,0,0.08);
background: rgba(255,255,255,0.8);
opacity:.95;
}

.cal-more{
font-size:12px;
color:rgba(0,0,0,0.55);
font-weight:800;
padding-left:2px;
}

/* List view button */
.cal-tour{
width:100%;
text-align:left;
border:1px solid rgba(0,0,0,0.08);
border-radius:16px;
padding:10px 12px;
background:#fff;
display:flex;
justify-content:space-between;
align-items:center;
gap:10px;
cursor:pointer;
transition: transform .15s ease, box-shadow .15s ease;
}
.cal-tour:hover{
transform: translateY(-1px);
box-shadow: 0 12px 18px rgba(0,0,0,0.06);
}



