/* Partnerportal im Agenturdesign (Vorschau, m7.3a73-Basis). Nur Darstellung. Wirkt ausschliesslich innerhalb von .ag-frame. */

/* ---- Navigation: Gruppen (Verwaltung, Pruefungen) wie die Agentur-Menuepunkte ---------------- */
.ag-frame .nav-list { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ag-frame .nav-list > li { margin: 0; }
.ag-frame .nav-gruppe-kopf {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; border-radius: 10px; padding: 11px 12px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--text); text-align: left;
}
.ag-frame .nav-gruppe-kopf:hover { background: var(--surface-sunk); }
.ag-frame .nav-gruppe-kopf.has-active { color: #0F5A66; font-weight: 650; }
.ag-frame .nav-chevron {
  width: 7px; height: 7px; margin-right: 4px; flex: none;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
}
.ag-frame .nav-gruppe-kopf[aria-expanded="true"] .nav-chevron { transform: rotate(225deg) translateY(-2px); }
.ag-frame .nav-unterliste { list-style: none; margin: 2px 0 6px; padding: 0 0 0 14px; }
.ag-frame .nav-unterlink {
  display: flex; align-items: center; border-radius: 8px; padding: 8px 12px;
  font-size: 14px; color: var(--text-muted); text-decoration: none;
}
.ag-frame .nav-unterlink:hover { background: var(--surface-sunk); color: var(--text); }
.ag-frame .nav-unterlink.is-active { background: var(--olive-tint); color: #0F5A66; font-weight: 650; }
.ag-frame .nav-block > .nav-link.has-active { background: var(--olive-tint); color: #0F5A66; }

/* ---- Seitenkopf, Panels, Tabellen ----------------------------------------------------------- */
.ag-frame .page-title { font-size: 26px; font-weight: 750; letter-spacing: -.02em; color: var(--text); }
.ag-frame .page-intro { color: var(--text-muted); font-size: 15px; }
.ag-frame .panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.ag-frame .table-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-1); overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.ag-frame .table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ag-frame .table th {
  background: var(--surface-sunk); color: var(--text-muted); font-size: 12.5px; font-weight: 600;
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.ag-frame .table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ag-frame .table tbody tr:last-child td { border-bottom: 0; }
.ag-frame .table tbody tr:hover td { background: #FAFCFD; }
.ag-frame .table .cell-date { white-space: nowrap; color: var(--text-muted); }
.ag-frame .table-note { color: var(--text-muted); font-size: 13px; margin: 10px 2px 0; }

/* ---- Buttons: Agentur-Hauptaktion (Petrol) ------------------------------------------------- */
.ag-frame .btn-primary { background: var(--olive); border-color: var(--olive); color: #fff; border-radius: 8px; font-weight: 650; }
.ag-frame .btn-primary:hover:not(:disabled) { background: var(--olive-dark); border-color: var(--olive-dark); }
.ag-frame .btn-secondary, .ag-frame .btn-quiet { border-radius: 8px; font-weight: 600; }

/* ---- Kleine Breiten: Kopfleiste darf nicht ueberlaufen --------------------------------------- */
@media (max-width: 360px) {
  .ag-frame .ag-benutzer .account-mail { display: none; }
  .ag-frame .ag-wortmarke .ag-badge { display: none; }
}

/* ---- Karten der Uebersicht: je Reihe gemeinsame Zeilen (Inhalt, Aktionen), Aktionen auf einer Linie ---- */
.ag-frame .ub-liste {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px; align-items: start;
}
.ag-frame .ub-liste > .ub-betrieb { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-width: 0; box-sizing: border-box; }
.ag-frame .ub-betrieb .ub-koerper,
.ag-frame .ub-betrieb .ub-koerper > div { display: contents; }
.ag-frame .ub-betrieb .ub-inhalt { min-width: 0; }
.ag-frame .ub-betrieb .ub-aktionen {
  align-self: start; padding-top: 12px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 10px; align-items: stretch;
}
.ag-frame .ub-betrieb .ub-aktionen > .btn {
  width: 100%; min-width: 0; min-height: 40px; box-sizing: border-box;
  justify-content: center; text-align: center; white-space: normal; overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .ag-frame .ub-betrieb .ub-aktionen { gap: 8px; }
  .ag-frame .pf-zeile > .btn { grid-column: 2; justify-self: start; width: auto; min-height: 40px; margin-top: 6px; }
}

/* ---- Touch-Bedienflaechen und erkennbares Scrollen (UI-Pruefung 11.10.2026) ---- */
@media (max-width: 720px) {
  .ag-frame .seg-option span { min-height: 44px; padding: 10px 14px; font-size: 14px; }
}
.ag-frame .table-wrap,
.table-wrap {
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
  background:
    linear-gradient(to right, var(--surface) 30%, rgba(255, 255, 255, 0)) 0 0 / 28px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, rgba(255, 255, 255, 0)) 100% 0 / 28px 100% no-repeat local,
    linear-gradient(to right, rgba(13, 27, 42, .14), rgba(13, 27, 42, 0)) 0 0 / 10px 100% no-repeat scroll,
    linear-gradient(to left, rgba(13, 27, 42, .14), rgba(13, 27, 42, 0)) 100% 0 / 10px 100% no-repeat scroll;
  background-color: var(--surface);
}

@media (max-width: 720px) {
  .ag-frame select.input, .ag-frame input.input { min-height: 44px; }
  .ag-frame .ag-benutzer .btn { min-height: 44px; }
}

/* Pruefschritt-Buttons auf Mobil: Bedienflaeche mindestens 44 x 44 px (sichtbare Groesse darf kleiner bleiben, ohne Ueberlappung). */
@media (max-width: 720px) {
  .ag-frame .pf-zeile .btn-klein { min-height: 44px; min-width: 44px; }
}
