/* ==========================================================================
   NKC Theme – Nassauer Kanu-Club
   Aufbau: Tokens → Basis → Layout → Header → Hero → Sektionen → Inhalte → Footer
   ========================================================================== */

:root {
	--navy: #0b2238;
	--deep: #06192b;
	--brand: #0f8b8d;
	--brand-light: #5ec8c4;
	--accent: #ff6b35;
	--accent-dark: #e85520;
	--sun: #ffd23f;
	--sand: #f5f1ea;
	--soft: #f3f6f8;
	--ink: #10202f;
	--muted: #5b6b7a;
	--line: #e3e8ee;
	--white: #fff;

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Outfit", "Inter", system-ui, sans-serif;

	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 32px;
	--shadow: 0 1px 2px rgb(6 25 43 / .04), 0 8px 24px rgb(6 25 43 / .06);
	--shadow-lg: 0 24px 60px rgb(6 25 43 / .16);

	--container: 1200px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--header-h: 5rem;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .6em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-light); color: var(--deep); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	padding: .75rem 1rem; background: var(--accent); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
	--_bg: var(--navy);
	--_fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.4em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--_bg);
	color: var(--_fg);
	font: 600 1rem/1.1 var(--font-body);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { color: var(--_fg); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(6 25 43 / .2); }
.btn--accent { --_bg: var(--accent); }
.btn--accent:hover { --_bg: var(--accent-dark); box-shadow: 0 12px 28px rgb(255 107 53 / .4); }
.btn--dark { --_bg: var(--navy); }
.btn--glass {
	--_bg: rgb(255 255 255 / .12);
	border-color: rgb(255 255 255 / .35);
	backdrop-filter: blur(8px);
}
.btn--glass:hover { --_bg: rgb(255 255 255 / .22); }
.btn--outline { --_bg: transparent; --_fg: var(--navy); border-color: var(--line); }
.btn--outline:hover { --_fg: var(--navy); border-color: var(--navy); }
.btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn--sm { padding: .55em 1em; font-size: .9rem; }

.link-arrow {
	display: inline-flex; align-items: center; gap: .4em;
	font-weight: 600; color: var(--navy); text-decoration: none;
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.kicker {
	display: inline-flex; align-items: center; gap: .5rem;
	margin: 0 0 .9rem;
	font: 700 .8rem/1 var(--font-body);
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--brand);
}
.kicker::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; border-radius: 2px; }
.kicker--light { color: var(--brand-light); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(255 255 255 / .86);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgb(6 25 43 / .06);
	transition: background .3s, border-color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.has-hero .site-header {
	position: fixed; left: 0; right: 0;
	background: transparent; border-color: transparent; backdrop-filter: none;
}
.has-hero .site-header:not(.is-scrolled) .site-logo,
.has-hero .site-header:not(.is-scrolled) .menu > li > a { color: #fff; }
.has-hero .site-header:not(.is-scrolled) .nav-toggle__bars span { background: #fff; }
.site-header.is-scrolled {
	background: rgb(255 255 255 / .9);
	backdrop-filter: saturate(160%) blur(14px);
	border-color: rgb(6 25 43 / .06);
	box-shadow: 0 8px 30px rgb(6 25 43 / .06);
}
.nkc-announcement ~ .site-header { top: auto; }

.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	width: min(1320px, 100% - 2 * var(--gutter));
	height: var(--header-h);
	margin-inline: auto;
}
.site-logo {
	display: inline-flex; align-items: center; gap: .7rem;
	color: var(--navy); text-decoration: none;
	font: 500 1.1rem/1.05 var(--font-head);
}
.site-logo:hover { color: inherit; }
.site-logo__img { width: 44px; height: 44px; object-fit: contain; }
/* Original-Wimpel ist querformatig */
.site-logo__img.is-custom { width: auto; max-width: 84px; }
.site-logo__text strong { display: block; font-weight: 800; letter-spacing: -.01em; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav .menu { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav .menu li { position: relative; }
.site-nav .menu a {
	display: flex; align-items: center; gap: .35rem;
	padding: .55rem .85rem;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 600; font-size: .95rem;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.site-nav .menu > li > a:hover,
.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-menu-ancestor > a,
.site-nav .menu > .current_page_item > a { background: rgb(15 139 141 / .1); color: var(--brand); }
.has-hero .site-header:not(.is-scrolled) .menu > li > a:hover { background: rgb(255 255 255 / .14); color: #fff; }
.nkc-caret { transition: transform .2s; }

.site-nav .sub-menu {
	position: absolute; top: calc(100% + .5rem); left: 0; min-width: 15rem;
	list-style: none; margin: 0; padding: .5rem;
	background: #fff; border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav .sub-menu::before { content: ""; position: absolute; inset: -.6rem 0 auto; height: .6rem; }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav li:hover > a .nkc-caret { transform: rotate(180deg); }
.site-nav .sub-menu a { border-radius: 8px; color: var(--ink); }
.site-nav .sub-menu a:hover { background: var(--soft); color: var(--brand); }

.nav-toggle { display: none; padding: .6rem; border: 0; background: none; cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 5px; width: 24px; }
.nav-toggle__bars span { height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
	.nav-toggle { display: block; position: relative; z-index: 2; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem;
		padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
		background: var(--deep);
		overflow-y: auto;
		opacity: 0; visibility: hidden;
		transition: opacity .25s, visibility .25s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.nav-open .site-logo, .nav-open .nav-toggle__bars span { color: #fff; }
	.nav-open .nav-toggle__bars span { background: #fff; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a,
	.has-hero .site-header .menu > li > a { color: #fff; font-size: 1.35rem; font-family: var(--font-head); padding: .7rem 0; border-radius: 0; }
	.site-nav .menu > li > a:hover { background: none; color: var(--brand-light); }
	.site-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		background: none; box-shadow: none; padding: 0 0 .5rem 1rem;
	}
	.site-nav .sub-menu a { font-size: 1.05rem; color: rgb(255 255 255 / .75); font-family: var(--font-body); }
	.site-nav .sub-menu a:hover { background: none; color: #fff; }
	.nkc-caret { display: none; }
	.site-nav__cta { align-self: flex-start; }
	html.nav-open { overflow: hidden; }
	/* backdrop-filter würde das Vollbild-Menü im Header einsperren */
	.nav-open .site-header { backdrop-filter: none; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
	position: relative;
	isolation: isolate;
	min-height: min(100svh, 860px);
	display: grid;
	align-items: center;
	padding: calc(var(--header-h) + 3rem) 0 9rem;
	color: #fff;
	background: var(--deep);
	overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: hero-zoom 18s ease-out forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgb(6 25 43 / .55) 0%, rgb(6 25 43 / .25) 40%, rgb(6 25 43 / .85) 100%),
		linear-gradient(90deg, rgb(6 25 43 / .7) 0%, transparent 70%);
}
.hero__illustration {
	position: absolute; inset: 0;
	background:
		radial-gradient(60% 60% at 80% 20%, rgb(255 107 53 / .55), transparent 60%),
		radial-gradient(50% 50% at 15% 80%, rgb(94 200 196 / .45), transparent 60%),
		radial-gradient(40% 40% at 60% 70%, rgb(15 139 141 / .6), transparent 70%),
		linear-gradient(160deg, #0b2238 0%, #06192b 60%, #0a3a4a 100%);
}
.hero__illustration::before {
	content: ""; position: absolute; inset: 0;
	background: url("../img/hero-lines.svg") center bottom / cover no-repeat;
	opacity: .5;
}
.hero__inner { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero__title {
	max-width: 14ch;
	margin: 0 0 1.25rem;
	font-size: clamp(2.8rem, 7.5vw, 6rem);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.hero__text { max-width: 38rem; margin: 0 0 2rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgb(255 255 255 / .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__badge {
	display: inline-flex; align-items: center; gap: .65rem;
	margin: 2rem 0 0; padding: .55rem 1rem .55rem .8rem;
	border-radius: 999px;
	background: rgb(255 255 255 / .1);
	border: 1px solid rgb(255 255 255 / .2);
	backdrop-filter: blur(8px);
	font-size: .9rem; font-weight: 500;
}
.pulse-dot {
	width: .6rem; height: .6rem; border-radius: 50%; background: var(--sun);
	box-shadow: 0 0 0 0 rgb(255 210 63 / .7); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 .7rem rgb(255 210 63 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 210 63 / 0); } }

/* Wellen */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(50px, 8vw, 110px); line-height: 0; pointer-events: none; }
.wave svg { width: 100%; height: 100%; }
.wave__back { fill: var(--brand-light); opacity: .35; animation: wave-drift 9s ease-in-out infinite alternate; transform-origin: center; }
.wave__front { fill: #fff; }
@keyframes wave-drift { to { transform: translateX(-2%) scaleY(1.08); } }
.wave--footer { top: calc(-1 * clamp(50px, 8vw, 110px) + 2px); bottom: auto; }
.wave--footer .wave__front { fill: var(--deep); }
.wave--footer .wave__back { fill: var(--brand); opacity: .8; }

/* ---------- Seitenkopf ---------- */
.page-hero {
	position: relative; isolation: isolate;
	padding: 4.5rem 0 7rem;
	background:
		radial-gradient(50% 80% at 90% 0%, rgb(255 107 53 / .35), transparent 60%),
		radial-gradient(40% 70% at 0% 100%, rgb(94 200 196 / .3), transparent 60%),
		linear-gradient(150deg, var(--navy), var(--deep));
	color: #fff;
	overflow: hidden;
}
.has-hero .page-hero { padding-top: calc(var(--header-h) + 4.5rem); }
.page-hero--image { min-height: 26rem; display: grid; align-items: end; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgb(6 25 43 / .45), rgb(6 25 43 / .85));
}
.page-hero__inner { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.page-hero .kicker { color: var(--brand-light); }
.page-hero__title { margin: 0; max-width: 20ch; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.page-hero .post-meta { display: flex; gap: .6rem; margin-top: 1rem; color: rgb(255 255 255 / .8); font-size: .95rem; }
.event-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; color: rgb(255 255 255 / .9); }
.event-facts li { display: inline-flex; align-items: center; gap: .45rem; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section__head { max-width: 44rem; margin-bottom: 2.75rem; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.section__title { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .5rem; }
.section__title--small { font-size: clamp(1.5rem, 3vw, 2rem); }
.section__lead { font-size: 1.15rem; color: var(--muted); margin: 0; }

/* Angebote */
.section--offers { padding-top: clamp(2rem, 5vw, 4rem); }
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1100px) { .offers { grid-template-columns: repeat(2, 1fr); } .offer { min-height: 15rem; } }
@media (max-width: 560px) { .offers { grid-template-columns: 1fr; } }
.offer {
	--tone: var(--brand);
	position: relative; isolation: isolate;
	display: flex; flex-direction: column; gap: .6rem;
	min-height: 22rem;
	padding: 1.6rem;
	border-radius: var(--radius-lg);
	background: var(--soft);
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s;
}
.offer--0 { --tone: #0f8b8d; }
.offer--1 { --tone: #ff6b35; }
.offer--2 { --tone: #2563eb; }
.offer--3 { --tone: #d9468f; }
.offer::before {
	content: ""; position: absolute; inset: auto -30% -40% auto; z-index: -1;
	width: 18rem; height: 18rem; border-radius: 50%;
	background: var(--tone); opacity: .12;
	transition: transform .5s var(--ease), opacity .35s;
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.offer:hover::before { transform: scale(5); opacity: 1; }
.offer__img {
	position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity .4s;
}
.offer:hover .offer__img { opacity: .25; }
.offer__icon {
	display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
	border-radius: 16px; background: #fff; color: var(--tone);
	box-shadow: var(--shadow);
}
.offer__title { margin: auto 0 0; font-size: 1.65rem; font-weight: 800; }
.offer__text { margin: 0; color: inherit; opacity: .8; font-size: .98rem; }
.offer__more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem; color: var(--tone); transition: color .35s; }
.offer:hover .offer__more { color: #fff; }
.offers--compact { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.offers--compact .offer { min-height: 0; background: #fff; }
.offers--compact .offer::before { width: 9rem; height: 9rem; inset: auto -3rem -4rem auto; }
.offers--compact .offer__title { margin-top: .6rem; font-size: 1.3rem; }

/* Intro-Inhalt */
.section--intro { padding-top: 0; }

/* Regatta-Band */
.section--regatta { padding-block: 0; }
.regatta-band {
	position: relative; isolation: isolate; overflow: hidden;
	margin-inline: clamp(0rem, 2vw, 1.5rem);
	padding: clamp(3rem, 7vw, 6rem) 0;
	border-radius: clamp(0px, 3vw, 40px);
	color: #fff;
	background:
		radial-gradient(60% 90% at 100% 0%, rgb(255 107 53 / .45), transparent 60%),
		radial-gradient(50% 80% at 0% 100%, rgb(15 139 141 / .55), transparent 60%),
		var(--deep);
}
.regatta-band__deco { position: absolute; right: -4rem; bottom: -6rem; z-index: -1; color: rgb(255 255 255 / .05); }
.regatta-band__deco svg { stroke-width: .6; }
.regatta-band__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 900px) { .regatta-band__grid { grid-template-columns: minmax(0, 1fr); } }
.regatta-band__title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.regatta-band__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.25rem; font-weight: 600; }
.regatta-band__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.regatta-band__meta svg { color: var(--accent); }
.regatta-band__text { max-width: 36rem; color: rgb(255 255 255 / .8); margin-bottom: 2rem; }
.regatta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.regatta-band__side { display: grid; gap: 1.5rem; justify-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; width: 100%; }
.stats div { padding: 1rem; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.stats dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.stats dd { margin: .25rem 0 0; font: 800 2.2rem/1 var(--font-head); }

/* Karten (Beiträge) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--brand)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: rgb(255 255 255 / .35); }
.card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.card .post-meta { display: flex; gap: .45rem; font-size: .82rem; color: var(--muted); }
.card__title { margin: 0; font-size: 1.35rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand); }
.card__excerpt { margin: 0; color: var(--muted); font-size: .98rem; }
.card__more { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--accent); text-decoration: none; }

/* Termine + Facebook */
.section--events { background: var(--sand); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.section--events .nkc-events { margin: 1.5rem 0; }
.join-card { padding: 2.5rem; border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.join-card .section__title { color: #fff; }
.join-card p { color: rgb(255 255 255 / .8); }

/* Kontakt */
.contact-cta {
	display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
	padding: clamp(2rem, 5vw, 3.5rem);
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, rgb(15 139 141 / .1), rgb(255 107 53 / .1));
}
.contact-cta__lead { max-width: 34rem; margin: 0 0 .75rem; font-size: 1.1rem; }
.contact-cta address { font-style: normal; font-size: 1.1rem; color: var(--muted); }
.contact-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Inhalte (Blöcke) ---------- */
.page-content { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.entry-content { max-width: 760px; }
.entry-content > * { margin-block: 0 1.4rem; }
.entry-content > .alignwide { max-width: 1200px; width: min(1200px, 100vw - 2 * var(--gutter)); margin-inline: calc((min(760px, 100%) - min(1200px, 100vw - 2 * var(--gutter))) / 2); }
.entry-content > .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.entry-content > .wp-block-nkc,
.entry-content > [class*="nkc-"] { max-width: 1000px; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.6rem; }
.entry-content h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-top: 2rem; }
.entry-content p { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content ul[class*="nkc-"], .entry-content ol[class*="nkc-"] { padding-left: 0; }
.entry-content li { margin-bottom: .35rem; }
.entry-content li::marker { color: var(--accent); }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-inline: 0; padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--accent);
	background: var(--sand); border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 1.15rem;
}
/* Tabellen: Rahmen mit Rundung, damit Anfang und Ende klar zu sehen sind */
.entry-content .wp-block-table { margin-block: 1.5rem 2.5rem; }
.entry-content .wp-block-table table,
.entry-content table:not([class]) {
	width: 100%; border-collapse: separate; border-spacing: 0;
	border: 1px solid #c9d3de; border-bottom: 3px solid var(--navy);
	border-radius: var(--radius); overflow: hidden; background: #fff;
	box-shadow: 0 1px 2px rgb(10 30 50 / .06);
}
.entry-content .wp-block-table th, .entry-content .wp-block-table td,
.entry-content table:not([class]) th, .entry-content table:not([class]) td {
	padding: .7rem .9rem; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.entry-content .wp-block-table thead th, .entry-content table:not([class]) thead th {
	background: var(--soft); border-bottom: 2px solid #c9d3de; font-weight: 700;
}
.entry-content .wp-block-table tbody tr:nth-child(even) td,
.entry-content table:not([class]) tbody tr:nth-child(even) td { background: #f8fafc; }
.entry-content .wp-block-table tbody tr:last-child td,
.entry-content table:not([class]) tbody tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table thead { border: 0; }
.entry-content .wp-block-table figcaption { margin-top: .5rem; }
.entry-content .wp-block-button__link { padding: .85em 1.5em; font-weight: 600; text-decoration: none; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }
.entry-content .wp-block-separator { border: 0; height: 2px; background: var(--line); }
.entry-content .wp-block-group.has-background { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); }
.entry-content .wp-block-columns { gap: 1.5rem; }
.entry-content .wp-block-cover { border-radius: var(--radius-lg); overflow: hidden; }
.entry-content .is-style-nkc-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }

.entry-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; max-width: 760px; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav { display: flex; gap: 1rem; font-weight: 600; }
.post-nav a { text-decoration: none; }

.section--more { background: var(--soft); }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty { color: var(--muted); }

.search-form { display: flex; gap: .5rem; max-width: 30rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: .75em 1em; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.search-submit { padding: .75em 1.2em; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 1rem var(--font-body); cursor: pointer; }

/* ---------- Footer ---------- */
/* Abstand + kräftigere Welle, damit der Footer klar vom Inhalt getrennt ist */
.site-footer { position: relative; margin-top: 0; background: var(--deep); color: rgb(255 255 255 / .75); border-top: 0; }
.site-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
	background: linear-gradient(90deg, var(--brand), var(--brand-light) 50%, var(--accent));
}
.site-footer__inner {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem;
	width: min(var(--container), 100% - 2 * var(--gutter));
	margin-inline: auto;
	padding: 3rem 0 3.5rem;
}
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer .site-logo { color: #fff; }
.site-footer__brand p { max-width: 24rem; margin: 1.25rem 0; }
.site-footer h2 { font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--brand-light); }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .6rem; }
.contact-list svg { color: var(--accent); flex-shrink: 0; }
.social { display: flex; gap: .5rem; }
.social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgb(255 255 255 / .08); transition: background .2s; }
.social a:hover { background: var(--accent); color: #fff; }
.site-footer__bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
	width: min(var(--container), 100% - 2 * var(--gutter));
	margin-inline: auto;
	padding: 1.5rem 0 2rem;
	border-top: 1px solid rgb(255 255 255 / .1);
	font-size: .9rem;
}
.site-footer .legal-menu { display: flex; gap: 1.25rem; }

/* ---------- Scroll-Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { --delay: 80ms; }
.hero .reveal:nth-child(3) { --delay: 160ms; }
.hero .reveal:nth-child(4) { --delay: 240ms; }
.hero .reveal:nth-child(5) { --delay: 320ms; }

/* Plugin-Anpassungen im Theme-Kontext */
.nkc-announcement { font-family: var(--font-body); }
.has-hero .nkc-announcement + .site-header { position: absolute; }
.has-hero .nkc-announcement + .site-header.is-scrolled { position: fixed; top: 0; }
.admin-bar.has-hero .nkc-announcement + .site-header.is-scrolled { top: 32px; }
.regatta-band .nkc-countdown > div { min-width: 5rem; }
.nkc-race, .nkc-slot, .nkc-event { box-shadow: var(--shadow); }

.entry-content .nkc-countdown > div { background: var(--soft); border-color: var(--line); color: var(--navy); }

/* ---------- Farbwelten der Angebote ----------
   Reihenfolge wie die Karten auf der Startseite (.offer--0 … .offer--3). */
.tone-0 { --tone: #0f8b8d; --tone-dark: #0b6e70; }
.tone-1 { --tone: #ff6b35; --tone-dark: #e85520; }
.tone-2 { --tone: #2563eb; --tone-dark: #1d4ed8; }
.tone-3 { --tone: #d9468f; --tone-dark: #b8306f; }
.tone-4 { --tone: #7c3aed; --tone-dark: #6d28d9; }
.tone-5 { --tone: #5b21b6; --tone-dark: #4c1d95; }
.tone-6 { --tone: #8b5cf6; --tone-dark: #6d28d9; }
.tone-7 { --tone: #a855f7; --tone-dark: #7e22ce; }
.has-tone .site-main {
	--accent: var(--tone);
	--accent-dark: var(--tone-dark);
	--brand: var(--tone);
	--brand-light: color-mix(in srgb, var(--tone) 50%, #fff);
	--nkc-accent: var(--tone);
	--nkc-brand: var(--tone);
	--wp--preset--color--accent: var(--tone);
	--wp--preset--color--brand: var(--tone);
}
.has-tone .page-hero {
	background:
		radial-gradient(55% 90% at 90% 0%, color-mix(in srgb, var(--tone) 65%, transparent), transparent 65%),
		radial-gradient(45% 80% at 0% 100%, color-mix(in srgb, var(--tone) 40%, transparent), transparent 60%),
		linear-gradient(150deg, var(--navy), var(--deep));
}
.has-tone .entry-content .has-sand-background-color {
	background-color: color-mix(in srgb, var(--tone) 9%, #fff) !important;
	border-left: 4px solid var(--tone);
}
.has-tone .entry-content .wp-block-button__link:hover { background-color: var(--tone-dark); }
.has-tone .entry-content h2::after {
	content: ""; display: block; width: 2.5rem; height: 4px; margin-top: .5rem;
	border-radius: 4px; background: var(--tone);
}

/* Menü: Unterpunkte (Angebote, Regatta) in ihrer Farbe */
.site-nav .sub-menu .has-tone > a::before {
	content: ""; flex-shrink: 0;
	width: .6rem; height: .6rem; border-radius: 50%;
	background: var(--tone);
}
.site-nav .sub-menu .has-tone > a:hover,
.site-nav .sub-menu .has-tone.current-menu-item > a {
	background: color-mix(in srgb, var(--tone) 12%, #fff);
	color: var(--tone-dark);
}
/* Hauptmenüpunkt „Angebote“ auf einer Angebotsseite in deren Farbe */
body.has-tone:not(.is-regatta) .site-nav .menu > .current-menu-ancestor > a,
body.has-tone:not(.is-regatta) .site-nav .menu > .current-page-ancestor > a {
	background: color-mix(in srgb, var(--tone) 12%, transparent);
	color: var(--tone-dark);
}
/* „Regatta“ selbst bleibt schwarz */
@media (min-width: 1025px) {
	body.is-regatta .site-nav .menu > .current-menu-item > a,
	body.is-regatta .site-nav .menu > .current-menu-ancestor > a,
	body.is-regatta .site-nav .menu > .current_page_item > a,
	body.is-regatta .site-nav .menu > li > a:hover { background: var(--soft); color: var(--ink); }
}
@media (max-width: 1024px) {
	.site-nav .sub-menu .has-tone > a:hover,
	.site-nav .sub-menu .has-tone.current-menu-item > a { background: none; color: color-mix(in srgb, var(--tone) 60%, #fff); }
	body.has-tone:not(.is-regatta) .site-nav .menu > .current-menu-ancestor > a { background: none; color: color-mix(in srgb, var(--tone) 60%, #fff); }
	body.is-regatta .site-nav .menu > .current-menu-item > a,
	body.is-regatta .site-nav .menu > .current-menu-ancestor > a { background: none; color: #fff; }
}

/* ---------- Handy-Feinschliff ----------
   Kompaktere Abstände, Karten ohne Leerraum, nichts ragt über den Rand. */
@media (max-width: 600px) {
	.section { padding: 3.25rem 0; }
	.section__head { margin-bottom: 1.75rem; }
	.section__lead { font-size: 1.05rem; }

	.hero { padding: calc(var(--header-h) + 2.5rem) 0 6rem; }
	.hero__title { font-size: clamp(2.4rem, 11vw, 3rem); }
	.hero__actions > * { flex: 1 1 100%; justify-content: center; }
	.hero__badge { margin-top: 1.5rem; font-size: .85rem; border-radius: 1.25rem; }

	.page-hero { padding: 3rem 0 4.5rem; }
	.has-hero .page-hero { padding-top: calc(var(--header-h) + 3rem); }
	.page-hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
	.page-content { padding: 2rem 0 3rem; }

	/* Angebotskarten: Symbol links, Text rechts, keine Leerfläche */
	.offers { gap: .75rem; }
	.offer {
		display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: .3rem;
		align-items: start; min-height: 0; padding: 1.15rem;
	}
	.offer__icon { grid-row: span 3; }
	.offer__title, .offers--compact .offer__title { margin: 0; font-size: 1.3rem; }
	.offer__text { font-size: .93rem; }
	.offer::before { width: 7rem; height: 7rem; inset: auto -2.5rem -3.5rem auto; }

	/* Regatta-Band */
	.regatta-band { margin-inline: .5rem; padding: 2.5rem 0; border-radius: 24px; }
	.regatta-band__title { font-size: 2rem; }
	.regatta-band__text { margin-bottom: 1.5rem; }
	.regatta-band__actions > * { flex: 1 1 100%; justify-content: center; }
	.regatta-band__side { justify-items: stretch; }
	.regatta-band .nkc-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
	.regatta-band .nkc-countdown > div { min-width: 0; padding: .7rem .2rem; }
	.regatta-band .nkc-countdown span { font-size: 1.6rem; }
	.regatta-band .nkc-countdown small { font-size: .62rem; letter-spacing: .04em; }
	.stats { gap: .4rem; }
	.stats div { padding: .75rem .6rem; min-width: 0; }
	.stats dt { font-size: .62rem; letter-spacing: .04em; overflow-wrap: anywhere; }
	.stats dd { font-size: 1.7rem; }

	/* Beitragskarten flacher */
	.cards { gap: 1rem; }
	.card__media { aspect-ratio: 16 / 9; }
	.card__body { padding: 1.1rem 1.2rem 1.3rem; }
	.card__title { font-size: 1.2rem; }

	.join-card { padding: 1.5rem; }
	.contact-cta { padding: 1.5rem; }
	.contact-cta__actions > * { flex: 1 1 100%; justify-content: center; }

	/* Breite Tabellen scrollen statt die Seite zu verbreitern */
	.entry-content .wp-block-table { overflow-x: auto; }
	.site-footer__inner { padding: 2.5rem 0; }
}

/* Handy: Tabellen ab 3 Spalten zeilenweise als Block untereinander (2-spaltige bleiben Tabelle) */
@media (max-width: 640px) {
	.entry-content .wp-block-table table:has(td:nth-child(3)) thead { display: none; }
	.entry-content .wp-block-table table:has(td:nth-child(3)), .entry-content .wp-block-table table:has(td:nth-child(3)) tbody, .entry-content .wp-block-table table:has(td:nth-child(3)) tr, .entry-content .wp-block-table table:has(td:nth-child(3)) td { display: block; width: 100%; }
	.entry-content .wp-block-table table:has(td:nth-child(3)) tr { padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
	.entry-content .wp-block-table table:has(td:nth-child(3)) tbody tr:last-child { border-bottom: 0; }
	.entry-content .wp-block-table table:has(td:nth-child(3)) tbody tr:nth-child(even) { background: #f8fafc; }
	.entry-content .wp-block-table table:has(td:nth-child(3)) tbody tr td, .entry-content .wp-block-table table:has(td:nth-child(3)) tbody tr:nth-child(even) td { padding: 0; border: 0; background: none; }
	.entry-content .wp-block-table table:has(td:nth-child(3)) tbody tr td:first-child { font-weight: 700; font-size: .85rem; color: var(--muted); }
	.entry-content .wp-block-table table:has(td:nth-child(3)) td:empty { display: none; }
}
