/* VOICE	IT-Dienstleister: sachlich, präzise, ruhig selbstbewusst
	IDEA	Liniennetzplan: die vier Leistungsbereiche sind Linien, die sich wie im Namen zu zwei x kreuzen
	PICTURE	Netzplan über die volle Breite mit Kreuzungen, Stationen, Linienschildern und laufenden Datenpaketen
	COLOUR	Weiß (nachts #0e1116), Tinte, Linienfarben Rot, Blau, Gelb, Grün; Kontaktband in Blau
	TYPE	System-Grotesk ohne Webfonts, Titel 800 eng gesetzt, Text 400
	LAYOUT	Kopfzeile, Titel und Einleitung nebeneinander, darunter der Netzplan; Linien 4/2/1-spaltig; Ablauf als eine Linie */

:root {
	color-scheme: light dark;
	--bg: light-dark(#ffffff, #0e1116);
	--ink: light-dark(#0e1116, #eef1f4);
	--mute: light-dark(#555c66, #a0a7b1);
	--grid: light-dark(#dcdfe4, #262b33);
	--deep: light-dark(#0e1116, #161a21);
	--red: #dc2219;
	--blue: #0a5cff;
	--amber: #ffb400;
	--green: #00a05a;
	--on-red: #ffffff;
	--on-blue: #ffffff;
	--on-amber: #0e1116;
	--on-green: #0e1116;
	--gut: max(5vw, 16px);
	--font: "Inter", "Noto Sans", Cantarell, Ubuntu, "DejaVu Sans", system-ui, sans-serif;
}

:root[data-theme="light"] {
	color-scheme: light;
}

:root[data-theme="dark"] {
	color-scheme: dark;
}

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

html {
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.55 var(--font);
	overflow-x: clip;
}

a {
	color: inherit;
}

a:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
	border-radius: 4px;
}

h1,
h2,
h3 {
	margin: 0;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(32px, 4.8vw, 54px);
	font-weight: 800;
}

h2 {
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 800;
}

h3 {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

p {
	margin: 0;
}

.band {
	padding: clamp(32px, 5vw, 72px) var(--gut);
}

.wrap {
	max-width: 1240px;
	margin-inline: auto;
}

/* Kopfzeile */

.top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 24px;
	max-width: calc(1240px + 2 * var(--gut));
	margin-inline: auto;
	padding-block: 14px;
}

.brand {
	display: inline-flex;
	align-items: flex-end;
	gap: 3px;
	min-height: 44px;
	padding-block: 8px;
	color: var(--ink);
	text-decoration: none;
}

.brand svg {
	display: block;
	height: 28px;
	width: auto;
}

.tld {
	padding-bottom: 1px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	color: var(--mute);
}

nav {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin-inline-start: auto;
}

nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 22px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

nav a:hover {
	background: color-mix(in srgb, var(--ink) 8%, transparent);
}

nav a[aria-current="page"] {
	background: var(--ink);
	color: var(--bg);
}

/* Umschalter hell/dunkel */

.tog {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-inline-start: -16px;
	padding: 0;
	border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.tog[hidden] {
	display: none;
}

.tog:hover {
	border-color: var(--ink);
}

.tog:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
}

.tog svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tog .sun,
.tog[data-mode="dark"] .moon {
	display: none;
}

.tog[data-mode="dark"] .sun {
	display: block;
}

/* E-Mail ohne JavaScript: rückwärts im Quelltext, richtig herum angezeigt */

.em {
	unicode-bidi: bidi-override;
	direction: rtl;
}

/* Bedienelemente */

.btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 22px;
	border: 2px solid var(--ink);
	border-radius: 24px;
	background: var(--ink);
	color: var(--bg);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.btn:hover {
	border-color: var(--blue);
	background: var(--blue);
	color: #ffffff;
}

.btn.ghost {
	background: transparent;
	color: var(--ink);
}

.btn.ghost:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--bg);
}

.pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 14px;
	border-radius: 15px;
	background: var(--c);
	color: var(--on);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
}

/* Einstieg */

.hero {
	padding-bottom: clamp(16px, 2.5vw, 32px);
}

.intro,
.head {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 20px 56px;
	align-items: end;
}

.lead > p:first-child {
	max-width: 34em;
	font-size: 18px;
}

.acts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

/* Netzplan */

.fig {
	display: none;
	position: relative;
	margin: 0;
	height: clamp(220px, 36vw, 440px);
}

.js .fig {
	display: block;
}

.fig > svg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.fig text {
	font-family: var(--font);
}

.fig .st {
	font-size: 13px;
	font-weight: 600;
	fill: var(--mute);
	paint-order: stroke;
	stroke: var(--bg);
	stroke-width: 4px;
	stroke-linejoin: round;
}

.fig .bd {
	font-size: 14px;
	font-weight: 700;
}

.key {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: calc(1240px + 2 * var(--gut));
	margin: 0 auto;
	padding: 8px var(--gut) 0;
	list-style: none;
}

.fig.lab + .key {
	display: none;
}

/* Leistungen */

.head {
	margin-bottom: clamp(28px, 4vw, 52px);
}

.head p {
	max-width: 34em;
	color: var(--mute);
}

.lines {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px 32px;
}

.line {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	align-content: start;
}

.line > p {
	color: var(--mute);
}

.line .stops {
	margin-bottom: 30px;
}

@media (min-width: 640px) {
	.lines {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.lines {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.line .stops {
		margin-bottom: 0;
	}
}

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

.stops li {
	position: relative;
	padding: 0 0 14px 36px;
}

.stops li::before {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0;
	top: 2px;
	width: 22px;
	height: 22px;
	border: 5px solid var(--c);
	border-radius: 50%;
	background: var(--bg);
}

.stops li::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 13px;
	bottom: -13px;
	width: 8px;
	background: var(--c);
}

.stops li:last-child {
	padding-bottom: 0;
}

.stops li:last-child::after {
	display: none;
}

/* Ablauf */

.deep {
	--bg: var(--deep);
	--ink: #eef1f4;
	--mute: #a9b0ba;
	overflow: hidden;
	background: var(--bg);
	color: var(--ink);
}

.deep h2 {
	margin-bottom: clamp(32px, 4vw, 56px);
}

.route {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.route::before {
	content: "";
	position: absolute;
	left: 0;
	right: -100vw;
	top: 11px;
	height: 10px;
	border-radius: 5px 0 0 5px;
	background: var(--ink);
}

.route li {
	position: relative;
	padding-top: 52px;
}

.route li::before {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	width: 32px;
	height: 32px;
	border: 6px solid var(--ink);
	border-radius: 50%;
	background: var(--bg);
}

.route h3 {
	margin-bottom: 8px;
	font-size: 20px;
}

.route p {
	max-width: 30em;
	color: var(--mute);
}

/* Kontakt */

.cta {
	background: var(--blue);
	color: #ffffff;
}

.cta .wrap {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 24px 56px;
	align-items: end;
}

.cta p {
	max-width: 32em;
	margin-top: 14px;
	font-size: 18px;
}

.cta a:focus-visible {
	outline-color: #ffffff;
}

.mail {
	justify-self: start;
	border-bottom: 4px solid currentColor;
	font-size: clamp(26px, 3.6vw, 40px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-decoration: none;
	overflow-wrap: anywhere;
}

/* Impressum */

.doc {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px 56px;
	align-items: start;
}

.doc .sub {
	max-width: 26em;
	margin-top: 16px;
	font-size: 18px;
	color: var(--mute);
}

.doc .back {
	margin-top: 28px;
}

.stops.big li {
	padding: 0 0 32px 46px;
}

.stops.big li:last-child {
	padding-bottom: 0;
}

.stops.big h2 {
	margin-bottom: 6px;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.stops.big p + p {
	margin-top: 6px;
}

@media (min-width: 900px) {
	.doc .side {
		position: sticky;
		top: 24px;
	}
}

/* Fußzeile */

.bundle {
	display: grid;
	gap: 5px;
	margin-top: clamp(28px, 4vw, 48px);
}

.bundle i {
	display: block;
	height: 6px;
}

.bundle .r {
	background: var(--red);
}

.bundle .a {
	background: var(--amber);
}

.bundle .g {
	background: var(--green);
}

.bundle .b {
	background: var(--blue);
}

.foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 32px;
	max-width: calc(1240px + 2 * var(--gut));
	margin-inline: auto;
	padding-block: 24px 32px;
	font-size: 14px;
	color: var(--mute);
}

.links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

.links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink);
	font-weight: 600;
}

/* Schmale Bildschirme */

@media (max-width: 760px) {
	.intro,
	.head,
	.cta .wrap,
	.doc {
		grid-template-columns: minmax(0, 1fr);
	}

	.route {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.route::before {
		display: none;
	}

	.route li {
		padding: 2px 0 30px 52px;
	}

	.route li::after {
		content: "";
		position: absolute;
		left: 11px;
		top: 16px;
		bottom: -16px;
		width: 10px;
		background: var(--ink);
	}

	.route li:last-child {
		padding-bottom: 0;
	}

	.route li:last-child::after {
		display: none;
	}
}

@media (max-width: 600px) {
	.tog {
		order: 1;
		margin-inline-start: auto;
	}

	nav {
		order: 2;
		flex-basis: 100%;
		margin-inline: -10px;
	}

	nav a {
		padding: 0 10px;
		font-size: 14px;
	}
}
