/* ==========================================================================
   DÄBN · experte.css  (Expertenprofil · nutzt experten.css mit)
   Basis: site.css + design-system/MASTER.md
   --------------------------------------------------------------------------
   INHALT
    01  Brotkrumen & Ribbon-Leiste
    02  Profil-Hero (Glas über Beige-Verlauf)
    03  Inhalt: Raster, Abschnitte, Listen
    04  Transparenz-Block
    05  Standorte & Karte, Netzwerk
    06  Kontaktkarte (sticky), mobile Anfrage-Leiste
    07  Ähnliche Experten, Fehlerzustand
    08  Reduced Motion
   ========================================================================== */

.container--profile { max-width: calc(1320px + var(--gutter) * 2); }

/* ==========================================================================
   01 · BROTKRUMEN & RIBBON-LEISTE
   ========================================================================== */
.p-top { padding: 14px 0 6px; background: var(--sand-100); }
.p-top__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.p-top .ribbon { margin-bottom: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font-size: .9375rem; line-height: 1.3; }
.crumbs li { display: flex; align-items: center; }
.crumbs li:not(:last-child)::after { content: ''; flex: none; width: 7px; height: 7px; margin: 0 14px 0 10px; border-top: 1.5px solid var(--ink-3); border-right: 1.5px solid var(--ink-3); transform: rotate(45deg); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; background-image: linear-gradient(var(--gold-500), var(--gold-500)); background-repeat: no-repeat; background-size: 0 2px; background-position: 0 calc(50% + .8em); transition: background-size var(--t-med) var(--ease), color var(--t-fast); }
.crumbs a:hover { color: var(--ink); background-size: 100% 2px; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   02 · PROFIL-HERO
   ========================================================================== */
.p-hero {
  position: relative;
  padding: 8px 0 clamp(40px, 5vw, 72px);
  background:
    radial-gradient(900px 440px at 88% -8%, rgba(201, 168, 76, .26), transparent 62%),
    radial-gradient(760px 460px at -4% 108%, rgba(36, 67, 119, .16), transparent 62%),
    var(--sand-100);
}
.p-hero__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px 48px; align-items: center; padding: clamp(20px, 3.2vw, 44px); border-radius: var(--r-lg); box-shadow: 0 34px 80px -34px rgba(10, 22, 40, .38); }
@media (min-width: 820px) { .p-hero__panel { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); } }
.p-hero__photo { position: relative; width: min(100%, 300px); aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--sand-200); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .6); }
.p-hero__photo img, .p-hero__photo .ex-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.p-hero__photo .ex-avatar > span { font-size: 38cqw; }
.p-hero__example { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(10, 22, 40, .82); border: 1px solid rgba(222, 195, 122, .5); color: var(--gold-200); font-size: .8125rem; font-weight: 600; letter-spacing: .03em; }
.p-hero__example--member { background: linear-gradient(135deg, var(--gold-200), var(--gold-400)); border-color: rgba(255, 255, 255, .55); color: var(--navy-950); }
@media (max-width: 819.98px) { .p-hero__photo { width: 168px; border-radius: 20px; } }
.p-hero__body { min-width: 0; }
.p-hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.p-hero__badges .badge-verified { text-decoration: none; }
.p-chip-link { text-decoration: none; }
.p-hero__name { margin-top: 18px; font-size: clamp(2.2rem, 1.3rem + 3vw, 3.7rem); line-height: 1.06; }
.p-hero__role { margin-top: 10px; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 500; line-height: 1.4; color: var(--ink-2); }
.p-hero__firma { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 1.0625rem; color: var(--ink-3); }
.p-hero__firma svg { flex: none; color: var(--gold-ink); }
.p-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.p-facts li { display: flex; align-items: center; gap: 10px; }
.p-facts li > svg { flex: none; color: var(--gold-ink); }
.p-facts .p-facts__ok > svg { color: var(--ok); }
.p-facts .p-facts__off { color: var(--ink-3); }
.p-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.p-hero__actions .btn[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.p-hero__actions .btn[aria-pressed="true"] svg:first-child { fill: var(--gold-300); color: var(--gold-300); }
@media (max-width: 480px) { .p-hero__actions .btn { flex: 1 1 100%; } }

/* ==========================================================================
   03 · INHALT
   ========================================================================== */
.p-body {
  padding-block: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 88px);
  background: radial-gradient(640px 420px at 100% 6%, rgba(201, 168, 76, .12), transparent 62%), #fff;
}
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 1024px) { .p-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; } }
@media (min-width: 1280px) { .p-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 72px; } }
.p-main { display: grid; gap: clamp(34px, 4vw, 52px); min-width: 0; }
.p-sec { min-width: 0; }
.p-main > .p-sec:not(.p-trans):not(:first-child) { padding-top: clamp(30px, 4vw, 46px); border-top: 1px solid var(--line); }
.p-sec__title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; }
.p-sec__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--sand-100); border: 1px solid var(--sand-200); color: var(--gold-ink); font-size: 1.2rem; }
.p-sub { margin-bottom: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.p-sub:not(:first-child) { margin-top: 26px; }
.p-sub--text { margin-top: 0 !important; max-width: 62ch; font-size: 1.0625rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); margin-bottom: 20px; }

.p-about p { max-width: 68ch; font-size: 1.125rem; line-height: 1.75; }
.p-about p + p { margin-top: 1.1em; }
.p-about p:first-child { font-size: 1.25rem; line-height: 1.65; color: var(--ink); }
.chip--lg { min-height: 44px; padding: 8px 18px; background: var(--sand-100); border: 1px solid var(--sand-300); font-size: .9375rem; font-weight: 600; }
.chip--lg svg { color: var(--gold-ink); }
li.chip--outline { min-height: 38px; padding: 6px 15px; font-size: .9375rem; }
.p-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 640px) { .p-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p-iconlist { display: grid; gap: 12px; }
.p-iconlist li { display: flex; align-items: flex-start; gap: 14px; font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }
.p-iconlist li > svg { flex: none; margin-top: .2em; color: var(--gold-ink); }
.p-iconlist li > span { min-width: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.p-iconlist a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(201, 168, 76, .85); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.p-iconlist a:hover { text-decoration-color: currentColor; }
.p-checks { gap: 14px; }
.p-checks li { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.p-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 12px 16px; border-radius: 14px; background: rgba(47, 125, 91, .08); border: 1px solid rgba(47, 125, 91, .25); font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.p-note svg { flex: none; margin-top: .15em; color: var(--ok); }
.p-note--info { background: var(--sand-100); border-color: var(--sand-300); }
.p-note--info svg { color: var(--gold-ink); }
.p-refs { display: grid; gap: 14px; }
.p-refs li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--sand-50); border: 1px solid var(--sand-200); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.p-refs__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: .05em; border-radius: 50%; background: var(--gold-grad-btn); color: var(--navy-950); font-size: 1rem; }
.p-refs__icon svg { width: 1em; height: 1em; stroke-width: 2.2; }

/* ==========================================================================
   04 · TRANSPARENZ
   ========================================================================== */
.p-main > .p-trans {
  position: relative;
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fff, var(--sand-50));
  border: 1.5px solid rgba(201, 168, 76, .75);
  box-shadow: var(--shadow-md);
}
.p-trans::before { content: ''; position: absolute; top: -1.5px; left: 30px; right: 30px; height: 3px; border-radius: 3px; background: var(--gold-grad); }
.p-trans__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.p-trans__icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--gold-grad-btn); color: var(--navy-950); font-size: 1.5rem; box-shadow: 0 12px 28px -12px rgba(201, 168, 76, .8); }
.p-trans .p-trans__title { margin-bottom: 0; }
.p-trans__lead { margin-top: 2px; font-size: 1rem; line-height: 1.45; color: var(--ink-3); }
.p-trans__list { border-top: 1px solid var(--line); }
.p-trans__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .p-trans__row { grid-template-columns: 220px minmax(0, 1fr); } }
.p-trans__row dt { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; line-height: 1.4; color: var(--ink-3); }
.p-trans__row dt svg { flex: none; color: var(--gold-ink); }
.p-trans__row dd { min-width: 0; margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.5; color: var(--ink); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.p-trans__row dd .meta { font-weight: 400; }
.p-trans__foot { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }
.p-trans__foot svg { flex: none; margin-top: .25em; color: var(--ok); }
.p-trans__note { margin-top: 12px; font-size: .9375rem; line-height: 1.55; color: var(--ink-3); }

/* ==========================================================================
   05 · STANDORTE & NETZWERK
   ========================================================================== */
.p-places { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 700px) { .p-places { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 32px; } }
.p-places__list { display: grid; gap: 18px; align-content: start; }
.p-places__list li { display: flex; align-items: flex-start; gap: 12px; }
.p-places__list li > svg { flex: none; margin-top: .2em; color: var(--gold-ink); }
.p-places__list strong { display: block; font-size: 1.0625rem; color: var(--ink); }
.p-places__list small { display: block; margin-top: 2px; font-size: .9375rem; line-height: 1.45; color: var(--ink-3); }
.p-map:focus-visible { outline: none; }
.p-map-wrap:has(.p-map:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 3px; } /* Fokusring am Wrapper: Leaflet-Panes und overflow:hidden verdecken ihn sonst */
.p-map-wrap { overflow: hidden; isolation: isolate; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; }
.p-map { height: 340px; background: #E9E3D6; }
@media (max-width: 640px) { .p-map { height: 280px; } }
.p-koop { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }

/* ==========================================================================
   06 · KONTAKTKARTE, MOBILE ANFRAGE-LEISTE
   ========================================================================== */
.p-aside { min-width: 0; }
@media (min-width: 1024px) {
  .p-aside { position: sticky; top: calc(var(--header-h) + 16px); }
  .p-contact { max-height: calc(100dvh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; }
}
.p-contact {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(251, 248, 243, .8));
  border: 1px solid rgba(201, 168, 76, .5);
  box-shadow: var(--shadow-lg);
}
.p-contact:focus-visible { outline: none; }
.p-contact .eyebrow { margin-bottom: 12px; }
.p-contact__title { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.85rem); line-height: 1.2; }
.p-contact__sub { margin: 6px 0 18px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.p-contact .form-grid { gap: 14px; }
.p-contact .input, .p-contact .select { min-height: 50px; }
.p-contact .textarea { min-height: 92px; }
.p-contact .check { font-size: .9375rem; }
.p-contact .notice-patient { padding: 10px 14px; }
.p-contact__fine { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: .9375rem; line-height: 1.5; color: var(--ink-3); }
.p-contact__fine svg { flex: none; margin-top: .15em; color: var(--gold-ink); }

.p-cta {
  position: fixed;
  left: 12px; right: 72px; bottom: 12px;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(251, 248, 243, .92);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--sand-300);
  box-shadow: 0 20px 50px -18px rgba(10, 22, 40, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(140%);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.p-cta .btn { flex: 1; min-width: 0; padding: 0 18px; }
.p-cta .save-btn { position: static; flex: none; }
@media (max-width: 1023.98px) {
  .p-cta { display: flex; }
  .p-cta.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  html.dialog-open .p-cta, html.is-locked .p-cta { display: none; }
}
@media (min-width: 481px) and (max-width: 1023.98px) { .p-cta { left: 50%; right: auto; width: min(520px, calc(100vw - 96px)); transform: translate(-50%, 140%); } .p-cta.is-visible { transform: translate(-50%, 0); } }

/* ==========================================================================
   07 · ÄHNLICHE EXPERTEN, FEHLERZUSTAND
   ========================================================================== */
.p-similar { padding-block: clamp(48px, 6vw, 88px); background: var(--sand-100); }
.p-similar__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.p-similar__title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); }
.p-similar__grid .mini-card__text { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.p-error { padding-block: clamp(48px, 6vw, 96px); background: var(--sand-100); min-height: 70vh; }
.p-error__card { display: grid; justify-items: center; gap: 14px; padding: clamp(28px, 5vw, 56px); text-align: center; background: #fff; border-color: rgba(201, 168, 76, .5); }
.p-error__card .icon-badge { margin-bottom: 4px; }
.p-error__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.p-error__card .lead { margin-inline: auto; max-width: 48ch; }
.p-error__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 10px; }
.p-error__sub { margin: clamp(36px, 5vw, 56px) 0 20px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }

/* ==========================================================================
   08 · REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .p-cta { transition: none; }
}
@media print {
  .p-cta, .p-aside { display: none !important; }
}
