/* Farben aus den Kernfarben von mr-transformation.com. Formate (Vorschlag B mit Orange): Vorträge Basisblau, Workshops Limette (Ebene Mensch), Ausbildungen Lila, E-Learning Orange als Akzent, Tools Grau.
   Je Format: --c-x Fläche, --c-x-text Textfarbe auf dem Seitengrund, --c-x-ink Schrift auf der Fläche. */
:root {
  --bg: #0a111c;
  --surface: #111b2a;
  --surface-2: #17243a;
  --line: #243551;
  --fg: #eaf1f8;
  --muted: #94a6bc;
  --accent: #009ee3;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0,158,227,.14);
  --c-v: #009ee3; --c-w: #88bd29; --c-a: #a28cf5; --c-e: #f28b26; --c-t: #c2c7cc;
  --c-v-ink: #ffffff; --c-w-ink: #ffffff; --c-a-ink: #ffffff; --c-e-ink: #ffffff; --c-t-ink: #ffffff;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f6fa; --surface: #ffffff; --surface-2: #e8eff6; --line: #cfdae6;
    --fg: #0d1a2b; --muted: #526479; --accent: #0077ab; --accent-ink: #ffffff;
    --accent-soft: rgba(0,158,227,.12);
    --c-v: #009ee3; --c-v-text: #0077ab; --c-v-ink: #ffffff;
    --c-w: #88bd29; --c-w-text: #4f7a0e; --c-w-ink: #ffffff;
    --c-a: #7b5fe0; --c-a-text: #6248cc; --c-a-ink: #ffffff;
    --c-e: #f28b26; --c-e-text: #b35609; --c-e-ink: #ffffff;
    --c-t: #a3a9af; --c-t-text: #5f666d; --c-t-ink: #ffffff; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f6fa; --surface: #ffffff; --surface-2: #e8eff6; --line: #cfdae6;
  --fg: #0d1a2b; --muted: #526479; --accent: #0077ab; --accent-ink: #ffffff;
  --accent-soft: rgba(0,158,227,.12);
  --c-v: #009ee3; --c-v-text: #0077ab; --c-v-ink: #ffffff;
  --c-w: #88bd29; --c-w-text: #4f7a0e; --c-w-ink: #ffffff;
  --c-a: #7b5fe0; --c-a-text: #6248cc; --c-a-ink: #ffffff;
  --c-e: #f28b26; --c-e-text: #b35609; --c-e-ink: #ffffff;
  --c-t: #a3a9af; --c-t-text: #5f666d; --c-t-ink: #ffffff; color-scheme: light;
}
[data-fc="v"] { --fc: var(--c-v); --fct: var(--c-v-text, var(--c-v)); --fc-ink: var(--c-v-ink); }
[data-fc="w"] { --fc: var(--c-w); --fct: var(--c-w-text, var(--c-w)); --fc-ink: var(--c-w-ink); }
[data-fc="a"] { --fc: var(--c-a); --fct: var(--c-a-text, var(--c-a)); --fc-ink: var(--c-a-ink); }
[data-fc="e"] { --fc: var(--c-e); --fct: var(--c-e-text, var(--c-e)); --fc-ink: var(--c-e-ink); }
[data-fc="t"] { --fc: var(--c-t); --fct: var(--c-t-text, var(--c-t)); --fc-ink: var(--c-t-ink); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: #0d131a; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1400px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 761px) { .wrap { padding-left: max(31px, env(safe-area-inset-left, 0px)); padding-right: max(31px, env(safe-area-inset-right, 0px)); } }

/* Kopfzeile */
/* Kopfleiste immer schwarz wie das Logo der Transformation Academy (#0d131a), auch im hellen Modus */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; --fg: #eaf1f8; --muted: #94a6bc; --line: rgba(255,255,255,.16); --surface: rgba(255,255,255,.06); --surface-2: rgba(255,255,255,.12); --accent: #009ee3; --accent-ink: #ffffff; background: #0d131a; color: var(--fg); border-bottom: 1px solid #0d131a; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; flex-wrap: wrap; }
@media (min-width: 761px) { .top .logo { margin-left: 8px; } .favpanel { right: max(31px, env(safe-area-inset-right, 0px)); } }
.logo { display: block; line-height: 0; }
.logo img { display: block; height: 46px; width: auto; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-family: var(--font-display); font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }

/* Einstieg */
.hero { padding-block: 36px 8px; }
/* Startbereich mit Foto wie auf mr-transformation.com: Text links, Dirk rechts. Auf dem Desktop immer heller Bildgrund. */
@media (min-width: 761px) {
  .hero { display: flex; align-items: center; min-height: clamp(440px, 40vw, 600px); padding-block: 56px; background: #cfd0d0 url(../img/hero-dirk.webp) no-repeat 72% center / cover;
    --fg: #0d1a2b; --muted: #3c4a5a; --surface: rgba(255,255,255,.88); --line: rgba(13,26,43,.12); color: var(--fg); }
  .hero .hero-inner { width: 100%; }
  .hero .hero-inner > * { max-width: min(600px, 48%); }
  .hero .eyebrow { color: #0077ab; }
  .hero h1 { text-shadow: 0 1px 0 rgba(255,255,255,.4); }
}
@media (max-width: 760px) {
  .hero::before { content: ""; display: block; height: 230px; margin-bottom: 22px; background: #cfd0d0 url(../img/hero-dirk-960.webp) no-repeat 80% center / cover; }
  .hero { padding-top: 0; }
}
.hero h1 { font-size: clamp(32px, 6vw, 66px); line-height: 1.02; max-width: none; }
.hero .h1-brand { display: block; white-space: nowrap; }
.hint { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #009ee3; border-radius: 0 14px 14px 0; padding: 16px 20px; }
.hint svg { flex: none; width: 24px; height: 24px; color: #009ee3; margin-top: 2px; }
.hint p { color: var(--fg); font-size: 15px; line-height: 1.55; }
.finder { padding-block: 40px 48px; }
.hint { margin-top: 16px; margin-bottom: 4px; }
.find-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 46px); line-height: .95; }
.find-title em { font-style: normal; color: #009ee3; }
.eyebrow { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(43px, 11vw, 102px); line-height: .92; letter-spacing: -.5px; margin-top: 8px; text-wrap: balance; }
h1 em { font-style: normal; color: #009ee3; }
.lead { max-width: 60ch; color: var(--muted); font-size: 15px; margin-top: 18px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 22px; }
.tile { text-align: left; background: color-mix(in srgb, var(--fc, var(--accent)) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--fc, var(--accent)) 45%, var(--line)); border-radius: 14px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 132px; position: relative; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.tile:hover { border-color: var(--fc, var(--accent)); transform: translateY(-3px); }
.tile .n { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--fct, var(--fc, var(--accent))); letter-spacing: 1px; }
.tile .t { font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
.tile .o { color: var(--muted); font-size: 12px; margin-top: auto; }
.tile[aria-pressed="true"] { background: var(--fc, var(--accent)); border-color: var(--fc, var(--accent)); color: var(--fc-ink, var(--accent-ink)); }
.tile[aria-pressed="true"] .n, .tile[aria-pressed="true"] .o { color: var(--fc-ink, var(--accent-ink)); }
.tile.theme .t { font-size: 23px; }

.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 13px; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.search { display: flex; max-width: 560px; }
.search input { width: 100%; min-width: 0; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 13px 20px; font: inherit; font-size: 15px; }
.search input:focus { border-color: var(--accent); outline: none; }
.search input::placeholder { color: var(--muted); }

.results-head { margin-top: 38px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; scroll-margin-top: 110px; }
.results-head h2 { font-family: var(--font-display); font-size: clamp(24px, 5vw, 35px); font-weight: 700; line-height: 1.05; text-wrap: balance; }
.results-head .meta { color: var(--muted); font-size: 13px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Filter als Tabs */
.tabs { display: flex; gap: 6px; margin-top: 0; margin-bottom: -1px; position: relative; z-index: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: 11px 20px 10px; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--muted); }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); border-bottom-color: var(--surface); box-shadow: inset 0 3px 0 #009ee3; }
.tabpanel { background: var(--surface); border: 1px solid var(--line); border-radius: 0 16px 16px 16px; padding: 18px; }
.tabpanel [hidden] { display: none !important; }
.tabpanel .tiles { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Karten */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; align-items: stretch; grid-auto-rows: 1fr; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; min-height: 0; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.card:hover, .card:has(:focus-visible) { transform: translateY(-4px) scale(1.03); z-index: 2; }
.open { display: flex; flex: 1; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: 16px; }
.face { flex: 1; border-radius: 16px; border: 1px solid var(--line); padding: 11px 12px 11px; display: flex; flex-direction: column; gap: 7px; min-height: 0; transition: box-shadow .35s ease, border-color .35s ease; }
.front { background: linear-gradient(160deg, color-mix(in srgb, var(--fc, var(--accent)) 24%, var(--surface-2)), var(--surface) 78%); border-color: color-mix(in srgb, var(--fc, var(--accent)) 40%, var(--line)); }
.card:hover .face, .open:focus-visible .face { border-color: var(--fc, var(--accent)); box-shadow: 0 14px 34px color-mix(in srgb, var(--fc, var(--accent)) 28%, transparent); }
.open:focus-visible { outline: none; }
.face-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-right: 32px; }
.pill { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; background: var(--fc, var(--accent)); color: var(--fc-ink, var(--accent-ink)); border-radius: 999px; padding: 3px 14px; }
.who { font-style: italic; font-weight: 600; font-size: 12px; color: var(--muted); text-align: right; }
.ctitle { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; margin-top: 4px; text-wrap: balance; }
.csub { color: var(--muted); font-size: 12px; line-height: 1.35; }
.lbl { font-style: italic; font-weight: 600; font-size: 14px; color: var(--fct, var(--fc, var(--accent))); display: flex; align-items: center; gap: 8px; margin-top: auto; }
.lbl svg { width: 20px; height: 20px; }
ul.eff, ul.prob { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
ul.eff li { display: grid; grid-template-columns: 18px 1fr; gap: 7px; font-weight: 600; font-size: 13px; line-height: 1.3; }
ul.eff li::before { content: "\2192"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--fc, var(--accent)); color: var(--fc-ink, var(--accent-ink)); font-size: 12px; font-weight: 700; margin-top: 1px; }
ul.prob { gap: 16px; margin-top: 8px; }
ul.prob li { font-style: italic; font-weight: 600; font-size: 14px; line-height: 1.3; padding-left: 18px; position: relative; }
ul.prob li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--fc, var(--accent)); }
.aud { padding-right: 96px; margin-top: auto; font-weight: 600; font-size: 13px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.audl { font-family: var(--font-display); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--fct, var(--fc, var(--accent))); }
.info { pointer-events: none; position: absolute; right: 12px; bottom: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 6px; font-size: 12px; font-weight: 600; color: var(--fct, var(--fc, var(--accent))); }
.info svg { width: 17px; height: 17px; }
.card:hover .info { border-color: var(--fc, var(--accent)); }
.layer { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.layer[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(3,8,14,.72); }
.sheet { position: relative; width: min(760px, 100%); max-height: 100%; overflow-y: auto; background: color-mix(in srgb, var(--fc, var(--accent)) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--fc, var(--accent)) 50%, var(--line)); border-radius: 20px; padding: 24px; display: grid; gap: 16px; }
.sheet .x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 18px; line-height: 1; padding: 0; }
.sheet .x:hover { border-color: var(--accent); color: var(--accent); }
.sheet h2 { font-family: var(--font-display); font-size: clamp(27px, 6vw, 42px); font-weight: 700; line-height: 1; padding-right: 48px; text-wrap: balance; }
.sheet .subl { color: var(--muted); margin-top: 8px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; }
.meta-grid dt { font-family: var(--font-display); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fct, var(--fc, var(--accent))); font-weight: 600; }
.meta-grid dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 0 12px; align-items: stretch; }
.flow .box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.flow .arrow { display: grid; place-items: center; font-family: var(--font-display); font-size: 29px; color: var(--fct, var(--fc, var(--accent))); }
.sheet-msgs { display: grid; gap: 8px; }
.sheet-msgs h3 { font-family: var(--font-display); font-size: 16px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fct, var(--fc, var(--accent))); }
.sheet .foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
.sheet .foot .btn { background: var(--fc, var(--accent)); color: var(--fc-ink, var(--accent-ink)); font-size: 14px; }
.sheet .foot .btn[aria-pressed="true"] { background: var(--surface-2); color: var(--fct, var(--fc, var(--accent))); outline: 1px solid var(--fc, var(--accent)); }
.sheet .foot .note { color: var(--muted); font-size: 12px; }
@media (max-width: 560px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .flow .arrow { transform: rotate(90deg); height: 30px; }
  .sheet { padding: 22px 18px; }
}
.star { position: absolute; top: 10px; right: 10px; z-index: 5; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; padding: 0; }
.star svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.star:hover { border-color: var(--accent); color: var(--accent); }
.star[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.star[aria-pressed="true"] svg { fill: currentColor; }
.cardfoot { display: flex; gap: 10px; font-size: 12px; padding-inline: 4px; }
.msgs { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: grid; gap: 6px; font-size: 12px; }
.msgs p { padding-left: 14px; position: relative; }
.msgs p::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--fc, var(--accent)); }
.empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 16px; padding: 36px 24px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* Abschnitte */
section.band { border-top: 1px solid var(--line); padding-block: 52px; scroll-margin-top: 70px; }
h2.sec { font-family: var(--font-display); font-size: clamp(32px, 7vw, 58px); font-weight: 700; line-height: .98; text-wrap: balance; max-width: 18ch; }
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 64px; margin-top: 28px; }
.about p + p { margin-top: 14px; }
.about p { color: var(--muted); max-width: 58ch; }
.about p strong { color: var(--fg); }
.quotes { display: grid; gap: 16px; align-content: start; }
.portrait { width: 168px; height: 168px; border-radius: 50%; border: 3px solid var(--accent); display: block; margin-bottom: 8px; }
.quote { font-family: var(--font-display); font-size: clamp(22px, 4vw, 32px); font-weight: 600; line-height: 1.08; padding-left: 18px; border-left: 4px solid var(--accent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 40px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.fact b { display: block; font-family: var(--font-display); font-size: 37px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 12px; }
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 30px; }
.brand { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-height: 220px; }
.brand h3 { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.brand p { color: var(--muted); font-size: 13px; }
.brand .go { margin-top: auto; font-weight: 600; color: var(--accent); }
.brand.here { border-color: var(--accent); }
.books { margin-top: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.books b { font-family: var(--font-display); font-size: 67px; line-height: .9; color: var(--accent); }
.books p { max-width: 52ch; color: var(--muted); flex: 1 1 260px; min-width: 0; }
/* Gesprächs-Block immer im Basisblau wie die Bänder auf mr-transformation.com, weiße Schrift */
.talk { margin-top: 56px; background: #009ee3; color: #ffffff; border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.talk h3 { font-family: var(--font-display); font-size: clamp(26px, 5vw, 42px); line-height: 1; max-width: 20ch; text-wrap: balance; }
.talk p { max-width: 46ch; margin-top: 8px; }
.talk .btn { background: #ffffff; color: #0077ab; }
.talk .btn:hover { background: #0d131a; color: #ffffff; }
.btn { display: inline-block; text-decoration: none; background: var(--accent-ink); color: var(--accent); font-weight: 600; border-radius: 999px; padding: 13px 26px; border: 0; }
.booklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.book { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.book .cover { aspect-ratio: 1 / 1; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; overflow: hidden; }
.book .cover img { width: 100%; height: 100%; object-fit: contain; }
.book { text-decoration: none; }
.book:hover { border-color: var(--accent); }
.book .go { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 13px; color: var(--accent); }
.book h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.05; }
.book p { color: var(--muted); font-size: 13px; }
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 12px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }


@media (max-width: 760px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 108px; }
  .top .wrap { padding-block: 10px; }
  .nav { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .tile, .face { transition: none; }
  .card:hover, .card:has(:focus-visible) { transform: none; }
}

/* Abstand für iPhone-Ränder */
html{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
body{margin:0}

/* Kleine Knöpfe */
.sbtn { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 12px; text-decoration: none; display: inline-block; }
.sbtn:hover { border-color: var(--accent); }
.sbtn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Navigation: aktive Seite und Merkliste */
.nav { align-items: center; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.fav { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 10px 6px 12px; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.fav:hover, .fav[aria-expanded="true"] { border-color: var(--accent); }
.fav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav.has svg { fill: var(--accent); stroke: var(--accent); }
.fav .count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-size: 13px; padding: 0 6px; font-variant-numeric: tabular-nums; }
.fav.has .count { background: var(--accent); color: var(--accent-ink); }
.fav.bump .count { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

@media (max-width: 760px) {
  .top .wrap { gap: 8px 18px; justify-content: flex-start; }
  .top .nav { display: contents; }
  .top .fav { order: 1; margin-left: auto; }
  .logo img { height: 36px; }
  .tabs { gap: 4px; }
  .tabs button { padding: 10px 11px 9px; font-size: 15px; }
  .tabpanel { padding: 12px; }
  .hint { padding: 14px 16px; }
  .top .wrap::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .top .nav a { order: 3; }
}
.favpanel { position: fixed; z-index: 35; top: calc(env(safe-area-inset-top, 0px) + 76px); right: max(16px, env(safe-area-inset-right, 0px)); width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 90px); overflow-y: auto; background: var(--surface); border: 1px solid var(--accent); border-radius: 16px; padding: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.35); display: grid; gap: 14px; }
.favpanel[hidden] { display: none; }
.favpanel h2 { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.favpanel .sum { color: var(--muted); font-size: 13px; margin-top: 4px; }
.favpanel ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.favpanel li { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; font-size: 13px; font-weight: 600; }
.favpanel li small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.favpanel li button { flex: none; border: 0; background: var(--surface-2); width: 28px; height: 28px; border-radius: 50%; line-height: 1; padding: 0; font-size: 16px; }
.favpanel li button:hover { color: var(--accent); }
.favpanel .empty-note { color: var(--muted); font-size: 13px; }

/* Unterseiten */
.page { padding-block: 40px 64px; }
.page h1 { font-size: clamp(40px, 9vw, 80px); }
.page .lead { margin-bottom: 8px; }
.sec-head { margin-top: 56px; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 20px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.member .ph { width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; background: var(--surface-2); }
.member .role { color: var(--fg); font-weight: 600; font-size: 13px; }
.member .go { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 13px; color: var(--accent); text-decoration: none; }
.member h3 { font-family: var(--font-display); font-size: 24px; line-height: 1; margin-top: 6px; }
.member p { color: var(--muted); font-size: 13px; }
.offen { background: #ffd54a; color: #1a1300; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Rechtstexte */
.legal { max-width: 760px; font-size: 15px; line-height: 1.6; }
.legal h1 { font-size: clamp(36px, 8vw, 56px); margin-bottom: 24px; }
.legal h2 { font-family: var(--font-display); font-size: 24px; line-height: 1.1; margin: 36px 0 8px; }
.legal p, .legal ul { margin: 0 0 12px; color: var(--muted); }
.legal p strong { color: var(--fg); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .stand { margin-top: 40px; font-size: 13px; }

/* Anfrage */
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.choice button { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 6px; }
.choice button:hover { border-color: var(--accent); }
.choice button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice b { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.choice span { color: var(--muted); font-size: 13px; }
.panel { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.panel[hidden] { display: none; }
.picked { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; }
.picked h2 { font-family: var(--font-display); font-size: 20px; }
.picked ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.consent { display: grid; gap: 12px; justify-items: start; color: var(--muted); font-size: 13px; max-width: 62ch; }
.consent[hidden] { display: none; }
.consent strong { color: var(--fg); font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.cal { width: 100%; height: 1100px; border: 0; border-radius: 12px; background: #fff; transition: height .2s ease; }
.form { display: grid; gap: 14px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.form label small { color: var(--muted); font-weight: 500; }
.form input, .form textarea { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form .btn { justify-self: start; background: var(--accent); color: var(--accent-ink); }
.form .note { color: var(--muted); font-size: 12px; }
.member div.ph { display: grid; place-items: center; background: var(--accent-soft); font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--accent); }
.member .courses { font-size: 12px; }
.member .courses span { font-family: var(--font-display); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--fg); }
.team-academy .member .ph { width: 72px; height: 72px; font-size: 26px; }
.favpanel .start { text-align: center; padding: 12px; font-size: 14px; }
.favpanel .copy { justify-self: center; font-size: 12px; }

/* Einführung beim ersten Filtern */
.coach { position: fixed; z-index: 60; width: min(320px, calc(100vw - 16px)); background: var(--surface); color: var(--fg); border: 2px solid #009ee3; border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.35); display: grid; gap: 8px; }
.coach::before { content: ""; position: absolute; left: calc(var(--arrow, 50%) - 9px); top: -10px; width: 16px; height: 16px; background: var(--surface); border-left: 2px solid #009ee3; border-top: 2px solid #009ee3; transform: rotate(45deg); }
.coach.above::before { top: auto; bottom: -10px; transform: rotate(225deg); }
.coach-step { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.coach h2 { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.coach p { font-size: 14px; line-height: 1.45; }
.coach-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.coach-actions .sbtn { padding: 9px 18px; font-size: 13px; }
.coach-target { z-index: 55; box-shadow: 0 0 0 4px #009ee3, 0 0 0 9999px rgba(5,10,16,.45) !important; border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) { .coach { animation: coach-in .25s ease-out; } }
@keyframes coach-in { from { opacity: 0; transform: translateY(6px); } }
.grid.grouped { display: block; }
.grid.grouped > .grid { margin-top: 12px; }
.grid-head { font-family: var(--font-display); font-size: 22px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; margin-top: 30px; }
.grid-head:first-child { margin-top: 0; }
.grid-head small { font-size: 14px; font-weight: 600; color: var(--muted); }
.sheet .foot .btn { display: inline-flex; align-items: center; gap: 8px; }
.btn-star { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.sheet .foot .btn[aria-pressed="true"] .btn-star { fill: currentColor; }

/* Flug zur Merkliste */
.fly-star { position: fixed; left: 0; top: 0; z-index: 80; width: 30px; height: 30px; pointer-events: none; will-change: transform; filter: drop-shadow(0 4px 10px rgba(0,158,227,.55)); }
.fly-star svg { width: 100%; height: 100%; fill: #009ee3; stroke: #ffffff; stroke-width: 1.5; }
.fav { position: relative; }
.fav.pling { animation: pling .55s cubic-bezier(.34,1.56,.64,1); }
.fav.pling::after { content: ""; position: absolute; inset: -2px; border-radius: 999px; border: 2px solid #009ee3; animation: pling-ring .7s ease-out forwards; pointer-events: none; }
.fav.pling svg { animation: pling-star .55s ease-out; }
@keyframes pling { 30% { transform: scale(1.14); } 60% { transform: scale(.96); } }
@keyframes pling-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@keyframes pling-star { 40% { transform: rotate(-25deg) scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .fav.pling, .fav.pling::after, .fav.pling svg { animation: none; } }
/* Experten-Team oben: auf dem Desktop drei pro Zeile */
@media (min-width: 900px) { .team:not(.team-academy) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 600px) and (max-width: 899px) { .team:not(.team-academy) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Marken-Logos: dunkle Fläche für das Logo mit weißer Schrift, helle Fläche für Logos mit dunkler Schrift */
.brand-logo { display: flex; align-items: center; justify-content: center; height: 120px; border-radius: 12px; padding: 18px 22px; margin-bottom: 6px; }
.brand-logo.light { background: #ffffff; border: 1px solid var(--line); }
.brand-logo.dark { background: #0d131a; }
.brand-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .brand-logo img { transform: scale(1.05); }
.brand { min-height: 0; }

.favpanel .talk-note { font-size: 14px; line-height: 1.45; color: var(--fg); margin-top: 2px; }
.favpanel .talk-note b { font-family: var(--font-display); font-size: 17px; color: #009ee3; display: block; }

/* Expertenseite: Kopfbereich mit Bühnenfoto vor Schwarz, immer dunkel mit heller Schrift */
.hero-lead { margin-top: 18px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.hero-lead strong { color: var(--fg); }
@media (min-width: 761px) {
  .hero.hero-dark { background: #030303 url(../img/experten-dirk-buehne.webp) no-repeat 100% center / cover; --fg: #f2f6fa; --muted: #b9c6d4; }
  .hero.hero-dark .eyebrow { color: #009ee3; }
  .hero.hero-dark h1 { text-shadow: none; }
  .hero.hero-dark .hero-inner > * { max-width: min(540px, 40%); }
  .hero.hero-dark .hero-lead { max-width: min(440px, 34%); }
}
@media (max-width: 760px) {
  .hero.hero-dark::before { background: #030303 url(../img/experten-dirk-960.webp) no-repeat 50% 20% / cover; }
}

/* Sprachfilter rechts neben den Reitern, gilt zusätzlich zu jedem Reiter */
.tabs-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-top: 18px; }
.tabs-row .tabs { order: 1; }
.tabs-row .lang { order: 2; margin-bottom: 8px; }
.lang { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px; }
.lang-label { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .5px; color: var(--muted); padding: 0 8px 0 10px; }
.lang button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: #009ee3; color: #ffffff; }
@media (max-width: 760px) { .tabs-row .lang { order: 0; margin-bottom: 4px; } }

/* Anfrageformular: Fangfeld für Bots (unsichtbar) und Bestätigung nach dem Senden */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { max-width: 640px; border: 1px solid var(--accent); border-radius: 16px; padding: 18px 20px; background: var(--surface); }
.sent strong { display: block; font-size: 17px; margin-bottom: 4px; }
.sent p { margin: 0; color: var(--muted, inherit); }
.btn:disabled { opacity: .6; cursor: progress; }

/* hidden gilt immer, auch wenn eine Klasse display setzt (z. B. .form, .picked) */
[hidden] { display: none !important; }
