/*
 * Optometrie Online — der Rahmen.
 *
 * Kopfleiste über die volle Breite, Navigationsspalte links, Inhalt rechts
 * daneben bis an den Rand. Kein zentrierter Kasten mit Weißraum außen: Die
 * Kopfleiste beginnt bei 0 und endet bei 100 %, die Navigationsspalte steht
 * fest, und nur der gelesene Text bekommt eine Lesebreite.
 */

:root {
	--oo-topbar-height: 60px;
	--oo-rail-width: 240px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--oo-surface-quiet);
	font-size: 15px;
	line-height: var(--oo-line-height);
	-webkit-font-smoothing: antialiased;
}

/* Sprungmarke — sichtbar, sobald sie den Fokus hat. */
.oo-skip {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 100;
	padding: 12px 20px;
	background: var(--oo-navy);
	color: #fff;
	text-decoration: none;
}

.oo-skip:focus {
	top: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- Kopfleiste */

.oo-topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 20px;
	height: var(--oo-topbar-height);
	padding-inline: 20px;
	background: var(--oo-navy);
	color: #fff;
}

.oo-topbar__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
}

.oo-topbar__title a {
	color: #fff;
	text-decoration: none;
}

/*
 * Die Suche steht in der Mitte, nicht am Rand: Sie ist der wichtigste Weg in
 * einen Bestand aus 94.000 Beiträgen. flex:1 mit einer Höchstbreite hält sie
 * mittig, ohne dass sie auf großen Schirmen ins Absurde wächst.
 */
.oo-search {
	position: relative;
	flex: 1 1 auto;
	max-width: 560px;
	margin-inline: auto;
}

.oo-search__icon {
	position: absolute;
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, .55);
	pointer-events: none;
}

.oo-search__field {
	width: 100%;
	padding: 8px 12px 8px 36px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 8px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font: inherit;
	font-size: 14px;
}

.oo-search__field::placeholder {
	color: rgba(255, 255, 255, .55);
}

.oo-search__field:focus {
	outline: 2px solid rgba(255, 255, 255, .8);
	outline-offset: 1px;
	background: rgba(255, 255, 255, .14);
}

.oo-topbar__account {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	white-space: nowrap;
}

.oo-btn,
.oo-btn-quiet {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 14px;
	text-decoration: none;
}

.oo-btn {
	background: #fff;
	color: var(--oo-navy);
	font-weight: 600;
}

.oo-btn-quiet {
	color: rgba(255, 255, 255, .85);
}

.oo-btn-quiet:hover,
.oo-btn:hover {
	opacity: .88;
}

/* Nur auf schmalen Schirmen sichtbar. */
.oo-railtoggle {
	display: none;
	padding: 6px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

/* -------------------------------------------------------------------- Raster */

.oo-shell {
	display: grid;
	grid-template-columns: var(--oo-rail-width) minmax(0, 1fr);
	align-items: start;
	min-height: calc(100vh - var(--oo-topbar-height));
}

/* --------------------------------------------------- Navigationsspalte links */

.oo-rail {
	position: sticky;
	top: var(--oo-topbar-height);
	max-height: calc(100vh - var(--oo-topbar-height));
	padding: 16px 12px;
	overflow-y: auto;
	border-right: 1px solid var(--oo-line);
	background: var(--oo-surface);
}

.oo-rail__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.oo-rail__item a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--oo-ink-soft);
	font-size: 14px;
	text-decoration: none;
}

.oo-rail__item a:hover {
	background: var(--oo-tag-bg);
	color: var(--oo-ink);
}

.oo-rail__item.is-current > a,
.oo-rail__item.current-menu-item > a {
	background: var(--oo-tag-bg);
	color: var(--oo-ink);
	font-weight: 600;
}

.oo-rail__group {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--oo-line);
}

.oo-rail__heading {
	margin: 0 0 6px;
	padding-inline: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--oo-ink-quiet);
}

.oo-rail__list--quiet .oo-rail__item a {
	padding-block: 6px;
	font-size: 13px;
}

.oo-rail__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Die Zahlen dahinter sind Beiwerk und sollen den Namen nicht überstrahlen. */
.oo-rail__count {
	flex: 0 0 auto;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--oo-ink-quiet);
}

/* -------------------------------------------------------------------- Inhalt */

.oo-main {
	min-width: 0;
	padding: 20px 24px 48px;
}

.oo-main:focus {
	outline: none;
}

.oo-title {
	margin: 0 0 16px;
	font-size: 24px;
	line-height: 1.25;
	color: var(--oo-ink);
}

/*
 * Gelesener Text bekommt eine Lesebreite, auch wenn der Rahmen breit ist.
 * Eine Zeile über 1.400 px ist unlesbar, egal wie viel Platz da wäre.
 */
.oo-content,
.oo-article {
	max-width: 78ch;
}

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

.oo-list {
	max-width: 1100px;
}

.oo-empty {
	color: var(--oo-ink-quiet);
}

.oo-pagination {
	margin-top: 24px;
}

/* ---------------------------------------------------------------------- Fuß */

.oo-footer {
	grid-column: 1 / -1;
	padding: 20px 24px;
	border-top: 1px solid var(--oo-line);
	background: var(--oo-surface);
}

.oo-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	color: var(--oo-ink-quiet);
}

.oo-footer__note {
	margin: 0;
}

.oo-footer__menu {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ------------------------------------------------------------ schmale Geräte */

/*
 * Unter 900 px verschwindet die Navigationsspalte hinter einer Schaltfläche.
 * Eine feste Spalte von 240 px nimmt auf einem Telefon zwei Drittel der
 * Breite — dort zählt jeder Pixel für den Text.
 */
@media (max-width: 899px) {
	.oo-shell {
		grid-template-columns: minmax(0, 1fr);
	}

	.oo-rail {
		position: fixed;
		top: var(--oo-topbar-height);
		bottom: 0;
		left: 0;
		z-index: 40;
		width: var(--oo-rail-width);
		transform: translateX(-100%);
		transition: transform .18s ease;
	}

	.oo-rail.is-open {
		transform: translateX(0);
		box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
	}

	.oo-railtoggle {
		display: block;
		order: -1;
	}

	.oo-topbar {
		gap: 12px;
		padding-inline: 12px;
	}

	.oo-topbar__title {
		font-size: 15px;
	}

	.oo-main {
		padding: 16px 12px 32px;
	}
}

/* Auf sehr schmalen Geräten weicht die Anmeldung, damit der Name ganz passt. */
@media (max-width: 575px) {
	.oo-btn-quiet {
		display: none;
	}

	.oo-search {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oo-rail {
		transition: none;
	}
}
