/* Lepi-Moos Relaunch Entwurf. Tokens werden 1:1 in theme.json des Block-Themes übernommen. */
/* Vereinsfarben Grün-Weiß: bewusst nur helles Theme (Brand > Dark Mode) */
:root {
  color-scheme: light;
  --green: #0a7d3e;
  --green-hi: #0a7d3e;
  --green-dark: #06532a;
  --bg: #ffffff;
  --surface: #f2f7f3;
  --surface-2: #e2ede5;
  --line: #d6e3da;
  --text: #0f1a14;
  --muted: #4c5d53;
  --on-green: #ffffff;
  --radius: 4px;
  --max: 1320px;
  --font-display: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin: 0;
}
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h3 { font-size: 1.6rem; line-height: 1; }
p { margin: 0; }
.lead { color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem;
  border-radius: var(--radius);
  font: 700 1rem/1 var(--font-display);
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-green { background: var(--green); color: var(--on-green); }
.btn-green:hover { background: var(--green-hi); }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / .12); }
:focus-visible { outline: 3px solid var(--green-hi); outline-offset: 3px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 62px; }
.brand span { font: 800 1.15rem/1 var(--font-display); text-transform: uppercase; }
.brand small { display: block; color: var(--muted); font: 600 .8rem/1.2 var(--font-body); text-transform: none; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  font: 700 1rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none; color: var(--muted);
}
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); font-size: 1.8rem; }

/* Hero */
.hero {
  position: relative; min-height: min(88dvh, 820px);
  display: grid; align-items: end;
  color: #fff; overflow: hidden;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(4 38 20 / .8), rgb(4 38 20 / .15) 65%),
    linear-gradient(180deg, transparent 40%, rgb(4 38 20 / .85));
}
.hero .wrap { position: relative; z-index: 1; padding-block: 6rem 7rem; }
.team-hero .wrap { padding-bottom: 5.5rem; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.5rem); max-width: 16ch; line-height: 1; }
.hero h1 mark { background: var(--green); color: #fff; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p { margin-top: 1.1rem; max-width: 46ch; font-size: 1.15rem; color: rgb(255 255 255 / .86); }
.hero .ctas { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* Matchday */
.matchday { margin-top: -3rem; position: relative; z-index: 2; }
.match-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.match-grid > * { background: var(--surface); padding: 1.6rem; }
.match-next { background: var(--green) !important; color: var(--on-green); }
.label { font: 700 .85rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.fixture .team { display: grid; justify-items: center; gap: .5rem; text-align: center; font: 700 1.05rem/1.1 var(--font-display); text-transform: uppercase; }
.fixture .team img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.fixture .score { font: 800 2.6rem/1 var(--font-display); }
.meta { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: .95rem; }
.meta i { margin-right: .3rem; }
.mini-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
.mini-table td { padding: .35rem 0; }
.mini-table td:last-child { text-align: right; font-weight: 700; }
.mini-table tr.us { color: var(--green-hi); font-weight: 700; }
.source { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; color: var(--muted); font-size: .85rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section.tight { padding-top: 0; }
.narrow { max-width: 900px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.textlink { font: 700 1rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--green-hi); white-space: nowrap; }

/* Teams rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.team-card { scroll-snap-align: start; position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; }
.team-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.team-card:hover img { transform: scale(1.05); }
.team-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(6 10 8 / .9)); }
.team-card div { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 1; }
.team-card strong { display: block; font: 800 2.6rem/1 var(--font-display); text-transform: uppercase; }
.team-card span { font-size: .95rem; color: rgb(255 255 255 / .8); }

/* Mehr als Fussball: grosse Link-Zeilen */
.more { margin-top: 2rem; border-top: 3px solid var(--green); }
.more-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 2rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .25s, padding .25s cubic-bezier(.16,1,.3,1); }
.more-row img { width: 120px; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); }
.more-row strong { font: 800 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--font-display); text-transform: uppercase; color: var(--green-dark); }
.more-row span { color: var(--muted); }
.more-row i { font-size: 1.8rem; color: var(--green); padding-right: 1rem; }
.more-row:hover { background: var(--surface); padding-left: 1rem; }

/* News */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.news article { display: grid; gap: 1rem; }
.news img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); width: 100%; }
.news time { color: var(--muted); font-size: .9rem; }

/* Join band */
.join { background: var(--surface); border-block: 1px solid var(--line); }
.join .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.join img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.join ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; }
.join li { display: flex; gap: .6rem; align-items: baseline; }
.join li i { color: var(--green-hi); }

/* Heimspiele, Teamauswahl */
.home-games { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.tag { display: inline-block; min-width: 3.2rem; margin-right: .6rem; padding: .15rem .45rem; border-radius: var(--radius); background: var(--green); color: #fff; font: 800 .95rem/1.2 var(--font-display); text-align: center; }
.page-title { font-size: clamp(3rem, 7vw, 5.5rem); }
.days { display: grid; gap: 2.5rem; margin-top: 3rem; }
.day h3 { display: flex; gap: 1rem; align-items: baseline; padding-bottom: .6rem; border-bottom: 3px solid var(--green); }
.day h3 span { font: 600 1rem/1 var(--font-body); color: var(--muted); text-transform: none; }
.day .games { margin-top: 1rem; }
.team-bar { position: sticky; top: 72px; z-index: 15; background: var(--green); }
.team-bar .wrap { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding-block: .55rem; }
.team-bar a { flex: none; padding: .45rem .95rem; border-radius: var(--radius); color: #fff; text-decoration: none; font: 800 1.05rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.team-bar a:hover { background: rgb(255 255 255 / .14); }
.team-bar a[aria-current] { background: #fff; color: var(--green-dark); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.team-tile { display: grid; grid-template-rows: 190px auto; border-radius: var(--radius); overflow: hidden; background: var(--surface); text-decoration: none; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.team-tile:hover { transform: translateY(-3px); }
.team-tile img { width: 100%; height: 100%; object-fit: cover; }
.team-tile div { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .35rem; border-top: 4px solid var(--green); }
.team-tile strong { font: 800 2rem/1 var(--font-display); text-transform: uppercase; color: var(--green-dark); }
.team-tile span { display: flex; gap: .45rem; align-items: center; color: var(--muted); font-size: .95rem; }
.coach .label { display: block; color: var(--green-dark); margin-bottom: .5rem; }
.join .coaches { margin-top: 1.5rem; }
.join .coach { background: #fff; border-top: 4px solid var(--green); }

/* Spielplan-Filter */
.filter { display: grid; gap: .8rem; margin-top: 2rem; position: sticky; top: 72px; z-index: 10; background: var(--bg); padding-block: 1rem; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chips button { cursor: pointer; padding: .5rem .9rem; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; color: var(--text); font: 800 1rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; transition: background .2s, border-color .2s; }
.chips button:hover { border-color: var(--green); }
.chips button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.seg button { padding-inline: 1.2rem; }
.empty { margin-top: 2rem; }

/* Unterseiten */
.sub-hero { min-height: min(44dvh, 420px); }
.sub-hero h1 { font-size: clamp(3rem, 8vw, 6rem); }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { margin-top: 3rem; font-size: 2.2rem; }
.lead-big { font: 600 clamp(1.3rem, 2.2vw, 1.6rem)/1.4 var(--font-body); color: var(--green-dark); }
.partners { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.partners li { background: var(--surface); padding: 1.2rem; border-radius: var(--radius); font: 800 1.2rem/1.1 var(--font-display); text-transform: uppercase; text-align: center; }
.small { font-size: .9rem; color: var(--muted); }

/* Footer */
.site-foot { padding-block: 4rem 2rem; background: var(--green-dark); color: #fff; --muted: rgb(255 255 255 / .75); --line: rgb(255 255 255 / .2); --text: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 2rem; }
.foot-grid h4 { font: 800 1.1rem/1 var(--font-display); text-transform: uppercase; margin: 0 0 1rem; }
.foot-grid p, .foot-grid a { color: var(--muted); font-size: .95rem; text-decoration: none; display: block; line-height: 1.8; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }

/* Team page */
.team-hero { min-height: min(62dvh, 600px); }
.team-hero h1 { font-size: clamp(3.6rem, 11vw, 9rem); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -2.5rem; position: relative; z-index: 2; }
.facts > div { background: var(--surface); padding: 1.4rem 1.6rem; }
.facts strong { display: block; font: 800 1.5rem/1.1 var(--font-display); text-transform: uppercase; margin-top: .4rem; }
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; }
.games { display: grid; gap: .6rem; margin-top: 1.5rem; }
.game { display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; align-items: center; background: var(--surface); border-radius: var(--radius); padding: .9rem 1.1rem; }
.game time { font: 700 1rem/1.15 var(--font-display); text-transform: uppercase; color: var(--muted); }
.game .vs { font-weight: 600; line-height: 1.35; }
.game .vs small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.game .res { font: 800 1.5rem/1 var(--font-display); min-width: 3.2rem; text-align: center; padding: .35rem .5rem; border-radius: var(--radius); background: var(--surface-2); }
.res.w { background: var(--green); color: var(--on-green); }
.res.l { background: #7d1f1f; color: #fff; }
.table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-variant-numeric: tabular-nums; }
.table th { font: 700 .85rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; padding: .6rem .4rem; }
.table th:nth-child(2), .table td:nth-child(2) { text-align: left; }
.table td { padding: .55rem .4rem; text-align: right; border-top: 1px solid var(--line); }
.table td:last-child { font-weight: 800; }
.table tr.us td { background: color-mix(in srgb, var(--green) 22%, transparent); font-weight: 700; }
.coaches { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.coach { background: var(--surface); border-radius: var(--radius); padding: 1.3rem; }
.coach strong { font: 800 1.35rem/1 var(--font-display); text-transform: uppercase; display: block; }
.coach span { color: var(--muted); font-size: .9rem; }
.coach a { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; text-decoration: none; font-size: .95rem; }

/* Motion: nur dekorative Einblendungen, bei reduce aus */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise both cubic-bezier(.16,1,.3,1); animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
  .hero h1, .hero p, .hero .ctas { animation: rise .9s cubic-bezier(.16,1,.3,1) both; }
  .hero p { animation-delay: .12s; }
  .hero .ctas { animation-delay: .22s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Mobile */
@media (max-width: 960px) {
  .hero { min-height: 72dvh; }
  .hero::after { background: linear-gradient(180deg, rgb(8 12 10 / .1) 20%, rgb(8 12 10 / .9) 75%); }
  .hero .wrap { padding-bottom: 5.5rem; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .site-head .btn { display: none; }
  .match-grid, .news, .join .wrap, .two-col, .foot-grid, .facts, .home-games { grid-template-columns: 1fr; }
  .team-bar { top: 72px; }
  .game { grid-template-columns: 64px 1fr auto; }
  .more-row { grid-template-columns: 72px 1fr auto; gap: 1rem; }
  .more-row img { width: 72px; }
  .more-row span { grid-column: 2; grid-row: 2; font-size: .9rem; }
  .more-row i { grid-row: 1 / span 2; grid-column: 3; padding-right: 0; }
  .more-row img { grid-row: 1 / span 2; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips button { flex: none; }
  .rail { grid-auto-columns: 72%; }
  .coaches { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; gap: 1rem; }
}

[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
/* Spielplan: Datum steht im Tageskopf, Zeile ohne Datumsspalte */
.day .game { grid-template-columns: 1fr auto; }
.day .game time { display: none; }
@media (max-width: 960px) {
  .game .tag { display: block; width: max-content; margin-bottom: .35rem; }
  .game .vs { font-size: .98rem; }
}
@media (max-width: 960px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

/* Hero-Animation: FMT-Fotos, Überblendung + langsamer Zoom (Ken Burns), 6 x 7 s */
.hero-slides { position: absolute; inset: 0; overflow: hidden; background: #0d2a18; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-slides img:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slides img {
    opacity: 0;
    animation: kenburns 42s linear infinite;
    animation-delay: calc(var(--i) * 7s - 1.5s);
  }
  .hero-slides img:nth-child(even) { animation-name: kenburns-alt; }
}
@keyframes kenburns {
  0% { opacity: 0; transform: scale(1.02); }
  3.5%, 16.7% { opacity: 1; }
  20%, 100% { opacity: 0; transform: scale(1.12) translateX(-1.5%); }
}
@keyframes kenburns-alt {
  0% { opacity: 0; transform: scale(1.12) translateX(-1.5%); }
  3.5%, 16.7% { opacity: 1; }
  20%, 100% { opacity: 0; transform: scale(1.02); }
}
.hero .credit { position: absolute; right: 16px; bottom: 3.8rem; z-index: 2; margin: 0; font-size: .8rem; color: rgb(255 255 255 / .85); text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.news figure { margin: 0; position: relative; }
.news figcaption { position: absolute; right: .6rem; bottom: .5rem; font-size: .75rem; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .7); }
@media (max-width: 960px) { .hero .credit { bottom: 3.6rem; font-size: .72rem; } }

/* Fokuspunkt je Foto: Köpfe bleiben im Bild, Zoom vom Fokus aus */
.hero-slides img { object-position: var(--f, 50% 30%); transform-origin: var(--f, 50% 30%); }
@keyframes kenburns {
  0% { opacity: 0; transform: scale(1); }
  3.5%, 16.7% { opacity: 1; }
  20%, 100% { opacity: 0; transform: scale(1.07); }
}
@keyframes kenburns-alt {
  0% { opacity: 0; transform: scale(1.07); }
  3.5%, 16.7% { opacity: 1; }
  20%, 100% { opacity: 0; transform: scale(1); }
}

/* Startseiten-Hero: grünes Feld, Fotos laufen in einer Herz-Maske, weißer Herz-Rand */
.hero-home { display: block; min-height: 0; color: #fff;
  background: radial-gradient(120% 90% at 75% 45%, #11934b, var(--green) 45%, var(--green-dark)); }
.hero-home::after { display: none; }
.hero-home .hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; padding-block: 3.5rem 6.5rem; }
.hero-home h1 { font-size: clamp(3rem, 6.2vw, 6rem); line-height: 1.06; max-width: none; }
.hero-home h1 > span[aria-hidden] { display: grid; justify-items: start; }
.hero-home h1 mark { background: #fff; color: var(--green-dark); margin-top: .12em; }
.hero-home p { color: rgb(255 255 255 / .9); }
.letters { display: inline-flex; padding-top: .08em; }
.letters i { font-style: normal; display: inline-block; }
.beat { display: inline-block; transform-origin: 15% 60%; }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-white:hover { background: #e8f3ec; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.heart-box { margin: 0; position: relative; }
.heart-ring, .heart {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90C21 68 3 51 3 30 3 15 14 4 28 4c9 0 17 5 22 13 5-8 13-13 22-13 14 0 25 11 25 26 0 21-18 38-47 60z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90C21 68 3 51 3 30 3 15 14 4 28 4c9 0 17 5 22 13 5-8 13-13 22-13 14 0 25 11 25 26 0 21-18 38-47 60z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.heart-ring { aspect-ratio: 100 / 92; background: #fff; padding: 2.2%; transform-origin: 50% 55%; }
.heart { width: 100%; height: 100%; position: relative; background: var(--green-dark); }
.heart .hero-slides { position: absolute; inset: 0; }
.hero-home .credit { position: static; margin-top: .6rem; text-align: right; color: rgb(255 255 255 / .8); text-shadow: none; font-size: .78rem; }

@media (prefers-reduced-motion: no-preference) {
  .letters i { animation: letter-in .7s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--n) * 45ms + .1s); }
  /* Herzschlag im Takt der Fotowechsel (7 s) */
  .heart-ring, .beat { animation: heartbeat 7s ease-in-out infinite; animation-delay: -1.5s; }
}
@keyframes letter-in { from { opacity: 0; transform: translateY(.45em) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes heartbeat {
  0%, 8%, 100% { transform: scale(1); }
  3% { transform: scale(1.045); }
  5.5% { transform: scale(1.02); }
  6.5% { transform: scale(1.035); }
}

@media (max-width: 960px) {
  .hero-home .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1.5rem 5.5rem; }
  .heart-box { order: -1; width: min(88%, 440px); justify-self: center; }
  .hero-home h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
}
/* "Grün-weißes Herz." in einer Zeile */
.hero-home h1 { font-size: clamp(2.1rem, 5.4vw, 4.9rem); }
.line1 { display: inline-flex; gap: .28em; white-space: nowrap; }
@media (max-width: 960px) { .hero-home h1 { font-size: clamp(2rem, 9.6vw, 3.2rem); } }
/* Drei Zeilen: GRÜN-WEISS / MIT HERZ / LEPI MOOS */
.hero-home h1 { font-size: clamp(3rem, 7vw, 6.4rem); line-height: 1.04; }
.hero-home .beat { transform-origin: 50% 60%; }
@media (max-width: 960px) { .hero-home h1 { font-size: clamp(2.8rem, 17vw, 4.6rem); } }
/* GRÜN-WEISS im weißen Kasten, darunter MIT HERZ */
.hero-home h1 mark.letters { display: inline-flex; margin: 0 0 .1em; padding: .06em .14em 0; }

/* Heim vs. Auswärts klar unterscheiden */
.game { border-left: 6px solid transparent; }
.game.h { background: var(--surface); border-left-color: var(--green); }
.game.a { background: #fff; border: 1px solid var(--line); border-left: 6px solid #b9c8be; }
.game .badges { display: flex; gap: .4rem; align-items: center; margin-bottom: .35rem; }
.game .tag { margin-right: 0; }
.ha { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .5rem; border-radius: var(--radius); font: 800 .85rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.ha i { font-size: .95em; }
.ha.h { background: var(--green-dark); color: #fff; }
.ha.a { background: #fff; color: var(--muted); border: 1.5px solid #b9c8be; }
.game .match { display: block; font-weight: 600; }
.game .match strong { color: var(--green-dark); font-weight: 700; }
.game .match .v { color: var(--muted); font-weight: 400; font-size: .9em; }
.game.a .res { background: var(--surface); }
@media (max-width: 960px) { .game .tag { display: inline-block; margin-bottom: 0; } }
.game .tag { background: var(--text); color: #fff; }
.ha.h { background: var(--green); }

/* Rechtstexte + Entwurfs-Hinweise */
.prose h2 { font-size: 1.8rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--green-dark); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
.draft-note { background: #fff6d6; border-left: 6px solid #e0b100; padding: 1rem 1.2rem; border-radius: var(--radius); color: #4a3b00; }

/* QA-Fixes: lange Teamnamen am Handy, Markenzeile einzeilig */
.team-hero h1 { font-size: clamp(2.4rem, 10.5vw, 9rem); overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .brand span { font-size: 1rem; white-space: nowrap; }
  .brand img { width: 50px; }
}
@media (max-width: 420px) {
  .game { grid-template-columns: 1fr auto; gap: .4rem .8rem; }
  .game time { grid-column: 1 / -1; font-size: .9rem; }
  .game .res { font-size: 1.25rem; min-width: 0; white-space: nowrap; }
}
/* QA Safari: Grid-Spalten dürfen schrumpfen, Tabelle scrollt in sich, lange Links brechen */
.two-col, .home-games, .match-grid, .news, .join .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.home-games { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.match-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.news { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.join .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.game .vs { min-width: 0; }
.prose { overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .two-col, .home-games, .match-grid, .news, .join .wrap { grid-template-columns: minmax(0, 1fr); }
  .table { font-size: .9rem; }
  .table td, .table th { padding-inline: .3rem; }
}
@media (max-width: 420px) {
  .table th:nth-child(4), .table td:nth-child(4), .table th:nth-child(5), .table td:nth-child(5), .table th:nth-child(6), .table td:nth-child(6) { display: none; }
}

/* Mobiles Menü (Theme) */
@media (max-width: 960px) {
  body.nav-open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 3px solid var(--green); padding: .5rem 16px 1rem; box-shadow: 0 12px 24px rgb(6 83 42 / .12); }
  body.nav-open .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; color: var(--text); }
}
.site-head .wrap { position: relative; }
/* Inhalte aus dem Editor */
.prose img { border-radius: var(--radius); }
.prose figure { margin: 1.5rem 0; }
.post-meta { color: var(--muted); }
.page-content > * + * { margin-top: 1rem; }
.page-content .filter { margin-top: 2rem; }
.team-tile img { width: 100%; height: 190px; object-fit: cover; }
.team-card img { width: 100%; height: 100%; object-fit: cover; }
.news img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); width: 100%; height: auto; }
.team-content h2, .team-content h3 { font-size: 1.6rem; }
/* Porträt-Raster (Funktionäre) */
.portraits { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin: 1.2rem 0 2rem; }
.portraits img { width: 100%; height: auto; border-radius: var(--radius); }
.prose > .coaches { margin-top: 1.5rem; }
/* Lange Seitentitel auf sehr kleinen Handys umbrechen statt abschneiden */
.page-title, .sub-hero h1, .team-hero h1 { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 420px) { .page-title { font-size: clamp(2.2rem, 11.5vw, 3rem); } }
/* Instagram (Smash Balloon) */
.insta #sb_instagram { padding-bottom: 0 !important; }
.insta #sb_instagram .sbi_photo { border-radius: var(--radius); }
/* Instagram-Sektion erst zeigen, wenn ein Feed verbunden ist */
.insta:not(:has(#sb_instagram)) { display: none; }

/* Rechtstexte (Impressum, Datenschutz): ruhige Hierarchie statt großer Überschriften */
.page-title + .prose, .page-title + .page-content { margin-top: 2rem; }
.legal-intro { color: var(--muted); font-size: .95rem; max-width: 60ch; }
.legal-list { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; margin: 2rem 0 0; border-top: 3px solid var(--green); }
.legal-list dt, .legal-list dd { margin: 0; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.legal-list dt { font: 800 1rem/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--green-dark); padding-right: 1.5rem; }
.legal-list dd { line-height: 1.6; }
.legal-block { margin-top: 2.5rem; }
.legal-block h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.legal-block p { color: var(--muted); font-size: .95rem; }
body.privacy-policy .prose h2, .page-id-3986 .prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.page-id-3986 .prose h3 { font-size: 1.15rem; }
@media (max-width: 600px) {
  .legal-list { grid-template-columns: 1fr; }
  .legal-list dt { border-bottom: 0; padding-bottom: 0; }
  .legal-list dd { padding-top: .3rem; }
}
/* Social-Links im Footer */
.social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff !important; font-size: 1.35rem; line-height: 1; transition: background .2s; }
.social a:hover { background: #fff; color: var(--green-dark) !important; }
