/* ==========================================================================
   tec1 – Theme-Styles
   Farben kommen als CSS-Variablen aus dem Customizer (inline im <head>).
   ========================================================================== */

/* Schriften: lokal ausgeliefert, keine Anfrage an Google Fonts. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/space-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/jetbrains-mono-700.woff2") format("woff2"); }

:root {
	--tec1-font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--tec1-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--tec1-content: 720px;
	--tec1-wide: 1120px;
	--tec1-gutter: clamp(18px, 4vw, 32px);
	--tec1-radius: 14px;

	/* Rückfallwerte (helles Schema); überschrieben durch den Customizer. */
	--tec1-bg: #FFFFFF;
	--tec1-surface: #F5F7FA;
	--tec1-surface-2: #EDF0F3;
	--tec1-line: #E2E6EB;
	--tec1-text: #1A1F27;
	--tec1-heading: #0A0C10;
	--tec1-muted: #4A5562;
	--tec1-subtle: #5F6875;
	--tec1-slogan: #2A323D;
	--tec1-accent: #0E8A55;
	--tec1-accent-ink: #0E7A4C;
	--tec1-btn-bg: #0E7A4C;
	--tec1-btn-text: #FFFFFF;
	--tec1-term-bg: #0A0C10;
	--tec1-term-line: #1F2732;
	--tec1-warn: #92400E;
	--tec1-info: #9A3412;
	--tec1-danger: #B42318;
	--tec1-chart-1: #2A78D6;
	--tec1-chart-2: #D95926;

	color-scheme: light;
}
[data-scheme="dark"] { color-scheme: dark; }
[data-scheme="auto"] { color-scheme: light dark; }

/* --------------------------------------------------------------------------
   Grundlagen
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--tec1-bg);
	color: var(--tec1-text);
	font-family: var(--tec1-font-sans);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.tec1-site {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
}

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

a { color: var(--tec1-accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--tec1-accent-ink); outline-offset: 3px; border-radius: 4px; }

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

.tec1-skip-link {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--tec1-heading);
	color: var(--tec1-bg);
	font: 700 14px/1.4 var(--tec1-font-mono);
	text-decoration: none;
}
.tec1-skip-link:focus { top: 12px; }

.tec1-container {
	width: 100%;
	max-width: calc(var(--tec1-wide) + 2 * var(--tec1-gutter));
	margin-inline: auto;
	padding-inline: var(--tec1-gutter);
}

.site-main { flex: 1 0 auto; width: 100%; }

/* --------------------------------------------------------------------------
   Wortmarke
   -------------------------------------------------------------------------- */
.tec1-wordmark {
	display: inline-flex;
	align-items: flex-start;
	color: var(--tec1-heading);
	font-family: var(--tec1-font-sans);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.048em;
	white-space: nowrap;
}
.tec1-wordmark__accent { color: var(--tec1-accent); }
.tec1-cross { flex: none; width: 0.306em; height: 0.306em; margin: 0.065em 0 0 0.08em; }

/* --------------------------------------------------------------------------
   Kopfzeile und Menü
   -------------------------------------------------------------------------- */
.site-header { position: relative; z-index: 10; background: var(--tec1-bg); border-bottom: 1px solid var(--tec1-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.site-brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.site-brand .tec1-wordmark { font-size: 34px; }
.site-brand__img { display: block; width: auto; max-height: 44px; }

.tec1-nav { margin-left: auto; }
.tec1-nav__list { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tec1-nav__list a {
	display: block;
	padding: 12px 14px;
	border-radius: 8px;
	color: var(--tec1-slogan);
	font: 700 14px/1.4 var(--tec1-font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.tec1-nav__list a:hover { background: var(--tec1-surface); color: var(--tec1-heading); }
.tec1-nav__list .current-menu-item > a,
.tec1-nav__list .current_page_item > a,
.tec1-nav__list .current-page-ancestor > a { color: var(--tec1-accent-ink); }

.tec1-nav-toggle { display: none; }

@media (max-width: 880px) {
	.js .tec1-nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		margin-left: auto;
		padding: 0 14px;
		border: 1px solid var(--tec1-line);
		border-radius: 10px;
		background: transparent;
		color: var(--tec1-heading);
		font: 700 14px/1 var(--tec1-font-mono);
		letter-spacing: 0.08em;
		text-transform: uppercase;
		cursor: pointer;
	}
	.tec1-nav-toggle__bars {
		width: 18px;
		height: 12px;
		background:
			linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
			linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
			linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
	}
	.js .tec1-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 8px var(--tec1-gutter) 18px;
		background: var(--tec1-bg);
		border-bottom: 1px solid var(--tec1-line);
	}
	.js .tec1-nav.is-open { display: block; }
	.tec1-nav__list { flex-direction: column; }
	.site-header__inner { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Startseite: Logo
   -------------------------------------------------------------------------- */
.tec1-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(76vh - 77px);
	min-height: calc(76svh - 77px);
	padding: clamp(56px, 9vw, 112px) var(--tec1-gutter);
}
.tec1-hero--full { flex: 1 0 auto; min-height: 0; }
.tec1-logo-only .site-main { display: flex; flex-direction: column; }

.tec1-hero__logo { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 2.4vw, 30px); }
.tec1-hero__title { margin: 0; font-size: clamp(88px, 13vw + 40px, 190px); line-height: 0.9; font-weight: 700; }
.tec1-hero__img { display: block; width: min(720px, 86vw); height: auto; }
.tec1-hero__text { display: flex; flex-direction: column; gap: 8px; }
.tec1-hero__slogan,
.tec1-hero__subline { margin: 0; font-family: var(--tec1-font-mono); font-weight: 700; line-height: 1.3; letter-spacing: 0.17em; }
.tec1-hero__slogan { color: var(--tec1-slogan); font-size: clamp(16px, 2vw, 27px); }
.tec1-hero__subline { color: var(--tec1-accent-ink); font-size: clamp(13px, 1.65vw, 22px); }

.entry-content.tec1-front-content { padding-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--tec1-line); }

/* --------------------------------------------------------------------------
   Seitenkopf
   -------------------------------------------------------------------------- */
.tec1-page-header { padding: clamp(48px, 8vw, 96px) var(--tec1-gutter) clamp(32px, 5vw, 56px); }
.tec1-page-header--service {
	margin-bottom: clamp(36px, 5vw, 56px);
	padding-bottom: clamp(40px, 6vw, 64px);
	background: var(--tec1-surface);
	border-bottom: 1px solid var(--tec1-line);
}
.tec1-page-header__inner { max-width: var(--tec1-content); margin-inline: auto; }
.tec1-page-header__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }

.tec1-kicker,
.is-style-tec1-kicker {
	color: var(--tec1-accent-ink);
	font-family: var(--tec1-font-mono);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.tec1-kicker { margin: 0; }

.tec1-page-title {
	margin: 0;
	color: var(--tec1-heading);
	font-size: clamp(34px, 6.2vw, 68px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.03em;
	overflow-wrap: break-word;
	hyphens: auto;
}
.tec1-page-lead { margin: 20px 0 0; color: var(--tec1-muted); font-size: clamp(19px, 2.2vw, 22px); line-height: 1.55; }
.tec1-page-meta { margin: 16px 0 0; color: var(--tec1-subtle); font-family: var(--tec1-font-mono); font-size: 14px; }

/* --------------------------------------------------------------------------
   Inhalt
   -------------------------------------------------------------------------- */
.entry-content { padding: 0 var(--tec1-gutter) clamp(64px, 9vw, 112px); }
.entry-content > * { max-width: var(--tec1-content); margin-inline: auto; margin-block: 0; }
.entry-content > * + * { margin-block-start: 1.15em; }
.entry-content > .alignwide { max-width: var(--tec1-wide); }
.entry-content > .alignfull { max-width: none; margin-inline: calc(-1 * var(--tec1-gutter)); }
.tec1-entry--blank { padding-top: clamp(32px, 5vw, 56px); }

.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--tec1-heading); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.entry-content h2 { font-size: clamp(28px, 3.4vw, 36px); }
.entry-content h3 { font-size: clamp(21px, 2.4vw, 24px); }
.entry-content h4 { font-size: 19px; }
.entry-content > h2 { margin-block-start: 2em; }
.entry-content > h3 { margin-block-start: 1.7em; }
.entry-content > h2:first-child,
.entry-content > h3:first-child { margin-block-start: 0; }
.entry-content > h2 + *,
.entry-content > h3 + *,
.entry-content > .is-style-tec1-kicker + * { margin-block-start: 0.6em; }

.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content strong { color: var(--tec1-heading); }
.entry-content :not(pre) > code {
	padding: 0.1em 0.38em;
	border: 1px solid var(--tec1-line);
	border-radius: 6px;
	background: var(--tec1-surface);
	font-family: var(--tec1-font-mono);
	font-size: 0.86em;
}
.entry-content hr,
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--tec1-line); margin-block: 2.4em; }
.entry-content blockquote { padding: 0; margin-inline: auto; color: var(--tec1-heading); font-size: 1.2em; line-height: 1.5; }
.entry-content blockquote cite { display: block; margin-top: 10px; color: var(--tec1-subtle); font: 500 14px/1.4 var(--tec1-font-mono); font-style: normal; }
.entry-content figcaption { color: var(--tec1-subtle); font-size: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th,
.entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--tec1-line); text-align: left; vertical-align: top; }
.entry-content th { color: var(--tec1-heading); font-family: var(--tec1-font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

.entry-content .wp-block-columns { gap: 20px; }

/* Code-Block (Standard) */
.entry-content .wp-block-code {
	padding: 16px 18px;
	border: 1px solid var(--tec1-line);
	border-radius: 12px;
	background: var(--tec1-surface);
	color: var(--tec1-heading);
	font: 500 15px/1.6 var(--tec1-font-mono);
	overflow-x: auto;
	white-space: pre;
}
.entry-content .wp-block-code code { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

/* Buttons */
.wp-block-button__link,
.tec1-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--tec1-btn-bg);
	color: var(--tec1-btn-text);
	font: 700 15px/1.2 var(--tec1-font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}
.wp-block-button__link:hover,
.tec1-button:hover { color: var(--tec1-btn-text); filter: brightness(1.08); }
.is-style-outline > .wp-block-button__link { border-color: var(--tec1-line); background: transparent; color: var(--tec1-heading); }

/* --------------------------------------------------------------------------
   Block-Stile
   -------------------------------------------------------------------------- */
.is-style-tec1-card {
	padding: clamp(22px, 3vw, 30px);
	border: 1px solid var(--tec1-line);
	border-radius: var(--tec1-radius);
	background: var(--tec1-surface);
}
.is-style-tec1-card > *,
.is-style-tec1-note > * { margin-block: 0; }
.is-style-tec1-card > * + * { margin-block-start: 0.7em; }
.is-style-tec1-note > * + * { margin-block-start: 0.6em; }
.is-style-tec1-card h3 { margin-top: 0; }

.is-style-tec1-note {
	padding: 18px 22px;
	border: 1px solid color-mix(in srgb, var(--tec1-accent) 32%, var(--tec1-bg));
	border-radius: var(--tec1-radius);
	background: color-mix(in srgb, var(--tec1-accent) 8%, var(--tec1-bg));
	font-size: 17px;
}

.entry-content .wp-block-code.is-style-tec1-terminal,
.wp-block-code.is-style-tec1-terminal {
	padding: 18px 20px;
	border: 1px solid var(--tec1-term-line);
	border-radius: 12px;
	background: var(--tec1-term-bg);
	color: #F5F7FA;
	font: 500 15px/1.6 var(--tec1-font-mono);
	overflow-x: auto;
	white-space: pre;
}

.is-style-tec1-lead { color: var(--tec1-muted); font-size: clamp(19px, 2.2vw, 22px); line-height: 1.55; }

ul.is-style-tec1-facts { padding: 0; border-top: 1px solid var(--tec1-line); list-style: none; }
ul.is-style-tec1-facts > li {
	position: relative;
	margin: 0;
	padding: 14px 0 14px min(34%, 220px);
	border-bottom: 1px solid var(--tec1-line);
}
ul.is-style-tec1-facts > li > strong:first-child {
	position: absolute;
	top: 14px;
	left: 0;
	width: calc(min(34%, 220px) - 16px);
	padding-top: 0.3em;
	color: var(--tec1-subtle);
	font-family: var(--tec1-font-mono);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
@media (max-width: 560px) {
	ul.is-style-tec1-facts > li { padding-left: 0; }
	ul.is-style-tec1-facts > li > strong:first-child { position: static; display: block; width: auto; margin-bottom: 2px; padding-top: 0; }
}

/* --------------------------------------------------------------------------
   Dienste-Kacheln [tec1_dienste] und Status
   -------------------------------------------------------------------------- */
.tec1-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 20px;
}
.entry-content .tec1-cards { margin-block-start: 28px; }
.tec1-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 26px;
	border: 1px solid var(--tec1-line);
	border-radius: var(--tec1-radius);
	background: var(--tec1-surface);
	color: var(--tec1-text);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.tec1-card:hover { border-color: var(--tec1-accent); transform: translateY(-2px); }
.tec1-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 6px; }
.tec1-card__kicker { color: var(--tec1-subtle); font: 700 12px/1.4 var(--tec1-font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.tec1-card__title { color: var(--tec1-heading); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.tec1-card__text { color: var(--tec1-muted); font-size: 16px; line-height: 1.55; }
.tec1-card__more { color: var(--tec1-accent-ink); font: 700 14px/1.4 var(--tec1-font-mono); }

.tec1-status {
	--tec1-status: var(--tec1-subtle);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 11px;
	border: 1px solid color-mix(in srgb, var(--tec1-status) 32%, transparent);
	border-radius: 99px;
	background: color-mix(in srgb, var(--tec1-status) 11%, transparent);
	color: var(--tec1-status);
	font: 700 12px/1.4 var(--tec1-font-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}
.tec1-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tec1-status--online { --tec1-status: var(--tec1-accent-ink); }
.tec1-status--beta { --tec1-status: var(--tec1-warn); }
.tec1-status--wartung { --tec1-status: var(--tec1-info); }

.tec1-placeholder {
	padding: 0 0.25em;
	border-radius: 4px;
	outline: 1px dashed color-mix(in srgb, var(--tec1-warn) 60%, transparent);
	background: color-mix(in srgb, var(--tec1-warn) 12%, transparent);
	color: var(--tec1-heading);
}

.tec1-empty { color: var(--tec1-subtle); font-style: italic; }

/* --------------------------------------------------------------------------
   Live-Anzeigen (Zeitserver, LoRaWAN, Wetter, ADS-B)
   -------------------------------------------------------------------------- */
.tec1-status--offline { --tec1-status: var(--tec1-danger); }
.tec1-status--unknown { --tec1-status: var(--tec1-subtle); }
.tec1-button--ghost { border-color: var(--tec1-line); background: transparent; color: var(--tec1-heading); }
.tec1-button--ghost:hover { color: var(--tec1-heading); border-color: var(--tec1-accent); filter: none; }

.entry-content > .tec1-map { max-width: var(--tec1-wide); }
.tec1-live { display: flex; flex-direction: column; gap: 16px; }
.tec1-live__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; color: var(--tec1-muted); font-size: 16px; }
.tec1-live__big { color: var(--tec1-heading); font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tec1-live__label { margin: 12px 0 0; color: var(--tec1-subtle); font: 700 12px/1.4 var(--tec1-font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.tec1-live__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tec1-live__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.tec1-live__head .tec1-live__label { margin: 0; }
.tec1-live__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 0; color: var(--tec1-subtle); font: 500 13px/1.5 var(--tec1-font-mono); }
.tec1-live__foot a { color: var(--tec1-accent-ink); }
.tec1-live__state.is-error { color: var(--tec1-danger); }

.tec1-server {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px;
	border: 1px solid var(--tec1-line);
	border-radius: var(--tec1-radius);
	background: var(--tec1-surface);
}
.tec1-server__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.tec1-server__meta { color: var(--tec1-subtle); font: 700 12px/1.4 var(--tec1-font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.tec1-server__host { margin: 0; color: var(--tec1-heading); font: 700 17px/1.3 var(--tec1-font-mono); overflow-wrap: anywhere; }
.tec1-server__checked { margin: 0; color: var(--tec1-subtle); font: 500 12px/1.4 var(--tec1-font-mono); }

.tec1-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px 16px; margin: 0; }
.tec1-stats > div { min-width: 0; }
.tec1-stats dt { color: var(--tec1-subtle); font: 700 11px/1.4 var(--tec1-font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.tec1-stats dd { margin: 2px 0 0; color: var(--tec1-heading); font: 700 16px/1.35 var(--tec1-font-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tec1-stats dd small { color: var(--tec1-subtle); font-size: 12px; font-weight: 500; }

.tec1-live--weather {
	padding: 20px 22px;
	border: 1px solid var(--tec1-line);
	border-radius: var(--tec1-radius);
	background: var(--tec1-surface);
}
.tec1-stats--weather dd { font-size: 22px; }

/* Verlauf der Zeitabweichung */
.tec1-charts { display: flex; flex-direction: column; gap: 16px; }
.entry-content > .tec1-charts { margin-block: 1.4em; }
.entry-content > .tec1-chart { margin: 1.4em auto; }
.tec1-chart {
	margin: 0;
	gap: 12px;
	padding: 20px 22px 16px;
	border: 1px solid var(--tec1-line);
	border-radius: var(--tec1-radius);
	background: var(--tec1-surface);
}
.tec1-chart__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.tec1-chart__head .tec1-live__label { margin: 0; }
.tec1-chart__range { color: var(--tec1-subtle); font: 500 12px/1.4 var(--tec1-font-mono); }
.tec1-chart__legend { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
.entry-content .tec1-chart__legend li { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--tec1-muted); font-size: 15px; line-height: 1.4; }
.tec1-chart__legend strong { color: var(--tec1-heading); font: 700 14px/1.4 var(--tec1-font-mono); font-variant-numeric: tabular-nums; }
.tec1-chart__key { display: inline-block; flex: none; width: 18px; height: 3px; border-radius: 2px; background: var(--tec1-chart-1); }
.tec1-chart__key--2 { background: var(--tec1-chart-2); }
.tec1-chart__plot { position: relative; min-height: 200px; border-radius: 6px; outline: none; touch-action: pan-y; }
.tec1-chart__plot:focus-visible { box-shadow: 0 0 0 2px var(--tec1-accent); }
.tec1-chart__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.tec1-chart__empty { display: flex; align-items: center; justify-content: center; min-height: 200px; margin: 0; color: var(--tec1-subtle); font: 500 14px/1.5 var(--tec1-font-mono); text-align: center; }
.tec1-chart__empty[hidden] { display: none; }
.tec1-chart__grid line { stroke: var(--tec1-line); stroke-width: 1; shape-rendering: crispEdges; }
.tec1-chart__grid line.is-zero { stroke: var(--tec1-subtle); stroke-opacity: 0.55; }
.tec1-chart__grid line.is-tick { stroke: var(--tec1-subtle); stroke-opacity: 0.55; }
.tec1-chart__labels text { fill: var(--tec1-subtle); font: 500 11px var(--tec1-font-mono); font-variant-numeric: tabular-nums; }
.tec1-chart__series,
.tec1-chart__series--1 { --tec1-series: var(--tec1-chart-1); }
.tec1-chart__series--2 { --tec1-series: var(--tec1-chart-2); }
.tec1-chart__line { fill: none; stroke: var(--tec1-series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tec1-chart__pt { fill: var(--tec1-series); }
.tec1-chart__dot { fill: var(--tec1-series); stroke: var(--tec1-surface); stroke-width: 2; }
.tec1-chart__cross { stroke: var(--tec1-muted); stroke-width: 1; stroke-opacity: 0.7; shape-rendering: crispEdges; }
.tec1-chart__tip {
	position: absolute;
	z-index: 2;
	min-width: 190px;
	padding: 10px 12px;
	border: 1px solid var(--tec1-line);
	border-radius: 10px;
	background: var(--tec1-bg);
	box-shadow: 0 6px 24px rgba(10, 12, 16, 0.12);
	color: var(--tec1-text);
	font: 500 13px/1.5 var(--tec1-font-mono);
	pointer-events: none;
}
.tec1-chart__tip[hidden] { display: none; }
.tec1-chart__tiptime { margin-bottom: 4px; color: var(--tec1-subtle); font-size: 12px; }
.tec1-chart__tiprow { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tec1-chart__tiprow span { flex: 1; color: var(--tec1-muted); }
.tec1-chart__tiprow strong { color: var(--tec1-heading); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
	.tec1-chart { padding: 16px 14px 14px; }
}

/* Wetter: Wetterlage */
.tec1-weather__cond { display: flex; align-items: center; gap: 14px; margin: 0; }
.tec1-weather__cond > span:last-child { display: flex; flex-direction: column; }
.tec1-weather__cond strong { color: var(--tec1-heading); font-size: 22px; line-height: 1.2; }
.tec1-weather__cond small { color: var(--tec1-subtle); font: 500 12px/1.4 var(--tec1-font-mono); }
.tec1-weather__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tec1-surface-2); position: relative; }
.tec1-weather__icon::after {
	content: "";
	position: absolute;
	inset: 6px;
	background: var(--tec1-accent-ink);
	-webkit-mask: var(--tec1-icon) center / contain no-repeat;
	mask: var(--tec1-icon) center / contain no-repeat;
}
.tec1-weather__icon:not([class*="--"])::after,
.tec1-weather__icon--unknown::after { display: none; }
.tec1-weather__icon--sunny { --tec1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'%3E%3Ccircle cx='32' cy='32' r='11'/%3E%3Cpath d='M32 7v8M32 49v8M7 32h8M49 32h8M14 14l6 6M44 44l6 6M50 14l-6 6M20 44l-6 6'/%3E%3C/svg%3E"); }
.tec1-weather__icon--partly { --tec1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-linecap='round'%3E%3Ccircle cx='23' cy='22' r='9' stroke-width='4'/%3E%3Cpath d='M23 7v5M8 22h5M12 11l4 4' stroke-width='3'/%3E%3Cpath d='M18 45h29a10 10 0 0 0 0-20 14 14 0 0 0-26-2 11 11 0 0 0-3 22Z' stroke-width='4'/%3E%3C/svg%3E"); }
.tec1-weather__icon--cloudy { --tec1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M16 45h31a11 11 0 0 0 1-22 16 16 0 0 0-30-3 12 12 0 0 0-2 25Z'/%3E%3C/svg%3E"); }
.tec1-weather__icon--rain { --tec1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M19 38h27a10 10 0 0 0 1-20 15 15 0 0 0-28-3 11 11 0 0 0 0 23Z'/%3E%3Cpath d='M24 46l-3 7M34 46l-3 7M44 46l-3 7'/%3E%3C/svg%3E"); }
.tec1-weather__icon--night { --tec1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='4' stroke-linejoin='round'%3E%3Cpath d='M45 45A22 22 0 0 1 27 9a24 24 0 1 0 18 36Z'/%3E%3C/svg%3E"); }

/* Wetterverlauf: Auswahl */
.tec1-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tec1-chip {
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--tec1-line);
	border-radius: 999px;
	background: var(--tec1-bg);
	color: var(--tec1-muted);
	font: 700 13px/1.2 var(--tec1-font-mono);
	cursor: pointer;
}
.tec1-chip:hover { border-color: var(--tec1-subtle); color: var(--tec1-heading); }
.tec1-chip.is-active { border-color: var(--tec1-heading); background: var(--tec1-heading); color: var(--tec1-bg); }
.tec1-chip:focus-visible,
.tec1-linkbtn:focus-visible { outline: 2px solid var(--tec1-accent); outline-offset: 2px; }
.tec1-chips--small .tec1-chip { min-height: 32px; padding: 4px 12px; font-size: 12px; }
.tec1-chart__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.tec1-field { display: inline-flex; align-items: center; gap: 8px; color: var(--tec1-subtle); font: 700 12px/1.2 var(--tec1-font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.tec1-field select,
.tec1-field input {
	min-height: 34px;
	padding: 4px 10px;
	border: 1px solid var(--tec1-line);
	border-radius: 8px;
	background: var(--tec1-bg);
	color: var(--tec1-heading);
	font: 500 14px/1.2 var(--tec1-font-mono);
	letter-spacing: 0;
	text-transform: none;
}
.tec1-chart__custom { margin: 0; }
.tec1-chart__custom summary { width: max-content; color: var(--tec1-accent-ink); font: 700 13px/1.4 var(--tec1-font-mono); cursor: pointer; }
.tec1-chart__customrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
.tec1-button--small { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.tec1-chart__bar { fill: var(--tec1-series); }

/* Meine IP */
.tec1-ip { padding: 24px; border: 1px solid var(--tec1-line); border-radius: var(--tec1-radius); background: var(--tec1-surface); }
.tec1-ip__hero { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--tec1-line); }
.tec1-ip__hero .tec1-live__label { margin: 0; }
.tec1-ip__addr { margin: 0; color: var(--tec1-heading); font: 700 clamp(28px, 5.4vw, 46px)/1.1 var(--tec1-font-mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tec1-ip__addr.is-long { font-size: clamp(16px, 4.4vw, 30px); }
.tec1-chart__note { fill: var(--tec1-subtle); font: 500 13px var(--tec1-font-mono); }
.tec1-ip__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 0; }
.tec1-stats--ip { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px 20px; }
.tec1-stats--ip .tec1-stats__ua { grid-column: 1 / -1; }
.tec1-stats--ip .tec1-stats__ua dd { font-size: 13px; font-weight: 500; color: var(--tec1-muted); }
.tec1-linkbtn { padding: 0; border: 0; background: none; color: var(--tec1-accent-ink); font: 700 12px/1.4 var(--tec1-font-mono); text-decoration: underline; cursor: pointer; }
.tec1-linkbtn:disabled { opacity: 0.5; cursor: default; }
.tec1-ip__trace { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--tec1-line); }
.tec1-ip__tracemsg { margin: 0; color: var(--tec1-subtle); font: 500 13px/1.5 var(--tec1-font-mono); }
.tec1-ip__tracewrap { overflow-x: auto; }
.tec1-ip__tracewrap[hidden] { display: none; }
.tec1-ip__table { width: 100%; border-collapse: collapse; font: 500 13px/1.45 var(--tec1-font-mono); }
.tec1-ip__table th { padding: 6px 10px 6px 0; border-bottom: 2px solid var(--tec1-heading); color: var(--tec1-subtle); font-size: 11px; letter-spacing: 0.1em; text-align: left; text-transform: uppercase; }
.tec1-ip__table td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--tec1-line); color: var(--tec1-text); vertical-align: top; overflow-wrap: anywhere; }
.tec1-ip__geo { margin: 0; color: var(--tec1-subtle); font: 500 12px/1.5 var(--tec1-font-mono); }
.tec1-ip__geo a { color: inherit; }
@media (max-width: 560px) {
	.tec1-ip { padding: 18px 16px; }
}

/* Menü bei mittleren Breiten etwas kompakter, damit alle Punkte auf eine Zeile passen */
@media (min-width: 881px) and (max-width: 1180px) {
	.tec1-nav__list { gap: 2px; }
	.tec1-nav__list a { padding: 10px 9px; font-size: 13px; letter-spacing: 0.05em; }
}

.tec1-gw-list { margin: 0; padding: 0; border-top: 1px solid var(--tec1-line); list-style: none; }
.entry-content .tec1-gw-list li + li { margin-top: 0; }
.tec1-gw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--tec1-line); }
.tec1-gw__name { flex: 1 1 200px; color: var(--tec1-heading); font-weight: 700; }
.tec1-gw__meta { color: var(--tec1-subtle); font: 500 13px/1.4 var(--tec1-font-mono); }

.tec1-map {
	position: relative;
	overflow: hidden;
	min-height: 260px;
	border: 1px solid var(--tec1-line);
	border-radius: var(--tec1-radius);
	background:
		radial-gradient(circle at 50% 50%, transparent 0 22%, var(--tec1-line) 22.2% 22.6%, transparent 22.8% 44%, var(--tec1-line) 44.2% 44.6%, transparent 44.8%),
		var(--tec1-surface);
}
.tec1-map.is-loaded { min-height: 0; background: var(--tec1-surface); }
.tec1-map__frame { display: block; width: 100%; height: min(70vh, 640px); border: 0; }
.tec1-map__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 260px; padding: 28px; text-align: center; }
.tec1-map.is-loaded .tec1-map__placeholder { min-height: 0; padding: 14px; }
.tec1-map.is-loaded .tec1-map__title,
.tec1-map.is-loaded .tec1-map__text { display: none; }
.tec1-map__title { margin: 0; color: var(--tec1-heading); font: 700 13px/1.4 var(--tec1-font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.tec1-map__text { margin: 0; color: var(--tec1-muted); font-size: 16px; }
.tec1-map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 0; }
html:not(.js) .tec1-map__load { display: none; }

/* Tabellen, Fragen, Startseite */
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { min-width: 560px; }
.entry-content .wp-block-table td { font-size: 15px; }
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table th,
.entry-content .wp-block-table td { border: 0; border-bottom: 1px solid var(--tec1-line); }
.entry-content .wp-block-table thead th { border-bottom: 2px solid var(--tec1-heading); }
.entry-content .wp-block-table td code { white-space: nowrap; }
.entry-content .tec1-hosts table { min-width: 0; }
.entry-content .tec1-hosts td:first-child { width: 1%; padding-right: 20px; }
.entry-content .wp-block-details { padding: 14px 0; border-bottom: 1px solid var(--tec1-line); }
.entry-content .wp-block-details + .wp-block-details { margin-block-start: 0; }
.entry-content .wp-block-details:first-of-type { border-top: 1px solid var(--tec1-line); }
.entry-content .wp-block-details summary { color: var(--tec1-heading); font-weight: 700; cursor: pointer; }
.entry-content .wp-block-details > :not(summary) { margin: 10px 0 0; color: var(--tec1-muted); }
.tec1-front-content > .wp-block-group + .wp-block-group { margin-block-start: clamp(56px, 8vw, 96px); }
.alignwide > .is-style-tec1-lead { max-width: 780px; }
.entry-content .wp-block-columns .is-style-tec1-kicker { margin-bottom: 6px; }
.entry-content .wp-block-column > p { margin: 0; }

/* --------------------------------------------------------------------------
   Rechtstexte
   -------------------------------------------------------------------------- */
.tec1-legal { font-size: 17px; }
.tec1-legal h2 { font-size: clamp(22px, 2.6vw, 26px); scroll-margin-top: 24px; }
.tec1-toc {
	padding: 20px 24px;
	border: 1px solid var(--tec1-line);
	border-radius: var(--tec1-radius);
	background: var(--tec1-surface);
}
.entry-content > .tec1-toc + * { margin-block-start: 2em; }
.tec1-toc__title { margin: 0 0 8px; color: var(--tec1-subtle); font: 700 13px/1.4 var(--tec1-font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.tec1-toc ol { margin: 0; padding-left: 1.3em; columns: 2 240px; column-gap: 32px; }
.tec1-toc li { font-size: 16px; break-inside: avoid; }
.tec1-toc li + li { margin-top: 0.2em; }

/* --------------------------------------------------------------------------
   Blog, Beitrag, 404
   -------------------------------------------------------------------------- */
.tec1-post-list { max-width: calc(var(--tec1-content) + 2 * var(--tec1-gutter)); padding-bottom: clamp(64px, 9vw, 112px); }
.tec1-post-item { padding: 28px 0; border-bottom: 1px solid var(--tec1-line); }
.tec1-post-item:first-child { border-top: 1px solid var(--tec1-line); }
.tec1-post-item__date { margin: 0; color: var(--tec1-subtle); font: 500 13px/1.4 var(--tec1-font-mono); letter-spacing: 0.08em; }
.tec1-post-item__title { margin: 6px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.tec1-post-item__title a { color: var(--tec1-heading); text-decoration: none; }
.tec1-post-item__title a:hover { color: var(--tec1-accent-ink); }
.tec1-post-item__excerpt { margin: 10px 0 0; color: var(--tec1-muted); }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; font-family: var(--tec1-font-mono); }
.page-numbers { padding: 8px 12px; border: 1px solid var(--tec1-line); border-radius: 8px; text-decoration: none; }
.page-numbers.current { border-color: var(--tec1-heading); background: var(--tec1-heading); color: var(--tec1-bg); }

.tec1-featured { max-width: var(--tec1-wide); margin: 0 auto clamp(32px, 5vw, 48px); padding-inline: var(--tec1-gutter); }
.tec1-featured img { display: block; width: 100%; border-radius: var(--tec1-radius); }

.tec1-post-nav { max-width: calc(var(--tec1-content) + 2 * var(--tec1-gutter)); margin: 0 auto; padding: 0 var(--tec1-gutter) 64px; }
.tec1-post-nav .nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--tec1-line); }
.tec1-post-nav a { color: var(--tec1-heading); text-decoration: none; }
.tec1-post-nav__label { display: block; color: var(--tec1-subtle); font: 700 12px/1.4 var(--tec1-font-mono); letter-spacing: 0.12em; text-transform: uppercase; }

.tec1-back { max-width: calc(var(--tec1-content) + 2 * var(--tec1-gutter)); margin: -48px auto 0; padding: 0 var(--tec1-gutter) 72px; font: 700 14px/1.4 var(--tec1-font-mono); }
.tec1-back a { display: inline-block; padding: 12px 0; text-decoration: none; }

.tec1-404 { padding-bottom: clamp(72px, 12vw, 140px); }
.tec1-404__actions { margin: 32px 0 0; }

/* --------------------------------------------------------------------------
   Fusszeile
   -------------------------------------------------------------------------- */
.site-footer { padding: 40px 0 44px; border-top: 1px solid var(--tec1-line); color: var(--tec1-subtle); font-size: 15px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-brand--small .tec1-wordmark { font-size: 28px; }
.site-footer__slogan { margin: 0; color: var(--tec1-subtle); font: 700 13px/1.4 var(--tec1-font-mono); letter-spacing: 0.16em; }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.tec1-footer-nav__list { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.tec1-footer-nav__list a { display: inline-block; padding: 10px 0; color: var(--tec1-muted); font-size: 15px; text-decoration: none; }
.tec1-footer-nav__list a:hover { color: var(--tec1-accent-ink); text-decoration: underline; }
.site-footer__copy { margin: 0; }
.site-footer--minimal { padding: 12px 0 20px; border-top: 0; }
.site-footer--minimal .site-footer__inner { justify-content: center; }
.site-footer--minimal .tec1-footer-nav__list a { color: var(--tec1-subtle); font-size: 14px; }

/* --------------------------------------------------------------------------
   Bewegung und Druck
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.tec1-card { transition: none; }
	.tec1-card:hover { transform: none; }
}

@media print {
	.site-header, .site-footer, .tec1-toc, .tec1-skip-link, .tec1-back { display: none !important; }
	body.tec1-site { display: block; }
	a { color: inherit; }
}
