/* Verein Kleinkinder Rifferswil – Stylesheet
   Look der bisherigen Website (Astra), neu als statische Seite.
   Alle Schriften lokal, keine externen Ressourcen (Datenschutz). */

/* ---------- Schriften ---------- */
@font-face {
	font-family: "Patrick Hand";
	src: url("../fonts/patrick-hand-400-latin.woff2") format("woff2");
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Dancing Script";
	src: url("../fonts/dancing-script-700-latin.woff2") format("woff2");
	font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Roboto";
	src: url("../fonts/roboto-latin.woff2") format("woff2");
	font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Farben & Grundwerte ---------- */
:root {
	--dunkel: #264653;     /* Navi, Überschriften */
	--tuerkis: #679BA3;
	--kachel: #DAE4F5;     /* Kacheln, Anmeldung */
	--himmel: #E9FAFF;     /* Veranstaltungen, Infoboxen */
	--salbei: #BFD3C0;     /* Zitatband, Footer */
	--salbei-hell: #DCE8DD; /* Veranstaltungen, Kontakt-/Info-Boxen */
	--gelb: #E9C46A;
	--text: #3A3A3A;
	--schwarz: #000;
	--bar: #3A3A3A;        /* Footer-Leiste */
	--linie: #c9d6e8;

	--hand: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", cursive;
	--sans: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--schrift: "Dancing Script", "Brush Script MT", cursive;

	--max: 1200px;
	--radius: 14px;
	--header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font: 400 18px/1.65 var(--sans);
	color: var(--text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dunkel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tuerkis); }
:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--hand); font-weight: 400; color: var(--dunkel); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
strong { color: var(--schwarz); font-weight: 700; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.wrap--narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; }
p.center.lead { max-width: 36em; margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--dunkel); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 18px -14px rgba(0,0,0,.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 69px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
	font: 400 1.4rem/1 var(--hand);
	color: var(--dunkel);
	text-decoration: none;
	padding: 10px 14px;
}
.nav a:hover, .nav a:focus-visible { color: var(--tuerkis); }
.nav-mail svg { width: 26px; height: 26px; display: block; }

.nav-toggle {
	display: none;
	width: 48px; height: 44px; padding: 10px;
	background: none; border: 0; cursor: pointer;
	flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--dunkel); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

@media (max-width: 900px) {
	:root { --header-h: 76px; }
	.brand img { height: 54px; }
	.nav-toggle { display: flex; }
	.nav {
		position: absolute; top: var(--header-h); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; padding: 6px 20px 18px;
		box-shadow: 0 12px 18px -12px rgba(0,0,0,.25);
		display: none;
	}
	.nav.open { display: flex; }
	.nav a { padding: 14px 4px; border-bottom: 1px solid var(--kachel); }
	.nav a:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle span { transition: none; } }

/* ---------- Hero (Illustration) ---------- */
.hero { background: #fff; }
.hero img { width: 100%; max-width: 1600px; margin-inline: auto; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--sky { background: var(--salbei-hell); }
.section--blue { background: var(--kachel); }

.section-title { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.section-title img { width: min(260px, 70%); margin-bottom: 10px; }
.section-title h2 { margin-bottom: .15em; }
.section-title p { font: 400 1.35rem/1.3 var(--hand); color: var(--tuerkis); margin: 0; }

/* ---------- Veranstaltungen ---------- */
.events { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 860px; display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: 88px 1fr; gap: 22px; background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 10px 24px -20px rgba(38,70,83,.6); }
.event-date { display: grid; place-content: center; text-align: center; background: var(--gelb); color: var(--dunkel); border-radius: 12px; aspect-ratio: 1; font-family: var(--hand); line-height: 1; }
.event-date .d { font-size: 2.3rem; }
.event-date .m { font-size: 1.05rem; margin-top: 2px; }
.event-body { min-width: 0; overflow-wrap: anywhere; }
.event h3 { margin-bottom: .15em; }
.event-meta { font-size: .95rem; color: var(--dunkel); margin-bottom: .5em; }
.event-body p:last-child { margin-bottom: 0; }
.empty { background: #fff; border-radius: var(--radius); padding: 22px 26px; max-width: 860px; margin: 0 auto 28px; text-align: center; }
@media (max-width: 560px) {
	.event { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
	.event-date .d { font-size: 1.7rem; }
	.event-date .m { font-size: .9rem; }
}

/* ---------- Angebote ---------- */
.offers-head { padding: clamp(56px, 8vw, 90px) 0 0; }
.offers-title {
	display: inline-block; margin: 0;
	font-size: clamp(2.8rem, 6vw, 4rem);
	color: var(--gelb);
	text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px;
}
.offers-head + .offer { padding-top: clamp(28px, 4vw, 44px); }
.offer { padding: clamp(56px, 8vw, 90px) 0; background: #fff; }
.offer--flip { background: var(--himmel); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.offer--flip .offer-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.offer--flip .offer-visual { order: 2; }
/* Illustration + Leiterinnen als Blasen */
.offer-visual { position: relative; width: 100%; max-width: 470px; aspect-ratio: 1 / 1; justify-self: center; align-self: center; }
.offer-art { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: auto; max-width: 58%; max-height: 62%; }
.offer-art--logo { width: 70%; max-width: 70%; max-height: none; }
.bubble { position: absolute; margin: 0; }
.bubble img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 10px 22px -12px rgba(38,70,83,.55); }
.bubble figcaption {
	position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%) rotate(var(--tilt, -3deg));
	font: 400 1.25rem/1 var(--hand); color: #fff; background: var(--dunkel);
	padding: 5px 12px 6px; border-radius: 999px; white-space: nowrap;
}
.bubble { transition: transform .25s ease; }
.bubble:hover { transform: scale(1.05) rotate(-2deg); }
/* drei Personen */
.offer-visual--3 .bubble:nth-of-type(1) { width: 38%; left: -2%; top: 0; }
.offer-visual--3 .bubble:nth-of-type(2) { width: 32%; right: 0;  top: 12%; --tilt: 4deg; }
.offer-visual--3 .bubble:nth-of-type(3) { width: 35%; left: 34%; bottom: -2%; --tilt: -2deg; }
.offer-visual--3 .offer-art { top: 46%; }
/* zwei Personen */
.offer-visual--2 .offer-art { max-width: 66%; max-height: 66%; left: 54%; top: 54%; }
.offer-visual--2 .bubble:nth-of-type(1) { width: 40%; left: 0;   top: 2%; }
.offer-visual--2 .bubble:nth-of-type(2) { width: 34%; right: 0;  bottom: 2%; --tilt: 4deg; }
/* eine Person */
.offer-visual--1 .offer-art { max-height: 72%; left: 40%; }
.offer-visual--1 .bubble:nth-of-type(1) { width: 42%; right: 0; bottom: 4%; --tilt: 3deg; }
@media (prefers-reduced-motion: reduce) { .bubble { transition: none; } .bubble:hover { transform: none; } }

.infobox {
	display: grid; grid-template-columns: 150px 1fr;
	margin: 26px 0 0; padding: 20px 24px;
	background: var(--kachel); border-radius: var(--radius);
}
.offer--flip .infobox { background: #fff; }
.infobox dt { font: 400 1.2rem/1.4 var(--hand); color: var(--dunkel); padding: 9px 12px 9px 0; border-bottom: 1px solid var(--linie); }
.infobox dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.infobox dt:last-of-type, .infobox dd:last-of-type { border-bottom: 0; }

@media (max-width: 820px) {
	.offer-grid, .offer--flip .offer-grid { grid-template-columns: 1fr; }
	.offer--flip .offer-visual { order: 0; }
	.offer-visual { max-width: 360px; }
	.bubble figcaption { font-size: 1rem; }
	.infobox { grid-template-columns: 1fr; padding: 16px 20px; }
	.infobox dt { border-bottom: 0; padding: 10px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .4em;
	font: 400 1.3rem/1 var(--hand);
	text-decoration: none; cursor: pointer;
	color: #fff; background: var(--dunkel);
	border: 0; border-radius: 999px;
	padding: 14px 28px;
	transition: background .15s ease;
}
.btn:hover { background: var(--tuerkis); color: #fff; }
.btn-small { font-size: 1.1rem; padding: 10px 20px; }

/* ---------- Anmeldung (aufklappbar) ---------- */
.anmeldung-title { font-size: clamp(1.8rem, 3.2vw, 2.3rem); display: flex; align-items: center; justify-content: center; gap: .35em; flex-wrap: wrap; }
.anmeldung-title .pfeil { width: 1.6em; height: 1em; color: var(--tuerkis); flex: none; transform: rotate(8deg); }
.anmeldung > summary { list-style: none; display: flex; width: max-content; margin: 26px auto 0; }
.anmeldung > summary::-webkit-details-marker { display: none; }
.anmeldung .auf, .anmeldung[open] .zu { display: none; }
.anmeldung[open] .auf { display: inline; }
.anmeldung[open] > summary { background: transparent; color: var(--dunkel); font-size: 1.15rem; padding: 8px 16px; }
.anmeldung[open] > summary:hover { color: var(--tuerkis); }

.form { display: grid; gap: 22px; margin-top: 18px; }
.form fieldset { border: 0; background: #fff; border-radius: var(--radius); padding: 22px clamp(18px, 3vw, 30px) 26px; margin: 0; display: grid; gap: 14px; }
.form legend { font: 400 1.5rem/1.2 var(--hand); color: var(--dunkel); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.form label { display: grid; gap: 6px; font-size: .95rem; color: var(--text); }
.form input:not([type=checkbox]), .form textarea {
	font: 400 1rem var(--sans); color: var(--schwarz);
	background: #fff; border: 1.5px solid var(--linie); border-radius: 8px;
	padding: 11px 13px; width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--tuerkis); outline: none; box-shadow: 0 0 0 3px rgba(103,155,163,.3); }
.form > .btn { justify-self: start; }
.form > .small { margin: -8px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
@media (max-width: 620px) { .grid-2, .checks { grid-template-columns: 1fr; } }
.form label.check, .check { display: flex; align-items: center; gap: 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--dunkel); flex: none; margin: 0; }
.invalid input, .invalid textarea, fieldset.invalid { outline: 2px solid #c0392b; outline-offset: 2px; }
label.check.invalid { color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; font-weight: 700; text-align: center; }
.notice--ok { background: var(--salbei); color: var(--dunkel); }
.notice--warn { background: #f6dcd3; color: #7a2615; }

/* ---------- Zitat (gerahmt, unter dem Vorstand) ---------- */
.quote {
	max-width: 760px; margin: 0 auto clamp(44px, 6vw, 70px);
	padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 48px);
	border: 3px solid var(--salbei); border-radius: var(--radius);
	background: #F4F8F4; text-align: center;
}
.quote p { font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.35 var(--schrift); color: var(--dunkel); margin: 0 0 .5em; }
.quote cite { font-style: normal; font-size: .95rem; color: var(--text); }

/* ---------- Verein ---------- */
#verein > .wrap > h2 { margin-bottom: .6em; }
.intro { max-width: 46em; margin: 0 auto clamp(30px, 5vw, 50px); text-align: center; font-size: 1.08rem; }
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 5vw, 70px); margin-bottom: clamp(36px, 5vw, 56px); }
.team figure { margin: 0; text-align: center; width: 190px; }
.team img { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; }
.team figcaption { font: 400 1.5rem/1.2 var(--hand); color: var(--dunkel); }
.team figcaption span { display: block; font: 400 .95rem/1.5 var(--sans); color: var(--text); margin-top: 2px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }
.box { background: var(--salbei-hell); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.box h2 { font-size: 2rem; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding: 10px 0; border-bottom: 1px solid #bccfbe; }
.links li:last-child { border: 0; }
.links span { display: block; font-size: .9rem; }
.box--wide { margin-top: clamp(18px, 3vw, 32px); }
.box p:last-child { margin-bottom: 0; }
@media (min-width: 821px) { .box--wide .links { columns: 2; column-gap: 48px; } .box--wide .links li { break-inside: avoid; } .box--wide .links li:last-child { border-bottom: 1px solid #bccfbe; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--salbei); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: clamp(34px, 5vw, 50px) 0; }
.footer-logo { width: 168px; justify-self: start; }
.footer-mid { text-align: center; }
.footer-mid p { font: 400 1.6rem/1.2 var(--hand); color: var(--dunkel); margin: 10px 0 0; }
.icons { display: flex; justify-content: center; gap: 14px; }
.icons a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--dunkel); color: #fff; }
.icons a:hover { background: var(--tuerkis); color: #fff; }
.icons svg { width: 24px; height: 24px; }
.footer-art { width: 170px; justify-self: end; }
@media (max-width: 760px) {
	.footer-grid { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
	.footer-logo, .footer-art { justify-self: center; }
	.footer-art { width: 150px; }
}

.footer-bar { background: var(--bar); color: #fff; font-size: .9rem; }
.footer-bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding: 16px 0; }
.footer-bar p { margin: 0; }
.footer-bar a { color: #fff; }
.footer-bar a:hover { color: var(--salbei); }
@media (max-width: 760px) { .footer-bar-inner { justify-content: center; text-align: center; } }

/* ---------- Impressum / Datenschutz ---------- */
.legal { padding: clamp(44px, 6vw, 70px) 0 clamp(60px, 8vw, 90px); }
.legal h2 { font-size: 1.9rem; margin-top: 1.4em; }
.legal h3 { font-size: 1.4rem; margin-top: 1.2em; }
.legal ul { padding-left: 1.2em; }
