/* Tobi 50er – Einladung: Grün und Gelb wie die bisherige Seite. Mobile First. */

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans.woff2") format("woff2");
	font-weight: 100 1000;
	font-display: swap;
}

:root {
	--gruen: #536942;
	--gruen-dunkel: #45583a;
	--gruen-feld: #a9b59c;
	--gelb: #ffd936;
	--gelb-dunkel: #dab200;
	--hell: #f6f8f5;
	--text: #5c6653;
	--schrift: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--schrift-titel: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--inner: 1080px;
	--rand: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1rem/1.7 var(--schrift); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gruen); }
p { margin: 0 0 1em; }
h1, h2 { margin: 0; font-weight: 400; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--gelb-dunkel); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .6rem 1rem; background: var(--gelb); color: var(--gruen-dunkel); }
.skip:focus { top: 1rem; }
.inner { max-width: var(--inner); margin: 0 auto; padding: 0 var(--rand); }
.inner--schmal { max-width: 760px; }

/* ---------- Kopf ---------- */

.kopf {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .75rem var(--rand);
}
.kopf__name, .kopf__link { color: #fff; text-decoration: none; font-size: .9rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.kopf__name { font-weight: 700; }
.kopf__link:hover { color: var(--gelb); }
.abschnitt--oben { padding-top: 5rem; }
body:has(.abschnitt--oben) .kopf { position: static; background: var(--gruen); }
body:has(.abschnitt--oben) .abschnitt--oben { padding-top: 3rem; }

/* ---------- Titelbild: auf dem Handy vollständig (kein Beschnitt), breit als Ausschnitt ---------- */

.hero__bild { width: 100%; }
.hero__band { padding: 1.5rem var(--rand); background: var(--gruen); color: #fff; text-align: center; }
.hero__titel { font-family: var(--schrift-titel); font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.25; }

/* ---------- Abschnitte ---------- */

.abschnitt { padding: 2.5rem 0; }
.datum { padding-bottom: 0; }
.datum__text { margin: 0; color: var(--gruen); font-family: var(--schrift-titel); font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.3; text-align: center; }

.block { display: grid; gap: 1.5rem; align-items: center; }
.block__bild img { width: 100%; }
.titel { color: var(--gruen); font-family: var(--schrift-titel); font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.2; text-align: center; }
.untertitel { margin: .5rem 0 1rem; color: var(--gruen); font-family: var(--schrift-titel); font-size: 1.2rem; line-height: 1.4; text-align: center; }
.untertitel--gross { margin: 1.5rem 0; font-size: 1.6rem; }
.text { font-size: .95rem; color: var(--text); }

.aktionen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.aktionen--mitte { justify-content: center; margin-top: 0; }
.button {
	display: inline-block;
	padding: .7rem 1.3rem;
	border: 2px solid var(--gruen);
	background: var(--gruen);
	color: #fff;
	font: inherit;
	font-size: .9rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.button:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
.button--rand { background: transparent; color: var(--gruen); }
.button--rand:hover { background: var(--hell); color: var(--gruen-dunkel); }
.button--gelb { background: var(--gelb); border-color: var(--gelb); color: var(--gruen-dunkel); }
.button--gelb:hover { background: var(--gelb-dunkel); border-color: var(--gelb-dunkel); }

.party__bilder { display: grid; gap: 1rem; align-items: center; }
.party__bilder img { width: 100%; }

/* ---------- Rückmeldung ---------- */

.rueckmeldung { background: var(--gruen); color: #fff; scroll-margin-top: 0; }
.rueckmeldung__titel { margin-bottom: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(0, 0, 0, .5); font-family: var(--schrift-titel); font-size: clamp(1.9rem, 7vw, 2.6rem); text-align: center; }
.rueckmeldung__form { display: grid; gap: 1.4rem; }
.feld { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; font-size: .9rem; }
.feld > span:first-child, .feld legend { font-weight: 700; }
.feld legend { margin-bottom: .4rem; padding: 0; }
.feld__hinweis { font-size: .8rem; opacity: .85; }
.pflicht { color: var(--gelb); }
.rueckmeldung__form input[type="text"], .rueckmeldung__form textarea {
	width: 100%;
	padding: .65rem .75rem;
	border: 0;
	background: var(--gruen-feld);
	color: #1f2619;
	font: inherit;
}
.rueckmeldung__form input[type="text"]:focus, .rueckmeldung__form textarea:focus { outline: 2px solid var(--gelb); }
.rueckmeldung__form textarea { resize: vertical; min-height: 7rem; }
.regler { width: 100%; accent-color: var(--gelb); }
.wahl { display: flex; align-items: flex-start; gap: .5rem; padding: .15rem 0; font-weight: 400; }
.wahl input { margin-top: .35rem; accent-color: var(--gelb); }
.rueckmeldung__form .button { justify-self: start; }
.rueckmeldung__datenschutz { margin: 0; font-size: .8rem; opacity: .85; }
.rueckmeldung__datenschutz a { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hinweis { display: none; margin-bottom: 1.25rem; padding: .8rem 1rem; color: #1f2619; font-size: .95rem; }
.hinweis:target { display: block; }
.hinweis--ok { background: #eef5e6; border-left: 4px solid var(--gelb); }
.hinweis--fehler { background: #fdf1e1; border-left: 4px solid var(--gelb-dunkel); }

/* ---------- Impressum ---------- */

.rechtliches { overflow-wrap: break-word; hyphens: auto; }
.rechtliches h2 { margin: 2.5rem 0 1rem; color: var(--gruen); font-size: 1.8rem; }
.rechtliches h2:first-child { margin-top: 0; }
.rechtliches h3 { margin: 2rem 0 .75rem; color: var(--gruen); font-size: 1.3rem; }
.rechtliches__version { margin-top: 3rem; font-size: .85rem; }

/* ---------- Fuß ---------- */

.fuss { padding: 1.5rem 0; font-size: .85rem; }
.fuss__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.fuss__copy { margin: 0; }

/* ---------- Ab 700px: Bild und Text nebeneinander ---------- */

@media (min-width: 700px) {
	:root { --rand: 2rem; }
	.abschnitt { padding: 4rem 0; }
	.block { grid-template-columns: 1fr 1fr; gap: 3rem; }
	.block .text { max-width: 26rem; margin: 0 auto; }
	.block .aktionen { justify-content: center; }
	.party__bilder { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Breite Bildschirme: Titelbild als Ausschnitt (Gesicht im oberen Drittel) ---------- */

@media (min-width: 900px) and (min-aspect-ratio: 4/3) {
	.hero__bild { height: 55vh; min-height: 22rem; object-fit: cover; object-position: 50% 30%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
