/*
Theme Name: ZOUM Modern
Theme URI: https://zoum.at
Author: ZOUM
Description: Maßgeschneidertes, barrierearmes WordPress-Theme für ZOUM.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: zoum-modern
*/

:root {
	--ink: #15362f;
	--ink-2: #294b43;
	--paper: #f5f1e8;
	--cream: #ebe5d7;
	--white: #fffdf8;
	--lime: #d7ee72;
	--coral: #f06c4f;
	--mint: #8fcfba;
	--line: rgba(21, 54, 47, .16);
	--shadow: 0 18px 50px rgba(21, 54, 47, .11);
	--radius: 1.6rem;
	--wrap: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-underline-offset: .18em; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 {
	margin: 0 0 .55em;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	line-height: .98;
	letter-spacing: -.045em;
}
h1 { font-size: clamp(3.4rem, 8vw, 7.4rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.35rem); }
p { margin: 0 0 1.2em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	z-index: 9999; top: 10px; left: 10px; width: auto; height: auto;
	padding: .8rem 1rem; clip: auto; background: var(--white);
}
.eyebrow {
	display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem;
	font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: currentColor; }
.button, .wp-block-button__link, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
	min-height: 3.4rem; padding: .8rem 1.25rem; border: 2px solid var(--ink);
	border-radius: 999px; background: var(--ink); color: white; font-weight: 800;
	text-decoration: none; transition: transform .2s, background .2s, color .2s;
}
.button:hover, .wp-block-button__link:hover, input[type="submit"]:hover {
	transform: translateY(-2px); background: var(--lime); color: var(--ink);
}
.button--light { background: var(--lime); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }

.site-header {
	position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(18px);
}
.header-inner { display: flex; min-height: 88px; align-items: center; gap: 2rem; }
.brand {
	display: inline-flex; flex: 0 0 auto; align-items: center; gap: .7rem;
	min-width: max-content; color: var(--ink); text-decoration: none;
}
.brand img {
	width: 64px; height: 54px; padding: 4px; border-radius: .7rem;
	background: #fff; object-fit: contain; filter: none; opacity: 1;
}
.brand-word {
	display: inline-block; font-size: 1.55rem; font-weight: 950;
	letter-spacing: -.08em; line-height: 1; text-transform: uppercase;
}
.site-nav {
	display: none; position: absolute; z-index: 110; top: calc(100% + 12px); right: max(20px, calc((100vw - 1180px) / 2));
	width: min(430px, calc(100vw - 40px)); max-height: calc(100vh - 120px); overflow-y: auto;
	padding: 1.25rem; border: 2px solid var(--ink); border-radius: 1.25rem;
	background: var(--white); box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav > ul { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .8rem; padding: 0; margin: 0; list-style: none; }
.site-nav .sub-menu {
	grid-column: 1 / -1; padding: 0 0 .4rem .75rem; margin: 0;
	border-left: 2px solid var(--lime); list-style: none;
}
.site-nav .sub-menu a { padding-block: .45rem; font-size: .84rem; }
.site-nav li { min-width: 0; }
.site-nav a {
	display: block; padding: .7rem .75rem; border-radius: .65rem;
	font-size: .92rem; font-weight: 750; line-height: 1.25; text-decoration: none;
}
.site-nav a:hover { background: var(--cream); }
.site-nav a:hover, .site-nav .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--coral); }
.menu-toggle {
	display: inline-flex; align-items: center; gap: .65rem; min-height: 44px;
	padding: .55rem .9rem; margin-left: auto; border: 2px solid var(--ink);
	border-radius: 999px; background: transparent; color: var(--ink); font-weight: 850;
}
.menu-toggle:hover { background: var(--lime); }
.menu-toggle-icon { display: grid; gap: 5px; width: 18px; }
.menu-toggle-icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero { overflow: hidden; padding: 5.5rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.hero h1 em { color: var(--coral); font-weight: inherit; }
.hero-copy { max-width: 640px; font-size: clamp(1.08rem, 1.8vw, 1.35rem); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-media { position: relative; min-height: 620px; }
.hero-media::before {
	content: ""; position: absolute; inset: 7% -12% -5% 8%; border-radius: 48% 52% 44% 56%;
	background: var(--lime); transform: rotate(4deg);
}
.hero-media img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	border-radius: 46% 54% 48% 52% / 38% 44% 56% 62%; filter: saturate(.88);
	box-shadow: var(--shadow);
}
.hero-note {
	position: absolute; z-index: 2; right: -1.5rem; bottom: 2rem; width: 190px;
	padding: 1.1rem; border: 2px solid var(--ink); border-radius: 1.2rem;
	background: var(--white); transform: rotate(3deg); font-weight: 800; line-height: 1.25;
}
.hero-note span { display: block; color: var(--coral); font-size: 2rem; font-family: Georgia, serif; }

.ticker { overflow: hidden; border-block: 2px solid var(--ink); background: var(--lime); }
.ticker-track { display: flex; width: max-content; padding: .75rem 0; animation: ticker 25s linear infinite; }
.ticker span { padding-right: 3rem; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-head h2 { max-width: 760px; margin: 0; }
.intro-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 8vw, 8rem); }
.intro-lead { font: 500 clamp(1.7rem, 3.2vw, 3.2rem)/1.14 Georgia, serif; letter-spacing: -.03em; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.5rem; }
.value-card { padding: 1.8rem; border-top: 2px solid var(--ink); }
.value-card strong { display: block; margin-bottom: .7rem; color: var(--coral); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

.news-section { background: var(--ink); color: var(--white); }
.news-section .button--ghost { border-color: var(--white); color: var(--white); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.post-card {
	overflow: hidden; min-width: 0; border-radius: var(--radius); background: var(--white);
	color: var(--ink); box-shadow: var(--shadow);
}
.post-card > a { display: block; text-decoration: none; }
.post-card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.post-card-placeholder {
	display: grid; width: 100%; height: 100%; place-items: center;
	background: var(--lime); font: 500 clamp(2.5rem, 7vw, 5.5rem)/1 Georgia, serif;
	letter-spacing: -.08em; transform: rotate(-2deg);
}
.post-card:hover img { transform: scale(1.04); }
.post-card-body { padding: 1.4rem 1.45rem 1.6rem; }
.post-card-meta { margin-bottom: .8rem; color: var(--coral); font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.post-card h3 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.04; }
.post-card p { color: var(--ink-2); font-size: .94rem; }
.text-link { font-weight: 850; text-decoration-thickness: 2px; }

.join { position: relative; overflow: hidden; }
.join-card {
	display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 2rem;
	padding: clamp(2rem, 6vw, 5rem); border-radius: 2.2rem; background: var(--coral); color: var(--ink);
}
.join-card h2 { max-width: 780px; }
.join-mark { justify-self: center; font: 500 clamp(6rem, 14vw, 12rem)/.7 Georgia, serif; transform: rotate(8deg); }

.content-shell { padding: clamp(3rem, 7vw, 6rem) 0; }
.page-header { max-width: 900px; margin-bottom: 3rem; }
.page-header h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
.prose { max-width: 860px; }
.prose > * { max-width: 100%; }
.prose h2 { margin-top: 1.3em; }
.prose h3 { margin-top: 1.5em; }
.prose a { text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.prose img { border-radius: 1.2rem; }
.prose input:not([type="submit"]), .prose textarea, .prose select {
	width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--white);
}

/* ZOUM Fußball – editable native block layout */
.prose:has(.football-page) { max-width: none; }
.football-page { margin-top: -2rem; }
.football-hero, .football-section, .football-contact { padding: clamp(2.5rem, 6vw, 5rem); border-radius: 2rem; }
.football-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.football-hero::after {
	content: ""; position: absolute; right: -6rem; bottom: -9rem; width: 22rem; height: 22rem;
	border: 3.5rem solid var(--lime); border-radius: 50%; opacity: .12;
}
.football-hero-grid { position: relative; z-index: 1; gap: clamp(2rem, 7vw, 6rem); margin: 0; }
.football-hero h2 { font-size: clamp(2.8rem, 6vw, 5.7rem); }
.football-lead { max-width: 620px; font-size: 1.15rem; color: rgba(255,255,255,.8); }
.football-hero .is-style-outline .wp-block-button__link { border-color: var(--white); color: var(--white); }
.football-hero-logo figure { max-width: 360px; margin: auto; }
.football-hero-logo img { border-radius: 50%; box-shadow: 0 20px 70px rgba(0,0,0,.28); }
.football-section { margin-top: 1.5rem; background: var(--white); }
.football-section > h2 { max-width: 850px; }
.football-team-grid { gap: clamp(2rem, 6vw, 5rem); margin-top: 2.5rem; }
.football-team-grid figure { margin: 0; }
.football-team-grid img { width: 100%; border-radius: 1.4rem; }
.football-info-card { padding: clamp(1.5rem, 4vw, 3rem); border: 2px solid var(--ink); border-radius: 1.4rem; background: var(--cream); }
.football-info-card h3 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
.football-youth { background: var(--lime); }
.football-section-intro { max-width: 760px; font-size: 1.12rem; }
.football-link-grid { gap: 1rem; margin-block: 1rem 0; }
.football-link-card { padding: 1.5rem; border: 2px solid var(--ink); border-radius: 1.2rem; background: var(--white); }
.football-link-card > p:first-child { margin-bottom: .35rem; color: var(--coral); font-size: .78rem; letter-spacing: .12em; }
.football-link-card h3 { margin-bottom: .8rem; font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.football-link-card a { font-weight: 850; }
.football-contact { margin-top: 1.5rem; background: var(--coral); }
.football-contact > * { max-width: 760px; }
.football-contact h2 { font-size: clamp(2.8rem, 6vw, 5.5rem); }

/* Wir über uns – editable native block layout */
.prose:has(.about-page) { max-width: none; }
.about-page { margin-top: -2rem; }
.about-hero, .about-team, .about-details { padding: clamp(2.5rem, 6vw, 5rem); border-radius: 2rem; }
.about-hero {
	position: relative; overflow: hidden; min-height: 520px;
	background: var(--coral); display: flex; flex-direction: column; justify-content: center;
}
.about-hero::after {
	content: "ZOUM"; position: absolute; right: -.03em; bottom: -.22em;
	color: rgba(255,255,255,.2); font: 900 clamp(7rem, 20vw, 16rem)/1 Inter, sans-serif;
	letter-spacing: -.1em; pointer-events: none;
}
.about-hero > * { position: relative; z-index: 1; max-width: 850px; }
.about-hero h2 { font-size: clamp(3rem, 7vw, 6.5rem); }
.about-lead { max-width: 720px; font-size: 1.18rem; }
.about-team { margin-top: 1.5rem; background: var(--white); }
.about-team-head { gap: clamp(2rem, 7vw, 7rem); margin-bottom: 2.5rem; }
.about-team-head h2 { margin-bottom: 0; }
.about-team-photo { margin: 0 0 1rem; }
.about-team-photo img { width: 100%; max-height: 720px; border-radius: 1.5rem; object-fit: cover; }
.about-board-row { gap: 1rem; margin-block: 1rem 0; }
.about-person { min-width: 0; padding: 1.4rem; border-top: 2px solid var(--ink); background: var(--paper); }
.about-person p { margin-bottom: .4rem; color: var(--coral); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.about-person h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.about-details { margin-top: 1.5rem; background: var(--lime); }
.about-details > h2 { max-width: 800px; }
.about-detail-grid { gap: 1rem; margin-top: 2.5rem; }
.about-detail-card { padding: 1.5rem; border: 2px solid var(--ink); border-radius: 1.2rem; background: var(--white); }
.about-detail-card > p:first-child { margin-bottom: .5rem; color: var(--coral); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.about-detail-card h3 { font-size: clamp(1.6rem, 2.7vw, 2.4rem); }
.about-detail-card a { font-weight: 850; }
.about-detail-contact { background: var(--ink); color: var(--white); }
.about-detail-contact h3 { color: var(--white); }
.archive-grid { margin-top: 3rem; }
.post-hero-image { margin: 2rem 0 3rem; border-radius: var(--radius); }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; }

.site-footer { padding: 4rem 0 2rem; background: #0d2822; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 3rem; }
.footer-title { max-width: 500px; font-size: clamp(2rem, 4vw, 4rem); }
.footer-nav ul { padding: 0; margin: 0; list-style: none; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { text-decoration-color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .8rem; }

@media (max-width: 900px) {
	.header-inner { min-height: 74px; }
	.site-nav {
		position: fixed; inset: 86px 20px auto; width: auto; max-height: calc(100vh - 106px);
	}
	.site-nav > ul { grid-template-columns: 1fr; gap: .25rem; }
	.site-nav a { display: block; padding: .65rem 0; font-size: 1.1rem; }
	.header-cta { display: none; }
	.hero-grid, .intro-grid, .join-card { grid-template-columns: 1fr; }
	.hero { padding-top: 3.5rem; }
	.hero-media { min-height: 520px; max-width: 620px; }
	.hero-note { right: 0; }
	.value-grid, .card-grid { grid-template-columns: 1fr 1fr; }
	.join-mark { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	:root { --wrap: min(100% - 28px, 1180px); }
	body { font-size: 16px; }
	.brand img { width: 50px; height: 44px; }
	.brand-word { font-size: 1.25rem; }
	.menu-toggle { padding-inline: .75rem; }
	.hero-media { min-height: 410px; }
	.football-page { margin-top: 0; }
	.about-page { margin-top: 0; }
	.about-hero, .about-team, .about-details { padding: 1.6rem; border-radius: 1.35rem; }
	.about-hero { min-height: 460px; }
	.football-hero, .football-section, .football-contact { padding: 1.6rem; border-radius: 1.35rem; }
	.football-hero-grid, .football-team-grid { flex-direction: column; }
	.football-hero-logo { width: 75%; }
	.hero-note { width: 160px; font-size: .85rem; }
	.value-grid, .card-grid, .footer-grid { grid-template-columns: 1fr; }
	.footer-grid > :first-child { grid-column: auto; }
	.section-head, .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
