/*
Theme Name: Alba Wunschliste
Description: Schlichtes Onepager-Theme für die Wunschliste – Weiß, Schwarz, Salbei. Gehört zum Plugin „Alba Wunschliste“.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Tim
License: GPL-2.0-or-later
Text Domain: alba-wunschliste-theme
*/

:root {
	--ink: #1c1c1a;
	--muted: #6d6d67;
	--line: #e9e8e3;
	--soft: #f7f7f4;
	--sage: #a7bca2;
	--sage-soft: #edf2ea;
	--sage-ink: #46613f;
	--rose: #f8e7e4;
	--sky: #e5eef6;
	--sand: #f5eedf;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sage-ink); }

.skip-link {
	position: absolute; left: -9999px; top: 0; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 100000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Kopf ---------- */
.site-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(3rem, 9vw, 5.5rem) 1.25rem clamp(2rem, 6vw, 3rem);
	text-align: center;
}
.site-hero::before,
.site-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	z-index: -1;
}
.site-hero::before {
	width: 340px; height: 340px; top: -170px; left: calc(50% - 330px);
	background: var(--sage-soft);
}
.site-hero::after {
	width: 220px; height: 220px; top: -60px; left: calc(50% + 120px);
	background: var(--rose);
	opacity: .8;
}
.hero-eyebrow {
	display: inline-block;
	margin: 0 0 1rem;
	padding: .3rem .85rem;
	border: 1px solid var(--ink);
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 650;
	letter-spacing: .14em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, .7);
}
.hero-title {
	margin: 0 auto;
	max-width: 14ch;
	font-size: clamp(2.2rem, 7vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1.05;
}
.hero-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1.4rem; }
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hero-dots span:nth-child(1) { background: var(--sage); }
.hero-dots span:nth-child(2) { background: #ecc9c3; }
.hero-dots span:nth-child(3) { background: #bcd1e4; }
.hero-dots span:nth-child(4) { background: #e5d4b0; }

/* ---------- Inhalt ---------- */
.site-main {
	max-width: 680px;
	margin: 0 auto;
	padding: 0 1.25rem 4rem;
}
.entry-content > * { margin-top: 0; margin-bottom: 1.1rem; }
.entry-content p.lead { font-size: 1.2rem; font-weight: 600; margin-bottom: .6rem; }
.entry-content h2 { font-size: 1.15rem; font-weight: 650; margin: 2rem 0 .75rem; letter-spacing: -.01em; }

.entry-content ol.howto {
	list-style: none; counter-reset: step; padding: 1.25rem 1.25rem 1.25rem 1.25rem; margin: 0 0 1.25rem;
	background: var(--soft); border-radius: 16px;
}
.entry-content ol.howto li { counter-increment: step; position: relative; padding-left: 2.5rem; min-height: 1.75rem; }
.entry-content ol.howto li + li { margin-top: .7rem; }
.entry-content ol.howto li::before {
	content: counter(step);
	position: absolute; left: 0; top: .05rem;
	width: 1.75rem; height: 1.75rem; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--sage-soft); color: var(--sage-ink);
	font-size: .85rem; font-weight: 700;
}
.entry-content p.signature { margin-top: 1.5rem; font-weight: 600; line-height: 1.5; }

/* ---------- Passwortformular ---------- */
.pass-card {
	max-width: 420px; margin: 0 auto; padding: 2rem 1.5rem;
	border: 1px solid var(--line); border-radius: 22px; text-align: center; background: #fff;
	box-shadow: 0 10px 40px rgba(28, 28, 26, .06);
}
.pass-icon {
	display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem;
	border-radius: 50%; background: var(--sage-soft); color: var(--sage-ink);
}
.pass-card h2 { margin: 0 0 .4rem; font-size: 1.3rem; font-weight: 650; }
.pass-card p { margin: 0 0 1.25rem; color: var(--muted); font-size: .95rem; }
.pass-card label { display: block; text-align: left; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.pass-row { display: flex; flex-direction: column; gap: .6rem; }
.pass-row input {
	width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
	font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff;
}
.pass-row input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--soft); }
.pass-row button {
	min-height: 50px; border: 0; border-radius: 12px; background: var(--ink); color: #fff;
	font: inherit; font-weight: 600; cursor: pointer;
}
.pass-row button:hover { background: #000; }
.pass-row button:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.pass-error {
	margin: 0 0 1rem !important; padding: .6rem .8rem; border-radius: 10px;
	background: #fbeae7; color: #a3372b !important; font-weight: 600; font-size: .9rem;
}

/* ---------- Fuß ---------- */
.site-footer {
	max-width: 680px; margin: 0 auto; padding: 2rem 1.25rem 3rem;
	border-top: 1px solid var(--line);
	text-align: center; color: var(--muted); font-size: .85rem;
}
.site-footer .heart { color: #d99a90; }

@media (min-width: 720px) {
	body { font-size: 18px; }
	.pass-row { flex-direction: row; }
	.pass-row button { padding: 0 1.4rem; white-space: nowrap; }
}
