/*
Theme Name: Brieh to go
Theme URI: https://briehtogo.de
Author: Freiwillige Feuerwehr Freigericht Neuses e.V.
Description: Onepager für das Suppen-Event "Brieh to go" mit Vorbestellung. Design angelehnt an freiwillige-feuerwehr-neuses.de.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: briehtogo
*/

@font-face {
	font-family: "Manrope";
	src: url("assets/Manrope-Variable.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

:root {
	--rot: #C4161C;
	--rot-dunkel: #8F0F14;
	--rosa: #FBE9EA;
	--text: #1D1D1F;
	--weiss: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
	margin: 0;
	font: 18px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--text);
	background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot-dunkel); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2rem); }
h3 { font-size: 1.2rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--weiss); padding: .5rem 1rem; z-index: 99; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 10; background: var(--weiss); border-bottom: 1px solid var(--rosa); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--text); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.top nav { display: flex; gap: 1.2rem; font-weight: 600; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* Buttons */
.btn, button.btn {
	display: inline-block; background: var(--rot); color: var(--weiss); border: 0; cursor: pointer;
	font: inherit; font-weight: 700; padding: .8rem 1.6rem; border-radius: 8px; text-decoration: none;
}
.btn:hover { background: var(--rot-dunkel); }
.btn:focus-visible, input:focus-visible, label:focus-within { outline: 3px solid var(--text); outline-offset: 2px; }

/* Abschnitte */
section { padding: 3.5rem 0; }
.rosa { background: var(--rosa); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: .85rem; color: var(--rot); margin: 0 0 .5rem; }

.hero .wrap { display: grid; gap: 2rem; align-items: center; }
.hero img { border-radius: 8px; width: 100%; }
.hero .claim { font-size: 1.25rem; }
.termin { background: var(--rosa); border-left: 6px solid var(--rot); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }
.termin strong { display: block; font-size: 1.3rem; }

.karten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.5rem; }
.karte { background: var(--weiss); border-radius: 8px; padding: 1.25rem; border-top: 4px solid var(--rot); }
.karte p { margin: 0; }
.preis { font-weight: 800; color: var(--rot-dunkel); }

/* Formular */
.bestellform { display: grid; gap: 1rem; max-width: 560px; }
.bestellform label { display: grid; gap: .3rem; font-weight: 600; }
.bestellform input[type=text], .bestellform input[type=tel], .bestellform input[type=email], .bestellform input[type=number] {
	font: inherit; padding: .6rem .8rem; border: 2px solid #c9c9cc; border-radius: 8px; width: 100%;
}
.mengen { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.bestellform .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.meldung { padding: 1rem 1.25rem; border-radius: 8px; font-weight: 600; margin-bottom: 1rem; max-width: 560px; }
.meldung.ok { background: #e3f4e5; border: 2px solid #2e7d32; }
.meldung.fehler { background: #fff; border: 2px solid var(--rot); }

/* Fuß */
.foot { background: var(--text); color: var(--weiss); padding: 2rem 0; font-size: .95rem; }
.foot a { color: var(--weiss); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

/* Textseiten */
.text { max-width: 760px; padding: 3rem 0; }
.text h2 { margin-top: 2rem; font-size: 1.4rem; }

@media (min-width: 800px) {
	.hero .wrap { grid-template-columns: 1.1fr 1fr; }
}
@media (max-width: 560px) {
	.top nav a:first-child { display: none; }
	.mengen { grid-template-columns: 1fr; }
}
