/* Youth visual language. Scope keeps the established club design independent. */
.av-youth-context { background: #fff; }
.av-youth-page, .av-youth, .av-youth-hero, .av-youth-facts, .av-youth-topic-card, .av-youth-contact-band, .av-youth-article-content, .av-youth-callout {
  --youth-green: #073e25; --youth-lime: #d4f500; --youth-soft: #f0f5eb;
  --youth-ink: #10251b; --youth-muted: #425747; --youth-wide: 86rem;
}
.av-youth-page, .av-youth { color: var(--youth-ink); background: #fff; }
.av-youth-page { padding: 0; }
.av-youth-page > .wp-block-post-content { margin: 0; }
.av-youth > *, .av-youth-start-layout > *, .av-youth-topic-grid > *,
.av-youth-facts > *, .av-youth-contact-band > *, .av-youth-article-layout > * { margin-block: 0; }
.av-youth :where(h1,h2,h3,p,figure), .av-youth-hero :where(p,figure) { margin-block: 0; }
.av-youth :is(.av-youth-start-layout,.av-youth-contact-wrap), .av-youth-article-layout, .av-youth-hero-inner {
  width: min(calc(100% - 2 * var(--av-gutter)), var(--youth-wide)); margin-inline: auto;
}
/* An energetic youth accent on the existing shared navigation, no copied header. */
.av-youth-context .av-header-nav a[href$="/jugend/"] { position: relative; }
.av-youth-context .av-header-nav a[href$="/jugend/"]::after {
  content: ""; position: absolute; height: 5px; left: .25rem; right: .25rem; bottom: -.6rem;
  background: #d4f500; transform: rotate(-2deg); clip-path: polygon(0 20%,30% 0,65% 25%,99% 0,100% 80%,65% 95%,32% 80%,1% 100%);
}
.av-youth-context .av-header-nav .is-menu-open a[href$="/jugend/"]::after { bottom: .25rem; left: 1rem; right: auto; width: 4rem; }
.av-youth-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(17.5rem,25vw,23rem); background: #113b26; }
.av-youth-hero-background { position: absolute; z-index: -2; inset: 0; margin: 0; }
.av-youth-hero-background img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 48%; border-radius: 0; }
.av-youth-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#062d2640,transparent 60%); pointer-events: none; }
.av-youth-hero-inner { position: relative; padding-block: clamp(1.5rem,3vw,3rem) 1.5rem; }
.av-youth-wordmark { width: min(50%,38rem); margin: 0; transform: rotate(-3deg); }
.av-youth-wordmark img { width: 100%; aspect-ratio: 5 / 2; display: block; border-radius: 0; }
.av-youth-tag {
  display: table; position: relative; z-index: 1; margin: -.2rem 0 0 clamp(4rem,12vw,12rem);
  padding: .4rem 1.6rem .6rem; color: #082a18; background: #d4f500; transform: rotate(-3deg);
  font-weight: 850; font-style: italic; font-size: clamp(1.125rem,2.2vw,2rem); line-height: 1.25;
  clip-path: polygon(2% 5%,85% 1%,98% 8%,95% 23%,100% 40%,96% 63%,99% 92%,44% 100%,1% 92%,4% 65%,0 37%);
}
.av-youth-start-layout { display: grid; grid-template-columns: minmax(13rem, .9fr) minmax(0,3fr); gap: clamp(1.5rem,3vw,2.75rem); padding-block: 2.5rem 2rem; align-items: start; }
.av-youth-start-layout > * { min-width: 0; }
.av-youth-facts {
  position: relative; padding: .5rem clamp(1.1rem,2vw,1.75rem) 1rem;
  border-radius: 1.25rem; background: radial-gradient(ellipse at 0% 0%,#d9ebca,transparent 80%),linear-gradient(150deg,#edf4e5,#f6f8f3); border: 1px solid #e5eddc;
}
.av-youth-facts::after { content: ""; position: absolute; height: 1rem; left: 20%; right: 4%; bottom: -.45rem; transform: rotate(-5deg); background: linear-gradient(90deg,transparent,#c7ef0c 15%,#d4f500 70%,transparent); clip-path: polygon(0 25%,38% 0,95% 15%,80% 40%,100% 65%,60% 85%,8% 100%,16% 64%); }
.av-youth-fact { display: grid; grid-template-columns: 3.4rem minmax(0,1fr); align-items: center; gap: 1rem; padding-block: 1.5rem; }
.av-youth-fact + .av-youth-fact { border-top: 1px solid #cad8c1; }
.av-youth-fact-icon img { width: 3.4rem; height: 3.4rem; display: block; border-radius: 0; }
.av-youth-fact > p { font-size: clamp(.875rem,1.05vw,1rem); font-weight: 650; line-height: 1.45; letter-spacing: -.025em; }
.av-youth-intro { position: relative; padding-right: clamp(7rem,16vw,15rem); min-height: 10.5rem; }
.av-youth-intro-fish { position: absolute; width: clamp(8rem,16vw,14rem); right: -.4rem; top: -.4rem; margin: 0; transform: rotate(4deg); }
.av-youth-intro-fish img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 0; }
.av-youth-heading { position: relative; font-size: clamp(1.8rem,2.75vw,2.7rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 820; color: var(--youth-green); text-wrap: balance; margin: 0 0 1.5rem; }
.av-youth-heading::after { content: ""; position: absolute; left: 0; bottom: -.55rem; width: 8rem; height: .45rem; background: var(--youth-lime); transform: rotate(-3deg); clip-path: polygon(0 22%,45% 0,100% 15%,98% 84%,40% 72%,2% 100%); }
.av-youth-intro-copy { font-size: clamp(.9375rem,1.2vw,1.0625rem); line-height: 1.65; letter-spacing: -.012em; color: #16271d; }
.av-youth-topic-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin-top: 1.75rem; }
.av-youth-topic-card { position: relative; min-width: 0; border-radius: 1.125rem; overflow: hidden; background: linear-gradient(#f8fafb,#edf1f3); border: 1px solid #e8edef; box-shadow: 0 4px 0 #103c2003; }
.av-youth-topic-photo a { display: block; }
.av-youth-topic-photo img { display: block; width: 100%; aspect-ratio: 4 / 2.8; object-fit: cover; border-radius: 0; }
.av-youth-topic-label { position: relative; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.5rem; width: calc(100% - .7rem); margin: -1.5rem auto .5rem; padding: .3rem .4rem; isolation: isolate; }
.av-youth-topic-label::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--youth-lime); transform: rotate(-2deg); clip-path: polygon(3% 0,99% 3%,96% 30%,100% 50%,96% 74%,100% 94%,20% 100%,0 92%,3% 68%,0 46%); }
.av-youth-topic-icon { flex: 0 0 1.7rem; width: 1.7rem; }
.av-youth-topic-icon img { display: block; width: 1.7rem; height: 1.7rem; border-radius: 0; }
.av-youth-topic-title { font-size: clamp(.9375rem,1.4vw,1.2rem); font-weight: 820; letter-spacing: -.035em; line-height: 1.2; margin: 0; }
.av-youth-topic-title a { text-decoration: none; color: #0b2013; }
.av-youth-topic-description { padding: 0 .75rem 1rem; font-size: .9375rem; font-weight: 500; line-height: 1.45; letter-spacing: -.02em; text-align: center; color: #16271d; }
.av-youth-contact-wrap { padding-bottom: 3rem; }
.av-youth-contact-band { display: grid; grid-template-columns: 3.5rem minmax(0,1fr) auto; align-items: center; gap: 1.5rem; padding: 1.5rem 2rem; border: 1px solid #e6eee1; border-radius: 1.125rem; background: linear-gradient(110deg,#edf4e8,#f5f7f3); }
.av-youth-contact-icon img { display: block; width: 3.5rem; height: 3.5rem; border-radius: 0; }
.av-youth-contact-copy > h2 { font-size: clamp(1.1rem,1.8vw,1.6rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.25; margin: 0 0 .4rem; }
.av-youth-contact-copy > p { margin: 0; font-size: .9375rem; line-height: 1.6; }
.av-youth-contact-button .wp-block-button__link { min-height: 50px; border-radius: .75rem !important; padding: .8rem 1.35rem; background: linear-gradient(170deg,#0b472b,#032e1b); color: #fff; box-shadow: inset 0 1px 0 #ffffff18,0 3px 8px #173b2010; border: 1px solid #0c3924; white-space: nowrap; }
.av-youth-contact-button .wp-block-button__link::before { content: ""; display: inline-block; margin-right: .65rem; width: 1.5rem; height: 1.5rem; background: #fff; mask: url('jugend/mail.svg') center / contain no-repeat; -webkit-mask: url('jugend/mail.svg') center / contain no-repeat; }
.av-youth-page a:focus-visible { outline-color: #335f22; outline-offset: 4px; }
.av-youth-hero a:focus-visible { outline-color: var(--youth-lime); }
/* The shared subpage template and dynamically maintained section navigation. */
.av-youth-subpage .av-youth-hero { min-height: 15rem; }
.av-youth-subpage .av-youth-wordmark { width: min(36%,25rem); }
.av-youth-subpage .av-youth-hero-inner { padding-block: 1.5rem; }
.av-youth-subpage .av-youth-tag { font-size: 1.25rem; margin-left: 7rem; }
.av-youth-article-layout { display: grid; grid-template-columns: minmax(13rem,1fr) minmax(0,3.4fr); align-items: start; gap: clamp(2rem,5vw,5rem); padding-block: clamp(2rem,5vw,4rem); }
.av-youth-article-sidebar { position: sticky; top: 2rem; }
.av-youth-subnav { background: #eef5e7; border: 1px solid #dce8d3; padding: 1.25rem; border-radius: 1rem; }
.av-youth-subnav .av-youth-nav-eyebrow { margin: 0 0 1rem; color: #356041; font-size: .6875rem; letter-spacing: .1em; font-weight: 750; }
.av-youth-subnav ul { margin: 0; padding: 0; list-style: none; }
.av-youth-subnav li + li { margin-top: .35rem; }
.av-youth-subnav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; padding: .6rem .75rem; border-radius: .5rem; color: #154d2b; text-decoration: none; font-size: .9375rem; font-weight: 600; }
.av-youth-subnav a:is(:hover,[aria-current="page"],.is-current-ancestor) { background: #d4f500; color: #15331b; }
.av-youth-article { min-width: 0; max-width: 56rem; }
.av-youth-article > .wp-block-post-content { margin-top: 0; }
.av-youth-article-content { font-size: 1rem; line-height: 1.8; }
.av-youth-article-content > * { margin-block: 1.5rem; }
.av-youth-lead { font-size: clamp(1.15rem,1.8vw,1.5rem); line-height: 1.5; font-weight: 600; letter-spacing: -.025em; color: #2b4d33; margin-top: 0; }
.av-youth-article-content > h2 { font-size: clamp(1.4rem,2.2vw,2rem); letter-spacing: -.035em; line-height: 1.25; margin-top: 2rem; color: #103d23; }
.av-youth-article-photo { margin-block: 2rem; }
.av-youth-article-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 28rem; object-fit: cover; border-radius: 1rem; }
.av-youth-callout { border-left: 5px solid var(--youth-lime); padding: 1.5rem; background: #eff5e9; border-radius: 0 1rem 1rem 0; margin-block: 2rem; }
.av-youth-callout .av-youth-eyebrow { font-size: .6875rem; letter-spacing: .1em; font-weight: 750; color: #46633f; }
.av-youth-callout h3 { font-size: 1.3rem; line-height: 1.3; margin-block: .5rem; }
.av-youth-callout > p:last-child { margin-bottom: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
 .av-youth-topic-card { transition: translate .2s ease, box-shadow .2s ease; }
 .av-youth-topic-card:hover { translate: 0 -4px; box-shadow: 0 .75rem 1.5rem #18372612; }
}
@media (max-width: 1199px) {
 .av-youth-start-layout { grid-template-columns: minmax(12rem,.9fr) minmax(0,3fr); gap: 1.5rem; }
 .av-youth-fact { grid-template-columns: 2.8rem minmax(0,1fr); gap: .75rem; }
 .av-youth-fact-icon img { width: 2.8rem; height: 2.8rem; }
 .av-youth-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .av-youth-intro { padding-right: 7rem; }
 .av-youth-intro-fish { width: 8rem; top: 1rem; right: -1rem; }
 .av-youth-contact-band { grid-template-columns: 3rem minmax(0,1fr); }
 .av-youth-contact-band > .wp-block-buttons { grid-column: 2; }
}
@media (max-width: 799px) {
 .av-youth-start-layout { grid-template-columns: minmax(0,1fr); gap: 2rem; padding-top: 2rem; }
 .av-youth-start-layout > .av-youth-main { order: 0; }
 .av-youth-start-layout > .av-youth-facts { order: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
 .av-youth-fact { grid-template-columns: 1fr; align-content: start; gap: .75rem; padding-block: 1rem; }
 .av-youth-fact + .av-youth-fact { border-top: 0; }
 .av-youth-fact > p { font-size: .875rem; }
 .av-youth-wordmark { width: 65%; }
 .av-youth-tag { margin-left: 3rem; }
 .av-youth-subpage .av-youth-wordmark { width: 48%; }
 .av-youth-article-layout { grid-template-columns: minmax(0,1fr); gap: 2rem; }
 .av-youth-article-sidebar { position: static; }
 .av-youth-subnav ul { display: flex; flex-wrap: wrap; gap: .35rem; }
 .av-youth-subnav li + li { margin: 0; }
 .av-youth-subnav a { font-size: .875rem; gap: 1rem; }
}
@media (max-width: 479px) {
 .av-youth-hero { min-height: 19rem; }
 .av-youth-hero-background img { object-position: right center; }
 .av-youth-hero-inner { padding-top: 6rem; padding-bottom: 1.75rem; }
 .av-youth-wordmark { width: 96%; max-width: 24rem; }
 .av-youth-tag { font-size: 1.125rem; margin: .5rem 0 0 1rem; padding-inline: 1.1rem; }
 .av-youth-intro { padding-right: 0; min-height: 0; }
 .av-youth-intro-fish { display: none; }
 .av-youth-heading { font-size: 2rem; text-wrap: initial; }
 .av-youth-topic-grid { gap: .75rem; }
 .av-youth-topic-label { gap: .25rem; padding-inline: .2rem; width: calc(100% - .3rem); }
 .av-youth-topic-icon { width: 1.25rem; flex-basis: 1.25rem; }
 .av-youth-topic-icon img { width: 1.25rem; height: 1.25rem; }
 .av-youth-topic-title { font-size: .9375rem; }
 .av-youth-topic-description { font-size: .875rem; padding-inline: .5rem; }
 .av-youth-start-layout > .av-youth-facts { gap: .75rem; padding-inline: 1rem; }
 .av-youth-fact > p { font-size: .8125rem; }
 .av-youth-contact-band { gap: 1rem; padding: 1.25rem; grid-template-columns: 2.5rem minmax(0,1fr); }
 .av-youth-contact-icon img { width: 2.5rem; height: 2.5rem; }
 .av-youth-contact-band > .wp-block-buttons { grid-column: 1/-1; }
 .av-youth-contact-band .wp-block-button { width: 100%; }
 .av-youth-contact-band .wp-block-button__link { width: 100%; }
 .av-youth-subpage .av-youth-hero { min-height: 13rem; }
 .av-youth-subpage .av-youth-hero-inner { padding-block: 2.25rem 1.25rem; }
 .av-youth-subpage .av-youth-wordmark { width: 75%; }
 .av-youth-subpage .av-youth-tag { font-size: 1rem; margin-left: .5rem; }
}
@media (max-width: 359px) {
 .av-youth-topic-grid { grid-template-columns: minmax(0,1fr); }
 .av-youth-topic-photo img { aspect-ratio: 2; }
 .av-youth-topic-title { font-size: 1.125rem; }
 .av-youth-facts { display: block; }
 .av-youth-fact { grid-template-columns: 2.8rem minmax(0,1fr); }
 .av-youth-fact > p { font-size: .875rem; }
 .av-youth-fact + .av-youth-fact { border-top: 1px solid #cad8c1; }
}
@media (prefers-reduced-motion: reduce) { .av-youth * { transition: none !important; animation: none !important; } }

/* Standalone pattern previews inherit the same component spacing in the editor. */
.av-youth-topic-card :where(figure,p,h2), .av-youth-contact-band :where(figure,p,h2), .av-youth-fact :where(figure,p) { margin-block: 0; }
