/* Grundlagen: Reset, Typografie, Layoutklassen.
 *
 * Stand 14.08.2026, Redesign-Handoff. Marcellus traegt alle
 * Ueberschriften und Preise, Karla den Rest.
 */

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

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--cream);
	font-family: var(--font-text);
	font-weight: 300;
	font-size: var(--t-text);
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Ueberschriften ---------------------------------------------------------
 *
 * Marcellus hat nur einen Schnitt (400). Groesse und Laufweite tragen die
 * Hierarchie, nicht das Gewicht.
 */

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	color: var(--cream-hell);
	font-family: var(--font-kopf);
	font-weight: 400;
	line-height: 1.12;
	text-wrap: balance;
}

h1 {
	font-size: var(--t-hero);
	line-height: 1.02;
	letter-spacing: -.01em;
}

h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

p {
	margin: 0 0 1.1em;
	text-wrap: pretty;
}

p:last-child { margin-bottom: 0; }

a {
	color: var(--gold);
	text-decoration: none;
	transition: color var(--dauer) var(--kurve);
}

a:hover { color: var(--gold-hover); }

/* Fliesstext-Links sollen als Links erkennbar bleiben. */
.fliesstext a,
.kapitel__text a { text-decoration: underline; text-underline-offset: .18em; }

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: var(--gold);
	color: var(--wine);
}

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

/* Layout ----------------------------------------------------------------- */

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--rand);
}

.wrap-eng { max-width: 760px; }

.sektion { padding-block: var(--sektion); }

.sektion-abgesetzt {
	background: var(--ink);
	border-top: 1px solid var(--linie);
}

.sektion-wein {
	background: var(--wine);
}

/* Kleinteile ------------------------------------------------------------- */

.lead {
	font-size: var(--t-lead);
	line-height: 1.65;
	color: var(--cream-82);
}

.eyebrow {
	display: block;
	margin-bottom: 1rem;
	color: var(--gold);
	font-family: var(--font-text);
	font-size: var(--t-eyebrow);
	font-weight: 400;
	letter-spacing: var(--sperr-eyebrow);
	text-transform: uppercase;
}

.geo {
	font-family: var(--font-geo);
	font-weight: 400;
}

/* Nur fuer Screenreader. */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
}

.skip-link:focus {
	left: var(--rand);
	top: .75rem;
	padding: .75rem 1.25rem;
	background: var(--gold);
	color: var(--auf-gold);
	border-radius: var(--radius-sm);
	font-weight: 500;
}

/* Offene Kundenangabe in einem Seitentext. Nur ausserhalb der Produktion
 * sichtbar, siehe inc/luecken.php. */
.luecke {
	padding: .1rem .4rem;
	background: #3A1D06;
	color: #FFD9A0;
	border-radius: 3px;
	font-size: .85em;
}

/* Fliesstext in Seiten (Impressum, Datenschutz) */
.fliesstext { max-width: 68ch; }

.fliesstext h2 {
	margin-top: 2.4rem;
	font-size: 26px;
}

.fliesstext h2:first-child { margin-top: 0; }

/* Entwicklungsband. Faellt in der Produktion ersatzlos weg. */
.dev-band {
	position: relative;
	z-index: 40;
	padding: .5rem var(--rand);
	background: #3A1D06;
	color: #FFD9A0;
	font-size: var(--t-mini);
	text-align: center;
}

/* Der Kopf liegt absolut am Seitenanfang. Steht davor das
 * Entwicklungsband, muss er darunter rutschen, sonst ueberdecken sie
 * sich. Betrifft nur die Dev-Instanz, live gibt es das Band nicht. */
.dev-band ~ .kopf { top: 41px; }
