/* Ruhigere Inhaltsbreiten und klarere Zuordnung von Überschrift und Einleitung. */
.section-head,
.bow-class-head,
.competitions-heading,
.supporters-heading {
  width: min(100%, 1180px);
}

.section-head,
.supporters-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}

.section-head > p,
.bow-class-head > p,
.competitions-heading > p,
.supporters-heading > p:last-child {
  max-width: 34rem;
  margin: 0;
}

.bow-class-head {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.competitions-heading {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}

/* Der umfangreiche Verbandsteil erhält eine eigene Zeile; darunter stehen
   Vereins- und Spaßturniere gleichwertig nebeneinander. */
.competition-grid > article:first-child {
  grid-column: 1 / -1;
  min-height: 0;
}

.competition-grid > article:nth-child(2),
.competition-grid > article:nth-child(3) {
  min-height: 0;
}

.competition-grid > article:first-child > p {
  max-width: 52rem;
}

.competition-grid > article:first-child .competition-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .competition-grid > article:first-child .competition-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .section-head,
  .bow-class-head,
  .competitions-heading,
  .supporters-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .section-head > p,
  .bow-class-head > p,
  .competitions-heading > p,
  .supporters-heading > p:last-child {
    max-width: 42rem;
  }

  .competition-grid > article:first-child {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .competition-grid > article:first-child .competition-links {
    grid-template-columns: 1fr;
  }
}

/* Mobile Feinschliff: kompakte Abstände, sichere Zeilenumbrüche und keine
   unbeabsichtigte Seitenbreite neben den bewusst scrollbareren Galerien. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

p,
li,
address,
a,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

.rule-table-wrap,
.result-table-wrap,
.champion-gallery,
.parcours-gallery {
  -webkit-overflow-scrolling: touch;
}

/* Stabile Titelzeilen in Safari, Chrome und Firefox. */
.hero-title {
  width: 100%;
  max-width: 100%;
  font-size: clamp(4rem, 7.2vw, 7.2rem);
  line-height: .9;
}

.hero-title .hero-title-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
}

.hero-title .hero-title-solid {
  color: #fff;
  -webkit-text-fill-color: #fff;
  -webkit-text-stroke: 0;
}

.hero-title .hero-title-outline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #fff;
}

.hero-title .hero-title-community {
  font-size: 1em;
  letter-spacing: inherit;
}

/* Kompaktere Kartentitel im Bereich „Aktuelles“ auf allen Bildschirmgrößen. */
.news-card h3 {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  line-height: 1.05;
}

/* Vollständige, aber kompakte Hauptnavigation mit direktem Weg zur Startseite. */
.site-header nav {
  align-items: center;
  gap: clamp(.85rem, 1.25vw, 1.55rem);
}

.site-header nav > a,
.nav-more > summary {
  white-space: nowrap;
}

.nav-home {
  font-weight: 800;
}

.nav-more {
  position: relative;
}

.nav-more > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
}

.nav-more > summary::-webkit-details-marker {
  display: none;
}

.nav-more > summary::after {
  content: "▾";
  margin-left: .4rem;
  color: var(--red2);
}

.nav-more[open] > summary::after {
  content: "▴";
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  width: min(590px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: .65rem;
  color: #fff;
  background: rgba(8,9,11,.98);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 45px rgba(0,0,0,.32);
}

.site-header .nav-submenu a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: .55rem .7rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-header .nav-submenu a:hover,
.site-header .nav-submenu a:focus-visible {
  background: rgba(255,255,255,.08);
}

.site-header .nav-submenu a::after {
  display: none;
}

@media (max-width: 1180px) {
  .site-header nav,
  .site-header .header-cta {
    display: none;
  }

  .site-header .menu-button {
    display: block;
    margin-left: auto;
  }

  .site-header.open {
    height: auto;
    max-height: 100dvh;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    overflow-y: auto;
    background: #090a0c;
  }

  .site-header.open nav {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.18);
  }

  .site-header.open nav > a,
  .site-header.open .nav-more > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .site-header.open .nav-more {
    width: 100%;
  }

  .site-header.open .nav-more > summary {
    justify-content: space-between;
  }

  .site-header.open .nav-submenu {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0 0 .75rem;
    border: 0;
    box-shadow: none;
    background: rgba(255,255,255,.035);
  }

  .site-header.open .nav-submenu a {
    padding-left: .75rem;
  }
}

@media (max-width: 700px) {
  main > section:not(.hero) {
    padding: 4rem 1.25rem;
  }

  .site-header {
    min-height: 68px;
    height: 68px;
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-left: max(1rem, env(safe-area-inset-left));
    gap: 1rem;
  }

  .site-header.open {
    max-height: 100dvh;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .site-header.open nav {
    gap: 0;
    padding-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.18);
  }

  .site-header.open .nav-more {
    width: 100%;
  }

  .site-header.open .nav-more > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: .95rem;
  }

  .site-header.open .nav-submenu {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    padding: 0 0 0 .75rem;
    border: 0;
    box-shadow: none;
    background: rgba(255,255,255,.035);
  }

  .site-header.open .nav-submenu a {
    padding-left: .75rem;
    font-size: .9rem;
  }

  .site-header.open nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: .95rem;
  }

  .site-header.open nav a::after {
    display: none;
  }

  .menu-button {
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-content: center;
  }

  .menu-button span {
    transition: transform .2s ease, opacity .2s ease;
  }

  .site-header.open .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.open .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .site-header.open .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 100svh;
    padding: 0;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-content {
    width: auto;
    max-width: calc(100vw - 2.5rem);
    margin: 0 1.25rem;
    padding: 6rem 0 5.5rem;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 12vw, 3.25rem);
    line-height: .92;
    letter-spacing: -.02em;
  }

  .hero-title .hero-title-outline {
    -webkit-text-stroke-width: 1.5px;
  }

  .hero-title .hero-title-community {
    font-size: 1em;
    letter-spacing: inherit;
  }

  .hero-copy {
    margin: 1.4rem 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .scroll-cue {
    right: 1.25rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 1.25rem;
  }

  .intro,
  .terrain,
  .tryout,
  .board,
  .downloads,
  .imprint {
    gap: 2.5rem;
  }

  .intro h2,
  .terrain h2,
  .tryout h2,
  .directions h2,
  .board-heading h2,
  .downloads-heading h2,
  .news-heading h2,
  .training-groups-heading h2,
  .training-heading h2,
  .competitions-heading h2,
  .supporters-heading h2,
  .documents-heading h2,
  .guest-shooters h2,
  .imprint-heading h2,
  .section-head h2,
  .success h2 {
    font-size: clamp(2.65rem, 13vw, 3.65rem);
    line-height: .9;
  }

  .section-head,
  .news-heading,
  .training-groups-heading,
  .training-heading,
  .competitions-heading,
  .supporters-heading,
  .documents-heading {
    margin-bottom: 2rem;
  }

  .section-head > p,
  .news-heading > p,
  .training-groups-heading > p,
  .training-heading > p:last-child,
  .competitions-heading > p,
  .supporters-heading > p:last-child,
  .documents-heading > p {
    margin-top: 0;
    font-size: .98rem;
  }

  .news-card,
  .sport-card,
  .training-group-grid article,
  .hall-card,
  .competition-grid article,
  .supporter-card,
  .document-card,
  .board-card {
    min-height: 0;
    padding: 1.5rem;
  }

  /* „Aktuelles“ bleibt vollständig innerhalb des Smartphone-Viewports. */
  .news,
  .news-heading,
  .news-grid,
  .news-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .news-grid {
    display: block;
    background: transparent;
  }

  .news-card {
    overflow: hidden;
    border-bottom: 1px solid #d6d6d3;
  }

  .news-card > span,
  .news-card h3,
  .news-card p,
  .news-card b {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .news-card h3 {
    font-size: clamp(1.45rem, 6.5vw, 1.8rem);
    line-height: 1.05;
  }

  .news-card h3,
  .training-group-grid h3,
  .competition-grid h3,
  .document-card h3 {
    margin-top: 1.7rem;
  }

  .news-card b,
  .document-card b,
  .training-group-meta {
    margin-top: 1.6rem;
  }

  .sport-card {
    display: flex;
    flex-direction: column;
  }

  .sport-card h3 {
    margin-top: 1.3rem;
    font-size: 2rem;
    line-height: 1;
  }

  .target-icon,
  .target-animal {
    margin-top: 1.7rem;
    margin-bottom: .6rem;
  }

  .rule-choice {
    min-height: 52px;
    font-size: .78rem;
  }

  .bow-class-head {
    margin-top: 3.25rem;
  }

  .bow-class-head h3 {
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }

  .bow-class-card,
  .dsb-bow-grid .bow-class-card {
    min-height: 0;
    padding: 1.35rem;
  }

  .bow-class-card h4,
  .dsb-bow-grid .bow-class-card h4 {
    margin-top: 1.2rem;
    font-size: 1.7rem;
  }

  .bow-class-card p {
    min-height: 0;
  }

  .discipline-dialog {
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
  }

  .discipline-dialog[open] {
    padding: 4.5rem 1.25rem 1.5rem;
  }

  .discipline-close {
    position: fixed;
    top: .75rem;
    right: .75rem;
    z-index: 2;
  }

  .discipline-dialog h3 {
    margin-right: 0;
    font-size: 2rem;
    line-height: 1;
  }

  .discipline-dialog table {
    font-size: .86rem;
  }

  .age-grid {
    grid-template-columns: 1fr;
  }

  .bow-photo img {
    height: auto;
    max-height: 44vh;
  }

  .terrain-gallery {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .terrain-photo,
  .terrain-photo-main {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .terrain-photo-main {
    grid-column: 1 / -1;
  }

  .terrain-photo figcaption {
    right: .65rem;
    bottom: .65rem;
    left: .65rem;
    padding: .35rem .5rem;
    font-size: .66rem;
  }

  .parcours-showcase {
    padding: 4rem 1.25rem;
  }

  .parcours-heading h2,
  .club-life-copy h2 {
    font-size: clamp(2.65rem, 13vw, 3.65rem);
  }

  .parcours-controls,
  .gallery-controls {
    justify-content: space-between;
    width: 100%;
  }

  .parcours-controls p,
  .gallery-controls p {
    margin-right: auto;
    font-size: .7rem;
  }

  .gallery-arrow {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
  }

  .parcours-gallery {
    width: 100%;
    padding-right: 0;
    gap: .75rem;
  }

  .parcours-gallery figure {
    flex-basis: calc(100vw - 3rem);
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .club-life-copy {
    padding: 4rem 1.25rem;
  }

  .club-life-gallery {
    aspect-ratio: auto;
  }

  .club-life-gallery figure {
    aspect-ratio: 4 / 3;
  }

  .success-content,
  .regional-success,
  .gallery-intro,
  .champion-sources {
    width: 100%;
  }

  .success-row {
    display: block;
  }

  .medal {
    margin-top: 2rem;
    text-align: left;
  }

  .success-copy {
    margin-top: 2rem;
    padding-left: 1rem;
    font-size: 1rem;
  }

  .champion-grid {
    margin-top: 2.5rem;
  }

  .champion-card,
  .champion-card:last-child:nth-child(odd) {
    min-height: 0;
    padding: 1.5rem;
  }

  .champion-card h3 {
    max-width: calc(100% - 4.25rem);
    font-size: 1.75rem;
  }

  .champion-number {
    right: 1rem;
    font-size: 3.5rem;
  }

  .champion-class {
    min-height: 0;
  }

  .placement-summary article {
    min-height: 165px;
  }

  .title-totals article {
    gap: 1rem;
  }

  .result-group summary {
    align-items: center;
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .result-group summary span {
    font-size: 1.45rem;
  }

  .result-table-wrap {
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .gallery-intro {
    margin-top: 3rem;
  }

  .champion-gallery {
    padding: .75rem 0 1.25rem;
    gap: .75rem;
  }

  .champion-gallery figure {
    flex-basis: calc(100vw - 3rem);
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0;
    transform: none;
  }

  .champion-gallery figure:nth-child(even),
  .champion-gallery figure:hover,
  .champion-gallery figure:focus-within {
    transform: none;
  }

  .training-group-meta {
    grid-template-columns: 1fr;
    gap: .3rem;
  }

  .training-group-meta small {
    grid-column: auto;
  }

  /* Trainingsgruppen und Turniere dürfen ihre Sektion mobil nicht verbreitern. */
  .training-groups,
  .training-groups-heading,
  .training-group-grid,
  .training-group-grid article,
  .training-group-meta,
  .competitions,
  .competitions-heading,
  .competition-grid,
  .competition-grid article,
  .competition-links,
  .competition-links a {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .training-groups,
  .competitions {
    overflow: hidden;
  }

  .training-group-grid,
  .competition-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .training-group-grid article,
  .competition-grid article {
    overflow: hidden;
  }

  .training-groups-heading h2,
  .training-groups-heading p,
  .training-group-grid h3,
  .training-group-grid p,
  .training-group-meta strong,
  .training-group-meta small,
  .competitions-heading h2,
  .competitions-heading p,
  .competition-grid h3,
  .competition-grid p,
  .competition-links b,
  .competition-links small,
  .competition-grid .text-link {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .training-groups-heading h2,
  .competitions-heading h2 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .training-groups-link {
    max-width: 100%;
    white-space: normal;
  }

  .hall-breaks {
    padding: 1.5rem;
  }

  .competition-links,
  .competition-grid > article:first-child .competition-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .competition-links a {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 62px;
  }

  .guest-shooters {
    width: 100%;
    max-width: 100%;
    padding: 4rem 1rem;
    overflow: hidden;
  }

  .guest-shooters-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 1.5rem;
  }

  .guest-shooters-copy,
  .guest-shooters-contact,
  .guest-payment,
  .guest-payment > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .guest-shooters-copy h2,
  .guest-shooters-copy p,
  .guest-payment h3,
  .guest-payment p,
  .guest-shooters-contact h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .guest-payment {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .guest-payment img {
    max-width: 190px;
    margin: 0 auto;
  }

  .guest-payment .bank-details,
  .guest-shooters-contact > a,
  .imprint-content a {
    overflow-wrap: anywhere;
  }

  .guest-payment .bank-details {
    word-break: break-word;
  }

  .guest-shooters-contact {
    padding: 1.25rem;
  }

  .guest-shooters-contact .button,
  .guest-shooters-contact .guest-mail {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .button,
  .guest-shooters-contact .button {
    min-height: 50px;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .schedule {
    align-items: flex-start;
  }

  .schedule strong {
    font-size: 1.65rem;
    line-height: 1.05;
  }

  .directions-route-plan {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    overflow: hidden;
  }

  .directions,
  .directions-copy,
  .directions-visual,
  .directions-route-plan > img,
  .route-note {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .directions {
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .directions-copy h2,
  .directions-copy p,
  .directions-copy address,
  .route-note span {
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .directions-route-plan .route-plan-image,
  .directions-route-plan .route-location-image {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: 70vh;
  }

  .directions-route-plan .route-location-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .imprint-content {
    gap: 1.75rem;
  }

  footer {
    padding: 3rem 1.25rem max(2rem, env(safe-area-inset-bottom));
    gap: 1.5rem;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 420px) {
  main > section:not(.hero) {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .brand span small {
    display: none;
  }

  .hero-content {
    max-width: calc(100vw - 2rem);
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 11.5vw, 3rem);
  }

  .news-card {
    padding: 1.25rem;
  }

  .news-card h3 {
    font-size: clamp(1.35rem, 6.2vw, 1.6rem);
  }

  .terrain-gallery {
    grid-template-columns: 1fr;
  }

  .terrain-photo-main {
    grid-column: auto;
  }

  .club-life-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .parcours-showcase,
  .club-life-copy {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .parcours-gallery figure,
  .champion-gallery figure {
    flex-basis: calc(100vw - 2rem);
  }

  .parcours-controls p,
  .gallery-controls p {
    max-width: 8.5rem;
    line-height: 1.35;
  }

  .placement-summary article div {
    padding-right: 3.25rem;
  }

  .placement-summary strong {
    font-size: 2.8rem;
  }

  .title-totals article {
    align-items: flex-start;
  }

  .title-totals span {
    font-size: 1.25rem;
  }

  .guest-shooters {
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .guest-shooters-card {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
  }

  .guest-shooters-copy h2 {
    font-size: clamp(2.45rem, 12vw, 3.15rem);
  }

  .guest-fee,
  .guest-payment,
  .guest-shooters-contact {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (hover: none) {
  .sport-card:hover,
  .news-card:hover,
  .document-card:hover,
  .terrain-photo:hover img {
    transform: none;
  }
}
