/*
Theme Name: Radar
Theme URI: https://nettoradar.de
Author: Nettoradar
Description: Schwarz-weißes Magazin- und Rechner-Theme für nettoradar.de. Ein Farbton (Signalgelb) für den Radar-Blip, Bricolage Grotesque für Überschriften, Systemschrift für den Text. Kein jQuery, keine externen Abhängigkeiten.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
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: nettoradar
Tags: black, white, one-column, custom-logo, featured-images, threaded-comments
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
@font-face {
	font-family: "Bricolage";
	src: url("assets/fonts/bricolage-display.woff2") format("woff2");
	font-weight: 500 800;
	font-style: normal;
	font-display: swap;
}
:root {
	--ink: #000;
	--paper: #fff;
	--line: #e4e4e4;
	--line-strong: #000;
	--muted: #5c5c5c;
	--soft: #f3f3f1;
	--blip: #ffe600;
	--display: "Bricolage", "Helvetica Neue", Arial, sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--max: 1200px;
	--measure: 70ch;
	--radius: 10px;
	--shadow: 5px 5px 0 var(--ink);
	--shadow-sm: 3px 3px 0 var(--ink);
	--gutter: clamp(16px, 4vw, 32px);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--blip); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--blip); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: 18px; }
p, ul, ol, table, blockquote, figure { margin: 0 0 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--ink); }
.header-bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 0; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; text-decoration: none; line-height: 1; }
.logo .radar { flex: none; width: .92em; height: .92em; margin: 0 .04em; position: relative; top: .06em; }
.logo:hover .radar .sweep { animation: sweep 1.6s linear infinite; transform-origin: 50% 50%; }
@keyframes sweep { to { transform: rotate(360deg); } }
.logo .tagline { display: none; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.primary-nav a { display: inline-block; padding: 8px 12px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border-radius: 999px; border: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav .current-menu-ancestor > a { border-color: var(--ink); }
.primary-nav .is-rechner > a { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.primary-nav .is-rechner > a:hover { background: var(--blip); color: var(--ink); border-color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--blip); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }
.search-panel { display: none; border-top: 2px solid var(--ink); background: var(--paper); }
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: 8px; padding: 14px 0; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: 16px; }
.search-form button { padding: 12px 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; }
.search-form button:hover { background: var(--blip); color: var(--ink); }
@media (max-width: 900px) {
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 8px var(--gutter) 16px; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 4px; }
	.primary-nav a { display: block; font-size: 17px; padding: 10px 14px; }
	.nav-toggle { display: inline-flex; }
	.header-tools { margin-left: auto; }
}

/* ==========================================================================
   4. Buttons, chips, marks
   ========================================================================== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: var(--blip); color: var(--ink); text-decoration: none; }
.btn-ghost { background: var(--paper); color: var(--ink); }
.chip { display: inline-block; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; line-height: 1.3; }
.chip:hover { background: var(--blip); text-decoration: none; }
mark, .hl { background: linear-gradient(transparent 55%, var(--blip) 55%); color: inherit; padding: 0 2px; }

/* ==========================================================================
   5. Front page
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); }
.hero h1 { margin-bottom: .4em; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); max-width: 34em; color: var(--ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.radar-screen { position: relative; background: var(--ink); color: var(--paper); border-radius: 18px; padding: clamp(18px, 2.5vw, 28px); box-shadow: 8px 8px 0 var(--blip); overflow: hidden; isolation: isolate; }
.radar-screen::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 120%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.14) 0 1px, transparent 1px 34px); opacity: .9; pointer-events: none; z-index: -1; }
.radar-screen::after { content: ""; position: absolute; top: -20%; right: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,230,0,.35), transparent 28%); animation: sweep 6s linear infinite; pointer-events: none; z-index: -1; }
.radar-screen .screen-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 12px; }
.radar-screen .screen-title .blip { width: 12px; height: 12px; border-radius: 50%; background: var(--blip); box-shadow: 0 0 0 4px rgba(255,230,0,.25); }
/* mini calculator in the hero */
.mini { margin: 0; }
.mini-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.mini label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #cfcfcf; font-weight: 600; }
.mini-input { display: flex; }
.mini input, .mini select { width: 100%; min-height: 48px; padding: 8px 12px; border: 2px solid #fff; border-radius: 8px; background: #fff; color: #000; font-family: var(--display); font-weight: 700; font-size: 20px; }
.mini-input input { border-radius: 8px 0 0 8px; border-right: 0; }
.mini-input span { display: flex; align-items: center; padding: 0 12px; border: 2px solid #fff; border-left: 0; border-radius: 0 8px 8px 0; background: #fff; color: #000; font-weight: 700; }
.mini select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.mini input:focus, .mini select:focus { outline: 3px solid var(--blip); outline-offset: 2px; box-shadow: none; }
.mini-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); }
.mini-netto { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mini-netto span { font-size: 14px; color: #cfcfcf; }
.mini-netto b { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1; color: var(--blip); font-variant-numeric: tabular-nums; }
.mini-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.mini-rows div { min-width: 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; }
.mini-rows dt { font-size: 12px; color: #cfcfcf; }
.mini-rows dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; }
.mini-foot small { font-size: 12px; color: #a8a8a8; max-width: 26em; }
.btn-blip { background: var(--blip); color: var(--ink); border-color: var(--blip); box-shadow: 3px 3px 0 #fff; }
.btn-blip:hover { background: #fff; color: var(--ink); box-shadow: 1px 1px 0 #fff; }
@media (max-width: 480px) { .mini-fields { grid-template-columns: 1fr; } .mini-rows { grid-template-columns: 1fr 1fr; } }
/* plugin quick calculator inside the screen (falls per Shortcode eingebettet): black & white */
.radar-screen .nr-calc, .radar-screen .nr-page { --nr-accent: var(--blip); --nr-ink: #fff; --nr-muted: #c9c9c9; --nr-line: rgba(255,255,255,.18); --nr-bg: transparent; color: #fff; }
.radar-screen .nr-calc { border: 0; background: transparent; box-shadow: none; margin: 0; }
.radar-screen .nr-calc-form { background: transparent; border-bottom: 1px solid rgba(255,255,255,.18); padding: 0 0 14px; }
.radar-screen .nr-field input, .radar-screen .nr-field select { background: #111; color: #fff; border-color: #444; }
.radar-screen .nr-inputgroup span { background: #111; border-color: #444; color: #fff; }
.radar-screen .nr-result { padding: 14px 0 0; }
.radar-screen .nr-big .nr-big-value { color: var(--blip); }
.radar-screen .nr-table thead th { background: transparent; color: #c9c9c9; }
.radar-screen .nr-table td, .radar-screen .nr-table th { border-color: rgba(255,255,255,.18); }
.radar-screen .nr-tab { background: transparent; color: #fff; border-color: #555; }
.radar-screen .nr-tab[aria-selected=true] { background: var(--blip); color: #000; border-color: var(--blip); }
.radar-screen a { color: #fff; }
.radar-screen .nr-details summary { color: var(--blip); }
.radar-screen .fallback { margin: 0; }
.radar-screen .fallback .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.radar-screen .fallback .row strong { color: var(--blip); font-family: var(--display); font-size: 22px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .radar-screen { box-shadow: 6px 6px 0 var(--blip); } }

.section { padding: clamp(28px, 4vw, 56px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { white-space: nowrap; font-weight: 600; }
.section-black { background: var(--ink); color: var(--paper); border-bottom: 6px solid var(--blip); }
.section-black a { color: var(--paper); }
.section-black h2 { color: var(--paper); }

/* Rechner strip: plugin grid restyled */
.tools-strip .nr-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tools-strip .nr-card, .nr-grid .nr-card { --nr-accent: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; background: var(--paper); }
.tools-strip .nr-card:hover, .nr-grid .nr-card:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); border-color: var(--ink); background: var(--blip); }
.nr-grid .nr-card-icon { color: var(--ink); font-family: var(--display); font-size: 24px; filter: grayscale(1); }
.nr-grid .nr-card-title { font-family: var(--display); font-weight: 700; }
.tools-fallback { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tools-fallback a { display: block; padding: 16px; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; font-family: var(--display); font-weight: 700; }
.tools-fallback a:hover { background: var(--blip); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* Themen tiles */
.themen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 18px 18px 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); text-decoration: none; overflow: hidden; }
.tile::after { content: ""; position: absolute; right: -28px; bottom: -28px; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--ink); opacity: .12; }
.tile:hover { background: var(--blip); text-decoration: none; }
.tile .tile-name { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2vw, 24px); line-height: 1.1; letter-spacing: -0.02em; }
.tile .tile-count { font-size: 14px; color: var(--muted); }
.tile:hover .tile-count { color: var(--ink); }
.tile .tile-latest { margin-top: auto; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .themen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .themen { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* Zahlen band */
.zahlen { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.zahl { min-width: 0; border: 2px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: 16px 14px; overflow-wrap: anywhere; }
.zahl b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1; color: var(--blip); font-variant-numeric: tabular-nums; }
.zahl span { display: block; margin-top: 8px; font-size: 14px; color: #d6d6d6; line-height: 1.3; hyphens: auto; }
@media (max-width: 1000px) { .zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   6. Cards (archive, related, front)
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; min-width: 0; flex-direction: column; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: var(--shadow-sm); }
.card .card-media { display: block; position: relative; aspect-ratio: 3 / 2; border-bottom: 2px solid var(--ink); background: var(--soft); }
.card .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.card .card-kicker { font-size: 13px; font-weight: 700; }
.card .card-kicker a { text-decoration: none; border-bottom: 2px solid var(--blip); }
.card h3 { font-size: 20px; margin: 0; line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--blip); text-decoration-thickness: 3px; }
.card .card-excerpt { font-size: 15px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .card-meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.card-featured .card-media { aspect-ratio: auto; border-bottom: 0; border-right: 2px solid var(--ink); min-height: 300px; }
.card-featured h3 { font-size: clamp(24px, 2.6vw, 32px); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-featured { grid-template-columns: 1fr; } .card-featured .card-media { aspect-ratio: 3 / 2; border-right: 0; border-bottom: 2px solid var(--ink); min-height: 0; } }
@media (max-width: 560px) { .cards, .cards-2 { grid-template-columns: 1fr; } }

/* ==========================================================================
   7. Archive / page headers
   ========================================================================== */
.page-head { padding: clamp(28px, 4vw, 48px) 0 clamp(16px, 2vw, 24px); }
.page-head h1 { margin-bottom: .3em; }
.page-head .desc { font-size: 18px; max-width: var(--measure); color: var(--muted); }
.breadcrumbs { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.sub-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

/* ==========================================================================
   8. Single post / page
   ========================================================================== */
.article-head { padding: clamp(24px, 4vw, 44px) 0 8px; }
.article-head h1 { max-width: 22ch; }
.article-head .excerpt { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--ink); max-width: var(--measure); margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--muted); padding: 12px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.article-meta .author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.article-meta .avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); }
.article-meta .updated { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blip); border: 1px solid var(--ink); }
.hero-image { margin: 24px 0 8px; }
.hero-image img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-image figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }

.entry-content { max-width: var(--measure); font-size: 18px; line-height: 1.65; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 1.6em; padding-top: .3em; }
.entry-content h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--ink); margin-bottom: 14px; border-radius: 2px; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content strong { font-weight: 700; background: linear-gradient(transparent 62%, var(--blip) 62%); padding: 0 1px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { font-weight: 700; }
.entry-content blockquote { margin: 1.6em 0; padding: 18px 22px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--soft); font-size: 17px; box-shadow: var(--shadow-sm); }
.entry-content blockquote p { margin: 0 0 .5em; }
.entry-content blockquote cite { display: block; font-style: normal; font-size: 14px; color: var(--muted); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figure img { display: block; border: 2px solid var(--ink); border-radius: var(--radius); }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content .tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; border: 2px solid var(--ink); border-radius: var(--radius); }
@media (max-width: 700px) { .entry-content .tbl::before { content: "Tabelle seitlich scrollen →"; display: block; padding: 6px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--soft); } }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .01em; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:nth-child(even) { background: var(--soft); }
.entry-content td, .entry-content th { font-variant-numeric: tabular-nums; }
.entry-content a { text-decoration-thickness: 2px; }
.entry-content > p:first-of-type { font-size: 19px; }
.entry-content .wp-block-image img, .entry-content img.alignnone { border: 2px solid var(--ink); border-radius: var(--radius); }
.entry-content hr { border: 0; border-top: 2px solid var(--ink); margin: 2em 0; }
.entry-content code { font-size: .92em; background: var(--soft); padding: 2px 6px; border-radius: 4px; }
.entry-content .nr-calc { max-width: 100%; }

/* passender Rechner */
.tool-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 2em 0; padding: 18px 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--blip); max-width: var(--measure); }
.tool-box .tool-icon { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--blip); line-height: 1; }
.tool-box .tool-text b { display: block; font-family: var(--display); font-size: 19px; }
.tool-box .tool-text span { font-size: 14px; color: #d6d6d6; }
.tool-box .btn { background: var(--blip); color: var(--ink); border-color: var(--blip); box-shadow: none; }
.tool-box .btn:hover { background: var(--paper); transform: none; }
@media (max-width: 560px) { .tool-box { grid-template-columns: 1fr; } }

.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 2.5em 0 0; padding: 20px; border: 2px solid var(--ink); border-radius: var(--radius); max-width: var(--measure); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.author-box b { display: block; font-family: var(--display); font-size: 18px; }
.author-box p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6em 0 0; max-width: var(--measure); }
.related { padding: clamp(28px, 4vw, 48px) 0; border-top: 2px solid var(--ink); margin-top: clamp(28px, 4vw, 48px); }

/* comments */
.comments { max-width: var(--measure); margin: 2.5em 0 0; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment .comment-author { font-weight: 700; }
.comment .comment-date { font-size: 13px; color: var(--muted); }
.comment .children { list-style: none; padding-left: 24px; margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); margin-bottom: 12px; }
.comment-form .submit { padding: 12px 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm); }
.comment-form .submit:hover { background: var(--blip); color: var(--ink); }
.hp-field { position: absolute; left: -9999px; }

/* ==========================================================================
   9. Plugin pages (rechner) – make them monochrome inside the theme
   ========================================================================== */
.nr-page { --nr-accent: #000 !important; --nr-ink: #000; --nr-muted: #5c5c5c; --nr-line: #e4e4e4; --nr-bg: #f3f3f1; max-width: var(--max); padding-top: 24px; }
.nr-page .nr-head h1 { font-family: var(--display); font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.nr-page .nr-section h2 { font-family: var(--display); }
.nr-page .nr-calc { border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.nr-page .nr-calc-form { border-bottom: 2px solid var(--ink); }
.nr-page .nr-field input, .nr-page .nr-field select { border-color: var(--ink); border-width: 2px; border-radius: 8px; }
.nr-page .nr-inputgroup span { border-color: var(--ink); border-width: 2px 2px 2px 0; }
.nr-page .nr-tab { border: 2px solid var(--ink); }
.nr-page .nr-tab[aria-selected=true] { background: var(--ink); color: var(--paper); }
.nr-page .nr-big .nr-big-value { background: linear-gradient(transparent 60%, var(--blip) 60%); color: var(--ink); padding: 0 6px; }
.nr-page .nr-table thead th { background: var(--ink); color: var(--paper); text-transform: none; font-family: var(--display); font-size: 14px; letter-spacing: 0; }
.nr-page .nr-table tr.nr-hl td, .nr-page .nr-table tr.nr-hl th { background: #fff7a8; }
.nr-page .nr-bar span { filter: grayscale(1) contrast(1.2); }
.nr-page .nr-bar span:first-child { filter: none; background: var(--blip) !important; }
.nr-page .nr-legend i { filter: grayscale(1) contrast(1.2); }
.nr-page .nr-legend > :first-child i, .nr-page .nr-legend i:first-child { filter: none; background: var(--blip) !important; border: 1px solid var(--ink); }
.nr-page .nr-disclaimer { border-left: 4px solid var(--ink); }
.nr-page .nr-crumbs { font-size: 14px; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.home .site-footer { margin-top: 0; }
.site-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--ink); color: #d6d6d6; padding: clamp(32px, 5vw, 56px) 0 28px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--blip); text-decoration-thickness: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-brand .logo { color: var(--paper); font-size: 30px; }
.footer-brand p { margin: 12px 0 0; max-width: 32em; font-size: 15px; }
.footer-col h4 { color: var(--paper); font-size: 16px; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); font-size: 13px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   11. Search / 404 / misc
   ========================================================================== */
.empty { padding: 40px 0; max-width: var(--measure); }
.empty h2 { font-size: 26px; }
.big-404 { font-family: var(--display); font-weight: 800; font-size: clamp(90px, 20vw, 220px); line-height: .9; letter-spacing: -0.05em; margin: 0 0 8px; }
.big-404 span { background: linear-gradient(transparent 60%, var(--blip) 60%); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); }
.pagination .page-numbers:hover { background: var(--blip); }
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin: 0 auto 12px; }
.sticky, .bypostauthor, .gallery-caption { display: initial; }
