/**
 * @file AgentNavigation — gemeinsame Website- und Rollen-Navigation für React sowie statische Agentenseiten.
 * @context Ausschliesslich agent-Selektoren; keine Änderung der Startseiten-Navigation. Build-Skript kopiert diese Datei für statische Seiten nach public.
 * @usedBy AgentSiteHeader, scripts/build-agent-navigation.mjs
 */
.agent-header-host { display: contents; }
.agent-site-header, .agent-section-nav, .agent-site-footer, .agent-team-main {
  --agent-bg: #fafafc; --agent-surface: #fff; --agent-ink: #20202a; --agent-muted: #60606e; --agent-line: #dadae3;
  --agent-accent: #b00060; --agent-button: #d90074; --agent-button-ink: #fff; --agent-tint: #fff0f7; --agent-petrol: #164e52;
  font-family: Inter, Arial, sans-serif; color: var(--agent-ink);
}
body.dark :is(.agent-site-header,.agent-section-nav,.agent-site-footer,.agent-team-main), html.dark :is(.agent-site-header,.agent-section-nav,.agent-site-footer,.agent-team-main) {
  --agent-bg: #141619; --agent-surface: #20262b; --agent-ink: #f4f2f0; --agent-muted: #bec7cb; --agent-line: #73828a;
  --agent-accent: #ff70bb; --agent-button: #ff70bb; --agent-button-ink: #20262b; --agent-tint: #412033; --agent-petrol: #a7d4d5;
}
header.agent-site-header { display: block; position: sticky; top: 0; z-index: 100; padding: 0!important; background: var(--agent-bg); border-bottom: 1px solid var(--agent-line); }
.agent-header-inner { position: relative; display: flex; align-items: center; gap: 24px; max-width: 1420px; margin: auto; padding: 16px 32px; }
.agent-brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; flex-shrink: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--agent-ink); text-decoration: none; }
.agent-brand img { display: block; width: 36px; height: 36px; }
.agent-primary-nav { display: flex; flex: 1; justify-content: flex-end; align-items: center; gap: 22px; flex-wrap: nowrap; }
.agent-primary-nav a, .agent-primary-nav summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--agent-ink); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.agent-primary-nav :is(a,summary):hover, .agent-primary-nav [aria-current="page"], .agent-primary-nav .agent-current { color: var(--agent-accent); }
.agent-primary-nav summary { list-style: none; }
.agent-primary-nav summary::-webkit-details-marker { display: none; }
.agent-primary-nav details { position: static; padding: 0; border: 0; }
.agent-primary-nav a.agent-header-cta { min-height: 52px; padding: 10px 22px; border-radius: 100px; background: var(--agent-button); color: var(--agent-button-ink); }
.agent-primary-nav a.agent-header-cta:hover { background: #b0005e; color: #fff; }
.agent-site-header button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px; border: 1px solid var(--agent-line); border-radius: 12px; color: var(--agent-ink); background: var(--agent-surface); font: inherit; cursor: pointer; }
.agent-site-header .agent-mobile-toggle { display: none; }
.agent-mega-panel { position: absolute; top: calc(100% - 1px); left: 32px; right: 32px; max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: 28px; background: var(--agent-surface); border: 1px solid var(--agent-line); border-radius: 0 0 20px 20px; }
.agent-menu-intro { padding-bottom: 20px; border-bottom: 1px solid var(--agent-line); }
.agent-menu-intro a { font-size: 20px; }
.agent-menu-intro p { margin: 4px 0 0; color: var(--agent-muted); font-size: 14px; line-height: 1.5; }
.agent-menu-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 16px; padding: 20px 0; }
.agent-primary-nav a.agent-menu-role { display: flex; gap: 14px; padding: 10px; border-radius: 12px; white-space: normal; }
.agent-menu-role:hover, .agent-menu-role[aria-current="page"] { background: var(--agent-tint); }
.agent-menu-role img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; border-radius: 8px; background: #fff; }
.agent-menu-role span { min-width: 0; }
.agent-menu-role strong { display: block; font-size: 16px; }
.agent-menu-role small { display: block; color: var(--agent-muted); font-size: 13px; line-height: 1.5; font-weight: 400; }
.agent-menu-foundation { display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--agent-line); padding-top: 12px; }
nav.agent-section-nav { display: block; padding: 0; background: var(--agent-surface); border-bottom: 1px solid var(--agent-line); }
.agent-section-nav>div { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; max-width: 1320px; margin: auto; padding: 8px 32px; font-size: 14px; }
.agent-section-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--agent-muted); text-decoration: none; }
.agent-section-links { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.agent-site-footer { background: var(--agent-bg); padding: 56px 32px; border-top: 1px solid var(--agent-line); }
.agent-site-footer>div { max-width: 1256px; margin: auto; }
.agent-site-footer p { color: var(--agent-muted); }
.agent-site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.agent-site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.agent-site-footer [aria-current="page"] { color: var(--agent-accent); font-weight: 600; }
:is(.agent-site-header,.agent-section-nav,.agent-site-footer,.agent-team-main) :focus-visible { outline: 3px solid var(--agent-button); outline-offset: 5px; }
.agent-team-main { background: var(--agent-bg); }
.agent-team-main>section { max-width: 1320px; margin: auto; padding: 80px 32px; }
.agent-team-main h1 { font: 400 clamp(44px,6vw,80px)/1.1 SourceSerif4,Georgia,serif; letter-spacing: -.04em; margin: 20px 0 28px; max-width: 16ch; }
.agent-team-main h2 { font: 400 clamp(32px,4vw,52px)/1.15 SourceSerif4,Georgia,serif; letter-spacing: -.03em; }
.agent-team-main p { max-width: 65ch; line-height: 1.6; }
.agent-team-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.agent-team-card { display: block; padding: 28px; background: var(--agent-surface); border: 1px solid var(--agent-line); border-radius: 16px; text-decoration: none; color: var(--agent-ink); }
.agent-team-card:hover { border-color: var(--agent-button); }
.agent-team-card img { display: block; width: 100%; height: 210px; object-fit: contain; background: #fff; border-radius: 12px; }
.agent-team-card h2 { font: 600 24px/1.3 Inter,Arial,sans-serif; margin: 24px 0 8px; }
.agent-team-card p { color: var(--agent-muted); }
.agent-team-card span { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--agent-accent); }
.agent-team-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.agent-team-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border-radius: 100px; color: var(--agent-button-ink); background: var(--agent-button); font-weight: 600; text-decoration: none; }
.agent-team-actions a+ a { background: #164e52; color: #fff; border: 1px solid #a7d4d5; }
@media(max-width:1150px) {
  .agent-header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 22px; }
  .agent-brand { order: 1; margin-right: auto; }
  .agent-theme { order: 2; }
  .agent-site-header .agent-mobile-toggle { display: inline-flex; order: 3; }
  .agent-primary-nav { display: none; order: 4; width: 100%; flex: 0 0 100%; align-items: stretch; justify-content: flex-start; gap: 4px; flex-direction: column; padding: 12px 0; max-height: calc(100dvh - 92px); overflow-y: auto; }
  .agent-primary-nav>* { flex-shrink: 0; }
  .agent-menu-open .agent-primary-nav { display: flex; }
  .agent-primary-nav>a, .agent-primary-nav summary { width: 100%; min-height: 48px; padding: 8px 12px; }
  .agent-mega-panel { position: static; max-height: none; padding: 16px; border-radius: 12px; }
  .agent-menu-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
}
@media(max-width:640px) {
  .agent-menu-grid, .agent-team-grid { grid-template-columns: 1fr; }
  .agent-menu-foundation { flex-direction: column; gap: 4px; }
  .agent-section-nav>div { padding: 4px 22px; gap: 8px; }
  .agent-section-links { margin-left: 0; width: 100%; gap: 20px; }
  .agent-site-footer { padding: 40px 22px; }
  .agent-team-main>section { padding: 48px 22px; }
  .agent-team-actions { flex-direction: column; }
}

/* Rollen-Inhalt: lange deutsche Titel dürfen das Mobile-Raster nicht verbreitern. */
body.agent-role-page .hero { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
body.agent-role-page .hero>div { min-width: 0; }
body.agent-role-page h1 { overflow-wrap: anywhere; hyphens: auto; }
body.agent-role-page main [id] { scroll-margin-top: 100px; }
@media(max-width:640px) { body.agent-role-page .hero { grid-template-columns: minmax(0,1fr); } }
