/* ==========================================================================
   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;
}

.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 > 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;
}
.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; }

/* Die letzten Menüpunkte liegen am rechten Rand - deren Untermenüs
   grundsätzlich rechtsbündig öffnen, damit nichts über den Bildschirmrand hinausragt. */
.svgw-nav__list > li:last-child > ul,
.svgw-nav__list > li:nth-last-child(2) > ul {
	left: auto;
	right: 0;
}
.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: 1fr; } }

.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.92rem; }
.svgw-table tr { border-bottom: 1px solid var(--line); }
.svgw-table tr:last-child { border-bottom: none; }
.svgw-table td { padding: 0.55rem 0.4rem; vertical-align: middle; }
.svgw-table__date { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.svgw-table__score {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--green-900);
	text-align: right;
	white-space: nowrap;
}

.svgw-team__banner { width: 100%; max-height: 420px; overflow: hidden; }
.svgw-team__banner img { width: 100%; height: 100%; object-fit: cover; }
.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); }

/* ==========================================================================
   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 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem;
}
.svgw-sponsors__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 70px;
	flex-shrink: 0;
}
.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; }

/* ==========================================================================
   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; }
}
