/* base.css – Grundlagen: Box-Modell, Typografie, Container, Barrierefreiheit.
   Design-Tokens (--brand-red, --brand-gold, --text, --title-bg, --container)
   werden von functions.php inline vor dieser Datei ausgegeben.
   Breakpoints im Projekt: 1000px, 780px, 566px. */

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

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

body {
	margin: 0;
	color: var(--text);
	background: #fff;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
}

a {
	color: var(--brand-red);
}

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

img {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3 {
	color: #333;
	font-weight: 400;
	line-height: 1.25;
}

h1 {
	font-size: 1.75rem;
}

/* Container: einheitliche Inhaltsbreite.

   Kopf- und Fussbereich stehen absichtlich NICHT in dieser Liste: beide
   ziehen ihre Farbflaeche ueber die ganze Breite und begrenzen den Inhalt
   selbst (header.css, footer.css). */
.site-main,
.widget-area {
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.site-main {
	padding-top: 30px;
	padding-bottom: 40px;
}

/* Sichtbarer Fokus – nicht entfernen. */
:focus-visible {
	outline: 2px solid var(--brand-gold);
	outline-offset: 2px;
}

/* Nur für Screenreader. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

/* Sprunglink: wird bei Tastaturfokus sichtbar. */
.skip-link:focus {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	clip-path: none;
	background: #fff;
	color: var(--brand-red);
	font-size: 1rem;
	text-decoration: none;
}
