/*
Theme Name: my-birth.day
Theme URI: https://my-birth.day
Author: Hinterhöller
Author URI: https://www.hinterhoeller.at
Description: Einladung zu Katrins 40. Geburtstag (Variante D). Schlankes Classic-Theme ohne Page-Builder, Schriften lokal eingebunden. Die Anmeldung kommt aus dem Plugin „my-birth.day Anmeldung“.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mybirthday
*/

/* ---------- Schriften (lokal, DSGVO) ---------- */
@font-face { font-family: 'Archivo Black'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/archivo-black-400.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/figtree-400.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/figtree-500.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/figtree-600.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/figtree-700.woff2) format('woff2'); }

/* ---------- Tokens ---------- */
:root {
	--gruen: #A4D65E;
	--dunkel: #1D2418;
	--bg: #F6F7F1;
	--weiss: #FFFFFF;
	--akzent: #B79CFF;
	--label: #3F6A12;
	--gedaempft: #56604C;
	--fokus: #7FB236;
	--input-rand: #CFD5C3;
	--input-bg: #FAFBF7;
	--trenner: #E4E8DA;
	--platzhalter: #E6EADC;
	--fehler: #A3341F;
	--hover: #33402A;

	--font-display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
	--font-text: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pad-x: clamp(20px, 5vw, 64px);
	--rahmen: 2.5px solid var(--dunkel);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
html, body { margin: 0; padding: 0; }
body {
	background: var(--bg);
	color: var(--dunkel);
	font-family: var(--font-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: var(--label); }
a:hover { color: var(--dunkel); }
input, textarea, button, select { font-family: inherit; }
:focus-visible { outline: 3px solid var(--dunkel); outline-offset: 3px; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { max-width: 1200px; margin: 0 auto; }
.label {
	font-size: 14px; font-weight: 700; color: var(--label);
	letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- 1. Hero ---------- */
.hero {
	background: var(--gruen);
	padding: 24px var(--pad-x) clamp(56px, 8vw, 100px);
	overflow: hidden;
}
.hero__top {
	display: flex; justify-content: space-between; align-items: center;
	gap: 16px; flex-wrap: wrap;
}
.hero__logo {
	font-family: var(--font-display); font-size: 20px;
	background: var(--dunkel); color: var(--gruen);
	padding: 6px 14px; transform: rotate(-2deg);
}
.btn-dabei {
	font-family: var(--font-display); color: var(--dunkel); text-decoration: none;
	background: var(--akzent); border: var(--rahmen); border-radius: 999px;
	padding: 10px 20px; box-shadow: 4px 4px 0 var(--dunkel);
	transition: transform .15s, box-shadow .15s;
}
.btn-dabei:hover { color: var(--dunkel); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--dunkel); }
.btn-dabei:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--dunkel); }
.hero__inner { padding-top: clamp(48px, 8vw, 96px); position: relative; }
.hero__title {
	margin: 0; font-family: var(--font-display); font-weight: 400;
	font-size: clamp(64px, 12vw, 176px); line-height: .88; letter-spacing: -.03em;
	text-transform: uppercase;
}
.hero__forty {
	display: inline-block; background: var(--dunkel); color: var(--gruen);
	padding: 0 .14em; transform: rotate(-4deg);
}
.hero__subtitle {
	margin: 36px 0 0; font-family: var(--font-display);
	font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; max-width: 20ch;
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.pills li {
	background: var(--bg); border: var(--rahmen); border-radius: 999px;
	padding: 8px 18px; font-weight: 700; font-size: 17px;
}
.countdown { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.countdown__tile {
	background: var(--dunkel); color: var(--bg); padding: 12px 16px; min-width: 92px;
	box-shadow: 4px 4px 0 var(--akzent);
}
.countdown__num {
	display: block; font-family: var(--font-display); font-size: 36px; line-height: 1;
	color: var(--gruen); font-variant-numeric: tabular-nums;
}
.countdown__label { display: block; font-size: 13px; font-weight: 700; margin-top: 6px; }

@media (max-width: 480px) {
	.hero__logo { font-size: 16px; padding: 5px 11px; }
	.btn-dabei { font-size: 15px; padding: 8px 15px; }
	.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
	.countdown__tile { min-width: 0; padding: 10px 8px; }
	.countdown__num { font-size: 26px; }
	.countdown__label { font-size: 11.5px; }
}

/* ---------- 2. Laufband ---------- */
.marquee {
	background: var(--dunkel); color: var(--gruen); font-family: var(--font-display);
	font-size: clamp(18px, 2vw, 24px); white-space: nowrap; overflow: hidden;
	padding: 14px 0; text-transform: uppercase;
}
.marquee__track { display: inline-flex; }
.marquee__group { flex: none; padding-right: .3em; }
@media (prefers-reduced-motion: no-preference) {
	.marquee__track { animation: marquee 30s linear infinite; }
}
@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ---------- 3. Galerie ---------- */
.gallery-section { background: var(--bg); padding: clamp(56px, 7vw, 96px) var(--pad-x); }
.h2-caps {
	margin: 0 0 40px; font-family: var(--font-display); font-weight: 400;
	font-size: clamp(36px, 5vw, 64px); line-height: 1; text-transform: uppercase;
}
.gallery {
	display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2.5vw, 28px);
	margin: 0; padding: 0; list-style: none;
}
.polaroid {
	display: block; width: clamp(150px, 22vw, 250px); background: var(--weiss);
	padding: 10px 10px 30px; border: var(--rahmen); box-shadow: 6px 6px 0 var(--dunkel);
	transform: rotate(var(--rot, 0deg)); cursor: zoom-in; font: inherit; color: inherit;
	transition: transform .2s ease, box-shadow .2s ease;
}
.polaroid:hover { transform: rotate(0deg) translate(-2px, -2px); box-shadow: 8px 8px 0 var(--dunkel); }
.polaroid__img { display: block; aspect-ratio: 1; background: var(--platzhalter); overflow: hidden; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox {
	border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
	width: 100vw; height: 100vh; margin: 0; color: var(--bg);
}
.lightbox::backdrop { background: rgba(29, 36, 24, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; place-items: center; padding: 64px 72px; width: 100%; height: 100%; }
.lightbox__img {
	max-width: 100%; max-height: calc(100vh - 128px); width: auto; height: auto;
	border: var(--rahmen); border-color: var(--weiss); background: var(--weiss);
	box-shadow: 6px 6px 0 var(--gruen);
}
.lightbox__btn {
	position: fixed; width: 52px; height: 52px; border-radius: 999px;
	border: 2.5px solid var(--dunkel); background: var(--gruen); color: var(--dunkel);
	font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
	box-shadow: 4px 4px 0 var(--dunkel);
}
.lightbox__btn:focus-visible { outline-color: var(--gruen); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.lightbox__figure { padding: 76px 12px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
}

/* ---------- 4. Das Fest ---------- */
.fest { padding: clamp(64px, 8vw, 112px) var(--pad-x); }
.fest__grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: clamp(32px, 5vw, 72px);
}
.h2 {
	margin: 0; font-family: var(--font-display); font-weight: 400;
	font-size: clamp(36px, 5vw, 60px); line-height: 1.02;
}
.fest p { margin: 24px 0 0; font-size: 20px; line-height: 1.55; max-width: 34ch; text-wrap: pretty; }
.fest p + p { margin-top: 16px; }
.fest__cards {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 16px; align-content: start;
}
.card {
	background: var(--weiss); border-radius: 20px; padding: 24px;
	border: var(--rahmen); box-shadow: 6px 6px 0 var(--akzent);
}
.card .label { font-size: 15px; }
.card p { margin: 10px 0 0; font-size: 20px; font-weight: 600; line-height: 1.45; max-width: none; }

/* ---------- 5. Ort und Musik ---------- */
.ort { padding: 0 var(--pad-x) clamp(64px, 8vw, 112px); }
.ort__grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px;
}
.ort figure { margin: 0; }
.ort img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; display: block; background: var(--platzhalter); }
.ort figcaption { margin-top: 18px; }
.ort__title {
	margin: 6px 0 0; font-family: var(--font-display); font-weight: 400;
	font-size: clamp(26px, 3vw, 36px); line-height: 1.1;
}
.ort__text { margin: 8px 0 0; font-size: 17px; line-height: 1.5; }

/* ---------- 6. Anmeldung (Rahmen; Formular-Styles im Plugin) ---------- */
.anmeldung { padding: 0 clamp(12px, 3vw, 40px) clamp(64px, 8vw, 112px); scroll-margin-top: 16px; }
.anmeldung__card {
	max-width: 880px; margin: 0 auto; background: var(--weiss); border-radius: 32px;
	padding: clamp(28px, 5vw, 64px);
}
.anmeldung__intro { margin: 16px 0 0; font-size: 19px; line-height: 1.5; max-width: 48ch; }
.anmeldung__intro a { font-weight: 700; white-space: nowrap; }

/* ---------- 7. Footer ---------- */
.site-footer {
	padding: 32px var(--pad-x) 48px; display: flex; flex-direction: column; align-items: center;
	gap: 20px; font-size: 15px; color: var(--gedaempft); text-align: center;
}
.site-footer p { margin: 0; }
.site-footer__contact { display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.site-footer__contact strong { color: var(--dunkel); }
.site-footer a { color: var(--gedaempft); text-decoration: none; }
.site-footer a:hover { color: var(--dunkel); }
.powered { display: flex; align-items: center; gap: 12px; }
.powered span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.powered img { height: 28px; width: auto; display: block; }
.legal { display: flex; gap: 16px; font-size: 13px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-head { background: var(--gruen); padding: 24px var(--pad-x); }
.page-head .hero__logo { text-decoration: none; display: inline-block; }
.page-head .hero__logo:hover { color: var(--gruen); }
.page-main { padding: clamp(48px, 7vw, 88px) var(--pad-x); }
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.6; }
.prose h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin: 0 0 32px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.back-link { display: inline-block; margin-top: 40px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
