/* Kopfzeile, Menü und Suche (Menü v2, Stand 2026-10-13).
   Erzeugt wird das Markup zentral von content/menu_rules.py, das Verhalten steckt in menu.js.
   Alle Klassen tragen das Präfix kh-, damit nichts mit den älteren Kopfzeilen-Regeln in styles.css kollidiert.
   Farben, Schriften und Linien kommen aus den Variablen von styles.css (:root). */
.kh-header, .kh-util, .kh-search { --kh-ok: #4f7a3c; --kh-hdr: 78px; }
.kh-header *, .kh-util *, .kh-search * { box-sizing: border-box; }
.kh-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.kh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kh-eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--bronze-2); line-height: 1.4; }
.kh-header [hidden], .kh-util [hidden], .kh-search[hidden] { display: none !important; }
.kh-header button, .kh-util button, .kh-search button { font: inherit; color: inherit; cursor: pointer; }
.kh-header :focus-visible, .kh-util :focus-visible, .kh-search :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Obere Leiste ---------- */
.kh-util { position: relative; z-index: 61; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.kh-util-row { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.kh-util-right { display: flex; align-items: center; gap: 22px; }
.kh-util a { text-decoration: none; }
.kh-util a:hover { color: var(--accent-dark); }
.kh-util a.kh-pagechip.btn { font-weight: 600; font-size: 13px; letter-spacing: 0; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 0; border: 0; background: none; transition: color .15s ease; }
.kh-util a.kh-pagechip.btn:hover, .kh-util a.kh-pagechip.btn:focus-visible { background: none; color: var(--ink); }
.kh-pagechip .kh-ico { width: 14px; height: 14px; }
.kh-pop-wrap { position: relative; }
.kh-ubtn { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; padding: 8px 0; font-size: 13px; text-align: left; }
.kh-ubtn:hover { color: var(--accent-dark); }
.kh-ubtn .kh-ico { width: 14px; height: 14px; }
.kh-ubtn strong { font-weight: 600; }
.kh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bronze-2); flex: none; position: relative; display: inline-block; }
.kh-dot.on { background: var(--kh-ok, #4f7a3c); }
.kh-dot.on::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--kh-ok, #4f7a3c); animation: kh-ping 2.6s ease-out infinite; }
@keyframes kh-ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.kh-pop { position: absolute; top: calc(100% + 6px); width: min(360px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line-dark); box-shadow: 0 28px 44px -26px rgba(37,39,36,.45); padding: 20px 22px; z-index: 90; border-radius: 3px; font-size: 14px; }
.kh-pop.kh-l { left: 0; }
.kh-pop.kh-r { right: 0; }
.kh-pop .kh-pop-t { font: 400 21px/1.25 var(--serif); margin: 0 0 6px; }
.kh-pop p { margin: 0 0 14px; font-size: 14px; color: #43463f; line-height: 1.55; }
.kh-pop .kh-btn { width: 100%; margin-top: 8px; }
.kh-role-opt { display: block; width: 100%; text-align: left; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 11px 14px; margin-top: 8px; }
.kh-role-opt:hover { border-color: var(--accent); }
.kh-role-opt[aria-pressed=true] { border-color: var(--ink); background: var(--paper-2); }
.kh-role-opt b { display: block; font-size: 15px; }
.kh-role-opt span { font-size: 13px; color: #585b53; line-height: 1.45; display: block; }

/* ---------- Kopfzeile ---------- */
.kh-header { position: sticky; top: 0; z-index: 60; background: rgba(251,249,244,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.kh-row { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.kh-logo { display: inline-flex; flex: none; }
.kh-logo img { height: 40px; width: auto; display: block; }
.kh-nav { margin-left: auto; }
.kh-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.kh-tab { background: none; border: 0; padding: 10px 11px; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; position: relative; letter-spacing: .005em; white-space: nowrap; text-decoration: none; color: var(--ink); }
.kh-tab:hover, .kh-tab[aria-expanded=true] { color: var(--accent-dark); }
.kh-tab[aria-expanded=true]::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 2px; background: var(--accent); }
.kh-tab .kh-ico { width: 13px; height: 13px; transition: transform .2s ease; }
.kh-tab[aria-expanded=true] .kh-ico { transform: rotate(180deg); }
.kh-reldot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: none; }
.kh-tab.kh-rel .kh-reldot { display: inline-block; }
.kh-tools { display: flex; align-items: center; gap: 12px; }
.kh-search-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; width: 44px; padding: 0; border: 1px solid var(--line-dark); border-radius: 999px; background: var(--paper); font-size: 14px; color: #585b53; }
.kh-search-btn:hover { border-color: var(--accent); color: var(--ink); }
.kh-search-btn .kh-s-txt, .kh-search-btn kbd { display: none; }
.kh-search-btn kbd, .kh-kbd { margin-left: auto; font: 600 11px/1 var(--sans); border: 1px solid var(--line-dark); border-radius: 4px; padding: 3px 6px; color: #585b53; background: var(--paper); }
.kh-btn, .kh-header .kh-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 2px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; line-height: 1.2; width: auto; }
.kh-btn-primary, .kh-header .kh-cta { background: var(--accent); color: #fff; }
.kh-btn-primary:hover, .kh-header .kh-cta:hover { background: var(--accent-dark); color: #fff; }
.kh-btn-line { border-color: var(--line-dark); background: transparent; color: var(--ink); }
.kh-btn-line:hover { border-color: var(--accent); color: var(--accent-dark); background: transparent; }
.kh-btn-primary:focus-visible, .kh-header .kh-cta:focus-visible { background: var(--accent-dark); color: #fff; }
.kh-btn-line:focus-visible { background: transparent; color: var(--accent-dark); }
.kh-iconbtn { display: none; width: 46px; height: 46px; border: 1px solid var(--line-dark); border-radius: 50%; background: none; place-items: center; padding: 0; color: var(--ink); }

/* ---------- Großes Menü ---------- */
.kh-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line-dark); box-shadow: 0 56px 60px -50px rgba(37,39,36,.55); max-height: calc(100vh - var(--kh-hdr) - 12px); overflow: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; outline: none; }
.kh-mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease; }
.kh-mega-inner { padding-top: 22px; padding-bottom: 26px; }
.kh-mega-head { display: flex; align-items: flex-end; gap: 28px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.kh-title .kh-h { font: 400 29px/1.15 var(--serif); margin: 5px 0 0; letter-spacing: -.012em; }
.kh-roles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.kh-roles-label { font-size: 12.5px; color: #585b53; margin-right: 4px; }
.kh-pill { border: 1px solid var(--line-dark); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.kh-pill:hover { border-color: var(--accent); }
.kh-pill[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kh-close { width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 50%; background: none; display: grid; place-items: center; flex: none; padding: 0; }
.kh-close:hover { border-color: var(--accent); color: var(--accent-dark); }

.kh-cols { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 56px; }
.kh-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 36px; align-content: start; }
.kh-groups.kh-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kh-group .kh-gh { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--bronze-2); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-family: var(--sans); line-height: 1.4; }
.kh-for { font-size: 10px; letter-spacing: .1em; color: #fff; background: var(--accent); padding: 2px 7px; border-radius: 999px; }
.kh-links { list-style: none; margin: 0 0 18px; padding: 0; }
.kh-links li { margin: 0; }
.kh-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; padding: 9px 0; font-size: 16px; line-height: 1.4; border-bottom: 1px solid var(--line); transition: padding .15s ease, color .15s ease; color: var(--ink); }
.kh-links a::after { content: ''; width: 16px; height: 16px; flex: none; opacity: 0; transform: translateX(-6px); transition: opacity .15s ease, transform .15s ease; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a85a14' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.kh-links a:hover, .kh-links a:focus-visible { color: var(--accent-dark); padding-left: 6px; }
.kh-links a:hover::after, .kh-links a:focus-visible::after { opacity: 1; transform: none; }
.kh-links.kh-many { columns: 3; column-gap: 28px; }
.kh-links.kh-many li { break-inside: avoid; }

.kh-peek { background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; padding: 22px 24px 20px; align-self: start; position: relative; min-height: 120px; }
.kh-peek-in { animation: kh-fade .22s ease; }
@keyframes kh-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.kh-peek .kh-peek-t { font: 400 22px/1.22 var(--serif); margin: 8px 0 10px; letter-spacing: -.008em; }
.kh-peek p { font-size: 14.5px; color: #43463f; margin: 0 0 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kh-peek-go { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; color: var(--ink); }
.kh-peek-go:hover { color: var(--accent-dark); }
.kh-peek-go .kh-ico { width: 16px; height: 16px; }
.kh-peek-tag { position: absolute; top: -1px; right: 22px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 5px 9px; border-radius: 0 0 3px 3px; }

.kh-strip { margin-top: 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; padding: 16px 22px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.kh-strip .kh-lead { flex: 0 1 270px; min-width: 200px; }
.kh-strip .kh-lead p { margin: 3px 0 0; font-size: 13.5px; color: #43463f; line-height: 1.45; }
.kh-eval { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex: 1 1 520px; justify-content: flex-end; margin: 0; }
.kh-eval fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.kh-opt { position: relative; }
.kh-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.kh-opt span { display: block; border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 12px; font-size: 13.5px; background: var(--paper); font-weight: 500; white-space: nowrap; }
.kh-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kh-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.kh-opt:hover span { border-color: var(--accent); }
.kh-field input { height: 44px; border: 1px solid var(--line-dark); background: var(--paper); border-radius: 2px; padding: 0 12px; font: inherit; font-size: 15px; width: 170px; color: var(--ink); }
.kh-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Feine Trennlinie in Linklisten (z. B. Anlageformen) und Abstand für Sprungziele unter der festen Kopfzeile */
.kh-links li.kh-sep { height: 0; margin: 10px 0 2px; border-top: 1px solid var(--line-dark); list-style: none; }
.kh-links li:has(+ .kh-sep) a { border-bottom-color: transparent; }
:target { scroll-margin-top: 104px; }

/* Karte "Ihr Veedel im Blick" (Entwurf des Nutzers 2026-10-13, Farben nach CI: Anthrazit, Terrakotta, Sand, Off-White) */
.kh-accent { color: var(--accent); }
.kh-vd { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 44px; align-items: start; }
.kh-vd-map { background: var(--paper-2); border-radius: 18px; padding: 16px 12px 12px; }
.kh-vd-maptop, .kh-vd-mapfoot { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #585b53; padding: 0 8px; line-height: 1.4; }
.kh-vd-north { display: inline-flex; align-items: center; gap: 3px; letter-spacing: .1em; }
.kh-vd-north .kh-ico { width: 13px; height: 13px; }
.kh-vd-mapfoot i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); margin-right: 4px; }
.kh-kmap { position: relative; width: 100%; aspect-ratio: 1 / 1; margin: 10px 0 8px; }
.kh-kmap .kh-river { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.kh-kmap .kh-river path { fill: none; stroke: var(--sand); stroke-width: 12; }
.kh-kmap .kh-river .kh-waterline { stroke: var(--paper); stroke-width: 2; opacity: .85; }
.kh-rhein { position: absolute; left: 60%; top: 47%; font: italic 13px var(--serif); transform: rotate(80deg); color: var(--bronze); pointer-events: none; }
.kh-tile { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 12px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-align: left; line-height: 1.3; box-shadow: 0 3px 4px rgba(37,39,36,.03); transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease; }
.kh-tile b { font-size: 13.5px; font-weight: 600; }
.kh-tile small { font-size: 11.5px; color: #585b53; }
.kh-tile em { position: absolute; right: 9px; top: 12px; opacity: 0; transition: opacity .18s ease; }
.kh-tile em .kh-ico { width: 15px; height: 15px; }
.kh-tile:hover { transform: translateY(-3px); box-shadow: 0 7px 12px rgba(37,39,36,.08); border-color: var(--ink); }
.kh-tile[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 8px 16px rgba(37,39,36,.2); }
.kh-tile[aria-pressed=true] small { color: rgba(251,249,244,.85); }
.kh-tile[aria-pressed=true] em { opacity: 1; }
.kh-tile.kh-none { border-style: dashed; background: transparent; }
.kh-tile.kh-none[aria-pressed=true] { background: var(--ink); }

.kh-bz { padding-top: 2px; min-width: 0; }
.kh-vd-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kh-vd-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #585b53; }
.kh-vd-sel .kh-ico { width: 14px; height: 14px; color: var(--accent); }
.kh-bz .kh-top { margin: 12px 0 0; }
.kh-bz .kh-bzt { display: block; font: 400 31px/1.2 var(--serif); letter-spacing: -.8px; margin: 14px 0 4px; }
.kh-bz .kh-sub { font-size: 14px; color: #585b53; margin: 0 0 14px; }
.kh-bz .kh-links:not(.kh-many) { columns: 2; column-gap: 36px; }
.kh-bz .kh-links li { break-inside: avoid; }
.kh-bz .kh-links a { font-size: 16px; }
.kh-bz .kh-links a::after { opacity: 1; transform: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a85a14' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E"); }
.kh-bz .kh-empty { font-size: 15px; line-height: 1.6; color: #43463f; border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.kh-vd-personal { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.kh-vd-personal > span { display: block; font: italic 16px/1.4 var(--serif); margin-bottom: 8px; }
.kh-vd-personal a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--accent-dark); font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.kh-vd-personal a:hover { color: var(--ink); }
.kh-vd-personal .kh-ico { width: 15px; height: 15px; }
.kh-mini { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kh-mini .kh-lbl { font-size: 12.5px; color: #585b53; margin-right: 4px; }
.kh-mini a { border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 13px; font-size: 14px; text-decoration: none; color: var(--ink); }
.kh-mini a:hover { border-color: var(--accent); color: var(--accent-dark); }
.kh-top a { padding: 4px 11px; font-size: 13.5px; }
.kh-vd-bottom { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.kh-vd-bottom .kh-vd-all { margin-left: auto; font-weight: 600; border-color: transparent; border-bottom: 1px solid var(--accent); border-radius: 0; padding: 4px 0; }

/* Rechner */
.kh-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kh-tool { display: flex; flex-direction: column; gap: 8px; text-decoration: none; border: 1px solid var(--line); border-radius: 3px; padding: 18px 20px; background: var(--paper); transition: border-color .15s ease, transform .15s ease; color: var(--ink); }
.kh-tool:hover, .kh-tool:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.kh-tool .kh-tool-t { font: 400 21px/1.25 var(--serif); margin: 0; }
.kh-tool p { margin: 0; font-size: 14px; color: #585b53; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kh-tool .kh-go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent-dark); display: inline-flex; gap: 8px; align-items: center; }
.kh-tool .kh-go .kh-ico { width: 16px; height: 16px; }
.kh-tool.kh-first { background: var(--paper-2); }

/* ---------- Suche ---------- */
.kh-search { position: fixed; inset: 0; z-index: 1500; font-size: 15px; line-height: 1.5; color: var(--ink); }
.kh-s-backdrop { position: absolute; inset: 0; background: rgba(37,39,36,.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.kh-s-box { position: relative; margin: 7vh auto 0; width: min(900px, calc(100vw - 32px)); max-height: 84vh; background: var(--paper); border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); display: flex; flex-direction: column; overflow: hidden; animation: kh-pop .2s ease; }
@keyframes kh-pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.kh-s-form { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex: none; margin: 0; }
.kh-s-form .kh-ico { width: 24px; height: 24px; color: var(--bronze-2); }
.kh-s-form input { flex: 1; min-width: 0; border: 0; background: none; font: 400 25px/1.3 var(--serif); color: var(--ink); outline: none; padding: 6px 0; box-shadow: none; }
.kh-s-form input::placeholder { color: #8f9088; }
.kh-s-form input::-webkit-search-cancel-button { display: none; }
.kh-s-x { border: 1px solid var(--line-dark); background: none; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.kh-s-x:hover { border-color: var(--accent); color: var(--accent-dark); }
.kh-s-facets { display: flex; flex: none; align-items: center; gap: 8px; padding: 12px 22px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.kh-s-facets .kh-pill { white-space: nowrap; flex: none; }
.kh-s-facets .kh-pill i { font-style: normal; color: #585b53; margin-left: 6px; font-size: 12px; }
.kh-s-facets .kh-pill[aria-pressed=true] i { color: #cfc9bb; }
.kh-s-body { overflow: auto; padding: 6px 10px 14px; flex: 1; }
.kh-s-msg { padding: 10px 14px 2px; font-size: 13.5px; color: #585b53; }
.kh-s-msg button { background: none; border: 0; padding: 0; color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.kh-s-group { margin-top: 12px; }
.kh-s-group > .kh-sgh { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-2); margin: 0; padding: 8px 14px 4px; display: flex; gap: 8px; }
.kh-s-group > .kh-sgh em { font-style: normal; color: #585b53; letter-spacing: .02em; text-transform: none; font-weight: 500; }
.kh-r { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 3px; text-decoration: none; position: relative; border-left: 2px solid transparent; color: var(--ink); }
.kh-r .kh-ib { width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; color: var(--bronze); }
.kh-r .kh-ib .kh-ico { width: 18px; height: 18px; }
.kh-r .kh-tt { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.kh-r .kh-dd { display: -webkit-box; font-size: 13.5px; color: #585b53; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.kh-r .kh-meta { font-size: 12px; color: #585b53; white-space: nowrap; }
.kh-r[aria-selected=true], .kh-r:hover { background: var(--paper-2); border-left-color: var(--accent); }
.kh-r.kh-act { background: var(--paper-2); }
.kh-r.kh-act .kh-ib { background: var(--accent); border-color: var(--accent); color: #fff; }
.kh-r.kh-more { grid-template-columns: minmax(0, 1fr); color: var(--accent-dark); font-size: 14px; font-weight: 600; padding: 8px 14px; cursor: pointer; }
.kh-search mark { background: rgba(168,90,20,.17); color: inherit; border-radius: 2px; padding: 0 1px; }
.kh-s-empty { padding: 14px 14px 4px; }
.kh-s-empty .kh-s-t { font: 400 21px/1.3 var(--serif); margin: 8px 0 6px; }
.kh-s-empty p { margin: 0 0 6px; font-size: 14px; color: #585b53; }
.kh-s-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 22px; }
.kh-s-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; border: 1px solid var(--line-dark); border-radius: 3px; padding: 14px 16px; background: var(--paper); color: var(--ink); }
.kh-s-card:hover { border-color: var(--accent); }
.kh-s-card b { font-size: 15.5px; line-height: 1.3; }
.kh-s-card span { font-size: 13px; color: #585b53; line-height: 1.45; }
.kh-s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kh-s-foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding: 10px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: #585b53; background: var(--paper-2); flex: none; }
.kh-s-foot > span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Mobiles Menüblatt ---------- */
.kh-sheet { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--kh-hdr)); height: calc(100dvh - var(--kh-hdr)); overflow: auto; background: var(--paper); border-top: 1px solid var(--line); padding: 18px 20px 120px; z-index: 70; }
.kh-sheet .kh-sheet-cta { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.kh-sheet .kh-sheet-cta .kh-btn { width: 100%; }
.kh-sheet .kh-sheet-search { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: var(--paper); font-size: 15px; color: #585b53; margin-bottom: 18px; }
.kh-sheet-roles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.kh-sheet details { border-bottom: 1px solid var(--line); }
.kh-sheet summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 400 22px/1.2 var(--serif); cursor: pointer; min-height: 56px; }
.kh-sheet summary::-webkit-details-marker { display: none; }
.kh-sheet summary .kh-ico { width: 18px; height: 18px; transition: transform .2s ease; }
.kh-sheet details[open] > summary .kh-ico { transform: rotate(180deg); }
.kh-sheet summary .kh-reldot { margin-left: 10px; }
.kh-sheet details.kh-rel > summary .kh-reldot { display: inline-block; }
.kh-sheet .kh-sub { padding: 0 0 14px; }
.kh-sheet .kh-sub a { display: block; padding: 12px 0; text-decoration: none; font-size: 16.5px; border-top: 1px solid var(--line); min-height: 46px; color: var(--ink); }
.kh-sheet .kh-sub h4 { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-2); margin: 14px 0 2px; }
.kh-sheet .kh-sub details { border: 0; }
.kh-sheet .kh-sub details summary { font: 500 16.5px/1.3 var(--sans); padding: 12px 0; border-top: 1px solid var(--line); min-height: 46px; }
.kh-sheet .kh-sub details .kh-sub { padding-left: 14px; }
.kh-sheet .kh-sub a.kh-sheet-all { font-weight: 600; }
.kh-sheet .kh-sheet-row { border-bottom: 1px solid var(--line); }
.kh-sheet .kh-sheet-row a { display: flex; align-items: center; min-height: 56px; padding: 16px 0; font: 400 22px/1.2 var(--serif); text-decoration: none; color: var(--ink); }

/* Statuspunkt in der mobilen Schnellkontakt-Leiste */
.mbar a .kh-dot { margin-left: 2px; }

/* ---------- Lebenslagen (Menü Verkaufen) ---------- */
.kh-ll-intro { margin: 0 0 12px; font-size: 14px; color: #43463f; line-height: 1.5; }
.kh-ll-btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-dark); background: var(--paper); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.kh-ll-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.kh-ll-btn[aria-expanded=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kh-ll-btn .kh-ico { width: 14px; height: 14px; transition: transform .2s ease; }
.kh-ll-btn[aria-expanded=true] .kh-ico { transform: rotate(180deg); }
.kh-ll { margin-top: 20px; padding: 18px 22px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); animation: kh-fade .22s ease; }
.kh-ll-lead { margin: 4px 0 0; font-size: 14.5px; color: #43463f; }
.kh-ll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.kh-llt { display: flex; flex-direction: column; gap: 4px; text-decoration: none; border: 1px solid var(--line-dark); border-radius: 3px; padding: 12px 14px; background: var(--paper-2); color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.kh-llt:hover, .kh-llt:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.kh-llt-t { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.kh-llt-d { font-size: 13px; color: #585b53; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kh-ll-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.kh-ll-more .kh-lbl { color: #585b53; font-size: 12.5px; }
.kh-ll-more a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 3px; }
.kh-ll-more a:hover { color: var(--accent-dark); text-decoration-color: var(--accent); }
.kh-ll-more a.kh-ll-all { margin-left: auto; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); }

/* ---------- Breiten ---------- */
@media (min-width: 1420px) {
  .kh-search-btn { width: auto; min-width: 176px; justify-content: flex-start; padding: 0 12px 0 14px; }
  .kh-search-btn .kh-s-txt, .kh-search-btn kbd { display: inline; }
  .kh-tab { padding: 10px 14px; }
  .kh-tab[aria-expanded=true]::after { left: 14px; right: 14px; }
}
@media (max-width: 1200px) {
  .kh-nav, .kh-tools .kh-cta, .kh-tools .kh-search-btn { display: none; }
  .kh-iconbtn { display: grid; }
  .kh-tools { margin-left: auto; }
  .kh-row { min-height: 68px; }
  .kh-mega { display: none; }
}
@media (min-width: 1201px) {
  .kh-sheet { display: none; }
}
@media (max-width: 640px) {
  .kh-util a.kh-pagechip.btn { display: none; }   /* steht im Menüblatt */
  .kh-util-right { gap: 12px; }
  .kh-ubtn { font-size: 12.5px; }
  .kh-roleBtn .kh-lead { display: none; }
  .kh-s-box { margin-top: 0; width: 100vw; max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; border-radius: 0; }
  .kh-s-form { padding: 12px 14px; }
  .kh-s-form input { font-size: 21px; }
  .kh-s-cards { grid-template-columns: 1fr; }
  .kh-r .kh-meta { display: none; }
  .kh-r { grid-template-columns: 34px minmax(0, 1fr); }
  .kh-r .kh-ib { width: 34px; height: 34px; }
  .kh-s-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kh-header *, .kh-util *, .kh-search *, .kh-header *::before, .kh-header *::after { animation: none !important; transition: none !important; }
}

