/* dental-it-sicherheit.de – Ein Angebot der ITmedical GmbH & Co. KG
   Design-System wie praxis-telematik.de (angelehnt an itmedical.de). Schriften lokal, keine externen Dienste. */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/jakarta-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--itm-blue: #0a6fbf;
	--itm-blue-600: #085c9f;
	--itm-sky: #3dbbf0;
	--itm-sky-100: #e6f5fd;
	--itm-ink: #0b1b2b;
	--itm-text: #3a4a5c;
	--itm-muted: #5f6e80;
	--itm-line: #e2e9f1;
	--itm-surface: #f4f8fc;
	--itm-white: #fff;
	--itm-night: #071421;
	--itm-ok: #12a172;
	--itm-warn: #b7791f;
	--itm-warn-100: #fdf3e2;
	--itm-alert: #c0392b;
	--itm-alert-100: #fbeceb;

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

	--r-s: 10px;
	--r: 18px;
	--r-l: 28px;
	--shadow-s: 0 1px 2px rgba(11, 27, 43, .06), 0 2px 8px rgba(11, 27, 43, .04);
	--shadow: 0 2px 4px rgba(11, 27, 43, .04), 0 12px 32px rgba(11, 27, 43, .08);

	--section-y: clamp(48px, 8vw, 104px);
	--gutter: clamp(18px, 4vw, 32px);
	--max: 1180px;
	--max-text: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--itm-text);
	background: var(--itm-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	color: var(--itm-ink);
	letter-spacing: -0.02em;
	line-height: 1.2;
	font-weight: 700;
	text-wrap: balance;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); }
h3 { font-size: clamp(1.12rem, 1.05rem + .35vw, 1.3rem); letter-spacing: -0.01em; }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
a { color: var(--itm-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--itm-blue-600); }
strong { color: var(--itm-ink); font-weight: 650; }
::selection { background: var(--itm-sky); color: var(--itm-ink); }
:focus-visible { outline: 3px solid var(--itm-sky); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--itm-ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--max-text) + 2 * var(--gutter)); }

/* ---------- Kopf ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--itm-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--itm-ink); margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-head); font-weight: 750; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.1; }
.brand-name span { color: var(--itm-blue); }
.brand-name .brand-sub { display: block; white-space: nowrap; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--itm-muted); letter-spacing: 0; }

.nav-toggle {
	display: inline-flex; align-items: center; gap: 8px;
	border: 1px solid var(--itm-line); background: #fff; color: var(--itm-ink);
	font: 600 .95rem var(--font-body); padding: 9px 14px; border-radius: 999px; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.site-nav { display: none; }
.site-nav.open {
	display: block; position: absolute; left: 0; right: 0; top: 100%;
	background: #fff; border-bottom: 1px solid var(--itm-line); box-shadow: var(--shadow);
	padding: 8px var(--gutter) 20px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 12px 4px; color: var(--itm-ink); text-decoration: none; font-weight: 550; border-bottom: 1px solid var(--itm-line); }
.site-nav a[aria-current="page"] { color: var(--itm-blue); }
.site-nav .nav-cta { margin-top: 14px; }
.site-nav .nav-cta a { border: 0; }
.header-call { display: none; }

@media (min-width: 1120px) {
	.nav-toggle { display: none; }
	.site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; padding: 0; background: none; }
	.site-nav > ul { display: flex; align-items: center; gap: 4px; }
	.site-nav a { border: 0; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
	.site-nav a:hover { background: var(--itm-surface); }
	.site-nav .nav-cta { margin: 0 0 0 8px; }
	.header-call { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
	font: 650 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--itm-blue); color: #fff; }
.btn-primary:hover { background: var(--itm-blue-600); color: #fff; }
.btn-ghost { background: #fff; color: var(--itm-blue); border-color: var(--itm-blue); }
.btn-ghost:hover { background: var(--itm-sky-100); color: var(--itm-blue-600); }
.btn-light { background: #fff; color: var(--itm-ink); }
.btn-light:hover { background: var(--itm-sky-100); color: var(--itm-ink); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-small { padding: 9px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--itm-surface), #fff); padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { display: inline-block; font: 650 .8rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--itm-blue); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--itm-text); max-width: 38rem; }
.hero-photo { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-size: .95rem; color: var(--itm-ink); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; color: var(--itm-ok); flex: none; }

/* ---------- Sektionen ---------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--itm-surface); }
.section-head { max-width: 44rem; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head p { font-size: 1.06rem; }

.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
	background: #fff; border: 1px solid var(--itm-line); border-radius: var(--r);
	padding: 24px; box-shadow: var(--shadow-s); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--itm-sky-100); color: var(--itm-blue); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--itm-sky); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .more { margin-top: auto; padding-top: 12px; color: var(--itm-blue); font-weight: 650; font-size: .95rem; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps > li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; background: #fff; border: 1px solid var(--itm-line); border-radius: var(--r); }
.steps > li::before {
	content: counter(s); position: absolute; left: 18px; top: 16px;
	width: 34px; height: 34px; border-radius: 50%; background: var(--itm-blue); color: #fff;
	display: grid; place-items: center; font: 700 1rem var(--font-head);
}
.steps > li p:last-child { margin-bottom: 0; }
.steps strong { display: block; margin-bottom: 2px; }

/* ---------- Artikel ---------- */
.page-head { background: linear-gradient(180deg, var(--itm-surface), #fff); padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.breadcrumb { font-size: .88rem; margin-bottom: 18px; color: var(--itm-muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--itm-muted); }
.breadcrumb a { color: var(--itm-muted); }
.meta { font-size: .88rem; color: var(--itm-muted); margin-top: 14px; }

.article { padding: clamp(16px, 3vw, 32px) 0 var(--section-y); }
.prose { max-width: var(--max-text); }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--itm-blue); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--itm-line); }
.prose th { color: var(--itm-ink); background: var(--itm-surface); font-weight: 650; }

.toc { background: var(--itm-surface); border-radius: var(--r); padding: 18px 22px; margin: 0 0 28px; font-size: .96rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 3px 0; }

.note { border-radius: var(--r); padding: 18px 20px; margin: 0 0 1.3em; background: var(--itm-sky-100); border-left: 4px solid var(--itm-blue); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note-warn { background: var(--itm-warn-100); border-left-color: var(--itm-warn); }
.note-title { display: block; font-family: var(--font-head); font-weight: 700; color: var(--itm-ink); margin-bottom: 4px; }

.faq { margin-top: 2.2em; }
.faq details { border: 1px solid var(--itm-line); border-radius: var(--r-s); margin-bottom: 10px; background: #fff; }
.faq summary {
	cursor: pointer; padding: 15px 48px 15px 18px; font-weight: 650; color: var(--itm-ink);
	list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--itm-blue); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 18px 14px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

.sources { margin-top: 2.2em; font-size: .9rem; padding-top: 18px; border-top: 1px solid var(--itm-line); }
.sources h2 { font-size: 1.05rem; margin: 0 0 .6em; }
.sources ul { padding-left: 1.2em; margin: 0; }
.sources li { margin-bottom: .3em; word-break: break-word; }

.related { margin-top: 2.4em; }
.related h2 { font-size: 1.2rem; }

/* ---------- Lexikon ---------- */
.lex-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.lex-nav a { display: inline-block; min-width: 36px; text-align: center; padding: 6px 10px; border-radius: 8px; background: var(--itm-surface); text-decoration: none; font-weight: 650; }
.lex dl { margin: 0; }
.lex dt { font-family: var(--font-head); font-weight: 700; color: var(--itm-ink); font-size: 1.08rem; margin-top: 1.2em; scroll-margin-top: 90px; }
.lex dd { margin: .3em 0 0; padding-bottom: 1em; border-bottom: 1px solid var(--itm-line); }
.lex h2 { margin-top: 1.4em; font-size: 1.5rem; color: var(--itm-blue); }

/* ---------- Werkzeug ---------- */
.tool { background: #fff; border: 1px solid var(--itm-line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); margin: 0 0 2em; }
.tool label { display: block; font-weight: 650; color: var(--itm-ink); margin-bottom: 6px; }
.tool fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.tool legend { font-weight: 650; color: var(--itm-ink); margin-bottom: 8px; padding: 0; }
.tool .choices { display: grid; gap: 8px; }
@media (min-width: 640px) { .tool .choices { grid-template-columns: repeat(2, 1fr); } }
.tool .choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--itm-line); border-radius: var(--r-s); padding: 12px 14px; cursor: pointer; font-weight: 500; margin: 0; }
.tool .choice:has(input:checked) { border-color: var(--itm-blue); background: var(--itm-sky-100); }
.tool .choice input { margin-top: 4px; accent-color: var(--itm-blue); }
.tool input[type="date"] {
	font: 500 1.05rem var(--font-body); padding: 12px 14px; border: 1px solid #c9d5e3; border-radius: var(--r-s);
	width: 100%; max-width: 280px; color: var(--itm-ink); background: #fff;
}
.tool .hint { font-size: .88rem; color: var(--itm-muted); margin-top: 6px; }
.result { margin-top: 22px; border-radius: var(--r); padding: 20px 22px; }
.result[hidden] { display: none; }
.result h3 { margin-bottom: .4em; }
.result ul { padding-left: 1.2em; }
.result-ok { background: #e8f7f1; border-left: 5px solid var(--itm-ok); }
.result-warn { background: var(--itm-warn-100); border-left: 5px solid var(--itm-warn); }
.result-alert { background: var(--itm-alert-100); border-left: 5px solid var(--itm-alert); }
.result .days { font: 800 clamp(1.6rem, 1.2rem + 2vw, 2.4rem) var(--font-head); color: var(--itm-ink); display: block; margin-bottom: 4px; }

/* ---------- CTA ---------- */
.cta {
	background: linear-gradient(135deg, var(--itm-ink), #0d3557 60%, var(--itm-blue));
	color: #dce8f4; border-radius: var(--r-l); padding: clamp(28px, 5vw, 56px);
}
.cta h2 { color: #fff; }
.cta p { max-width: 40rem; }
.cta a:not(.btn) { color: #fff; }
.cta .small { font-size: .88rem; color: #a9bfd6; margin: 18px 0 0; }
.cta-inline { margin: 2.2em 0; }

.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--itm-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.partners { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.partners li { background: #fff; border: 1px solid var(--itm-line); border-radius: 999px; padding: 8px 16px; font-size: .92rem; font-weight: 600; color: var(--itm-ink); }

/* ---------- Fuß ---------- */
.site-footer { background: var(--itm-night); color: #a9bfd6; padding: clamp(40px, 6vw, 72px) 0 28px; font-size: .95rem; margin-top: var(--section-y); }
.site-footer a { color: #dce8f4; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .8em; letter-spacing: 0; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 140px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: .86rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }

.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; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
@media print {
	.site-header, .site-footer, .cta, .nav-toggle { display: none !important; }
	body { font-size: 12pt; }
}
.site-footer .on-dark { color: #fff; }
.h3, .prose .h3 { font-size: clamp(1.12rem, 1.05rem + .35vw, 1.3rem); letter-spacing: -0.01em; }
.prose .card h2, .prose .card h3 { margin-top: 0; }
.prose .grid { margin-bottom: 1.6em; }
.prose .card p { margin-bottom: .8em; }
.tool-submit { margin-top: 16px; }
.result .btn-row { margin-top: 14px; }

.site-nav a, .btn { white-space: nowrap; }
@media (max-width: 400px) { .brand-name .brand-sub { font-size: .66rem; } .brand-name { font-size: 1.02rem; } }
@media (max-width: 479px) {
	.nav-toggle { padding: 10px; }
	.nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.brand { min-width: 0; }
}

/* ---------- dental-it-sicherheit.de: Ergänzungen ---------- */
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-4 .card p { font-size: .96rem; }
.section-tight { padding: 0 0 clamp(8px, 2vw, 16px); }

/* Status-Tafel im Hero (rein illustrativ) */
.status-panel {
	background: var(--itm-night); color: #dce8f4; border-radius: var(--r-l); box-shadow: var(--shadow);
	padding: clamp(18px, 3vw, 28px); font-size: .95rem;
}
.status-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 14px; }
.status-head svg { width: 26px; height: 26px; color: var(--itm-sky); flex: none; }
.status-head em { margin-left: auto; font: 600 .7rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: #a9bfd6; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 9px; font-style: normal; }
.status-panel ul { list-style: none; margin: 0; padding: 0; }
.status-panel li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.status-panel .dot { width: 10px; height: 10px; border-radius: 50%; background: #2fd39a; box-shadow: 0 0 0 4px rgba(47,211,154,.18); flex: none; }
.status-panel b { margin-left: auto; font-weight: 600; color: #2fd39a; font-size: .85rem; white-space: nowrap; padding-left: 8px; }

/* Notfall-Leiste */
.emergency {
	display: grid; gap: 14px 20px; align-items: center;
	background: var(--itm-alert-100); border: 1px solid #f1c9c4; border-left: 5px solid var(--itm-alert);
	border-radius: var(--r); padding: 18px 20px;
}
.emergency h2 { margin-bottom: .3em; }
.emergency p { margin: 0; }
.emergency-icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--itm-alert); display: grid; place-items: center; }
.emergency-icon svg { width: 24px; height: 24px; }
@media (min-width: 860px) { .emergency { grid-template-columns: auto 1fr auto; } }
.btn-alert { background: var(--itm-alert); color: #fff; }
.btn-alert:hover { background: #a03024; color: #fff; }
.note-alert { background: var(--itm-alert-100); border-left-color: var(--itm-alert); }

.checklist-card { background: #fff; border: 1px solid var(--itm-line); border-radius: var(--r); padding: 22px 24px 12px; box-shadow: var(--shadow-s); margin: 0; }

/* Selbst-Check */
.quiz-group { border: 0; padding: 0; margin: 0 0 26px; }
.quiz-group > legend { font: 700 1.2rem var(--font-head); color: var(--itm-ink); margin-bottom: 10px; padding: 0; }
.q { border: 1px solid var(--itm-line); border-radius: var(--r-s); padding: 14px 16px; margin: 0 0 10px; background: #fff; }
.q.q-open { border-color: #c9d5e3; }
.q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q legend { font-weight: 600; color: var(--itm-ink); padding: 0; margin-bottom: 10px; line-height: 1.45; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; padding: 8px 16px; border: 1px solid #c9d5e3; border-radius: 999px; font-weight: 600; font-size: .94rem; cursor: pointer; background: #fff; color: var(--itm-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--itm-sky); outline-offset: 2px; }
.seg input[value="2"]:checked + span { background: #e8f7f1; border-color: var(--itm-ok); color: #0b6b4c; }
.seg input[value="1"]:checked + span { background: var(--itm-warn-100); border-color: var(--itm-warn); color: #7a4f12; }
.seg input[value="0"]:checked + span { background: var(--itm-alert-100); border-color: var(--itm-alert); color: #8e2a1f; }
.quiz-progress { position: sticky; top: 76px; z-index: 5; background: rgba(255,255,255,.96); padding: 10px 0; margin-bottom: 14px; font-size: .9rem; color: var(--itm-muted); }
.quiz-bar { height: 6px; background: var(--itm-line); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--itm-blue); transition: width .2s; }
.score { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.score .days { margin: 0; }
.open-list { list-style: none; padding: 0; margin: 12px 0 0; }
.open-list li { background: rgba(255,255,255,.7); border-radius: var(--r-s); padding: 12px 14px; margin-bottom: 8px; }
.open-list li strong { display: block; }
.open-list .tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 1px 8px; margin-right: 6px; vertical-align: 1px; }
.open-list .tag-0 { background: var(--itm-alert); color: #fff; }
.open-list .tag-1 { background: var(--itm-warn); color: #fff; }
@media print {
	.quiz-progress, .tool-submit, .result .btn-row { display: none !important; }
	.q { break-inside: avoid; }
}
.result { scroll-margin-top: 150px; }
@media (max-width: 479px) {
	.tool { padding: 16px 12px; border-radius: var(--r); }
	.q { padding: 12px; }
	.result { padding: 16px 12px; }
	.open-list li { padding: 10px; }
	.seg span { padding: 8px 13px; }
}
.prose .open-list { padding-left: 0; }
.site-nav a.btn { display: inline-flex; }
.grid-4 h3 { font-size: 1.1rem; hyphens: auto; -webkit-hyphens: auto; }
/* ---------- Anfrageformular ---------- */
.anfrage fieldset + fieldset, .anfrage .form-grid + fieldset, .anfrage fieldset + .form-grid { margin-top: 22px; }
.form-grid { display: grid; gap: 14px 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { font-weight: 650; color: var(--itm-ink); display: block; margin-bottom: 6px; }
.anfrage input[type="text"], .anfrage input[type="email"], .anfrage input[type="tel"], .anfrage select, .anfrage textarea {
	width: 100%; font: 500 1rem var(--font-body); padding: 11px 13px; border: 1px solid #c9d5e3; border-radius: var(--r-s); color: var(--itm-ink); background: #fff;
}
.anfrage textarea { resize: vertical; min-height: 110px; }
.anfrage input:focus, .anfrage select:focus, .anfrage textarea:focus { outline: 3px solid var(--itm-sky); outline-offset: 1px; border-color: var(--itm-blue); }
.opt { font-weight: 450; color: var(--itm-muted); font-size: .88rem; }
.req { color: var(--itm-alert); }
.anfrage .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; margin: 22px 0 0; color: var(--itm-text); }
.anfrage .consent input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--itm-blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: var(--r); padding: 18px 20px; margin: 0 0 20px; }
.form-msg[hidden] { display: none; }
.form-error { background: var(--itm-alert-100); border-left: 5px solid var(--itm-alert); color: var(--itm-ink); }
.form-ok { background: #e8f7f1; border-left: 5px solid var(--itm-ok); }
.form-ok h2 { margin-top: 0; }
.btn:disabled { opacity: .65; cursor: wait; }
