/* ============================================================
   profile-overlay.css — Lehrer-Profil-Overlay (po-* Prefix)
   Kontext: catalog-teachers.html
   Mockup:  mockup-profile-overlay-v2.html (zentrierter Dialog)
   Vorgänger-Design: mockup-profile-overlay-legacy.html (rechtes Panel)

   TOKEN-STRATEGIE:
   Die App nutzt Bootstrap-Neutrals + abweichende color-* Werte.
   Das Mockup nutzt Tailwind-Neutrals + andere color-* Werte.
   Lösung: alle abweichenden Werte als --po-* Tokens in :root.
   Übereinstimmende App-Tokens direkt als var():
     var(--color-900)    #060f1c  ✓
     var(--brand-orange) #F28C38  ✓
     var(--danger-text)  #b91c1c  ✓
   ============================================================ */

/* ── po-* Component-Tokens ───────────────────────────────────────
   ALLE Hex-Werte nur hier — nirgends sonst in dieser Datei.
   Abweichende Werte zwischen App-Tokens und Mockup-Tokens werden
   hier mit --po-Präfix definiert und dann per var() genutzt.
   ─────────────────────────────────────────────────────────────── */
:root {
  /* Blue family — App --color-600: #1a3e73 / Mockup: #2451a3 → alle abweichend */
  --po-color-50:   #f4f8fe;
  --po-color-100:  #e7f0fb;
  --po-color-200:  #c9dcf7;
  --po-color-400:  #5b8de0;
  --po-color-500:  #3068c8;
  --po-color-600:  #2451a3;
  --po-color-700:  #1a3a6e;

  /* Neutral family — App nutzt Bootstrap-Skala, Mockup Tailwind-Skala */
  --po-surface:       #ffffff;
  --po-neutral-50:    #f9fafb;
  --po-neutral-100:   #f3f4f6;
  --po-neutral-200:   #e5e7eb;
  --po-neutral-300:   #d1d5db;
  --po-neutral-400:   #9ca3af;
  --po-neutral-500:   #6b7280;
  --po-neutral-600:   #4b5563;
  --po-neutral-700:   #374151;
  --po-neutral-900:   #111827;

  /* Brand — orange-dark: App-Token heisst --brand-orange-active */
  --po-orange-dark:   #C06020;

  /* Semantic */
  --po-success:       #16a34a;   /* App --color-success: #047857 → abweichend */
  --po-success-dark:  #15803d;
  --po-rose:          #e11d48;   /* Kein stabiler App-Token */
  --po-rose-bg:       #fff0f3;

  /* Schatten und Backdrop (rgba — bleiben als Literals) */
  --po-backdrop:      rgba(6, 15, 28, 0.50);
  --po-shadow:        0 24px 64px rgba(6, 15, 28, 0.22), 0 4px 16px rgba(6, 15, 28, 0.10);
  --po-shadow-scroll: rgba(6, 15, 28, 0.15);

  /* Panel-Geometrie */
  --po-width:         min(640px, calc(100vw - 32px));
  --po-max-height:    min(88dvh, 864px);   /* dvh: Browser-Chrome auf Mobile berücksichtigt */
  --po-radius:        12px;
}

/* ── Backdrop ────────────────────────────────────────────────── */
.po-backdrop {
  position: fixed;
  inset: 0;
  background: var(--po-backdrop);
  z-index: 1600;    /* über Navbar (1000) + Language-Dropdown (1500) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.po-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Panel — zentrierter Dialog ──────────────────────────────── */
.po-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 16px));
  opacity: 0;
  pointer-events: none;

  width: var(--po-width);
  max-height: var(--po-max-height);

  background: var(--po-surface);
  display: flex;
  flex-direction: column;
  z-index: 1601;   /* über Backdrop (1600) */
  border-radius: var(--po-radius);
  box-shadow: var(--po-shadow);
  overflow: hidden;

  /* 200ms ease — kein Spring, kein Bounce (Motion-Guideline) */
  transition: transform 200ms ease, opacity 200ms ease;
}

.po-panel.is-open {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}

/* ── Sticky Header ───────────────────────────────────────────── */
.po-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--po-neutral-200);
  flex-shrink: 0;
  background: var(--po-surface);
}

.po-header__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--po-neutral-500);
  transition: background 120ms ease, color 120ms ease;
  flex-shrink: 0;
  padding: 0;
}

.po-header__close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .po-header__close:hover {
    background: var(--po-neutral-100);
    color: var(--po-neutral-900);
  }
}

.po-header__close:focus-visible {
  outline: 2px solid var(--po-color-500);
  outline-offset: 2px;
}

.po-header__name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.po-header__profile-link {
  font-size: 12px;
  color: var(--po-color-600);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.po-header__profile-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .po-header__profile-link:hover {
    text-decoration: underline;
    color: var(--po-color-700);
  }
}

/* ── Header — Empfehlen-Button (immer sichtbar, ganz oben) ──── */
.po-header__empfehlen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--po-neutral-300);
  border-radius: 8px;
  background: var(--po-surface);
  color: var(--po-neutral-600);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 36px;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.po-header__empfehlen svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .po-header__empfehlen:hover {
    background: var(--brand-orange-tint, #FEF3E8);
    border-color: var(--brand-orange, #F28C38);
    color: var(--brand-orange-active, #C06020);
  }
}

.po-header__empfehlen:focus-visible {
  outline: 2px solid var(--brand-orange, #F28C38);
  outline-offset: 2px;
}

.po-header__empfehlen.is-active {
  background: var(--brand-orange-tint, #FEF3E8);
  border-color: var(--brand-orange, #F28C38);
  color: var(--brand-orange-active, #C06020);
}

.po-header__empfehlen.is-active svg {
  fill: var(--brand-orange-tint-mid, #FDD5A0);
  stroke: var(--brand-orange, #F28C38);
}

/* ── Scrollbarer Body ────────────────────────────────────────── */
.po-body {
  flex: 1;
  min-height: 0;          /* H1: Flex-Item schrumpft unter Inhalt → Body scrollt korrekt */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.po-body::-webkit-scrollbar       { width: 4px; }
.po-body::-webkit-scrollbar-track { background: transparent; }
.po-body::-webkit-scrollbar-thumb { background: var(--po-neutral-300); border-radius: 4px; }

/* ── Hero ────────────────────────────────────────────────────── */
.po-hero {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.po-hero__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--po-neutral-200);
}

.po-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.po-hero__photo--initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--po-neutral-600);
  background: var(--po-neutral-200);
}

.po-hero__info {
  flex: 1;
  min-width: 0;
}

.po-hero__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-900);
  line-height: 1.2;
  margin: 0 0 4px;
}

.po-hero__sub {
  font-size: 12px;
  color: var(--po-neutral-500);
  margin: 0 0 8px;
  line-height: 1.4;
}

.po-hero__langs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.po-lang-badge {
  display: inline-block;
  padding: 4px 8px;
  background: var(--po-color-50);
  border: 1px solid var(--po-color-200);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--po-color-700);
  white-space: nowrap;
}

.po-hero__thumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--po-color-700);
}

.po-hero__thumbs svg {
  width: 16px;
  height: 16px;
  stroke: var(--po-color-600);
  fill: none;
  flex-shrink: 0;
}

/* ── Stats-Leiste ────────────────────────────────────────────── */
.po-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--po-neutral-200);
  border-top: 1px solid var(--po-neutral-200);
  border-bottom: 1px solid var(--po-neutral-200);
}

.po-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: var(--po-surface);
  gap: 4px;
}

.po-stat__value {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-900);
  line-height: 1;
}

/* Verifiziert-Häkchen (Berufserfahrung – Nachweis geprüft) */
.po-verified { color: #047857; font-weight: 700; }

.po-stat__label {
  font-size: 12px;
  color: var(--po-neutral-400);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Sektionen ───────────────────────────────────────────────── */
.po-section {
  padding: 16px 24px;
  border-bottom: 1px solid var(--po-neutral-200);
}

.po-section:last-child {
  border-bottom: none;
}

.po-section__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--po-neutral-400);
  margin-bottom: 8px;
}

/* ── Bio ─────────────────────────────────────────────────────── */
.po-bio {
  font-size: 16px;
  line-height: 1.65;
  color: var(--po-neutral-700);
  margin: 0;
}

.po-bio--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.po-expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--po-color-600);
  padding: 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.po-expand-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .po-expand-btn:hover { color: var(--po-color-700); }
}

/* ── Video ───────────────────────────────────────────────────── */
.po-video-wrap {
  border-radius: 8px;
  overflow: hidden;
  background: var(--po-neutral-900);
  position: relative;
  height: 160px;          /* Kompakte Höhe im Dialog — kein aspect-ratio (würde ~360px bei 640px Breite) */
}

.po-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.po-video-placeholder {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: var(--po-color-700);
  color: var(--po-neutral-200);
  font-size: 12px;
  border-radius: 8px;
}

.po-video-placeholder svg {
  width: 24px;
  height: 24px;
  fill: var(--po-neutral-200);
  display: block;
}

/* ── Chips ───────────────────────────────────────────────────── */
.po-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.po-chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--po-color-600);
  border-radius: 9999px;
  background: var(--po-color-50);
  color: var(--po-color-700);
  font-size: 12px;
  font-weight: 500;
}

/* ── Detail-Liste ────────────────────────────────────────────── */
.po-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.po-detail-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.po-detail-label {
  font-size: 12px;
  color: var(--po-neutral-400);
  min-width: 112px;
  flex-shrink: 0;
}

.po-detail-value {
  font-size: 12px;
  color: var(--po-neutral-900);
}

/* Probestunde verfügbar / Sonstiger Erfolgs-State */
.po-detail-value--avail,
.po-detail-value--success {
  color: var(--po-success);
  font-weight: 600;
}

/* ── Verfügbarkeits-Grid ─────────────────────────────────────── */
.po-avail-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.po-avail-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.po-avail-day__label {
  font-size: 12px;
  color: var(--po-neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.po-avail-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.po-avail-dot--on  { background: var(--po-color-100); }
.po-avail-dot--off { background: var(--po-neutral-100); }

.po-avail-dot--on::after  { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--po-color-600); display: block; }
.po-avail-dot--off::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--po-neutral-300); display: block; }

.po-avail-note {
  font-size: 12px;
  color: var(--po-neutral-400);
  margin-top: 8px;
}

/* ── Bewertungs-Sektion ──────────────────────────────────────── */
.po-rating-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.po-rating-text {
  font-size: 16px;
  color: var(--po-neutral-500);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.po-rating-text strong { color: var(--po-neutral-900); }

.po-thumbs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--po-neutral-300);
  border-radius: 8px;
  background: var(--po-surface);
  color: var(--po-neutral-500);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.po-thumbs-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; }

@media (hover: hover) and (pointer: fine) {
  .po-thumbs-btn:hover {
    background: var(--po-color-50);
    border-color: var(--po-color-400);
    color: var(--po-color-700);
  }
}

.po-thumbs-btn:focus-visible { outline: 2px solid var(--po-color-500); outline-offset: 2px; }

.po-thumbs-btn.is-active {
  background: var(--po-color-50);
  border-color: var(--po-color-500);
  color: var(--po-color-700);
}

.po-thumbs-btn.is-active svg { stroke: var(--po-color-600); fill: var(--po-color-100); }

/* ── Sticky Footer ───────────────────────────────────────────── */
.po-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--po-neutral-200);
  background: var(--po-surface);
  flex-shrink: 0;
}

.po-footer__price       { flex: 1; min-width: 0; }

.po-footer__price-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-900);
  line-height: 1;
}

.po-footer__price-label {
  font-size: 12px;
  color: var(--po-neutral-400);
  margin-top: 4px;
}

/* Favorit-Button */
.po-footer__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--po-neutral-300);
  border-radius: 8px;
  background: var(--po-surface);
  color: var(--po-neutral-500);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  flex-shrink: 0;
  padding: 0;
}

.po-footer__secondary svg { width: 24px; height: 24px; stroke: currentColor; fill: none; display: block; }

@media (hover: hover) and (pointer: fine) {
  .po-footer__secondary:hover                  { background: var(--po-neutral-100); color: var(--po-neutral-900); }
  .po-footer__secondary--fav:hover             { color: var(--po-rose); border-color: var(--po-neutral-300); }
}

.po-footer__secondary:focus-visible            { outline: 2px solid var(--po-color-500); outline-offset: 2px; }

.po-footer__secondary--fav.is-active           { color: var(--po-rose); border-color: var(--po-rose); background: var(--po-rose-bg); }
.po-footer__secondary--fav.is-active svg       { fill: var(--po-rose); }

/* CTA */
.po-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--brand-orange);
  color: var(--po-surface);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  transition: background 120ms ease;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .po-footer__cta:hover { background: var(--po-orange-dark); }
}

.po-footer__cta:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.po-footer__cta:disabled      { opacity: 0.4; cursor: not-allowed; }

.po-footer__cta--mutual               { background: var(--po-success); }
@media (hover: hover) and (pointer: fine) {
  .po-footer__cta--mutual:hover       { background: var(--po-success-dark); }
}

/* ══════════════════════════════════════════════════════════════
   WIDE LAYOUT — Desktop ≥ 768px (Layout B: 3 Spalten)
   Aktiviert durch .po-panel--wide auf dem Panel-Element.
   Struktur: po-header | po-wide-body [ left | mid | right ]
   ══════════════════════════════════════════════════════════════ */

/* Panel-Geometrie überschreiben */
@media (min-width: 768px) {
  :root {
    --po-wide-width: min(1024px, calc(100vw - 32px));
  }

  .po-panel--wide {
    width: var(--po-wide-width);
    max-height: min(90dvh, 840px);
  }
}

/* ── 3-spaltiger Body ──────────────────────────────────────── */
.po-wide-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.po-wide-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Linke Spalte: Foto / Video / Preis */
.po-wide-col--left {
  width: 200px;
  flex-shrink: 0;
  padding: 24px 16px 24px 24px;
  border-right: 1px solid var(--po-neutral-200);
  align-items: center;
  gap: 16px;
}

/* Mittlere Spalte: Name / Stats / Bio / Chips / Aktionen */
.po-wide-col--mid {
  flex: 1;
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--po-neutral-200);
  gap: 16px;
  overflow-y: auto;
}

/* Rechte Spalte: Mini-Kalender */
.po-wide-col--right {
  width: 220px;
  flex-shrink: 0;
  padding: 20px 16px 20px 12px;
  gap: 12px;
  overflow: hidden;
}

/* ── Linke Spalte — Elemente ──────────────────────────────── */
.po-wide-photo {
  width: 152px;
  height: 152px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--po-neutral-200);
}

.po-wide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.po-wide-photo__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--po-neutral-600);
  background: var(--po-neutral-200);
}

.po-wide-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--po-neutral-300);
  border-radius: 8px;
  background: var(--po-neutral-50);
  color: var(--po-neutral-700);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  transition: background 120ms ease, border-color 120ms ease;
}

.po-wide-video-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .po-wide-video-btn:hover {
    background: var(--po-neutral-100);
    border-color: var(--po-neutral-400);
  }
}

.po-wide-price {
  text-align: center;
  margin-top: auto;
  padding-top: 8px;
}

.po-wide-price__value {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-900);
  display: block;
}

.po-wide-price__label {
  font-size: 12px;
  color: var(--po-neutral-400);
  display: block;
  margin-top: 4px;
}

/* ── Mittlere Spalte — Elemente ────────────────────────────── */
.po-wide-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-900);
  margin: 0;
  line-height: 1.2;
}

.po-wide-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.po-wide-stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--po-neutral-200);
}

.po-wide-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.po-wide-stat__value {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-900);
  line-height: 1;
}

.po-wide-stat__label {
  font-size: 11px;
  color: var(--po-neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.po-wide-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--po-neutral-700);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.po-wide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.po-wide-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--po-neutral-400);
  margin-bottom: 4px;
}

/* Aktionsleiste in mittlerer Spalte */
.po-wide-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--po-neutral-200);
}

/* CTA (Anfragen / Buchen) */
.po-wide-actions__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--brand-orange);
  color: var(--po-surface);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background 120ms ease;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .po-wide-actions__cta:hover     { background: var(--po-orange-dark); }
}

.po-wide-actions__cta:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.po-wide-actions__cta:disabled      { opacity: 0.4; cursor: not-allowed; }
.po-wide-actions__cta--mutual       { background: var(--po-success); }

@media (hover: hover) and (pointer: fine) {
  .po-wide-actions__cta--mutual:hover { background: var(--po-success-dark); }
}

/* Icon-Buttons (Nachricht / Favorit / Flag) */
.po-wide-actions__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--po-neutral-300);
  border-radius: 8px;
  background: var(--po-surface);
  color: var(--po-neutral-500);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.po-wide-actions__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .po-wide-actions__icon:hover            { background: var(--po-neutral-100); color: var(--po-neutral-900); }
  .po-wide-actions__icon--fav:hover       { color: var(--po-rose); border-color: var(--po-rose); }
  .po-wide-actions__icon--flag:hover      { color: #b91c1c; background: #fee2e2; border-color: rgba(185,28,28,0.30); }
}

.po-wide-actions__icon:focus-visible { outline: 2px solid var(--po-color-500); outline-offset: 2px; }

.po-wide-actions__icon--fav.is-active     { color: var(--po-rose); border-color: var(--po-rose); background: var(--po-rose-bg); }
.po-wide-actions__icon--fav.is-active svg { fill: var(--po-rose); }

/* ── Mini-Kalender Container (rechte Spalte) ────────────────── */
.po-mini-cal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
}

.po-mini-cal__header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.po-mini-cal__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--po-neutral-400);
}

.po-mini-cal__nav-wrap { display: none; }
.po-mini-cal__nav      { display: none; }

.po-mini-cal__week-label {
  font-size: 9px;
  color: var(--po-neutral-300);
  white-space: nowrap;
}

/* "Keine Verfügbarkeit" / Lade-State */
.po-mini-cal__no-avail,
.po-mini-cal__loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--po-neutral-400);
  text-align: center;
}

/* ── Gemeinsame Raster-Bausteine (Mini + Detail) ───────────── */

/* Zeitachse */
.po-avail-timecol {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.po-avail-timelbl {
  color: var(--po-neutral-400);
  text-align: right;
  padding-right: 3px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Tages-Spalte */
.po-avail-daycol {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Tag-Header (Mo/Di/…) */
.po-avail-dayhdr {
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: var(--po-neutral-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.po-avail-dayhdr--today { color: #6366f1; }

.po-avail-dayhdr--date {
  font-weight: 400;
  text-transform: none;
  color: var(--po-neutral-300);
}

/* Stunden-Zellen */
.po-avail-cell {
  border-radius: 2px;
  flex-shrink: 0;
}

.po-avail-cell--avail   { background: #bbf7d0; }
.po-avail-cell--unavail { background: #e5e7eb; }
.po-avail-cell--past    { background: #f5f5f5; }

/* ── Mini-Raster (in rechter Spalte, klickbar) ──────────────── */
.po-avail-mini {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 2px;
  cursor: pointer;
  border-radius: 6px;
  transition: opacity 120ms ease;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .po-avail-mini:hover { opacity: .82; }
}

/* Mini: Zeitachse sehr schmal */
.po-avail-mini .po-avail-timecol { width: 12px; }
.po-avail-mini .po-avail-timelbl { font-size: 6px; }
.po-avail-mini .po-avail-dayhdr  { font-size: 7px; height: 12px; }
.po-avail-mini .po-avail-daycol  { gap: 1px; }
.po-avail-mini .po-avail-cell    { height: 10px; border-radius: 1px; }

/* ── Detail-Overlay ──────────────────────────────────────────── */
.po-avail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease;
}

.po-avail-backdrop.is-visible {
  background: rgba(0, 0, 0, 0.48);
}

.po-avail-detail {
  background: var(--po-surface, #fff);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  width: min(680px, calc(100vw - 32px));
  max-height: min(90dvh, 600px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.97) translateY(8px);
  transition: transform 200ms ease;
}

.po-avail-backdrop.is-visible .po-avail-detail {
  transform: scale(1) translateY(0);
}

.po-avail-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--po-neutral-200);
  flex-shrink: 0;
}

.po-avail-detail__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--po-neutral-900);
}

.po-avail-detail__week {
  font-size: 12px;
  color: var(--po-neutral-500);
  margin-top: 2px;
}

.po-avail-detail__close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--po-neutral-500);
  font-size: 22px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 120ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .po-avail-detail__close:hover { background: var(--po-neutral-100); color: var(--po-neutral-900); }
}

/* Detail-Raster: scrollbarer Bereich */
.po-avail-detail__grid {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px 8px;
  gap: 3px;
}

/* Detail: Zeitachse und Zellen größer */
.po-avail-detail__grid .po-avail-timecol { width: 40px; margin-top: 40px; }
.po-avail-detail__grid .po-avail-timelbl { font-size: 10px; height: 26px; }
.po-avail-detail__grid .po-avail-dayhdr  { font-size: 11px; height: 22px; }
.po-avail-detail__grid .po-avail-dayhdr--date { font-size: 9px; height: 18px; }
.po-avail-detail__grid .po-avail-daycol  { gap: 2px; }
.po-avail-detail__grid .po-avail-cell    { height: 26px; border-radius: 3px; }

/* Detail: Hover auf verfügbare Zelle */
@media (hover: hover) and (pointer: fine) {
  .po-avail-detail__grid .po-avail-cell--avail:hover { background: #86efac; }
}

/* Legende */
.po-avail-detail__legend {
  display: flex;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--po-neutral-200);
  flex-shrink: 0;
  background: var(--po-neutral-50);
}

.po-avail-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--po-neutral-500);
}

.po-avail-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.po-avail-legend__dot--avail   { background: #bbf7d0; border: 1px solid #86efac; }
.po-avail-legend__dot--unavail { background: #e5e7eb; border: 1px solid #d1d5db; }
.po-avail-legend__dot--past    { background: #f5f5f5; border: 1px solid #e5e7eb; }

/* ── Responsive — Mobile Bottom-Sheet (480px) ────────────────── */
@media (max-width: 480px) {
  .po-panel {
    /* Überschreibe centered-modal auf Bottom-Sheet */
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 92dvh;
    /* Closed state: unterhalb des Viewports */
    transform: translateY(calc(100% + 16px));
    border-radius: 16px 16px 0 0;
    /* Kein top/left transform — opacity bleibt relevant */
  }

  .po-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .po-hero           { padding: 16px; gap: 12px; }
  .po-hero__photo    { width: 64px; height: 64px; }
  .po-hero__name     { font-size: 16px; }
  .po-section        { padding: 16px; }
  .po-footer         { padding: 12px 16px; }
  .po-footer__cta    { padding: 10px 16px; font-size: 14px; }
}

/* ── Erweiterte public Lehrer-Sektionen (Parität zum Vollprofil) ──
   Genutzt von _richTeacherSections(): Angebote, Zertifikate, Ausbildung,
   Berufserfahrung. Liste ohne Bullets, kompakte Zeilen. */
.po-rich-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.po-offer-item {
  font-size: 14px;
  line-height: 1.45;
  color: var(--po-text, #1f2937);
}
/* Angebots-Facetten (Niveau/Alter/Art) als Sub-Zeilen mit Label */
.po-offer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.po-offer-price { font-weight: 600; color: var(--po-accent, #1f3a5f); white-space: nowrap; }
.po-offer-facet { display: flex; gap: 6px; margin-top: 4px; font-size: 12.5px; line-height: 1.5; flex-wrap: wrap; }
.po-offer-facet-label { color: var(--po-muted, #6b7280); font-weight: 600; min-width: 56px; }
.po-offer-facet-val { color: var(--po-text, #1f2937); }
.po-cert-year {
  color: var(--po-muted, #6b7280);
  font-size: 13px;
}
.po-work-desc {
  margin-top: 2px;
  color: var(--po-muted, #6b7280);
  font-size: 13px;
  line-height: 1.4;
}
