/* volksabstimmung.at – site styles (no framework, mobile first) */

:root {
	--brand: #1f33d6;
	--brand-600: #1a2bb5;
	--brand-800: #0f1a73;
	--brand-50: #eef1ff;
	--ink: #141a33;
	--ink-soft: #4a5170;
	--line: #e3e6f0;
	--bg: #ffffff;
	--bg-tint: #f5f7fc;
	--ok: #137a4b;
	--ok-bg: #e7f6ee;
	--err: #b42318;
	--err-bg: #fdecea;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(20, 26, 51, .06), 0 8px 24px rgba(20, 26, 51, .06);
	--header-h: 68px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 8px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
	hyphens: auto;
	-webkit-hyphens: auto;
}

h1, .btn, .brand, .main-nav, .mono { hyphens: manual; -webkit-hyphens: manual; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
:focus-visible { outline: 3px solid #8fa0ff; outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.icon {
	width: 1.25em; height: 1.25em; flex: none;
	fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.muted { color: var(--ink-soft); }
.mono { font-family: var(--mono); font-size: .95em; letter-spacing: .02em; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1.1em; font-size: .95rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(31, 51, 214, .25); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-800); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.88);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20,26,51,.06); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em;
}
.brand img { width: 46px; height: 34px; object-fit: cover; object-position: 50% 8%; }
.brand-tld { color: var(--brand); }

.nav-toggle {
	display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
	width: 44px; height: 44px; padding: 10px; margin-right: -10px;
	background: none; border: 0; cursor: pointer; border-radius: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
	display: block; color: var(--ink); text-decoration: none; font-weight: 550;
	padding: .6em .2em; border-radius: 8px;
}
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--brand); }

/* Mobile menu */
@media (max-width: 959.98px) {
	.main-nav {
		position: absolute; left: 0; right: 0; top: var(--header-h);
		background: #fff; border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 32px rgba(20,26,51,.1);
		padding: 8px 20px 20px;
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility 0s .2s;
	}
	.main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
	.main-nav li + li { border-top: 1px solid var(--line); }
	.main-nav a:not(.btn) { padding: .9em 0; font-size: 1.05rem; }
	.main-nav .nav-cta { border-top: 0; padding-top: 12px; }
	.main-nav .nav-cta .btn { width: 100%; padding: .9em; }
}

@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.main-nav ul { display: flex; align-items: center; gap: 22px; }
	.main-nav .nav-cta { margin-left: 6px; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: calc(100svh - var(--header-h));
	display: flex; align-items: center;
	padding: 72px 0 96px;
	color: #fff;
	background:
		linear-gradient(125deg, rgba(10, 18, 90, .94) 0%, rgba(31, 51, 214, .86) 55%, rgba(66, 92, 255, .78) 100%),
		url("../img/home-slide-1.jpg") center / cover no-repeat;
}
.hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1;
	background: linear-gradient(to bottom, transparent, rgba(10,18,90,.35));
}
.hero-inner { max-width: 1160px; }
.hero h1 {
	font-size: clamp(2.4rem, 1.3rem + 5.2vw, 5rem);
	font-weight: 850; letter-spacing: -0.035em; line-height: 1.04;
	margin: 0 0 .45em;
}
.hero h1 span { color: #c9d2ff; }
.hero .lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); max-width: 46ch; color: rgba(255,255,255,.88); margin-bottom: 2em; }
.hero .eyebrow { color: #c9d2ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479.98px) { .hero-actions .btn { width: 100%; } }

.scroll-hint {
	position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	color: #fff; border: 1px solid rgba(255,255,255,.4);
	animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: #fff; background: rgba(255,255,255,.1); }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }

.eyebrow {
	display: inline-block; margin: 0 0 .9em;
	font-size: .8rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
	color: var(--brand);
}

.split { display: grid; gap: 28px; }
@media (min-width: 900px) {
	.split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
	.split-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.split-head .btn { margin-top: 12px; }

.prose { font-size: 1.1rem; color: #2b3150; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; box-shadow: var(--shadow);
	transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,26,51,.06), 0 18px 40px rgba(20,26,51,.1); }
.card p { color: var(--ink-soft); margin: 0; }
.card-icon {
	display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
	border-radius: 14px; background: var(--brand-50); color: var(--brand);
}
.card-icon .icon { width: 26px; height: 26px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
	position: relative; counter-increment: step;
	padding: 0 0 32px 64px;
}
.steps li::before {
	content: counter(step);
	position: absolute; left: 0; top: -4px;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--brand); color: #fff; font-weight: 800;
}
.steps li:not(:last-child)::after {
	content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 2px; background: var(--line);
}
.steps p { color: var(--ink-soft); margin: 0; }
.footnote { font-size: .92rem; color: var(--ink-soft); margin: 0 0 0 64px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
.contact-grid > *, .contact-info > *, .split > *, .cards > *, .info-list li > *, .bank dd > * { min-width: 0; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; } }

.contact-form {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); margin-top: 8px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	padding: .8em .95em; border: 1.5px solid #cfd4e4; border-radius: var(--radius-sm);
	background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus {
	outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31,51,214,.14);
}
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.field-error { color: var(--err); font-size: .88rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.contact-form .btn { width: 100%; }
@media (min-width: 560px) { .contact-form .btn { width: auto; } }

.form-status {
	margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 550;
}
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); }
.form-status.is-err { background: var(--err-bg); color: var(--err); }

.contact-info { display: grid; gap: 20px; }
.info-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; box-shadow: var(--shadow);
}
.info-card h3 { margin-bottom: .35em; }
.info-card-accent { background: linear-gradient(140deg, var(--brand-800), var(--brand)); color: #fff; border: 0; }
.info-card-accent p { color: rgba(255,255,255,.86); }

.info-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .icon { color: var(--brand); margin-top: .2em; }
.info-list a { overflow-wrap: anywhere; }

.bank { margin: 20px 0 0; display: grid; gap: 14px; }
.bank dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); margin-bottom: 2px; }
.bank dd { margin: 0; font-weight: 650; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bank > div { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); }
.copy-btn {
	font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer;
	padding: .3em .8em; border-radius: 999px;
	color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
}
.copy-btn:hover { background: rgba(255,255,255,.24); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 36px 0; font-size: .95rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .muted { color: rgba(255,255,255,.5); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.footer-inner nav { display: flex; gap: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
