/*
Theme Name: Infoeasy Facile
Theme URI: https://www.infoeasy-facile.ch
Author: AS Sprachbüro
Description: Schlankes, barrierefreies Custom Theme für infoeasy facile — Nachrichten in einfacher Sprache auf Französisch und Italienisch. Gebaut nach dem #LeichtOnline-Leitfaden und WCAG 2.2. Kein Page Builder, keine Frameworks.
Version: 0.2.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: infoeasy-facile
*/

/* ==========================================================================
   Design-Tokens (ausgelesen aus infoeasy-news.ch)
   ========================================================================== */
:root {
	--ie-accent: #e6007e;        /* infoeasy-Magenta (Hover, Akzente) */
	--ie-accent-dark: #a31366;   /* dunkleres Magenta — 7.4:1 auf Weiss, für Link-Text */
	--ie-text: #212934;
	--ie-text-soft: #434c50;
	--ie-bg: #e2e2e2;
	--ie-surface: #ffffff;
	--ie-border: #d9d9d9;
	--ie-footer-bg: #26303e;
	--ie-focus: #072c5e;
	--ie-font: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;
	/* Basis-Schriftgrösse — der Schriftgrössen-Schalter erhöht diesen Wert */
	--ie-textsize: 1.125rem;
	--ie-measure: 42rem; /* max. Zeilenbreite für gute Lesbarkeit */
}

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

body {
	margin: 0;
	background: var(--ie-bg);
	color: var(--ie-text);
	font-family: var(--ie-font);
	font-size: var(--ie-textsize);
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 {
	line-height: 1.3;
	overflow-wrap: break-word;
}

h1 {
	font-size: 2.5rem;
	font-weight: 900;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

a {
	color: var(--ie-accent-dark);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--ie-accent);
}

/* Sichtbarer Fokus für Tastatur-Bedienung (WCAG 2.4.7 / 2.4.13) */
:focus-visible {
	outline: 3px solid var(--ie-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

.wrap {
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

/* Nur für Screenreader sichtbar */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Sprung-Link: erster Tab-Stopp, sichtbar bei Fokus */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--ie-surface);
	color: var(--ie-text);
	font-weight: 700;
}

.skip-link:focus {
	left: 0.5rem;
	top: 0.5rem;
}

/* ==========================================================================
   Sprach-Toggle (Toggle-Switch im Header, rechts)
   ========================================================================== */
.lang-toggle-nav {
	flex-shrink: 0;
}

.lang-toggle {
	display: inline-flex;
	align-items: center;
	background: var(--ie-bg);
	border-radius: 99px;
	padding: 3px;
	gap: 2px;
	border: 2px solid var(--ie-border);
}

.lang-opt {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.875rem;
	border-radius: 99px;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--ie-text-soft);
	transition: background 0.15s, color 0.15s;
	min-height: 36px;
	white-space: nowrap;
}

.lang-opt:hover:not(.lang-opt--active) {
	background: var(--ie-border);
	color: var(--ie-text);
}

.lang-opt--active {
	background: var(--ie-accent);
	color: #fff;
}

.lang-opt--active:hover {
	background: var(--ie-accent-dark);
	color: #fff;
}

.lang-flag {
	font-size: 1.15rem;
	line-height: 1;
}

.lang-label {
	letter-spacing: 0.01em;
}

/* ==========================================================================
   Kopfzeile — sticky damit Toggle immer sichtbar bleibt
   ========================================================================== */
.site-header {
	background: var(--ie-surface);
	border-bottom: 4px solid var(--ie-accent);
	position: sticky;
	top: 0;
	z-index: 200;
}

/* Logo links über beide Zeilen, rechts daneben Toggle-Zeile + Menü-Zeile */
.header-grid {
	--logo-size: 96px;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 1.25rem;
	row-gap: 0.625rem;
	align-items: center;
	padding-block: 0.875rem;
	transition: padding 0.25s ease;
}

.site-logo {
	grid-row: 1 / 3;
	align-self: end;
	display: block;
	line-height: 0;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(29, 29, 27, 0.12), 0 4px 12px rgba(29, 29, 27, 0.12);
	transition: box-shadow 0.2s ease;
}

.site-logo img {
	display: block;
	width: var(--logo-size);
	height: auto;
	border-radius: 12px;
	transition: width 0.25s ease;
}

.site-logo:hover {
	box-shadow: 0 2px 4px rgba(29, 29, 27, 0.14), 0 8px 20px rgba(230, 0, 126, 0.22);
}

.site-logo:focus-visible {
	outline-offset: 4px;
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

.header-bottom {
	align-self: end;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.625rem 1.5rem;
	min-width: 0;
}

/* Beim Scrollen: kompakter Header */
.is-scrolled .header-grid {
	--logo-size: 56px;
	padding-block: 0.5rem;
	row-gap: 0.375rem;
}

.site-branding a {
	display: inline-block;
	color: var(--ie-text);
	font-size: 1.6rem;
	font-weight: 900;
	text-decoration: none;
}

.site-branding a:hover {
	color: var(--ie-accent-dark);
}

.custom-logo {
	display: block;
	max-height: 64px;
	width: auto;
}

/* Hauptmenü: farbiger Balken nach LeichtOnline */
.site-nav {
	background: var(--ie-accent);
	border-radius: 8px;
	padding: 0.25rem 0.5rem;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	display: inline-block;
	padding: 0.5rem 0.875rem;
	border-radius: 6px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s;
}

.site-nav a:hover {
	background: rgba(0, 0, 0, 0.18);
	color: #fff;
}

.menu-home a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.menu-home__icon {
	flex-shrink: 0;
}

/* Aktuelle Seite im Menü markieren */
.site-nav a[aria-current='page'] {
	background: rgba(0, 0, 0, 0.25);
}

/* Suche: beschriftetes Feld + Lupe (Leitfaden) */
.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form input[type='search'] {
	width: 11rem;
	padding: 0.5rem 0.75rem;
	border: 2px solid var(--ie-border);
	border-radius: 6px;
	font: inherit;
	color: var(--ie-text);
}

.search-form input[type='search']:focus {
	border-color: var(--ie-focus);
}

.search-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border: 2px solid var(--ie-border);
	border-radius: 6px;
	background: var(--ie-surface);
	color: var(--ie-text);
	cursor: pointer;
}

.search-form button:hover {
	border-color: var(--ie-accent);
	color: var(--ie-accent);
}

/* ==========================================================================
   Inhalt
   ========================================================================== */
.site-main {
	padding-block: 2rem 3rem;
	overflow-x: clip;
}

.page-title {
	margin: 0 0 1.5rem;
}

/* Kachel-Übersicht (Leitfaden: nicht zu dicht packen) */
.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tile {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #f3f4f6;
	border-radius: 8px;
}

.tile:hover {
	background: #eaecef;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tile-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.tile-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.25rem 1.25rem;
}

.tile-title {
	margin: 0;
	font-size: 1.3rem;
}

.tile-title a {
	color: var(--ie-text);
	text-decoration: none;
}

.tile-title a:hover {
	color: var(--ie-accent-dark);
	text-decoration: underline;
	text-decoration-color: var(--ie-accent);
	text-decoration-thickness: 3px;
}

.tile-lead {
	margin: 0;
	color: var(--ie-text-soft);
}

.tile-meta {
	margin-top: auto;
	color: var(--ie-text-soft);
	font-size: 0.95rem;
}

/* Seiten-Nummerierung */
.pagination {
	margin-top: 2rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pagination a,
.pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.25rem 0.75rem;
	border: 2px solid var(--ie-border);
	border-radius: 6px;
	background: var(--ie-surface);
	font-weight: 700;
	text-decoration: none;
}

.pagination .current {
	border-color: var(--ie-accent);
	background: var(--ie-accent);
	color: #fff;
}

/* ==========================================================================
   Artikel + Seiten
   ========================================================================== */
.article-card {
	max-width: var(--ie-measure);
	margin-inline: auto;
	background: var(--ie-surface);
	border-radius: 10px;
	padding: clamp(1.25rem, 4vw, 2.5rem);
}

.entry-title {
	margin-top: 0;
}

.entry-meta {
	color: var(--ie-text-soft);
	margin-bottom: 1.5rem;
}

.entry-image {
	margin: 0 0 1.5rem;
}

.entry-image img {
	border-radius: 8px;
}

.entry-image figcaption {
	margin-top: 0.5rem;
	color: var(--ie-text-soft);
	font-size: 0.95rem;
}

.entry-lead {
	font-size: 1.15em;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.entry-content h2 {
	font-size: 1.5rem;
	margin-top: 2rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	max-width: var(--ie-measure);
}

.back-link {
	display: inline-block;
	margin-top: 2rem;
	font-weight: 700;
}

/* ==========================================================================
   Statische Seiten (Aufbau wie infoeasy-news.ch)
   ========================================================================== */
.page-band {
	margin: -2rem calc(50% - 50vw) 0;
	background: var(--ie-accent);
	color: #fff;
}

.page-band__title {
	margin: 0;
	padding-block: 1.1rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

/* Weisse Fläche über die ganze Breite, Text bündig mit Logo und Menü */
.page-sheet {
	display: flow-root;
	margin-inline: calc(50% - 50vw);
	padding: 2.25rem max(1rem, calc(50vw - 35rem)) 3.75rem;
	background: var(--ie-surface);
}

.site-main:has(.page-sheet) {
	padding-bottom: 0;
}

body:has(.page-sheet) .site-footer {
	margin-top: 0;
}

.page-sheet .entry-content {
	max-width: 52rem;
}

.page-sheet .entry-content p,
.page-sheet .entry-content li {
	font-size: 1.35rem;
	line-height: 2;
}

.page-sheet .entry-content p {
	margin: 0 0 1.25rem;
}

.page-sheet .entry-content h2 {
	margin: 2.5rem 0 1.25rem;
	color: var(--ie-accent);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.4;
}

.page-sheet .entry-content > h2:first-child {
	margin-top: 1.5rem;
	font-size: 2.5rem;
}

.page-sheet .entry-content h3 {
	margin: 2.5rem 0 1.25rem;
	font-size: 1.6rem;
	font-weight: 900;
}

.team-member {
	margin: 0 0 2.5rem;
	max-width: 375px;
}

.team-member img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.team-member figcaption {
	margin-top: 0.75rem;
	font-size: 1.35rem;
	line-height: 1.6;
}

/* Kontaktformular (Contact Form 7), Aufbau wie infoeasy-news.ch */
.page-sheet .wpcf7 {
	max-width: 60rem;
}

.page-sheet .wpcf7 label,
.page-sheet .wpcf7 legend {
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.6;
}

.page-sheet .wpcf7 p {
	max-width: none;
}

.page-sheet .wpcf7 p > label,
.page-sheet .wpcf7 p .wpcf7-form-control-wrap {
	display: block;
}

.ie-f-radio {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
}

.ie-f-radio legend {
	float: left;
	margin-right: 0.5rem;
	padding: 0;
}

.ie-f-radio .wpcf7-list-item {
	margin: 0 1.25rem 0 0;
}

.ie-f-radio .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	cursor: pointer;
}

.ie-f-radio input[type='radio'] {
	width: 1.35rem;
	height: 1.35rem;
	margin: 0;
	accent-color: var(--ie-accent);
}

.ie-f-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1.5rem;
}

.page-sheet .wpcf7 input[type='text'],
.page-sheet .wpcf7 input[type='email'],
.page-sheet .wpcf7 input[type='tel'],
.page-sheet .wpcf7 textarea {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.625rem 0.875rem;
	border: 2px solid #c8c8c8;
	border-radius: 3px;
	background: #fff;
	color: var(--ie-text);
	font: inherit;
	font-size: 1.15rem;
}

.page-sheet .wpcf7 input:not([type='submit']):not([type='radio']) {
	min-height: 48px;
}

.page-sheet .wpcf7 textarea {
	height: 10rem;
	resize: vertical;
}

.page-sheet .wpcf7 input:focus,
.page-sheet .wpcf7 textarea:focus {
	border-color: var(--ie-focus);
}

.page-sheet .wpcf7 input[type='submit'] {
	min-height: 48px;
	padding: 0.8rem 1.8rem;
	border: 0;
	border-radius: 0;
	background: #000;
	color: #d3d800;
	font: inherit;
	font-size: 1.15rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.page-sheet .wpcf7 input[type='submit']:hover {
	background: var(--ie-accent);
	color: #fff;
}

.ie-f-note {
	font-size: 1.1rem !important;
}

.page-sheet .wpcf7-not-valid {
	border-color: #c00 !important;
}

.page-sheet .wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	color: #b00;
	font-size: 1.1rem;
	font-weight: 700;
}

.page-sheet .wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem 1.25rem;
	border-width: 3px;
	font-size: 1.2rem;
	font-weight: 700;
}

.page-sheet .entry-content ul {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}

/* ==========================================================================
   Willkommenstext Startseite
   ========================================================================== */
.welcome-text {
	margin-bottom: 2.5rem;
}

.welcome-text h1 {
	font-size: 2.5rem;
	font-weight: 900;
	margin: 0 0 1rem;
	line-height: 1.2;
}

.welcome-text p {
	font-size: 1.2rem;
	margin: 0 0 0.5rem;
	max-width: var(--ie-measure);
}

.welcome-text a {
	color: var(--ie-accent-dark);
}

.welcome-text a:hover {
	color: var(--ie-accent);
}

/* ==========================================================================
   Grosse Navigationskacheln (LeichtOnline-Stil)
   ========================================================================== */
.nav-cards-section {
	margin-bottom: 2.5rem;
}

.nav-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 1.5rem 1.25rem;
	background: var(--ie-surface);
	border-radius: 8px;
	border-left: 5px solid var(--ie-accent);
	text-decoration: none;
	color: var(--ie-text);
	transition: background 0.2s, box-shadow 0.2s;
}

.nav-card:hover {
	background: #f3f4f6;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	color: var(--ie-text);
}

.nav-card__icon {
	font-size: 2rem;
	line-height: 1;
}

.nav-card__label {
	font-size: 1.2rem;
	font-weight: 900;
	color: var(--ie-accent-dark);
}

.nav-card:hover .nav-card__label {
	color: var(--ie-accent);
}

.nav-card__desc {
	font-size: 0.95rem;
	color: var(--ie-text-soft);
	line-height: 1.5;
}

/* ==========================================================================
   Spenden-Button
   ========================================================================== */
.btn-spenden {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	background: var(--ie-accent);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s;
}

.btn-spenden:hover {
	background: var(--ie-accent-dark);
	color: #fff;
}

.spenden-intro {
	max-width: var(--ie-measure);
	margin-bottom: 2rem;
}

/* ==========================================================================
   Wörterbuch / Dictionnaire
   ========================================================================== */
.dict-search-wrap {
	margin-bottom: 1.5rem;
}

.dict-search {
	width: 100%;
	max-width: 28rem;
	padding: 0.625rem 0.875rem;
	border: 2px solid var(--ie-border);
	border-radius: 6px;
	font: inherit;
	font-size: 1rem;
}

.dict-search:focus {
	border-color: var(--ie-focus);
}

.dict-alpha-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-bottom: 2rem;
}

.dict-alpha-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.25rem 0.5rem;
	border: 2px solid var(--ie-border);
	border-radius: 6px;
	background: var(--ie-surface);
	font-weight: 700;
	text-decoration: none;
	color: var(--ie-accent-dark);
}

.dict-alpha-link:hover {
	background: var(--ie-accent);
	border-color: var(--ie-accent);
	color: #fff;
}

.dict-list {
	margin: 0;
}

.dict-letter {
	font-size: 1.75rem;
	font-weight: 900;
	color: var(--ie-accent-dark);
	border-bottom: 3px solid var(--ie-accent);
	padding-bottom: 0.25rem;
	margin: 2rem 0 0.75rem;
}

.dict-entry {
	margin: 0 0 0.625rem 0;
	padding: 0.625rem 0.875rem;
	background: #f3f4f6;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.dict-entry a {
	font-weight: 700;
	font-size: 1.05rem;
}

.dict-entry__lead {
	color: var(--ie-text-soft);
	font-size: 0.95rem;
}

.dict-empty {
	color: var(--ie-text-soft);
	font-style: italic;
}

/* ==========================================================================
   Fusszeile (Nebensächliches; Leitfaden)
   ========================================================================== */
.site-footer {
	--ie-footer-dark: #1d242d;
	--ie-lime: #d3d800;
	margin-top: 3rem;
}

.footer-bar {
	background: var(--ie-footer-dark);
	color: #fff;
	padding-block: 1.75rem;
}

.footer-bar__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.25rem 2rem;
}

.footer-copy {
	margin: 0;
	font-size: 1rem;
}

.footer-social {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ie-lime);
	color: var(--ie-footer-dark);
	transition: background 0.2s;
}

.footer-social a:hover {
	background: #fff;
}

.footer-social svg {
	width: 20px;
	height: 20px;
}

.footer-legal {
	justify-self: end;
}

.footer-legal ul {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-legal li + li::before {
	content: '|';
	margin-inline: 0.4rem;
	color: var(--ie-lime);
}

.footer-legal a {
	color: var(--ie-lime);
	font-size: 1rem;
	text-decoration: none;
}

.footer-legal a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-contact {
	background: var(--ie-accent);
	padding-block: 1.5rem;
}

.footer-contact__link {
	display: inline-flex;
	align-items: center;
	gap: 0.875rem;
	min-height: 44px;
	color: var(--ie-footer-dark);
	font-size: 1.4rem;
	font-weight: 700;
	text-decoration: none;
}

.footer-contact__link:hover {
	color: #fff;
}

.site-footer :focus-visible {
	outline-color: #fff;
}

html {
	scroll-behavior: smooth;
}

/* Knopf "nach oben": immer sichtbar, fester Platz (Regel 9.3) */
.to-top {
	position: fixed;
	right: 3rem;
	bottom: 0;
	z-index: 150;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #000;
	color: #d3d800;
}

.to-top:hover {
	color: #fff;
}

/* ==========================================================================
   Mobil (Leitfaden: die meisten lesen mobil)
   ========================================================================== */
@media (max-width: 700px) {
	h1 {
		font-size: 1.9rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	/* Mobil: Logo + Wortmarke + Toggle oben, Menü und Suche volle Breite darunter */
	.header-grid {
		--logo-size: 60px;
		column-gap: 0.75rem;
	}

	.is-scrolled .header-grid {
		--logo-size: 44px;
	}

	.site-logo {
		grid-row: 1;
		align-self: center;
	}

	.page-sheet {
		padding-block: 1.5rem 2.5rem;
	}

	.ie-f-grid {
		grid-template-columns: 1fr;
	}

	.footer-bar__inner {
		grid-template-columns: 1fr;
		justify-items: start;
	}

	.footer-legal {
		justify-self: start;
	}

	.to-top {
		right: 1rem;
	}

	.page-sheet .entry-content p,
	.page-sheet .entry-content li {
		font-size: 1.2rem;
	}

	.page-sheet .entry-content h2 {
		font-size: 1.75rem;
	}

	.page-sheet .entry-content > h2:first-child {
		font-size: 1.9rem;
		margin-top: 0;
	}

	.header-bottom {
		grid-column: 1 / -1;
		flex-direction: column;
		align-items: stretch;
	}

	.lang-opt {
		padding-inline: 0.625rem;
	}

	.search-form {
		width: 100%;
	}

	.search-form input[type='search'] {
		flex: 1;
	}
}

/* Weniger Bewegung für empfindliche Nutzer:innen */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
