/*
============================================================
ATLAS – atlas.css
============================================================
Schlanke, saubere Stylesheet-Basis fuer das ATLAS-Lite-Frontend.
Extrahiert aus Transpera HUB style.css (~7.770 Zeilen) — hier nur,
was die Lite-Seiten (Login, Dashboard, Datenpflege, Import) brauchen.

Farb-CI: HUB-Wert #005a76 (NICHT der alte ATLAS-Wert #005a77),
damit Lite und HUB exakt matchen.
============================================================
*/

/* ==========================
   CSS VARIABLES
========================== */
:root {
  --tp-primary:        #005a76;
  --tp-primary-hover:  #007c9d;
  --tp-accent:         #0f756d;   /* ATLAS-Akzent (aus SVG-Logo) */
  --tp-border:         #e5edf1;
  --tp-toolbar-bg:     #f8fbfc;
  --tp-text:           #333;
  --tp-radius:         14px;
  --radius-lg:         14px;
  --shadow-card:       0 2px 8px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 24px rgba(0,90,118,0.14);
  --border-card:       1.5px solid #edf0f2;
}

/* ==========================
   GLOBAL
========================== */
* { box-sizing: border-box; }

body {
  font-family: 'Roboto', sans-serif;   /* CI-Schrift des HUB */
  margin: 0;
  padding: 0;
  background-image: url('/assets/bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--tp-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex-grow: 1;
  padding: 2rem;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.92);
  width: 100%;
  min-height: calc(100vh - 150px);
  padding-bottom: 90px;
}

a { color: var(--tp-primary); }

/* ==========================
   ANIMATIONS
========================== */
@keyframes tp-spin { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes tp-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================
   HEADER  (Glasmorphismus, 1:1 HUB-Look)
========================== */
header {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0; height: 150px; flex-shrink: 0; position: relative; color: #fff;
  background: linear-gradient(180deg, rgb(0,45,59) 0%, rgb(0,35,46) 100%); z-index: 10000;
  box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.05) inset;
}
header::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(15,117,109,.9) 50%, transparent 100%); z-index: 3;
}
header .logo { position: relative; z-index: 2; margin-bottom: 12px; transition: transform .3s ease, filter .3s ease; }
header .logo:hover { transform: translateY(-3px); filter: drop-shadow(0 6px 20px rgba(15,117,109,.6)); }
header .logo img { height: 50px; filter: drop-shadow(0 2px 8px rgba(15,117,109,.3)); transition: filter .3s ease; }
header .logo:hover img { filter: drop-shadow(0 4px 16px rgba(15,117,109,.7)); }

header .menu { display: flex; gap: 6px; justify-content: center; z-index: 2; }
header .menu a { text-decoration: none; }
header .menu button {
  display: inline-flex; align-items: center; gap: 7px; background: transparent;
  color: rgba(255,255,255,.45); border: .5px solid transparent; padding: 7px 16px;
  border-radius: 20px; font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: inherit; transition: all .2s;
}
header .menu button:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.12); }
header .menu button i { font-size: 15px; color: inherit; }
header .menu button.active {
  background: rgba(255,255,255,.08); color: #fff; font-weight: 600;
  border: .5px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
header .menu button.active i { color: #0f756d; }

/* Logout rechts oben im Header */
.header-actions { position: absolute; top: 42px; right: 28px; transform: translateY(-50%); z-index: 10; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 13px; }
.btn-logout {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); border: .5px solid rgba(255,255,255,.15);
  border-radius: 8px; font-size: 15px; cursor: pointer; font-family: inherit; transition: all .2s; text-decoration: none;
}
.btn-logout:hover { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }

/* ==========================
   BUTTONS  (1:1 HUB)
========================== */
.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .2px;
  border: none; border-radius: 7px; cursor: pointer; background: var(--tp-primary);
  color: #fff !important; text-decoration: none !important;
  transition: background .2s, transform .15s, box-shadow .2s; box-sizing: border-box; line-height: 1; font-family: inherit;
}
.btn:hover, a.btn:hover { background: var(--tp-primary-hover); transform: translateY(-1px); box-shadow: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid rgba(0,90,118,.5); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; box-shadow: none; }

.btn--sm { height: 28px; min-height: 28px; padding: 0 10px; font-size: 12px; gap: 5px; border-radius: 6px; }
.btn--sm i { font-size: 13px; line-height: 1; transform: translateY(-.5px); }

.btn i { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; line-height: 1; vertical-align: middle; }

.btn.ghost { background: #fff; color: var(--tp-primary); border: 1.5px solid var(--tp-primary); }
.btn.ghost:hover { background: rgba(0,90,118,.08); color: var(--tp-primary); border-color: var(--tp-primary-hover); }

.btn.btn--danger { background: #761c00; }
.btn.btn--danger:hover { background: #a92800; box-shadow: 0 0 8px rgba(118,28,0,.5); }

/* Erfolgs-/Speichern-Button (gruen, wie HUB new-btn) */
.btn.btn--success { background: #007657; }
.btn.btn--success:hover { background: #00906a; box-shadow: 0 0 8px rgba(0,118,28,.5); }

/* Runde Icon-Buttons (HUB icon-btn) */
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: #fff; font-size: 16px; border: none; margin: 0 4px; cursor: pointer;
  background: var(--tp-primary); transition: background .3s ease, transform .2s ease;
}
.icon-btn:hover { background: var(--tp-primary-hover); transform: scale(1.08); box-shadow: 0 2px 6px rgba(0,90,118,.3); }
.icon-btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn i { color: #fff !important; }
.icon-btn.delete-btn { background: #761c00 !important; }
.icon-btn.delete-btn:hover { background: #5a1500 !important; }

/* ==========================
   PAGE FRAME  (frame-open.php Aequivalent)
========================== */
.page-frame {
  background: #fff; border-radius: var(--tp-radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.08); overflow: hidden; margin: 0 0 20px;
  animation: tp-fade-up .4s ease both;
}
.page-toolbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 10px 14px; min-height: 56px; border-bottom: 1px solid var(--tp-border);
  background: var(--tp-toolbar-bg); position: relative;
}
.page-heading { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--tp-primary); }
.page-heading i { color: var(--tp-primary); }
.page-tabs { display: flex; align-items: center; gap: 8px; justify-content: center; }
.page-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.page-body { padding: 20px; }
.page-frame.compact .page-toolbar { padding: 8px 12px; }
.page-frame.compact .page-body { padding: 12px; }

/* ==========================
   KPI CARDS  (1:1 aus aktueller HUB style.css)
========================== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 4px; }

.kpi-card {
  background: #fff; border: .5px solid rgba(0,0,0,.08); border-left: 3px solid var(--tp-primary);
  border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: center;
  min-height: 78px; cursor: default; transition: transform .2s ease, box-shadow .3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.1); }

.kpi-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kpi-card-icon {
  width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 17px;
}
.kpi-card h3 { font-size: 1.6rem; font-weight: 600; line-height: 1; margin: 0; color: #35474c; }
.kpi-card p  { font-size: 12px; color: #6c757d; margin: 6px 0 0 0; }

.kpi-card-trend { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.kpi-trend-up   { color: #007657; }
.kpi-trend-down { color: #761c00; }
.kpi-trend-flat { color: #6c757d; }

/* Akzent-Varianten (HUB-Farbpalette) — mit dezentem getoentem Hintergrund */
.kpi-primary { border-left-color: #005a76; background: #f6fafb; }
.kpi-primary .kpi-card-icon { background: #e0f0f5; color: #005a76; }
.kpi-success { border-left-color: #007657; background: #f5fbf8; }
.kpi-success .kpi-card-icon { background: #E1F5EE; color: #007657; }
.kpi-danger  { border-left-color: #761c00; background: #fdf8f6; }
.kpi-danger  .kpi-card-icon { background: #f5e0da; color: #761c00; }
.kpi-accent  { border-left-color: #76005a; background: #fdf6fb; }
.kpi-accent  .kpi-card-icon { background: #f5e0f0; color: #76005a; }
.kpi-neutral { background: #f8fafb; }
.kpi-neutral { border-left-color: #35474c; }
.kpi-neutral .kpi-card-icon { background: #eaeeef; color: #35474c; }

/* ----- KPI-Layout: Content links, KPI-Spalte rechts (HUB-weit) ----- */
.kpi-layout { display: flex; gap: 20px; align-items: flex-start; }
.kpi-layout-main { flex: 1 1 auto; min-width: 0; }
.kpi-col { flex: 0 0 240px; display: flex; flex-direction: column; gap: 10px; background: #eceff0; border-radius: 12px; padding: 12px; }

.kpi-col .kpi-card { padding: 13px; min-height: 0; border: none; border-left: 3px solid var(--tp-primary); border-radius: 0 8px 8px 0; box-shadow: none; }
.kpi-col .kpi-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.kpi-col .kpi-primary { border-left-color: #005a76; background: #f0f6f8; }
.kpi-col .kpi-primary .kpi-card-icon { background: #fff; }
.kpi-col .kpi-success { border-left-color: #007657; background: #f1faf6; }
.kpi-col .kpi-success .kpi-card-icon { background: #fff; }
.kpi-col .kpi-danger  { border-left-color: #761c00; background: #fbf2ef; }
.kpi-col .kpi-danger  .kpi-card-icon { background: #fff; }
.kpi-col .kpi-accent  { border-left-color: #76005a; background: #faf0f6; }
.kpi-col .kpi-accent  .kpi-card-icon { background: #fff; }
.kpi-col .kpi-neutral { border-left-color: #35474c; background: #f4f6f6; }
.kpi-col .kpi-neutral .kpi-card-icon { background: #fff; }

@media (max-width: 860px) {
  .kpi-layout { flex-direction: column; }
  .kpi-col { flex: 1 1 auto; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .kpi-col .kpi-card { flex: 1 1 160px; }
}

/* ==========================
   STATUS BADGES  (HUB-Werte)
========================== */
.status-badge { display: inline-block; padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.status-badge.aktiv            { background: #E1F5EE; color: #007657; }
.status-badge.geschlossen      { background: #f5e0da; color: #761c00; }
.status-badge.nicht-erreichbar { background: #fdf0d5; color: #b9770e; }
.status-badge.unbekannt        { background: #f0f0f0; color: #6c757d; }

/* Score-Ampel-Chips */
.ampel { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12px; }
.ampel .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ampel.gruen .dot { background: #1aa179; }
.ampel.gelb  .dot { background: #e0a800; }
.ampel.rot   .dot { background: #761c00; }
.ampel.grau  .dot { background: #b0bec5; }

/* ==========================
   TABLE  (1:1 HUB)
========================== */
.styled-table {
  font-size: 13px; width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06); border-radius: 10px; overflow: hidden;
}
.styled-table th {
  background: linear-gradient(180deg, #006a85 0%, #005a76 100%); color: #fff; padding: 12px 14px;
  font-size: 13px; font-weight: 600; text-align: left; border-bottom: 2px solid #004d5f;
  position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
.styled-table tbody tr { border-bottom: 1px solid #f1f5f7; transition: all .15s ease; }
.styled-table tbody tr:nth-child(even) { background: #fafcfd; }
.styled-table tbody tr:hover {
  background: linear-gradient(90deg, #f0f9ff 0%, #fff 100%);
  box-shadow: inset 3px 0 0 var(--tp-primary), 0 2px 8px rgba(0,90,118,.08); transform: translateX(2px);
}
.styled-table td { padding: 10px 14px; font-size: 13px; vertical-align: middle; border-bottom: 1px solid #f1f5f7; }
.styled-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.styled-table a { color: var(--tp-primary); font-weight: 600; text-decoration: none !important; transition: color .2s ease; }
.styled-table a:hover { color: #007c9d; text-decoration: underline !important; }

/* einfache Card fuer Listen/Detailbloecke (HUB detail-card) */
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.card h4 { margin: 0 0 15px; font-size: 18px; color: var(--tp-primary); display: flex; align-items: center; gap: 10px; }

/* Grid-Helfer */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.muted { color: #78909c; font-size: 13px; }
.code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; background: #f4f7f9; padding: 2px 8px; border-radius: 5px; }

/* ==========================
   LOGIN
========================== */
body.login-page { justify-content: center; align-items: center; }
.login-container {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  flex: 1 1 auto; width: 100%;
  backdrop-filter: blur(10px);
  background-color: rgba(0,0,0,.5);
  gap: 28px;
}
.login-container .logo { height: 56px; transition: transform .3s ease, filter .3s ease; filter: drop-shadow(0 2px 10px rgba(15,117,109,.35)); }
.login-container .logo:hover { transform: translateY(-3px); }

.login-box {
  width: 380px; padding: 45px 40px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(20px); border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.1) inset;
  transition: transform .3s ease, box-shadow .3s ease;
}
.login-box:hover { box-shadow: 0 16px 50px rgba(0,90,118,.3); }
.login-box h2 { margin: 0 0 22px; color: var(--tp-primary); text-align: center; font-weight: 700; }

.input-group { position: relative; margin-bottom: 16px; }
.input-group input {
  width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid var(--tp-border);
  border-radius: 9px; font-size: 14px; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.input-group input::placeholder { color: #90a4ae; }
.input-group input:focus { outline: none; border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgba(0,90,118,.12); }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #90a4ae; font-size: 15px; }
.input-group input:focus + i { color: var(--tp-primary); }
.login-box .btn { width: 100%; height: 42px; margin-top: 4px; }

.error-message {
  display: flex; align-items: center; gap: 8px; background: #f5e0da; color: #761c00;
  padding: 10px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 16px;
}

/* ==========================
   FOOTER
========================== */
footer {
  display: flex; justify-content: center; align-items: center; padding: 0 28px;
  font-size: 14px; color: #fff; position: fixed; width: 100%; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(0,45,59,.95) 0%, rgba(0,35,46,.98) 100%);
  backdrop-filter: blur(20px) saturate(180%); height: 70px; box-sizing: border-box;
  gap: 24px; box-shadow: 0 -4px 20px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.05) inset; z-index: 9999;
}
footer::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(15,117,109,.9) 50%, transparent 100%);
}
.footer-col { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.footer-left { text-align: left; font-size: 11px; line-height: 1.4; opacity: .85; }
.footer-center { text-align: center; display: flex; justify-content: center; align-items: center; }
.footer-right { text-align: right; display: flex; align-items: center; }

.footer-badge {
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px); color: #fff;
  border: 1px solid rgba(255,255,255,.15); padding: 10px 18px; border-radius: 30px;
  font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  transition: all .3s cubic-bezier(.4,0,.2,1); white-space: nowrap; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); position: relative; overflow: hidden;
}
.footer-badge::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%;
  background: rgba(15,117,109,.3); transform: translate(-50%,-50%); transition: width .5s ease, height .5s ease;
}
.footer-badge:hover::before { width: 300%; height: 300%; }
.footer-badge i { font-size: 16px; color: #0f756d !important; position: relative; z-index: 1; transition: transform .3s ease; }
.footer-badge:hover i { transform: rotate(360deg) scale(1.1); }
.footer-badge:hover {
  background: rgba(15,117,109,.25); border-color: rgba(15,117,109,.5);
  box-shadow: 0 4px 16px rgba(15,117,109,.4), 0 0 20px rgba(15,117,109,.2); transform: translateY(-2px);
}
.footer-badge span, .footer-badge a { position: relative; z-index: 1; }

/* ==========================
   TOAST (Rueckmeldung nach Aktionen)
========================== */
/* (Alter mittig-oben-Toast entfernt – ersetzt durch HUB-Stil #tp-toast-layer am Dateiende) */


/* Responsive: Menue auf Mobil umbrechen */
@media (max-width: 640px) {
  header { height: auto; padding: 14px 0; }
  header .menu { flex-wrap: wrap; padding: 0 12px; }
  .header-actions { position: static; transform: none; margin-top: 8px; }
  main { padding: 1rem; }
}

/* ==========================
   DATENPFLEGE – FALL-CARDS
   (Struktur aus Interviewer-HUB .billing-card)
========================== */
.dp-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: var(--border-card);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.dp-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,90,118,0.2);
}
/* Linker Akzentstreifen je Abweichungs-Stufe: signalisiert auf einen Blick,
   wie stark die Google-Nummer abweicht. */
.dp-card--stark  { border-left: 4px solid #b00000; }
.dp-card--mittel { border-left: 4px solid #c45109; }
.dp-card--gering { border-left: 4px solid #1f7a8c; }

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.dp-name { font-size: 14px; font-weight: 700; color: #1a1a1a; flex: 1; min-width: 0; }

/* Score-Badge (Pille) — Ampel-Farben */
.dp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  flex-shrink: 0; white-space: nowrap;
}
.dp-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.dp-badge.gruen { background: rgba(22,163,74,0.12);  color: #15803d; }
.dp-badge.gruen .dot { background: #15803d; }
.dp-badge.gelb  { background: rgba(249,115,22,0.12); color: #c45109; }
.dp-badge.gelb .dot { background: #c45109; }
.dp-badge.rot   { background: rgba(176,0,0,0.10);    color: #b00000; }
.dp-badge.rot .dot { background: #b00000; }
.dp-badge.grau  { background: rgba(120,144,156,0.12); color: #607d8b; }
.dp-badge.grau .dot { background: #90a4ae; }

.dp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: #777; align-items: center; }
.dp-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.dp-meta-item i { color: #bbb; font-size: 12px; }

/* Google-Extras (Website/Öffnungszeiten) rechtsbuendig in der Meta-Zeile,
   auf gleicher Hoehe wie Ort/ID. margin-left:auto schiebt sie nach rechts
   ueber die Google-Spalte. */
.dp-extra-meta { margin-left: auto; display: inline-flex; gap: 16px; align-items: center; }
.dp-extra-link {
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  color: #0f756d; font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
}
.dp-extra-link:hover { text-decoration: underline; }
.dp-extra-link i { color: #0f756d; font-size: 12px; }
.dp-extra-caret { font-size: 9px !important; transition: transform .2s; }
.dp-extra-link.offen .dp-extra-caret { transform: rotate(180deg); }

/* Öffnungszeiten-Panel: klappt unter dem Vergleich auf, ohne die Standardhoehe
   der Karte zu beeinflussen (nur sichtbar wenn aufgeklappt). */
.dp-oeffnung-panel {
  margin-top: 10px; padding: 10px 14px;
  background: #f6f9fa; border: 1px solid #e6edf0; border-radius: 8px;
}
.dp-oeffnung-panel pre {
  margin: 0; white-space: pre-wrap; font-size: 12px; color: #555;
  font-family: ui-monospace, Menlo, monospace;
}

/* Abweichungs-Chip: farblich abgestuft nach Schweregrad (gering/mittel/stark).
   Ersetzt den frueheren farblosen "Andere Nummer als bei uns"-Hinweis. */
.dp-abw {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.dp-abw i { font-size: 12px; }
.dp-abw-stark  { background: #fbeaea; color: #b00000; }
.dp-abw-stark i { color: #b00000; }
.dp-abw-mittel { background: #fdf0e2; color: #b9620e; }
.dp-abw-mittel i { color: #b9620e; }
.dp-abw-gering { background: #e8f4f7; color: #1f6b7d; }
.dp-abw-gering i { color: #1f6b7d; }

/* ── Quellen-Vergleich: "bei uns" (DB) gegen "bei Google" ──────────────
   Zwei klar getrennte Spalten, damit auf einen Blick erkennbar ist, welche
   Daten aus unserer DB stammen und was Google gefunden hat. */
.dp-vergleich {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  margin-top: 12px;
}

/* ── Zeilensynchrone Vergleichstabelle (Datenpflege) ──────────────── */
.dp-hinweis {
  font-size: 12px; color: #90a4ae; margin: 10px 0 6px;
  display: flex; align-items: center; gap: 6px;
}
.dp-hinweis i { font-size: 11px; }

.dp-tabelle {
  border: 1px solid #e6edf0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}
.dp-t-kopf, .dp-t-zeile {
  display: grid;
  grid-template-columns: 86px 1fr 1fr 1fr;
}
.dp-t-kopf {
  background: #f5f8fa;
  border-bottom: 1px solid #e6edf0;
}
.dp-t-kopf > div {
  padding: 7px 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: #90a4ae;
}
.dp-t-h-uns { color: #005a76 !important; }
.dp-t-h-google { color: #0f756d !important; }

.dp-t-zeile { border-bottom: 1px solid #eef2f4; align-items: stretch; }
.dp-t-zeile--last { border-bottom: none; }
.dp-t-label {
  padding: 9px 12px; background: #f8fafb;
  font-size: 11px; color: #90a4ae; font-weight: 600;
  display: flex; align-items: center;
}
.dp-t-uns {
  padding: 9px 12px; font-size: 13px; color: #1a2b30;
  display: flex; flex-direction: column; justify-content: center;
}
.dp-t-google, .dp-t-zusatz {
  padding: 5px 8px; font-size: 13px;
  border-left: 1px solid #eef2f4;
  display: flex; align-items: center;
}
.dp-t-zusatz { border-left: 1px dashed #e0e8ec; color: #5a6b73; }
.dp-mono { font-family: ui-monospace, Menlo, monospace; }

/* anklickbare Google-Zelle */
.dp-z-pick {
  position: relative; width: 100%;
  padding: 6px 10px; border-radius: 7px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.dp-z-pick:hover { background: #eef7f5; border-color: #9fd4cd; }
.dp-z-pick.aktiv { background: #E1F5EE; border-color: #1D9E75; }
.dp-z-haken {
  position: absolute; top: 6px; right: 8px;
  color: #0F6E56; font-size: 11px; opacity: 0;
}
.dp-z-pick.aktiv .dp-z-haken { opacity: 1; }
.dp-z-pick.aktiv { color: #04342C; }
.dp-z-sub { color: #90a4ae; font-size: 11px; }
.dp-z-pick a { color: #185FA5; }
.dp-z-leer { padding: 9px 12px; color: #c0cbd1; }
.dp-z-info { padding: 6px 10px; color: #5a6b73; }
.dp-z-info a { color: #185FA5; }
.dp-fehlt { color: #b0bec5; font-style: italic; }

.dp-btn-uebernehmen:disabled { opacity: .5; cursor: not-allowed; }

/* Tabelle + Buttons nebeneinander */
.dp-arbeitsbereich {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 8px;
}
.dp-arbeitsbereich .dp-tabelle {
  flex: 1;
  margin-top: 0;
  min-width: 0;
}
.dp-aktionen-spalte {
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  width: 168px;
  flex-shrink: 0;
}
.dp-aktionen-spalte .dp-btn { width: 100%; }

@media (max-width: 820px) {
  .dp-arbeitsbereich { flex-direction: column; }
  .dp-aktionen-spalte { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .dp-aktionen-spalte .dp-btn { flex: 1; width: auto; }
  .dp-t-kopf { display: none; }
  .dp-t-zeile { grid-template-columns: 70px 1fr; }
  .dp-t-zusatz { grid-column: 2; border-left: none; }
  .dp-t-google { border-left: none; }
}
.dp-quelle {
  border: 1.5px solid;
  border-radius: 10px;
  padding: 11px 14px;
}
/* Unsere Daten: Transpera-Primaerfarbe (Teal-Blau). */
.dp-quelle--uns {
  border-color: #bfe0e8;
  background: #f2fafc;
}
/* Google-Daten: Atlas-Akzentfarbe, klar abgesetzt. */
.dp-quelle--google {
  border-color: #cfe6e3;
  background: #f3faf9;
}
.dp-q-kopf {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 8px;
}
.dp-quelle--uns .dp-q-kopf { color: #005a76; }
.dp-quelle--uns .dp-q-kopf i { color: #005a76; }
.dp-quelle--google .dp-q-kopf { color: #0f756d; }
.dp-quelle--google .dp-q-kopf i { color: #0f756d; }

.dp-q-num {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 15px; font-weight: 600; color: #1a2b30;
}
.dp-quelle--google .dp-q-num { color: #0c4d47; }

.dp-q-name { font-size: 12.5px; color: #5a6b73; margin-top: 5px; line-height: 1.35; }
/* Abweichender Google-Name: hervorgehoben, da relevant fuer "Name & Nr. ersetzen". */
.dp-q-name.abweichend { color: #b9620e; font-weight: 600; }

.dp-q-typ { font-size: 12px; color: #0f756d; margin-top: 6px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.dp-q-typ i { font-size: 12px; }
.dp-q-typ-raw { color: #8a9aa0; font-size: 11px; }
/* Typ-Mismatch (Google-Typ passt nicht zur Betriebsart): Warnfarbe. */
.dp-q-typ.mismatch { color: #9a6b00; }
.dp-q-typ.mismatch .dp-q-typ-raw { color: #b08842; }
.dp-q-typ-warn { color: #c45109 !important; }

.dp-vergleich-pfeil {
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px; color: #b0bec5; font-size: 16px;
}

/* Aktionen unter dem Vergleich: Anrufhistorie-Link LINKS, Aktions-Buttons
   RECHTS (dort liegt das Auge ohnehin wegen der Historie). */
.dp-aktionen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed rgba(0,90,118,0.15);
}
.dp-aktionen-zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }

/* Historie-Toggle: dezenter Textlink */
.dp-histo-toggle {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--tp-primary); font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px;
}
.dp-histo-toggle:hover { text-decoration: underline; }
.dp-histo-toggle i { font-size: 10px; transition: transform .2s; }
.dp-histo-toggle.offen i { transform: rotate(180deg); }

/* Historie-Panel: volle Breite */
.dp-histo-panel { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(0,90,118,0.15); }
.dp-histo-table { font-size: 12.5px; }
.dp-histo-table th {
  background: #f5f8fa; color: #5a6b73; font-weight: 600;
  border-bottom: 1px solid #e6edf0; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.dp-histo-table tbody tr:hover { background: #f7fbfc; box-shadow: none; transform: none; }
.dp-histo-table { box-shadow: none; border: 1px solid #eef2f4; }

/* Dezente Datenpflege-Buttons */
.dp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .2px;
  border-radius: 8px; cursor: pointer; font-family: inherit; line-height: 1;
  border: 1.5px solid transparent; background: transparent;
  transition: background .18s, color .18s, border-color .18s;
}
.dp-btn-pri { background: var(--tp-primary); color: #fff; }
.dp-btn-pri:hover { background: var(--tp-primary-hover); }
.dp-btn-sec { color: #607d8b; border-color: #d4dde2; background: #fff; }
.dp-btn-sec:hover { color: var(--tp-primary); border-color: var(--tp-primary); background: rgba(0,90,118,.05); }
.dp-btn-del { color: #a0625a; border-color: #e3d2cf; background: #fff; }
.dp-btn-del:hover { color: #b00000; border-color: #b00000; background: rgba(176,0,0,.05); }

/* Extras (Website/Öffnungszeiten/Historie) */
.dp-extra { margin-top: 10px; font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.dp-extra a { color: var(--tp-primary); }
.dp-histo { margin-top: 10px; font-size: 13px; }
.dp-histo summary { cursor: pointer; color: var(--tp-primary); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.dp-histo summary::-webkit-details-marker { display: none; }
.dp-histo summary::before { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; transition: transform .2s; }
.dp-histo[open] summary::before { transform: rotate(180deg); }
.dp-histo ul { margin: 8px 0 0; padding-left: 18px; color: #555; }
.dp-histo li { margin-bottom: 3px; }

.dp-pager { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 16px; }
/* Pager-Pfeile: runde, klar sichtbare Buttons in Primaerfarbe (ghost-Look). */
.dp-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 32px; border-radius: 8px; cursor: pointer;
  background: #fff; color: var(--tp-primary); border: 1.5px solid var(--tp-primary);
  font-size: 13px; transition: background .18s, color .18s, opacity .18s;
}
.dp-page-btn:hover:not(:disabled) { background: rgba(0,90,118,.08); }
.dp-page-btn:disabled { opacity: .35; cursor: not-allowed; border-color: #cdd9df; color: #90a4ae; }

@media (max-width: 760px) {
  .dp-vergleich { grid-template-columns: 1fr; gap: 10px; }
  .dp-vergleich-pfeil { transform: rotate(90deg); padding: 0; }
  .dp-aktionen { flex-direction: column; align-items: stretch; }
  .dp-aktionen-zeile .dp-btn { flex: 1; }
}

/* ==========================
   DASHBOARD-VERTEILUNGEN – dezente Tabellen
   (heller Header, ruhiger Hover; nur in diesem Block)
========================== */
.verteilungen .styled-table, .verteilung-card .styled-table {
  box-shadow: none;
  border: 1px solid #eef2f4;
  border-radius: 10px;
}
.verteilungen .styled-table th, .verteilung-card .styled-table th {
  background: #f5f8fa;
  color: #5a6b73;
  font-weight: 600;
  border-bottom: 1px solid #e6edf0;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}
.verteilungen .styled-table tbody tr:hover, .verteilung-card .styled-table tbody tr:hover {
  background: #f7fbfc;
  box-shadow: none;
  transform: none;
}

/* ==========================
   IMPORT-SEITE
========================== */
.upload-zone {
  border: 2px dashed #cdd9df; border-radius: 12px; padding: 40px 20px;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s; background: #fafcfd;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--tp-primary); background: rgba(0,90,118,.04); }
.upload-zone i { font-size: 32px; color: var(--tp-primary); margin-bottom: 10px; }
.upload-zone p { margin: 4px 0; }
#upload-status { text-align: center; }

/* Mapping als Tabelle: Atlas-Feld | Excel-Spalte (Dropdown) | Vorschau */
.map-center { display: flex; flex-direction: column; align-items: center; }
.map-center #projekte-block { width: 100%; max-width: 860px; }
.map-table { width: 100%; max-width: 860px; border-collapse: collapse; margin: 0 auto; }
.map-table thead th {
  text-align: left; font-size: 11px; font-weight: 700; color: #90a4ae;
  text-transform: uppercase; letter-spacing: .4px; padding: 0 0 8px 0; border-bottom: 1.5px solid #e3e9ec;
}
.map-table td { padding: 5px 0; vertical-align: middle; }
.map-table tbody tr + tr td { border-top: 1px solid #eef2f4; }
.map-label { font-size: 13px; font-weight: 600; color: #455a64; white-space: nowrap; padding-right: 18px !important; width: 170px; }
.map-select { width: 300px; padding-right: 18px !important; }
.map-select select, .map-select input[type=date] {
  width: 100%; height: 36px; padding: 0 10px; font-size: 13px; font-family: inherit;
  border: 1.5px solid #d4dde2; border-radius: 8px; background: #fff; color: #263238; box-sizing: border-box;
}
.map-select select:focus, .map-select input[type=date]:focus {
  outline: none; border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgba(0,90,118,.1);
}
.map-vorschau {
  font-size: 12.5px; color: #607d8b; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  background: #f6f8f9; border-radius: 6px; padding: 4px 10px !important; max-width: 320px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.progress-bar { height: 10px; background: #e0e8ed; border-radius: 6px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--tp-primary), var(--tp-accent)); border-radius: 6px; transition: width .4s ease; }

.import-stage { margin-bottom: 14px; font-size: 14px; }
.import-stage-done { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #007657; }
.import-stage-done i { font-size: 18px; }

.notice { padding: 12px 16px; border-radius: 8px; font-size: 13.5px; border-left: 4px solid var(--tp-primary); background: #f0f7fa; }
.notice-danger { border-left-color: #b00000; background: #fdf4f2; color: #7a1500; }

/* ==========================
   WERKSTÄTTEN-SEITE
========================== */
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; }
.filter-feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.filter-feld label { font-size: 12px; font-weight: 600; color: #607d8b; }
.filter-feld input[type=text], .filter-feld input[type=number], .filter-feld input:not([type]), .filter-feld select {
  height: 38px; padding: 0 10px; font-size: 13px; font-family: inherit;
  border: 1.5px solid #d4dde2; border-radius: 8px; background: #fff; color: #263238;
}
.filter-feld input:focus, .filter-feld select:focus {
  outline: none; border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgba(0,90,118,.1);
}

/* Multiselect-Dropdown (Checkbox-Panel) */
.ms { position: relative; }
.ms-button {
  width: 100%; height: 38px; padding: 0 32px 0 10px; font-size: 13px; font-family: inherit;
  border: 1.5px solid #d4dde2; border-radius: 8px; background: #fff; color: #263238;
  text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative;
}
.ms-button:hover { border-color: #b6c4cc; }
.ms-button.aktiv { border-color: var(--tp-primary); color: var(--tp-primary); font-weight: 600; }
.ms-button::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px;
  color: #90a4ae; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
}
.ms.offen .ms-button { border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgba(0,90,118,.1); }
.ms-panel {
  display: none; position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 260px; overflow-y: auto; background: #fff; border: 1.5px solid #d4dde2;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px;
}
.ms.offen .ms-panel { display: block; }
.ms-opt { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.ms-opt:hover { background: #f4f7f9; }
.ms-opt input { width: 15px; height: 15px; accent-color: var(--tp-primary); cursor: pointer; flex: none; }
.ms-leer { padding: 10px; font-size: 12.5px; color: #90a4ae; }

.export-zeile { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tp-border); }
.export-zeile input { flex: 1; height: 38px; padding: 0 12px; font-size: 13px; font-family: inherit;
  border: 1.5px solid #d4dde2; border-radius: 8px; }
.export-zeile input:focus { outline: none; border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgba(0,90,118,.1); }

@media (max-width: 1100px) { .filter-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .filter-grid { grid-template-columns: repeat(2, 1fr); } }

/* Sortieren/Anzeigen rechts in der Toolbar */
.toolbar-controls { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.toolbar-controls .muted { align-self: center; }
.tb-feld { display: flex; flex-direction: column; gap: 3px; }
.tb-feld label { font-size: 11px; font-weight: 600; color: #90a4ae; text-transform: uppercase; letter-spacing: .3px; }
.tb-feld select {
  height: 34px; padding: 0 28px 0 10px; font-size: 13px; font-family: inherit;
  border: 1.5px solid #d4dde2; border-radius: 8px; background: #fff; color: #263238;
}
.tb-feld select:focus { outline: none; border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgba(0,90,118,.1); }


/* ============================================================
   Anreicherung-Tab – Feld-Vergleich
   Nutzt das Datenpflege-Layout (dp-vergleich/dp-quelle): links
   "Bei uns" (fehlt), rechts der Google-Wert, Checkbox je Feld.
   ============================================================ */
.anr-felder {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 12px 0;
}
.anr-zeile {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 12px 12px;
  background: #fafcfd;
}
.anr-zeile-kopf { margin-bottom: 8px; }
.anr-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #005a77;
  font-size: 14px;
}
.anr-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* linke Spalte: noch leerer Bestandswert */
.anr-leer { color: #9aa7ad; font-style: italic; font-weight: 400; }

/* Anreicherung im Tabellenlayout (teilt sich dp-tabelle/dp-z-pick mit Datenpflege) */
.anr-gleich { color: #5a6b73; }
.anr-ok { color: #1D9E75 !important; }
.anr-ok i { color: #1D9E75; }
.anr-feld-label { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #90a4ae; margin-bottom: 2px; }
.anr-uns-klein { font-size: 12.5px; color: #5a6b73; margin-bottom: 4px; }
.anr-uns-klein a { color: #007a9a; }
.anr-zusatz-pick .dp-z-pick { font-size: 12.5px; }
.anr-nichtabgefragt { color: #b0bec5; font-style: italic; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.anr-nichtabgefragt i { font-size: 10px; opacity: .7; }

/* Anreicherung: 3-Spalten-Tabelle (Label | Bei uns | Bei Google), keine Zusatzspalte */
.dp-tabelle--3sp .dp-t-kopf,
.dp-tabelle--3sp .dp-t-zeile { grid-template-columns: 130px 1fr 1fr; }
@media (max-width: 820px) {
  .dp-tabelle--3sp .dp-t-kopf { display: none; }
  .dp-tabelle--3sp .dp-t-zeile { grid-template-columns: 90px 1fr; }
  .dp-tabelle--3sp .dp-t-google { border-left: none; grid-column: 2; }
}

/* rechter Google-Wert */
.anr-wert { font-weight: 500; word-break: break-word; }
.anr-wert a { color: #007a9a; }
.anr-oeffnung {
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  white-space: pre-wrap;
  color: #333;
  font-weight: 400;
}

/* dp-q-num ist fuer kurze Telefonnummern gestylt (gross/mono);
   fuer Anreicherungs-Werte (URL, Zeiten) auf normale Textgroesse zwingen */
.anr-wert.dp-q-num {
  font-size: 14px;
  font-family: inherit;
  letter-spacing: normal;
  line-height: 1.4;
}

/* Google-Kontext im Kopf: Name + Adresse + Typ in einer Zeile.
   Zeigt, WELCHEN Betrieb Google gematcht hat, direkt unter unserer Meta-Zeile. */
.anr-google-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 4px 0 2px; font-size: 12.5px; color: #0f756d;
}
.anr-google-meta i.fa-google { color: #0f756d; }
.anr-google-meta strong { color: #0c4d47; font-weight: 700; }
.anr-google-meta span { color: #5a6b73; }
.anr-google-meta.anr-warn strong { color: #b9620e; }
.anr-warn-tag {
  display: inline-flex; align-items: center; gap: 4px;
  color: #b9620e !important; font-weight: 600;
}
.anr-warn-tag i { font-size: 11px; color: #b9620e; }

/* Klickbare Google-Spalte: ganze Inner-Card als <label> -> Klick togglet Haekchen.
   Hover/Checked optisch hervorheben, damit klar ist, dass die Card waehlbar ist. */
.anr-waehlbar { cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.anr-waehlbar:hover { border-color: #0f756d; box-shadow: 0 0 0 2px rgba(15,117,109,.08); }
.anr-waehlbar:has(input:checked) { background: #ecf7f5; border-color: #9fd4cd; }
.anr-google-kopf {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.anr-google-kopf input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #0f756d; }
.anr-google-kopf .dp-q-kopf { color: #0f756d; }
.anr-google-kopf .dp-q-kopf i { color: #0f756d; }

/* ── Eigener Bestaetigungsdialog (ersetzt natives confirm) ──────────── */
.tp-confirm-overlay {
  position: fixed; inset: 0; z-index: 9000;
  opacity: 0; transition: opacity .13s ease;
}
.tp-confirm-overlay.show { opacity: 1; }
/* Anker-Variante: kein abgedunkelter Hintergrund, nur Klick-Fänger */
.tp-confirm-overlay--anker { background: transparent; }

.tp-confirm {
  position: absolute;
  width: 300px; max-width: calc(100vw - 16px);
  background: #fff; border: 1px solid #e2e8ec; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,40,50,.22);
  padding: 16px 16px 14px;
  transform: scale(.96); transition: transform .13s ease;
}
.tp-confirm-overlay.show .tp-confirm { transform: scale(1); }
.tp-confirm--mittig {
  left: 50% !important; top: 50% !important;
  transform: translate(-50%,-50%) scale(.96);
}
.tp-confirm-overlay.show .tp-confirm--mittig { transform: translate(-50%,-50%) scale(1); }

.tp-confirm-text { font-size: 13.5px; line-height: 1.5; color: #1a2b30; margin-bottom: 14px; }
.tp-confirm-aktionen { display: flex; gap: 8px; justify-content: flex-end; }
.tp-confirm-btn {
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  transition: background .12s, border-color .12s;
}
.tp-confirm-abbrechen { background: #f1f5f6; color: #5a6b73; border-color: #e2e8ec; }
.tp-confirm-abbrechen:hover { background: #e7edef; }
.tp-confirm-ok { background: #0f756d; color: #fff; }
.tp-confirm-ok:hover { background: #0c5f58; }
.tp-confirm-gefahr { background: #c0392b; color: #fff; }
.tp-confirm-gefahr:hover { background: #a83224; }

/* ── Toast im Transpera-HUB-Stil (oben rechts, gestapelt) ───────────── */
#tp-toast-layer {
  position: fixed;
  top: 80px;            /* wird per JS nach Header-Höhe gesetzt */
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.tp-toast {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 380px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #003d52;
  color: #fff;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: 0 8px 28px rgba(0, 30, 40, 0.28);
  border-left: 3px solid #4a8fa3;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .25s ease, transform .25s ease;
}
.tp-toast--show { opacity: 1; transform: translateX(0); }
.tp-toast--hide { opacity: 0; transform: translateX(20px); }
.tp-toast--success { border-left-color: #22c55e; }
.tp-toast--error   { border-left-color: #ef4444; }
.tp-toast--warning { border-left-color: #f59e0b; }
.tp-toast--info    { border-left-color: #3b82f6; }
.tp-toast__text { flex: 1; white-space: pre-line; }
.tp-toast__close {
  background: none; border: none; color: rgba(255,255,255,.45);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
  margin-left: 4px; flex-shrink: 0; transition: color .15s;
}
.tp-toast__close:hover { color: #fff; }
.tp-toast__bar {
  position: absolute; bottom: 0; left: 0; height: 2px; width: 100%;
  background: rgba(255,255,255,.2); transform-origin: left;
  animation: tp-toast-bar 4s linear forwards;
}
@keyframes tp-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 768px) {
  #tp-toast-layer { right: 12px; left: 12px; }
  .tp-toast { min-width: unset; max-width: 100%; }
}
