/* ---------- Department & board pages ---------- */
.dp { padding-bottom: var(--gap-sec); }
.dp > section { padding-inline: var(--pad); }
.dp-hero { background: var(--purple); color: var(--white); min-height: clamp(520px, 74vh, 720px); padding: clamp(24px, 3.4vw, 52px) var(--pad) clamp(36px, 4.5vw, 72px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: center; position: relative; overflow: hidden; }
.dp-hero__text { grid-column: 1 / span 8; }
.dp-back { display: inline-block; color: var(--white); font-weight: 600; text-decoration: none; padding-block: 8px; margin-bottom: 8px; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .dp-back:hover { transform: translateX(-4px); } }
.dp-hero__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.92; font-size: clamp(3rem, 9.2vw, 10.5rem); margin: 0; color: var(--white); overflow-wrap: anywhere; }
.dp-hero__lead { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.45; max-width: 40ch; margin: clamp(18px, 2vw, 28px) 0 0; }
.dp-hero__fig { grid-column: 9 / -1; margin: 0; align-self: center; }
.dp-hero__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: rotate(0deg); }
.dp-hero__emblem { grid-column: 9 / -1; justify-self: end; width: min(100%, 420px); aspect-ratio: 1; transform: rotate(0deg); }
.dp-hero__emblem svg { width: 100%; height: 100%; display: block; }
@media (max-width: 899px) { .dp-hero { min-height: 0; row-gap: 28px; } .dp-hero__text, .dp-hero__fig, .dp-hero__emblem { grid-column: 1 / -1; } .dp-hero__emblem { justify-self: start; width: min(56vw, 260px); } }

.dp-h { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.95; font-size: clamp(2.2rem, 4.6vw, 4.5rem); margin: 0 0 28px; color: var(--purple); }
.dp-people, .dp-train, .dp-team, .dp-info, .dp-more { padding-top: clamp(64px, 8vw, 128px); }
.dp-people { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 24px; }
.dp-people .dp-h { grid-column: 1 / -1; margin-bottom: 4px; }
.dp-leaders { grid-column: 1 / span 6; list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; align-content: start; }
.dp-leaders li { display: grid; gap: 2px; }
.dp-leaders strong { font-size: 1.375rem; }
.dp-leaders a { color: var(--ink); text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.dp-role { font-size: 0.875rem; font-weight: 700; color: var(--purple); }
.dp-try { grid-column: 8 / -1; align-self: start; background: var(--accent); padding: 20px 24px; margin: 0; line-height: 1.5; color: var(--purple-deep); }
@media (max-width: 899px) { .dp-people .dp-h, .dp-leaders, .dp-try { grid-column: 1 / -1; } }

.dp-aud { font-family: inherit; text-transform: none; font-size: 2.125rem; font-weight: 800; line-height: 1.2; margin: 48px 0 12px; color: var(--ink); letter-spacing: 0; }
.dp-aud:first-of-type { margin-top: 0; }
.dp-groups { display: grid; }
.grp { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 12px; padding: clamp(20px, 2.4vw, 32px) var(--pad); margin-inline: calc(var(--pad) * -1); }
.grp:nth-child(odd) { background: var(--paper); }
.grp__head { grid-column: 1 / span 4; }
.grp__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 0.98; margin: 0 0 6px; color: var(--ink); }
.grp__who { margin: 0; font-size: 0.9375rem; }
.grp__when { grid-column: 5 / span 3; }
.grp__where { grid-column: 8 / span 2; }
.grp__trainer { grid-column: 10 / -1; }
.grp p { margin: 0; line-height: 1.5; font-size: 1rem; }
.grp__k { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--purple); margin-bottom: 2px; }
.grp__when strong { font-variant-numeric: tabular-nums; }
.grp p.grp__note { grid-column: 5 / -1; font-size: 0.9375rem; padding-left: 14px; border-left: 4px solid var(--purple); }
@media (max-width: 899px) {
  .grp__head, .grp__when, .grp__where, .grp__trainer, .grp p.grp__note { grid-column: 1 / -1; }
  .grp { row-gap: 14px; }
}

.dp-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dp-names li { background: var(--paper); color: var(--purple-deep); padding: 0.55em 1em; border-radius: 999px; font-weight: 600; }
.dp-info { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 40px; }
.dp-info > div:first-child { grid-column: 1 / span 6; }
.dp-info > div:nth-child(2) { grid-column: 8 / -1; }
@media (max-width: 899px) { .dp-info > div { grid-column: 1 / -1 !important; } }
.dp-venues, .dp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.dp-venues strong { display: block; font-size: 1.125rem; }
.dp-links a { font-weight: 700; font-size: 1.25rem; color: var(--purple); text-underline-offset: 4px; }
.dp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4em; border-radius: 999px; background: var(--purple); color: var(--white); font-weight: 700; text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) ease; }
.chip-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip-link:hover { background: var(--purple-deep); } }

/* Board */
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.board__card { background: var(--paper); padding: clamp(24px, 3vw, 40px); display: grid; gap: 6px; align-content: start; min-height: 220px; }
.board__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 0.98; margin-top: 10px; color: var(--ink); }
.board__card a { color: var(--purple); text-underline-offset: 3px; overflow-wrap: anywhere; padding-top: 18px; }
@media (max-width: 899px) { .board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } }
.prices { list-style: none; margin: 0; padding: 0; display: grid; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 14px; }
.prices li:nth-child(odd) { background: var(--paper); }
.prices strong { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1; }
.dp-fine { font-size: 0.9375rem; margin-top: 16px; max-width: 46ch; }

/* Header dropdown */
.hdr .wp-block-navigation__submenu-container { background: var(--white); color: var(--ink); border: 0; padding: 8px; min-width: 220px; box-shadow: 0 12px 32px rgba(23, 12, 43, 0.18); }
.hdr .wp-block-navigation__submenu-container a { color: var(--ink); padding: 10px 12px; display: block; }
@media (hover: hover) and (pointer: fine) { .hdr .wp-block-navigation__submenu-container a:hover { background: var(--paper); color: var(--purple); } }
.hdr .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.hdr .is-menu-open .wp-block-navigation__submenu-container { background: transparent; box-shadow: none; padding: 0 0 0 8px; }
.hdr .is-menu-open .wp-block-navigation__submenu-container a { color: var(--white); font-family: var(--display); font-size: 1.75rem; text-transform: uppercase; }

/* Entrance for subpage heroes */
.js .dp-hero__title, .js .dp-hero__lead, .js .dp-hero__fig, .js .dp-hero__emblem { animation: dpIn 700ms var(--ease-out) both; }
.js .dp-hero__lead { animation-delay: 100ms; }
.js .dp-hero__fig { animation-delay: 200ms; }
@keyframes dpIn { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .js .dp-hero__title, .js .dp-hero__lead, .js .dp-hero__fig, .js .dp-hero__emblem { animation: none; } }

/* Placeholder portraits */
.ava { display: block; flex: none; width: 72px; aspect-ratio: 1; border-radius: 50%; background: #d9c9f0; overflow: hidden; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava--lg { width: 100%; max-width: 160px; }
.person { display: flex !important; align-items: center; gap: 16px; }
.person__text { display: grid; gap: 2px; }
.dp-team__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 20px; }
.trainer { display: grid; gap: 12px; justify-items: start; }
.trainer .ava { width: 100%; max-width: 150px; }
.trainer__name { font-weight: 700; line-height: 1.3; }
.trainer:nth-child(3n+2) .ava, .board__card:nth-child(3n+2) .ava { background: #e6dcf4; }
.trainer:nth-child(3n) .ava, .board__card:nth-child(3n) .ava { background: #c6b2e6; }

/* Ansprechpartner use the board card look */
.dp-people .board--leaders { grid-column: 1 / span 8; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dp-people .dp-try { grid-column: 9 / -1; }
.board--leaders .board__card { min-height: 0; }
@media (max-width: 899px) { .dp-people .board--leaders, .dp-people .dp-try { grid-column: 1 / -1; } }
/* Trainers: centered */
.trainer { justify-items: center; text-align: center; }
.trainer__name { text-align: center; }
.board--leaders .board__name { font-size: clamp(1.7rem, 2.3vw, 2.4rem); overflow-wrap: anywhere; hyphens: auto; }
.dp-people .board--leaders { grid-column: 1 / span 9; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.dp-people .dp-try { grid-column: 10 / -1; }
@media (max-width: 899px) { .dp-people .board--leaders, .dp-people .dp-try { grid-column: 1 / -1; } }

/* ---------- Unified hero: identical height on every page ---------- */
:root { --hero-h: clamp(540px, 76vh, 720px); --hero-vis: calc(var(--hero-h) - 130px); }
.hero, .dp-hero { min-height: var(--hero-h); grid-template-rows: minmax(0, 1fr); align-items: center; }
.hero__text, .dp-hero__text { grid-column: 1 / span 8; }
.hero__emblem, .dp-hero__emblem, .dp-hero__fig { grid-column: 9 / -1; justify-self: end; align-self: center; margin: 0; width: auto; aspect-ratio: auto; transform: none; display: flex; justify-content: flex-end; align-items: center; }
.hero__emblem img, .dp-hero__emblem img { display: block; width: auto; height: min(var(--hero-vis), 440px); max-width: 100%; aspect-ratio: 1; transform: rotate(0deg); }
.dp-hero__fig img { display: block; width: 100%; max-height: var(--hero-vis); aspect-ratio: 4 / 3; object-fit: cover; transform: rotate(3deg); }
.js .hero__emblem { opacity: 0; transition: opacity 700ms var(--ease-out) 250ms; }
.js .is-loaded .hero__emblem { opacity: 1; }
@media (max-width: 899px) {
  .hero, .dp-hero { min-height: 0; grid-template-rows: none; }
  .hero__text, .dp-hero__text, .hero__emblem, .dp-hero__emblem, .dp-hero__fig { grid-column: 1 / -1; }
  .hero__emblem, .dp-hero__emblem { justify-self: start; justify-content: flex-start; }
  .hero__emblem img, .dp-hero__emblem img { height: min(56vw, 260px); }
  .dp-hero__fig img { max-height: none; }
}

/* ---------- Compact hero ---------- */
:root { --hero-h: clamp(380px, 50vh, 480px); --hero-vis: calc(var(--hero-h) - 80px); }
.hero, .dp-hero { padding-top: clamp(14px, 1.6vw, 24px); padding-bottom: clamp(24px, 2.8vw, 40px); }
.hero__title, .dp-hero__title { font-size: clamp(2.6rem, 7.2vw, 8.25rem); }
.hero__lead, .dp-hero__lead { margin-top: clamp(12px, 1.4vw, 20px); }
.hero__actions { margin-top: 18px; }
.dp-back { padding-block: 4px; margin-bottom: 2px; }
:root { --hero-h: clamp(470px, 54vh, 520px); }
.hero__lead, .dp-hero__lead { max-width: 52ch; }

/* ---------- v3: 4% Abstand oben/unten bei allen Bereichen, Emblem links ---------- */
.hero, .dp-hero, .dp > section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.dp { padding-bottom: 0; }
.dp > section { padding-inline: var(--pad); }
.dp-people, .dp-train, .dp-team, .dp-info, .dp-more, .dp-photo, .dp-spiel { padding-top: var(--section-pad); }
.training .sec__title { font-size: clamp(2.6rem, 5.4vw, 6rem); }
.hero__emblem { grid-column: 1 / span 3; grid-row: 1; justify-self: start; justify-content: flex-start; }
.hero__text { grid-column: 4 / -1; grid-row: 1; }
.hero__emblem img { transform: none; }
@media (max-width: 899px) {
  .hero__emblem, .hero__text { grid-column: 1 / -1; grid-row: auto; }
  .hero__emblem { order: -1; }
}
.sched th, .sched td { padding-right: 10px; }

/* ---------- Mannschaftsfoto & Spielplan (Fußball) ---------- */
.dp-photo__fig { margin: 0; }
.dp-photo__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.dp-photo__fig figcaption { margin-top: 12px; font-size: 0.9375rem; }
.dp-spiel__lead { margin: -12px 0 28px; max-width: 60ch; }
.dp-widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.widget { background: var(--paper); padding: clamp(20px, 2.4vw, 32px); min-width: 0; }
.widget__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1; margin: 0 0 16px; color: var(--ink); }
.widget__slot { min-height: 220px; overflow: auto; }
.widget__slot iframe { max-width: 100%; border: 0; }
.widget__ph { margin: 0; padding: 24px; background: var(--white); color: var(--purple-deep); min-height: 180px; display: grid; place-items: center; text-align: center; }
@media (max-width: 899px) { .dp-widgets { grid-template-columns: 1fr; } }

/* ---------- Namen nie mitten im Wort umbrechen: Schrift passt sich der Kartenbreite an ---------- */
.board__card { container-type: inline-size; }
.board__name, .board--leaders .board__name { font-size: clamp(1.25rem, 10.5cqi, 2.4rem); overflow-wrap: normal; word-break: normal; hyphens: none; }
