/* ==========================================================================
   SVGW Verein – Tokens
   ========================================================================== */
:root {
	--green-900: #1f3318;
	--green-700: #33532a;
	--green-600: #3f6a33;
	--green-100: #eef3ea;
	--cream:     #f7f5ee;
	--white:     #ffffff;
	--ink:       #1c2318;
	--ink-soft:  #55604f;
	--line:      #dfe2d5;
	--gold:      #c9a13b;

	--font-display: "Barlow Condensed", Impact, sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--radius: 10px;
	--gap: 1.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--green-900);
	line-height: 1.1;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.svgw-header {
	background: var(--green-900);
	color: var(--white);
	position: sticky;
	top: 0;
	z-index: 50;
}
.svgw-header__inner {
	margin: 0;
	padding: 0.75rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.svgw-brand { display: flex; align-items: center; gap: 0.75rem; }
.svgw-brand img,
.svgw-brand .custom-logo { max-height: 52px; width: auto; }
.svgw-brand .custom-logo-link { display: flex; align-items: center; }
.svgw-brand__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	color: var(--white);
	text-transform: uppercase;
}

/* Startseite: Header + Bild verschmelzen zu einem Hero-Bereich, Navigation
   liegt direkt auf dem Foto. Kein sticky, sonst würde beim Scrollen
   dauerhaft ein großes Bild oben kleben bleiben. */
.svgw-header--hero {
	position: relative;
	background-color: var(--green-900);
	background-size: cover;
	background-position: center 22%;
	min-height: 440px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.svgw-header--hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20,32,15,0.88) 0%, rgba(20,32,15,0.45) 32%, rgba(20,32,15,0.05) 65%);
	pointer-events: none;
}
.svgw-header--hero .svgw-header__inner { position: relative; z-index: 2; }
.svgw-header__hero-caption {
	position: relative;
	z-index: 2;
	margin-top: auto;
	align-self: flex-start;
	background: rgba(20,32,15,0.75);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.85rem;
	padding: 0.4rem 1rem;
	margin-left: 1.5rem;
	margin-bottom: 1.5rem;
	border-radius: 4px;
}
@media (max-width: 700px) {
	.svgw-header--hero { min-height: 300px; }
	.svgw-header__hero-caption { font-size: 0.72rem; margin-left: 1rem; margin-bottom: 1rem; padding: 0.3rem 0.7rem; }
}

.svgw-nav__list {
	list-style: none;
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	position: relative;
}
.svgw-nav__list > li { position: relative; }
.svgw-nav__list li li { position: relative; }
.svgw-nav__list > li > a {
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.4rem 0;
	display: inline-block;
	border-bottom: 3px solid transparent;
}
.svgw-nav__list > li > a:hover,
.svgw-nav__list > li.current-menu-item > a {
	border-bottom-color: var(--gold);
	text-decoration: none;
}
.svgw-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	position: absolute;
	left: 0;
	top: 100%;
	background: var(--white);
	min-width: 200px;
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 12px 24px rgba(0,0,0,0.18);
	display: none;
	z-index: 20;
}
.svgw-nav__list li:hover > ul,
.svgw-nav__list li.is-open > ul { display: block; }
.svgw-nav__caret { font-size: 0.7em; margin-left: 0.15rem; display: inline-block; }

/* Verschachtelte Untermenüs (3. Ebene, z.B. Altersklasse -> einzelne Mannschaften)
   klappen seitlich auf (Flyout) statt untereinander */
.svgw-nav__list ul ul {
	top: -0.5rem;
	left: 100%;
	margin-left: 2px;
	border-radius: var(--radius);
}

/* Die letzten Menüpunkte liegen am rechten Rand - deren Untermenüs
   grundsätzlich rechtsbündig öffnen, damit nichts über den Bildschirmrand hinausragt.
   Nur am Desktop als feste Regel - auf dem Handy übernimmt die dynamische
   JS-Berechnung (misst den tatsächlich verfügbaren Platz statt einer pauschalen Annahme). */
@media (min-width: 769px) {
	.svgw-nav__list > li:last-child > ul,
	.svgw-nav__list > li:nth-last-child(2) > ul {
		left: auto;
		right: 0;
	}
}

/* Handy: kein Platz für seitliche Flyouts - verschachtelte Untermenüs
   klappen stattdessen eingerückt untereinander auf */
@media (max-width: 768px) {
	.svgw-nav__list ul ul {
		position: static;
		top: auto;
		left: auto;
		right: auto;
		margin-left: 0;
		box-shadow: none;
		border-radius: 0;
		background: var(--green-100);
		padding-left: 0.75rem;
	}
}
.svgw-nav__list ul a {
	color: var(--ink);
	display: block;
	padding: 0.5rem 1rem;
	text-transform: none;
	font-family: var(--font-body);
	font-weight: 500;
	border: none;
}
.svgw-nav__hint {
	color: #f4d78b;
	font-size: 0.8rem;
	margin: 0.5rem 0 0;
	width: 100%;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.svgw-main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.svgw-section { margin-bottom: 3rem; }
.svgw-section__title { border-bottom: 3px solid var(--green-700); padding-bottom: 0.4rem; margin-bottom: 1.5rem; }
.svgw-section__title--sm { font-size: 1.3rem; border-bottom-width: 2px; }
.svgw-section__title--xs { font-size: 1.05rem; border: none; margin: 1.5rem 0 0.5rem; }

.svgw-columns {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: var(--gap);
}
.svgw-columns--split {
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
	.svgw-columns { grid-template-columns: 1fr; }
}

.svgw-eyebrow {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gold);
	background: var(--green-900);
	padding: 0.15rem 0.6rem;
	border-radius: 4px;
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
}

/* ==========================================================================
   News-Karten
   ========================================================================== */
.svgw-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
}
@media (max-width: 900px) { .svgw-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svgw-news-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; } }
@media (max-width: 600px) {
	.svgw-news-grid .svgw-card__body { padding: 0.6rem 0.5rem 0.8rem; }
	.svgw-news-grid .svgw-card__body h3 { font-size: 0.85rem; line-height: 1.25; }
	.svgw-news-grid .svgw-card__meta { font-size: 0.68rem; margin-bottom: 0.3rem; }
	.svgw-news-grid .svgw-card__body p:not(.svgw-card__meta) { display: none; } /* Textanriss ausblenden, zu wenig Platz bei 3 Spalten */
	.svgw-news-grid .svgw-more { font-size: 0.75rem; }
	.svgw-news-grid .svgw-badge { font-size: 0.62rem; padding: 0.1rem 0.4rem; }
}

.svgw-card {
	background: var(--cream);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
}
.svgw-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--green-100); }
.svgw-card__media img { width: 100%; height: 100%; object-fit: cover; }
.svgw-card__media--placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--green-700), var(--green-900)); }
.svgw-card__body { padding: 1.1rem 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.svgw-card__body h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.svgw-card__meta { color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 0.6rem; text-transform: uppercase; letter-spacing: 0.03em; }
.svgw-more { font-weight: 600; }
.svgw-badge {
	align-self: flex-start;
	background: var(--green-700);
	color: var(--white);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.15rem 0.55rem;
	border-radius: 4px;
	margin-bottom: 0.5rem;
	display: inline-block;
}
.svgw-badge:hover { color: var(--white); }

/* ==========================================================================
   Ankündigungen
   ========================================================================== */
.svgw-announcements__list { list-style: none; margin: 0; padding: 0; }
.svgw-announcements__list li {
	border-left: 4px solid var(--gold);
	background: var(--green-100);
	padding: 0.9rem 1.1rem;
	border-radius: 0 var(--radius) var(--radius) 0;
	margin-bottom: 1rem;
}
.svgw-announcements__list h4 { margin: 0 0 0.35rem; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.svgw-announcements__list p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Ergebnisse / Ansetzungen – "Spielbericht"-Look
   ========================================================================== */
.svgw-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.svgw-table tr { border-bottom: 1px solid var(--line); }
.svgw-table tr:last-child { border-bottom: none; }
.svgw-table td { padding: 0.4rem 0.3rem; vertical-align: middle; line-height: 1.3; }
.svgw-table__date { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.svgw-table__sub { color: var(--ink-soft); font-size: 0.8em; margin-top: 0.05rem; }
.svgw-table__team-badge {
	display: inline-block;
	margin-bottom: 0.12rem;
	padding: 0.02rem 0.35rem;
	background: var(--green-100);
	border-radius: 4px;
	font-size: 0.72em;
	font-weight: 600;
	color: var(--green-900);
	white-space: nowrap;
}
.svgw-table__score {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	color: var(--green-900);
	text-align: right;
	white-space: nowrap;
}
.svgw-table__cancelled {
	display: inline-block;
	color: #b3261e;
	background: #fdecea;
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 0.1rem 0.5rem;
	border-radius: 4px;
	white-space: nowrap;
}
.svgw-table__no-result {
	display: inline-block;
	color: #5f6368;
	background: #eef0f1;
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 0.1rem 0.5rem;
	border-radius: 4px;
	white-space: nowrap;
}
@media (max-width: 600px) {
	.svgw-table { font-size: 0.72rem; }
	.svgw-table td { padding: 0.3rem 0.2rem; }
	.svgw-table__sub { font-size: 0.76em; }
	.svgw-table__score { font-size: 0.88rem; }
	.svgw-table__team-badge { font-size: 0.66em; padding: 0.02rem 0.3rem; }
}

.svgw-team__banner {
	width: 100%;
	height: 420px;
	overflow: hidden;
	background: var(--green-900);
	display: flex;
	align-items: center;
	justify-content: center;
}
.svgw-team__banner img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 600px) {
	.svgw-team__banner { height: 220px; }
}
.svgw-team__title { margin-bottom: 1.5rem; }

.svgw-team-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2.5rem;
	align-items: start;
}
@media (max-width: 800px) {
	.svgw-team-layout { grid-template-columns: 1fr; }
	.svgw-sidebar { order: 2; }
	.svgw-team-content { order: 1; }
}

.svgw-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.svgw-sidebar-box {
	background: var(--green-100);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.1rem 1.2rem;
}
.svgw-sidebar-box__title {
	font-size: 1rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--green-700);
}
.svgw-sidebar-box__list { list-style: none; margin: 0; padding: 0; }
.svgw-sidebar-box__list li { padding: 0.3rem 0; }
.svgw-sidebar-box__muted { color: var(--ink-soft); font-size: 0.9rem; margin: 0.3rem 0 0; }

.svgw-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.75rem;
	border-bottom: 2px solid var(--line);
	padding-bottom: 0.75rem;
}
.svgw-tabs__item {
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 0.9rem;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--green-900);
	background: var(--white);
}
.svgw-tabs__item:hover { border-color: var(--green-600); text-decoration: none; }
.svgw-tabs__item.is-active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

.svgw-fixture-list { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.svgw-fixture-list li { padding: 0.5rem 0; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 0.15rem; }
.svgw-fixture-list li:last-child { border-bottom: none; }
.svgw-fixture-list__date { color: var(--ink-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em; }

.svgw-news-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .svgw-news-grid--2col { grid-template-columns: 1fr; } }

.svgw-news-list { list-style: none; margin: 0; padding: 0; }
.svgw-news-list__item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--line);
}
.svgw-news-list__item:last-child { border-bottom: none; }
.svgw-news-list__body { flex: 1; min-width: 0; }
.svgw-news-list__body h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.svgw-news-list__body p { margin: 0 0 0.4rem; }
.svgw-news-list__thumb {
	flex-shrink: 0;
	width: 120px;
	height: 90px;
	border-radius: var(--radius);
	overflow: hidden;
	display: block;
	background: var(--green-100);
}
.svgw-news-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) {
	.svgw-news-list__item { flex-direction: column-reverse; }
	.svgw-news-list__thumb { width: 100%; height: 160px; }
}

/* ==========================================================================
   Mannschafts-Übersicht & Detailseite
   ========================================================================== */
.svgw-team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .svgw-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .svgw-team-grid { grid-template-columns: 1fr; } }

.svgw-team-card {
	display: block;
	background: var(--cream);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--ink);
	text-align: center;
}
.svgw-team-card:hover { text-decoration: none; border-color: var(--green-600); }
.svgw-team-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.svgw-team-card__name {
	display: block;
	padding: 0.75rem 0.5rem;
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.svgw-team__hero {
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
	align-items: start;
}
@media (max-width: 800px) { .svgw-team__hero { grid-template-columns: 1fr; } }
.svgw-team__photo img { border-radius: var(--radius); }

.svgw-info-list { list-style: none; margin: 0; padding: 0; }
.svgw-info-list li { padding: 0.35rem 0; border-bottom: 1px dashed var(--line); }
.svgw-info-list li:last-child { border-bottom: none; }

/* ==========================================================================
   Link-Grid (Service- / Verein-Übersichtsseiten)
   ========================================================================== */
.svgw-link-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 1.5rem;
}
@media (max-width: 700px) { .svgw-link-grid { grid-template-columns: 1fr; } }
.svgw-link-card {
	display: block;
	background: var(--green-900);
	color: var(--white);
	padding: 1.1rem 1.2rem;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.svgw-link-card:hover { background: var(--green-700); text-decoration: none; color: var(--white); }

/* ==========================================================================
   Instagram-Bereich (Startseite)
   ========================================================================== */
.svgw-instagram {
	border-top: 1px solid var(--line);
	padding-top: 2rem;
}
.svgw-instagram-widget img { border-radius: var(--radius); }

.svgw-more-link { text-align: center; margin-top: 2rem; }
.svgw-button {
	display: inline-block;
	background: var(--green-700);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.7rem 1.8rem;
	border-radius: 999px;
}
.svgw-button:hover { background: var(--green-900); color: var(--white); text-decoration: none; }

.svgw-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.svgw-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 0.6rem;
	border-radius: 6px;
	border: 1px solid var(--line);
	color: var(--green-900);
	font-weight: 600;
}
.svgw-pagination .page-numbers:hover { border-color: var(--green-600); text-decoration: none; }
.svgw-pagination .page-numbers.current { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.svgw-pagination .page-numbers.dots { border: none; }

/* ==========================================================================
   Sponsoren-Leiste
   ========================================================================== */
.svgw-sponsors { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svgw-sponsors__inner { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.svgw-sponsors__title {
	text-align: center;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	color: var(--ink-soft);
	border: none;
	margin: 0 0 1rem;
}
.svgw-sponsors__logos { overflow: hidden; }
.svgw-sponsors__track {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}
/* Laufband: wird per JS (sponsors.js) nur aktiviert, wenn die Logos nicht in eine Zeile passen */
.svgw-sponsors__logos.is-marquee {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.is-marquee .svgw-sponsors__track {
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: max-content;
	animation: svgw-marquee var(--marquee-duration, 40s) linear infinite;
}
.is-marquee:hover .svgw-sponsors__track,
.is-marquee:focus-within .svgw-sponsors__track { animation-play-state: paused; }
@keyframes svgw-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.is-marquee .svgw-sponsors__track { animation: none; }
}
.svgw-sponsors__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 70px;
	flex-shrink: 0;
	margin: 0.5rem 1rem;
}
.svgw-sponsors__item img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.75;
	transition: filter 0.2s ease, opacity 0.2s ease;
}
.svgw-sponsors__item:hover img { filter: grayscale(0%); opacity: 1; }
.svgw-sponsors__name {
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	color: var(--ink-soft);
	font-size: 0.9rem;
	text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.svgw-footer { background: var(--green-900); color: #cfd8c8; margin-top: 4rem; }
.svgw-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.85rem;
}
.svgw-footer__list { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.svgw-footer__list a { color: #cfd8c8; }
.svgw-footer__copy { margin: 0; }

.svgw-embed { overflow-x: auto; }

/* ==========================================================================
   Generic content (pages, single news)
   ========================================================================== */
.svgw-content, .svgw-team__content { color: var(--ink); }
.svgw-content p, .svgw-team__content p { margin: 0 0 1em; }
.svgw-breadcrumb { margin-bottom: 1rem; }
.svgw-single-news__image {
	float: right;
	width: 42%;
	max-width: 380px;
	margin: 0.3rem 0 1.25rem 1.75rem;
	border-radius: var(--radius);
	overflow: hidden;
}
.svgw-single-news__image img { width: 100%; height: auto; display: block; }
.svgw-content::after { content: ""; display: table; clear: both; }
@media (max-width: 700px) {
	.svgw-single-news__image { float: none; width: 100%; max-width: none; margin: 0 0 1.5rem; }
}
