/* tg-site extra.css: Zusaetze fuer uebernommene Inhalte, Formular, Vereinsseiten. Fassung tg-site 0.1.0 */
.prose { max-width: 46em; }
.prose > * + * { margin-top: 16px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin-top: 32px; font-size: 30px; }
.prose h3 { margin-top: 24px; font-size: 24px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-photo, 4px); display: block; margin: 12px 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin: 24px 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--c-line); padding: 8px 10px; vertical-align: top; text-align: left; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .bilderreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .bilderreihe img { max-width: min(100%, 360px); margin: 0; }
.seite { padding-top: 8px; padding-bottom: var(--s-6, 72px); }
.seitenleiste { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin-top: 40px; }
.seitenleiste .card p { margin: 0; }
.form { display: grid; gap: 16px; max-width: 40em; }
.form label { font-weight: 700; display: block; margin-bottom: 4px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #6B7C93; border-radius: 6px; min-height: 44px; background: #fff; }
.form textarea { min-height: 160px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .req { color: #8A1C1C; }
.meldung { padding: 14px 16px; border-radius: 6px; border: 1px solid var(--c-line); background: var(--c-sky); max-width: 40em; }
.meldung--fehler { border-color: #8A1C1C; background: #FDF1F1; }
.meldung--ok { border-color: #1E6B3A; background: #EFF8F2; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
.verein-text p { margin: 0 0 14px; }
.dokumente a::before { content: "PDF · "; font-weight: 700; }

/* tg-site 0.4.1: Zwischenueberschriften der uebernommenen Seiten, mobile Feinheiten */
.prose h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--c-navy); }
.prose h4, .prose h5, .prose h6 { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1.2; color: var(--c-navy); margin-top: 36px; padding-top: 14px; border-top: 2px solid var(--c-line); }
.prose h4 span, .prose h5 span { font: inherit; }
.prose h2 + hr, .prose hr:first-of-type { display: none; }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose img { height: auto; }
.prose a[href^="mailto"] { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .prose h1 { font-size: 34px; }
  .prose h2 { font-size: 24px; }
  .prose h4, .prose h5, .prose h6 { font-size: 23px; margin-top: 28px; }
  .prose { font-size: 18px; }
  .seite { padding-bottom: 40px; }
  .prose table { display: block; overflow-x: auto; }
}
@media (max-width: 700px) { .table-wrap table { min-width: 0; font-size: 16px; } .table-wrap td, .table-wrap th { padding: 8px 8px; } }
.breadcrumb { align-items: center; }

/* tg-site 0.6.0: Untermenue der Hauptnavigation */
.club-grid-titel { margin-top: 40px; margin-bottom: 16px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a[aria-current="page"], .nav__item.is-aktiv > a { color: var(--c-blue); font-weight: 700; border-bottom-color: var(--c-blue); }
.nav__sub-toggle { width: 32px; height: 44px; margin-left: -8px; border: 0; background: transparent; color: var(--c-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.nav__sub-toggle svg { transition: transform .15s; }
.nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub-toggle:hover { color: var(--c-blue); }
.nav__sub { list-style: none; margin: 0; padding: 8px; display: none; position: absolute; left: 0; top: 100%; min-width: 270px; z-index: 30; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 12px 24px rgba(10, 37, 64, .12); }
.nav__sub a { display: block; padding: 10px 12px; border-bottom: 0; border-radius: 6px; font-size: 17px; }
.nav__sub a:hover, .nav__sub a:focus-visible { background: var(--c-sky, #eaf2fb); color: var(--c-navy); }
.nav__item--sub:hover > .nav__sub, .nav__item--sub:focus-within > .nav__sub, .nav__item--sub.is-offen > .nav__sub { display: block; }
.nav__item--sub.is-zu > .nav__sub { display: none; }
@media (max-width: 900px) {
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
  .nav__item > a { flex: 1 1 auto; border-bottom: 0 !important; }
  .nav__sub-toggle { width: 48px; height: 48px; margin-left: 0; }
  .nav__sub { position: static; flex: 1 0 100%; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 10px 12px; min-width: 0; }
  .nav__item--sub:hover > .nav__sub, .nav__item--sub:focus-within > .nav__sub { display: none; }
  .nav__item--sub.is-offen > .nav__sub { display: block; }
  .nav__sub a { border-bottom: 0; padding: 12px 8px; font-size: 18px; }
}

/* ---- Inhaltsseiten: Zahlen und Fakten, Kacheln, Firmen (tg-site 0.9.0) ---- */
.prose .fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0 8px; }
.prose .fakten__block { background: var(--c-sky); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px 22px; }
.prose .fakten h5 { margin: 0 0 12px; padding: 0 0 10px; border-top: 0; border-bottom: 2px solid var(--c-blue); font-size: 22px; line-height: 1.25; }
.prose .fakten dl { margin: 0; }
.prose .fakten dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 4px 16px; padding: 7px 0; border-bottom: 1px solid var(--c-line); }
.prose .fakten dl > div:last-child { border-bottom: 0; }
.prose .fakten dt { font-weight: 700; color: var(--c-navy); }
.prose .fakten dd { margin: 0; overflow-wrap: anywhere; }
.prose ul.kacheln { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 24px; }
.prose ul.kacheln li { margin: 0; background: var(--c-sky); border: 1px solid var(--c-line); border-left: 5px solid var(--c-blue); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; color: var(--c-navy); line-height: 1.3; }
.prose ul.kacheln li + li { margin-top: 0; }
.prose .firmen { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.prose .firma { background: #fff; border: 1px solid var(--c-line); border-top: 4px solid var(--c-blue); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.prose .firma > * + * { margin-top: 2px; }
.prose .firma__adr { margin-top: 8px !important; }
.prose .firma h3 { margin: 0; font-size: 22px; line-height: 1.25; color: var(--c-navy); }
.prose .firma p { margin: 0; }
.prose .firma__name { font-weight: 700; }
.prose .firma__kont { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--c-line); padding-top: 10px; }
.prose .firma__kont li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 8px; padding: 3px 0; overflow-wrap: anywhere; }
.prose .firma__kont li span { color: var(--c-muted); font-size: 0.9em; }
@media (max-width: 640px) {
  .prose .fakten { grid-template-columns: minmax(0, 1fr); }
  .prose .fakten dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prose .fakten h5 { font-size: 20px; margin-top: 0; }
  .prose .firmen { grid-template-columns: minmax(0, 1fr); }
  .prose ul.kacheln { grid-template-columns: minmax(0, 1fr); }
}

.prose:has(.fakten), .prose:has(.kacheln), .prose:has(.firmen) { max-width: none; }
.prose:has(.fakten) > :not(.fakten):not(h4), .prose:has(.kacheln) > :not(.kacheln), .prose:has(.firmen) > :not(.firmen) { max-width: 46em; }

/* ---- Startseite: rechte Spalte Gemeinschaft (tg-site 0.9.5) ---- */
.seitenblock { display: grid; gap: 20px; align-content: start; min-width: 0; }
.seitenkarte { background: var(--c-sky); border: 1px solid var(--c-line); border-top: 4px solid var(--c-blue); border-radius: var(--radius); padding: 20px 24px; }
.seitenkarte h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; }
.seitenkarte p { margin: 0; line-height: 1.6; }
.seitenkarte p + p { margin-top: 10px; }

/* ---- Themen-Kacheln „So ist Traubing“ (Entwurf Mira 15.11.2026) ----
   Ersetzt: .topics/.topic/.topic--accent in style.css und .topics/.topic am Ende von extra.css.
   Nutzt nur vorhandene Variablen. Keine Skripte, keine externen Dateien. */

.themen { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }

.thema {
  grid-column: span 3;                       /* Reihe 2: vier gleich breite Kacheln */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "icon pfeil" "text text";
  align-content: space-between; gap: 28px 12px;
  min-height: 210px; padding: 24px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid #2A4A70; border-radius: var(--radius);
  color: var(--c-white); text-decoration: none;
  transition: background-color .18s, border-color .18s, transform .18s;
}
.thema:nth-child(-n+3) { grid-column: span 4; min-height: 230px; }   /* Reihe 1: drei breite Kacheln (3 + 4 = 7, keine Lücke) */

.thema:hover { background: rgba(255, 255, 255, .10); border-color: var(--c-line-strong); color: var(--c-white); transform: translateY(-2px); }
.thema:focus-visible { outline: 3px solid var(--c-white); outline-offset: 3px; }

.thema__icon { grid-area: icon; width: 56px; height: 56px; border-radius: 50%; background: var(--c-blue); display: flex; align-items: center; justify-content: center; }
.thema__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--c-white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.thema__pfeil { grid-area: pfeil; align-self: start; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2A4A70; display: flex; align-items: center; justify-content: center; transition: background-color .18s, border-color .18s; }
.thema__pfeil svg { width: 18px; height: 18px; fill: none; stroke: var(--c-white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.thema:hover .thema__pfeil { background: var(--c-blue); border-color: var(--c-blue); }
.thema:hover .thema__pfeil svg { transform: translateX(2px); }

.thema__text { grid-area: text; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.thema__text strong { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.15; overflow-wrap: break-word; }
.thema__text span { font-size: 17px; line-height: 1.35; color: var(--c-on-dark); }

/* Tablet: zwei Spalten, die siebte Kachel läuft über die volle Breite (keine Lücke) */
@media (max-width: 999px) {
  .themen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thema, .thema:nth-child(-n+3) { grid-column: auto; min-height: 190px; }
  .thema:last-child { grid-column: 1 / -1; min-height: 0; }
}
/* Handy: eine Spalte, Kachel als kompakte Zeile (Icon | Text | Pfeil) */
@media (max-width: 599px) {
  .themen { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .thema, .thema:nth-child(-n+3), .thema:last-child {
    grid-template-columns: auto 1fr auto; grid-template-areas: "icon text pfeil";
    align-items: center; gap: 16px; min-height: 0; padding: 16px 18px;
  }
  .thema__icon { width: 48px; height: 48px; }
  .thema__icon svg { width: 26px; height: 26px; }
  .thema__pfeil { align-self: center; width: 36px; height: 36px; }
  .thema__text strong { font-size: 23px; }
  .thema__text span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .thema, .thema__pfeil, .thema__pfeil svg { transition: none; } .thema:hover { transform: none; } }

/* ---- Ende Themen-Kacheln ---- */
