:root {
	--bg: #fff8ef;
	--surface: #ffffff;
	--surface-warm: #fdf1e3;
	--ink: #3a3330;
	--muted: #8a7f78;
	--pine: #2f5d4e;
	--pine-dark: #244a3e;
	--red: #c0392b;
	--red-dark: #a5301f;
	--gold: #c8892b;
	--line: #ece0d2;
	--radius: 14px;
	--shadow: 0 6px 20px rgba(90, 60, 30, .08);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Nunito", system-ui, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
}

h1, h2, h3, .brand { font-family: "Comic Neue", "Nunito", cursive; }
h1 { font-size: 2rem; margin: .2em 0 .5em; color: var(--pine-dark); }
h2 { color: var(--pine); }
a { color: var(--red); }

.container { width: min(1040px, 92vw); margin-inline: auto; }
main.container { padding: 2rem 0 3rem; }

/* Header / nav */
.site-header { background: var(--pine); color: #fff8ef; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 20; }
.nav-inner { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff8ef; text-decoration: none; font-size: 1.15rem; font-weight: 700; line-height: 1.05; }
.brand-mark { width: 44px; height: 44px; object-fit: contain; }
.nav-links { margin-left: auto; display: flex; gap: .3rem; flex-wrap: wrap; }
.nav-links a { color: #fff8ef; text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-weight: 600; }
.nav-links a:hover { background: rgba(255,255,255,.12); }
.nav-links a.active { background: var(--red); }
.nav-toggle, .nav-burger { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
.hero-img { width: 100%; max-width: 320px; justify-self: center; }
.lead { font-size: 1.15rem; color: var(--ink); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }

/* Buttons */
.btn { display: inline-block; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; border: 2px solid var(--pine); color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }
.btn-link { background: none; border: none; color: var(--red); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.btn-link.danger { color: var(--red-dark); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.two-col .card { margin-bottom: 0; }
.muted { color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--pine); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.fact-card { background: var(--surface-warm); border-radius: var(--radius); padding: 1.1rem; text-align: center; }
.fact-value { display: block; font-size: 1.35rem; font-weight: 800; color: var(--red); font-family: "Comic Neue", cursive; }
.fact-label { color: var(--muted); font-size: .9rem; }

/* Pack lists */
.steps { padding-left: 1.2rem; }
.steps li { margin: .4rem 0; }
.list-ok ul li::marker { content: "✓ "; color: var(--pine); }
.list-no ul li::marker { content: "✗ "; color: var(--red); }
.list-ok ul, .list-no ul { list-style: none; padding-left: 1.2rem; }
.list-ok li, .list-no li { margin: .35rem 0; }

/* Annahmestellen */
.stellen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.stelle h2 { margin-top: 0; }
.stelle-addr { font-size: 1.05rem; }
.stelle-note { background: var(--surface-warm); border-radius: 10px; padding: .6rem .8rem; font-size: .95rem; }

/* Statistics */
.year-picker { display: flex; align-items: center; gap: .6rem; margin: 1.5rem 0; }
.year-picker select { padding: .4rem .8rem; border-radius: 8px; border: 1px solid var(--line); font: inherit; }

/* Journey */
.journey { list-style: none; padding: 0; margin: 1.5rem 0; position: relative; }
.journey::before { content: ""; position: absolute; left: 1.2rem; top: 1.4rem; bottom: 1.4rem; width: 3px; background: var(--line); border-radius: 3px; }
.journey-step { position: relative; display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); margin-bottom: 1.1rem; }
.journey-step h2 { margin: .1rem 0 .4rem; }
.journey-step > div { flex: 1; }
.journey-step p { margin: 0; }
.journey-num { flex: 0 0 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--red); color: #fff; font-family: "Comic Neue", cursive; font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg); z-index: 1; }
.tasklist { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .5rem; }
.tasklist li { position: relative; padding: .5rem .8rem .5rem 1.9rem; background: var(--surface-warm); border-radius: 10px; }
.tasklist li::before { content: "✓"; position: absolute; left: .7rem; top: .5rem; color: var(--pine); font-weight: 800; }
.teaser { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; background: var(--surface-warm); }
.teaser h2 { margin-top: 0; }

/* Support / tasks */
.task-list { display: grid; gap: 1.2rem; }
.task-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.task-head h2 { margin: 0; }
.task-meta { color: var(--ink); margin: .3rem 0 .6rem; }
.badge { display: inline-block; background: var(--pine); color: #fff; border-radius: 999px; padding: .15rem .7rem; font-size: .82rem; font-weight: 700; }
.badge-full { background: var(--muted); }
.banner-ok { background: #e7f4ec; border: 1px solid #b6ddc4; color: var(--pine-dark); border-radius: var(--radius); padding: .8rem 1.1rem; font-weight: 600; }
.signup { margin-top: .6rem; }
.signup summary { cursor: pointer; font-weight: 700; color: var(--red); width: max-content; }
.signup .form { margin-top: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.site-footer { background: var(--pine-dark); color: #e8ddcf; padding: 1.5rem 0; margin-top: 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: #ffd9b0; text-decoration: none; }

/* Admin */
.admin-bar { background: var(--surface-warm); border-bottom: 1px solid var(--line); }
.admin-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.admin-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-links a { color: var(--pine-dark); text-decoration: none; font-weight: 600; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tile:hover { border-color: var(--pine); }
.tile-value { display: block; font-size: 2rem; font-weight: 800; color: var(--red); font-family: "Comic Neue", cursive; }
.tile-label { color: var(--muted); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--surface-warm); color: var(--pine-dark); font-size: .9rem; }
.row-actions { display: flex; gap: .8rem; align-items: center; }
.inline { display: inline; }

/* Forms */
.form label, .form-row label { display: block; font-weight: 600; margin-bottom: .8rem; }
.form input, .form textarea, .form select, .pw-form input { width: 100%; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-top: .2rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row label { flex: 1; min-width: 160px; }
.form-row label.narrow { flex: 0 0 120px; }
.form-row label.check { flex: 1; display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.form-row label.check input { width: auto; margin: 0; }
.form-actions { display: flex; gap: .8rem; margin-top: 1rem; }
.inline-form { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.inline-form label { margin: 0; }
.pw-form { display: flex; gap: .4rem; align-items: center; }
.pw-form input { width: auto; }
.auth-box { max-width: 380px; margin: 3rem auto; }
.auth-box label { display: block; margin-bottom: 1rem; font-weight: 600; }
.auth-box input { width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-top: .3rem; }
.alert { background: #fdecea; color: var(--red-dark); border: 1px solid #f5c6c0; border-radius: 8px; padding: .6rem .9rem; }

/* Stat grid */
.grid-scroll { overflow-x: auto; }
.data-table.grid input { width: 68px; padding: .35rem; }
.data-table.grid td, .data-table.grid th { text-align: center; white-space: nowrap; }
.sticky-col { position: sticky; left: 0; background: var(--surface); text-align: left !important; z-index: 1; }
.data-table.grid th.sticky-col { background: var(--surface-warm); }

@media (max-width: 760px) {
	.hero, .two-col, .facts { grid-template-columns: 1fr; }
	.nav-burger { display: block; margin-left: auto; font-size: 1.6rem; color: #fff8ef; cursor: pointer; }
	.nav-links { flex-basis: 100%; flex-direction: column; display: none; }
	.nav-toggle:checked ~ .nav-links { display: flex; }
}
