/* ToolHarbor – Design-System
   Hell, ruhig, Blau/Türkis mit sparsamer Koralle. Immer heller Modus (kein automatischer Dunkelmodus).
   Schriften liegen lokal (Inter, SIL OFL 1.1). Keine externen Ressourcen. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-semibold.woff") format("woff"); font-weight: 600 800; font-display: swap; }

:root {
  color-scheme: light;
  /* Grundfarben */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-ink: #ffffff;
  --primary-soft: #E8F0FE;
  --primary-text: #1D4ED8;
  --teal: #14B8A6;
  --teal-ink: #0F766E;
  --coral: #FF6B5E;
  --bg: #F8FBFF;
  --surface: #FFFFFF;
  --surface-2: #F9FBFF;
  --sunken: #EEF5FF;
  --ink: #172033;
  --sky: #EEF5FF;
  --ink-2: #33415A;
  --muted: #536174;
  --line: #DDE6F0;
  --line-strong: #C5D3E3;
  --navy: #102A56;
  --ok: #157347; --ok-soft: #E6F6EE;
  --warn: #8A5300; --warn-soft: #FFF4E0;
  --err: #B42318; --err-soft: #FDECEA;
  --focus: #2563EB;
  /* Kategorien: Text-/Icon-Farbe (≥ 4,5:1 auf der Tönung) und dezente Tönung */
  --c-pdf: #C2362B; --c-pdf-soft: #FFEDEB; --c-pdf-line: #FF8F85;
  --c-image: #6D28D9; --c-image-soft: #F2ECFF; --c-image-line: #A78BFA;
  --c-text: #1D4ED8; --c-text-soft: #E8F0FE; --c-text-line: #7FA6F5;
  --c-calc: #B45309; --c-calc-soft: #FFF2E2; --c-calc-line: #FDBA74;
  --c-web: #0F766E; --c-web-soft: #E1F7F3; --c-web-line: #5EEAD4;
  /* Form */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(23, 32, 51, .04), 0 4px 14px rgba(37, 99, 235, .05);
  --shadow-md: 0 2px 4px rgba(23, 32, 51, .04), 0 12px 32px rgba(37, 99, 235, .09);
  --shadow-lg: 0 24px 60px rgba(15, 27, 61, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 180ms;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --header-h: 74px;
}

/* Kategorie-Variablen auf beliebigen Elementen */
.cat-pdf { --cat: var(--c-pdf); --cat-soft: var(--c-pdf-soft); --cat-line: var(--c-pdf-line); }
.cat-image { --cat: var(--c-image); --cat-soft: var(--c-image-soft); --cat-line: var(--c-image-line); }
.cat-text { --cat: var(--c-text); --cat-soft: var(--c-text-soft); --cat-line: var(--c-text-line); }
.cat-calc { --cat: var(--c-calc); --cat-soft: var(--c-calc-soft); --cat-line: var(--c-calc-line); }
.cat-web { --cat: var(--c-web); --cat-soft: var(--c-web-soft); --cat-line: var(--c-web-line); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { max-width: 100%; }
a { color: var(--primary-text); text-underline-offset: .18em; transition: color var(--t) var(--ease); }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--sunken); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
main { display: block; outline: none; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Kopfzeile ----------
   Weiß, feine Trennlinie, 3-px-Markenlinie oben (Royalblau → Türkis). Kein Glas, kein Blur, keine Höhenänderung beim Scrollen.
   Desktop ≥ 1200: alle Kategorien + Suchfeld · 768–1199: Kategorien nach Priorität, Rest unter „Mehr“, Suche als Symbol ·
   < 768: Logo, Suche, Sprache, Menü (Schublade von rechts). */
.site-header { position: sticky; top: 0; z-index: 60; background: linear-gradient(90deg, var(--primary), var(--teal)) top / 100% 3px no-repeat, #fff; padding-top: 3px; border-bottom: 1px solid var(--line); transition: box-shadow var(--t) var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(16, 42, 86, .03), 0 6px 16px -10px rgba(16, 42, 86, .18); }
.header-in { display: flex; align-items: center; gap: 28px; height: calc(var(--header-h) - 4px); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; min-height: 44px; text-decoration: none; color: var(--navy); border-radius: 10px; }
.brand:hover { color: var(--navy); }
.brand-mark { display: inline-flex; width: 38px; height: 38px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.brand-name { font: 800 21px/1 var(--font-display); letter-spacing: -.03em; color: var(--navy); }
.brand-sub { font-size: 12px; line-height: 1; font-weight: 500; color: var(--muted); letter-spacing: .005em; margin-top: 5px; }

.main-nav { align-self: stretch; display: flex; padding-left: 28px; border-left: 1px solid var(--line); margin: 16px 0; }
.nav-list { display: flex; align-items: stretch; gap: 4px; list-style: none; margin: -16px 0; padding: 0; }
.nav-item, .nav-more { display: flex; position: relative; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; min-height: 44px; border: 0; background: none; color: #344054; text-decoration: none; font: 600 15px/1 var(--font); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; transition: color var(--t) var(--ease); }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--cat, var(--primary)); opacity: 0; transition: opacity var(--t) var(--ease); }
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { opacity: .35; }
.nav-link[aria-current]:not(.more-link) { color: var(--navy); }
.nav-link[aria-current]:not(.more-link)::after { opacity: 1; }
.nav-link:focus-visible { outline-offset: -3px; border-radius: 8px; }
.nav-all { color: var(--primary-text); }
.nav-all::after { background: var(--primary); }
.nav-count { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--c-web-soft); color: var(--teal-ink); font-size: 12px; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.nav-item-all { margin-left: 4px; }

/* „Mehr“ – nur auf schmaleren Desktops sichtbar */
.nav-more { display: none; }
.more-btn .chev { width: 15px; height: 15px; color: var(--muted); transition: transform var(--t) var(--ease); }
.more-btn[aria-expanded="true"] { color: var(--navy); }
.more-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.more-list { position: absolute; left: 0; top: calc(100% - 4px); min-width: 220px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 70; }
.more-item { display: none; }
.more-link { display: flex; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 8px; font-weight: 600; }
.more-link::after { display: none; }
.more-link::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--cat); margin-right: 6px; }
.more-link:hover, .more-link:focus-visible { background: var(--sky); color: var(--navy); outline-offset: -2px; }
.more-link[aria-current] { color: var(--navy); background: var(--sky); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line-strong); background: #fff; color: #344054; border-radius: 10px; font: 500 15px/1 var(--font); cursor: pointer; text-decoration: none; transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease); }
.hbtn:hover { border-color: #9DB3D6; color: var(--navy); }
.hbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hbtn .i { width: 19px; height: 19px; }
.search-open { width: 232px; justify-content: flex-start; color: #475467; }
.search-open .i { color: var(--navy); }
.search-open kbd { margin-left: auto; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font: 600 12px/1 var(--mono); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; color: #475467; background: var(--surface-2); }
.menu-toggle { display: none; }

.lang-menu { position: relative; }
.lang-menu .lang-btn { height: 44px; min-height: 44px; border: 1px solid var(--line-strong); background: #fff; padding: 0 10px 0 11px; gap: 6px; border-radius: 10px; }
.lang-btn > .i:first-child { color: var(--primary); width: 18px; height: 18px; }
.lang-btn .lang-code { font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.lang-btn .chev { width: 15px; height: 15px; color: var(--muted); transition: transform var(--t) var(--ease); }
.lang-menu .lang-btn:hover, .lang-menu .lang-btn[aria-expanded="true"] { border-color: #9DB3D6; background: #fff; color: var(--navy); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; max-width: calc(100vw - 24px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 70; }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--sky); color: var(--primary-text); outline-offset: -2px; }
.lang-list a[aria-current="true"] { font-weight: 700; color: var(--primary-text); background: var(--sky); box-shadow: inset 3px 0 0 var(--primary); }
.lang-list .i { width: 17px; height: 17px; }

/* Mobile Schublade (natives <dialog>: Fokus bleibt im Menü, Escape schließt) */
.mnav { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(380px, 100vw); max-width: 100vw; height: 100%; max-height: none; padding: 0; border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.mnav::backdrop { background: rgba(16, 42, 86, .35); }
.mnav-in { display: flex; flex-direction: column; gap: 20px; min-height: 100%; padding: 0 16px 28px; background: linear-gradient(90deg, var(--primary), var(--teal)) top / 100% 3px no-repeat; padding-top: 3px; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 0 16px; }
.mnav-all { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1px solid #BFD3F8; border-radius: 12px; background: var(--sky); color: var(--primary-text); font-weight: 700; font-size: 16px; text-decoration: none; }
.mnav-all .nav-count { margin-left: auto; }
.mnav-all[aria-current] { box-shadow: inset 4px 0 0 var(--primary); }
.mnav-cats, .mnav-info ul { list-style: none; margin: 0; padding: 0; }
.mnav-cats { margin-top: 8px; }
.mnav-link { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.mnav-link .nav-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--cat); flex: none; }
.mnav-link[aria-current] { color: var(--navy); box-shadow: inset 3px 0 0 var(--cat); }
.mnav-h { margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mnav-info a { display: flex; align-items: center; min-height: 44px; color: #344054; text-decoration: none; font-size: 15px; }
.mnav-info a:hover { color: var(--primary-text); }
.mnav .nav-dot { display: inline-block; }
html.mnav-open { overflow: hidden; }
.mnav-search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: #344054; font: 500 15px/1 var(--font); cursor: pointer; }
.mnav-search .i { width: 19px; height: 19px; color: var(--navy); }
.mnav-langs a[aria-current] { font-weight: 700; color: var(--primary-text); }

/* 1024–1199: drei Kategorien direkt, Rest unter „Mehr“; Suche als Symbol */
@media (max-width: 1199px) {
  .header-in { gap: 22px; }
  .main-nav { padding-left: 20px; }
  .search-open { width: 44px; padding: 0; justify-content: center; }
  .search-open-label, .search-open kbd { display: none; }
  .nav-item[data-pri="4"], .nav-item[data-pri="5"] { display: none; }
  .nav-more { display: flex; }
  .more-item[data-pri="4"], .more-item[data-pri="5"] { display: block; }
  .nav-more[data-active-pri="4"] .more-btn, .nav-more[data-active-pri="5"] .more-btn { color: var(--navy); }
  .nav-more[data-active-pri="4"] .more-btn::after, .nav-more[data-active-pri="5"] .more-btn::after { opacity: 1; }
}
/* 768–1023: zwei Kategorien direkt */
@media (max-width: 1023px) {
  .header-in { gap: 16px; }
  .main-nav { padding-left: 14px; }
  .nav-list { gap: 0; }
  .nav-link { padding: 0 10px; }
  .nav-link::after { left: 10px; right: 10px; }
  .nav-item[data-pri="3"] { display: none; }
  .more-item[data-pri="3"] { display: block; }
  .nav-more[data-active-pri="3"] .more-btn { color: var(--navy); }
  .nav-more[data-active-pri="3"] .more-btn::after { opacity: 1; }
  .brand-sub { font-size: 11px; }
}
/* < 768: Menüschaltfläche, Schublade */
@media (max-width: 767px) {
  :root { --header-h: 68px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; width: 44px; padding: 0; }
  .header-in { gap: 10px; }
  .header-actions { gap: 6px; }
  .brand-sub { font-size: 11px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .lang-btn .chev { display: none; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 18px; }
  .brand-sub { display: none; }
  .header-actions { gap: 5px; }
  .lang-btn { padding: 0 8px; gap: 4px; }
  .lang-btn > .i:first-child { width: 16px; height: 16px; }
}
/* Extrem schmal (z. B. 320 px bei 200 % Zoom): nur Bildmarke und Menü; Suche und Sprachen stehen im Menü */
@media (max-width: 299px) {
  .wrap { padding: 0 8px; }
  .brand-text { display: none; }
  .brand { min-width: 44px; justify-content: center; }
  .search-open, .lang-menu { display: none; }
  .mnav-in { padding-left: 12px; padding-right: 12px; }
  /* Inhalt: Reihen stapeln, lange Wörter umbrechen – kein horizontales Scrollen */
  main, .site-footer { overflow-wrap: anywhere; }
  .local-box, .why-list li, .cat-head { flex-direction: column; align-items: flex-start; }
  .local-box { padding: 16px; }
  .why-list li { padding: 14px; }
  .chip { max-width: 100%; white-space: normal; }
  .hcard { min-width: 0; }
  .hc-file { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .mnav[open] { animation: mnavIn .2s var(--ease); }
  @keyframes mnavIn { from { transform: translateX(24px); } }
}
/* Angesprungene Überschriften nicht unter dem Header verstecken */
:target, h2[id], section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; min-width: 42px; padding: 0 11px; border: 1px solid transparent; background: transparent; color: var(--ink-2); border-radius: 10px; font: 500 15px/1 var(--font); cursor: pointer; text-decoration: none; transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.icon-btn:hover { background: var(--sky); color: var(--navy); }

/* ---------- Suche ---------- */
.search-dialog { border: 0; padding: 0; background: transparent; width: min(660px, calc(100vw - 24px)); max-height: min(80vh, 660px); margin: 10vh auto auto; color: var(--ink); }
.search-dialog::backdrop { background: rgba(16, 42, 86, .4); }
.search-dialog-in { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: inherit; }
.search-dialog .search-field { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.search-dialog .search-field:focus-within { box-shadow: none; transform: none; }
.search-results, .suggest { list-style: none; margin: 0; padding: 8px; overflow: auto; }
.search-results:empty { display: none; }
.search-results a, .suggest a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.search-results .sr-dot, .suggest .sr-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--cat); flex: none; }
.search-results a .sr-cat, .suggest a .sr-cat { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.search-results [aria-selected="true"] a, .search-results a:hover, .suggest [aria-selected="true"] a, .suggest a:hover { background: var(--sky); color: var(--navy); }
.search-results .empty, .suggest .empty { padding: 12px 14px; color: var(--muted); }

.search-field { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 10px 0 16px; color: var(--muted); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 14px 0; outline: none; }
.search-field input::placeholder { color: #7A8799; }
.search-field input::-webkit-search-cancel-button { cursor: pointer; }
.hero-search { position: relative; max-width: 600px; }
.search-field.big { min-height: 56px; padding: 0 10px 0 18px; border: 1.5px solid #B9CBE4; border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 42, 86, .05), 0 10px 24px -14px rgba(16, 42, 86, .2); }
.search-field.big input { align-self: stretch; font-size: 17px; line-height: 1.3; padding: 0; min-height: 53px; text-overflow: ellipsis; }
.search-field.big > .i { display: block; flex: none; width: 21px; height: 21px; color: var(--primary); }
.search-field.big:hover { border-color: #A9C1E6; }
.search-field.big:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .16), 0 14px 30px -16px rgba(37, 99, 235, .35); }
.search-kbd { font: 600 11px/1 var(--font); color: var(--muted); border: 1px solid var(--line); background: var(--surface-2); border-radius: 6px; padding: 5px 7px; opacity: 0; transition: opacity var(--t) var(--ease); }
.search-field.big:focus-within .search-kbd { opacity: 1; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 360px; }
.suggest a { padding: 10px 12px; font-size: 15px; }
.suggest mark { background: transparent; color: var(--primary-text); font-weight: 700; }
.search-status { min-height: 1.3em; margin: 6px 4px 0; font-size: 14px; color: var(--muted); }
.search-status:empty { min-height: 0; margin: 0; }

/* ---------- Hero ----------
   Grundsatz: Kein Element mit echtem Text erhält Perspektive, 3D-Transformation, Filter oder Dauer-Animation.
   Räumliche Wirkung entsteht nur über Schriftgewicht, Farbe, normale box-shadows und die Staffelung Karten → Hafen. */
.hero { position: relative; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 60%, var(--sky) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
/* Wenige, sehr helle Punkte nur in der oberen rechten Ecke (nicht hinter der Textspalte) */
.hero::before { content: ""; position: absolute; top: 0; right: 0; width: 42%; height: 46%; background-image: radial-gradient(rgba(37, 99, 235, .055) 1.2px, transparent 1.4px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(90% 100% at 100% 0%, #000 0%, transparent 72%); mask-image: radial-gradient(90% 100% at 100% 0%, #000 0%, transparent 72%); pointer-events: none; }
.hero-bg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; pointer-events: none; }
.hero-arcs { position: absolute; top: 0; right: 0; width: 340px; height: 220px; pointer-events: none; }
@media (max-width: 960px) { .hero-arcs { display: none; } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); gap: 52px; align-items: center; padding-top: 60px; padding-bottom: 72px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px 6px 10px; font-size: 14px; font-weight: 600; color: var(--primary-text); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--teal)); }

/* Überschrift: zwei Ebenen, gerade, ein einziger dezenter Textschatten */
.hero-title { margin: 0 0 24px; font: 800 clamp(38px, 4.1vw, 58px)/1.04 var(--font-display); letter-spacing: -.035em; color: var(--navy); text-shadow: 0 2px 3px rgba(16, 42, 86, .08); text-wrap: balance; overflow-wrap: break-word; }
.hero-title .ht-main { display: block; }
.hero-title .ht-em {
  display: block; width: fit-content; max-width: 100%; margin-top: .14em; padding-bottom: .06em;
  font-size: .86em; letter-spacing: -.03em; text-shadow: none;
  background: linear-gradient(100deg, #2563EB 6%, #0D9488 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 16px; max-width: 640px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.quick-label { display: inline-flex; align-items: center; min-height: 36px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.quick ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; line-height: 1.2; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(16, 42, 86, .04); transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease); }
.chip .i { flex: none; width: 16px; height: 16px; color: var(--cat, var(--primary)); }
.chip:hover { border-color: var(--cat-line, var(--primary)); background: var(--cat-soft, var(--primary-soft)); color: var(--ink); }
.btn-explore { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 11px; border-radius: 10px; border: 1px solid transparent; color: var(--primary-text); background: transparent; text-decoration: none; font-size: 14px; font-weight: 600; transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease); }
.btn-explore .i { width: 17px; height: 17px; }
.btn-explore .go { width: 15px; height: 15px; }
.btn-explore:hover { background: var(--sky); border-color: #CFE0FA; color: var(--navy); }
.trust { list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; max-width: 640px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.trust .i { width: 18px; height: 18px; color: var(--teal-ink); }

/* Hafen: gerades HTML-Raster für die Werkzeugkarten + darunter eine separate, dekorative SVG-Szene */
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before { content: ""; position: absolute; left: -4%; right: -4%; top: 18%; bottom: -6%; border-radius: 40px; background: radial-gradient(70% 60% at 50% 70%, rgba(37, 99, 235, .07), rgba(20, 184, 166, .035) 55%, transparent 80%); pointer-events: none; }
.harbor { position: relative; }
.hcards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.hcard-li { display: flex; min-width: 0; }
.hcard { position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 18px 18px 16px; background: var(--surface); border: 1px solid #D6E1F0; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 42, 86, .06), 0 10px 24px -12px rgba(16, 42, 86, .2); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.hcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cat); }
.hcard-2 .hcard, .hcard-3 .hcard { background: #FCFDFF; }
.hcard:hover { color: var(--ink); border-color: var(--cat-line); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(16, 42, 86, .06), 0 16px 30px -14px rgba(16, 42, 86, .26); }
.hc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hcard .tool-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--cat-soft); color: var(--cat); display: inline-flex; align-items: center; justify-content: center; }
.hcard .tool-icon .i { width: 20px; height: 20px; }
.hc-file { font: 700 11.5px/1 var(--font); letter-spacing: .06em; color: var(--cat); background: var(--cat-soft); border: 1px solid var(--cat-line); border-radius: 6px; padding: 5px 8px; }
.hc-title { font: 700 16px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--navy); }
.hc-short { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.hc-bar { margin-top: auto; padding-top: 12px; display: block; }
.hc-bar i { display: block; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--cat-line), var(--cat)); width: var(--p, 100%); }
.hcard-1 .hc-bar i { --p: 100%; } .hcard-2 .hc-bar i { --p: 72%; } .hcard-3 .hc-bar i { --p: 88%; } .hcard-4 .hc-bar i { --p: 100%; }
.harbor-scene { position: relative; z-index: 1; margin-top: -2px; }
.harbor-art { display: block; width: 100%; height: auto; shape-rendering: geometricPrecision; text-rendering: geometricPrecision; }
.harbor-art.m { display: none; }
.harbor-art text { font-family: var(--font); font-weight: 700; fill: #FFFFFF; letter-spacing: .05em; }

@media (max-width: 1180px) {
  .hero-grid { gap: 36px; padding-top: 48px; padding-bottom: 60px; }
  .hero-title { font-size: clamp(36px, 4.5vw, 52px); }
  .hero-lead { font-size: 17px; }
  .hcards { gap: 14px; }
  .hcard { padding: 15px 14px 13px; }
  .hc-title { font-size: 15px; }
}
/* Tablet: Text zuerst, darunter Suche, dann Karten und Hafen (keine verkleinerte Desktop-Perspektive) */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 44px; padding-bottom: 52px; }
  .hero-title { max-width: 20ch; }
  .hero-visual { width: 100%; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .hero-grid { padding-top: 30px; padding-bottom: 40px; gap: 28px; }
  .hero-kicker { font-size: 13px; margin-bottom: 14px; }
  .hero-title { font-size: clamp(30px, 8.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 16px; }
  .hero-lead { font-size: 16.5px; margin-bottom: 20px; }
  .search-field.big input { font-size: 16px; }
  .search-kbd { display: none; }
  .hero-actions { gap: 10px; }
  .trust { gap: 8px 14px; margin-top: 18px; padding-top: 14px; }
  .trust li { font-size: 13.5px; }
  .hcards { gap: 12px; }
  .hcard-3, .hcard-4 { display: none; }
  .hcard { padding: 14px 13px 12px; border-radius: 14px; }
  .hc-title { font-size: 14.5px; }
  .hc-short { font-size: 12.5px; }
  .hcard .tool-icon { width: 34px; height: 34px; }
}
/* Handys: vereinfachte Szene mit drei größeren Containern (keine winzigen Beschriftungen) */
@media (max-width: 560px) {
  .harbor-art.d { display: none; }
  .harbor-art.m { display: block; }
}

/* Dezente Bewegung – ausschließlich innerhalb der dekorativen SVG und nur ohne Wunsch nach reduzierter Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .hb-waves path { animation: waveMove 12s linear infinite; }
  .hb-waves .hb-w2 { animation-duration: 16s; animation-direction: reverse; }
  @keyframes waveMove { to { transform: translateX(-120px); } }
  .hb-flow path { animation: flow 1.6s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -20; } }
  .hb-ship { animation: bob 8s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1px); } }
  .hb-beam { animation: beam 7s ease-in-out infinite; }
  .hb-glass { animation: glass 7s ease-in-out infinite; }
  @keyframes beam { 0%, 100% { opacity: .3; } 50% { opacity: .75; } }
  @keyframes glass { 0%, 100% { fill: #FDE68A; } 50% { fill: #FEF3C7; } }
  .hb-pulse { animation: pulse 2.8s ease-in-out infinite; }
  .hb-pulse-2 { animation-delay: -1.4s; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
}

/* ---------- Abschnitte der Startseite ---------- */
.block { padding: 64px 0 0; }
.block-head { margin-bottom: 22px; }
.block-head p { color: var(--muted); margin: 6px 0 0; max-width: 62ch; }
.block-h { font: 700 clamp(24px, 2.6vw, 30px)/1.2 var(--font-display); letter-spacing: -.02em; margin: 0; color: var(--ink); }

/* Beliebte Werkzeuge: große Karten */
.feature-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool-feature { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 22px 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.tool-feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cat-line); }
.tool-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--cat-line); color: var(--ink); }
.tool-feature .tool-icon { width: 50px; height: 50px; border-radius: 14px; }
.tool-feature .tool-icon .i { width: 25px; height: 25px; }
.tool-feature .tool-title { font: 700 18px/1.25 var(--font-display); letter-spacing: -.01em; }
.tool-feature .tool-short { font-size: 14.5px; }
.tool-go { position: absolute; right: 18px; top: 22px; color: var(--muted); transition: transform var(--t) var(--ease), color var(--t) var(--ease); }
.tool-feature:hover .tool-go { color: var(--cat); transform: translateX(3px); }

/* Werkzeug-Icons in Kategorie-Farbe */
.tool-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--cat-soft, var(--primary-soft)); color: var(--cat, var(--primary)); display: grid; place-items: center; flex: none; }
.tool-icon .i { width: 20px; height: 20px; }
.tool-text { display: flex; flex-direction: column; min-width: 0; }
.tool-title { font-weight: 600; line-height: 1.3; }
.tool-short { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 3px; }

/* Kategorien */
.cat-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; box-shadow: var(--shadow); transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.cat-tile:hover { border-color: var(--cat-line); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.cat-tile .cat-icon { margin-bottom: 12px; }
.cat-name { font: 700 17px/1.3 var(--font-display); color: var(--cat); }
.cat-desc { font-size: 14px; color: var(--muted); line-height: 1.45; }
.cat-count { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cat-soft); color: var(--cat); display: grid; place-items: center; flex: none; }
.cat-icon .i { width: 22px; height: 22px; }

/* Alle Werkzeuge */
.all-tools .cat-section { padding: 24px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.cat-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cat-head h2, .cat-head h3 { font-size: 21px; margin: 0; color: var(--cat); display: flex; align-items: center; gap: 10px; }
.cat-n { font: 600 12px/1 var(--font); color: var(--cat); background: var(--cat-soft); border-radius: 99px; padding: 4px 8px; }
.cat-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.tool-rows { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; }
.tool-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); transition: background var(--t) var(--ease); }
.tool-row:hover { background: var(--cat-soft); color: var(--ink); }
.tool-row:hover .tool-title { color: var(--cat); }
.tool-row .tool-icon { width: 36px; height: 36px; border-radius: 10px; }
.tool-row .tool-icon .i { width: 18px; height: 18px; }
.tool-row .tool-short { margin-top: 1px; font-size: 13.5px; }
.no-results { padding: 18px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }

/* So funktioniert es */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: how; }
.how-steps li { position: relative; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.how-num { position: absolute; right: 22px; top: 18px; font: 800 44px/1 var(--font-display); color: var(--sunken); }
.how-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.how-steps li:nth-child(2) .how-icon { background: var(--c-web-soft); color: var(--teal-ink); }
.how-steps li:nth-child(3) .how-icon { background: #FFEFEC; color: #C2362B; }
.how-steps h3 { font-size: 18px; margin-bottom: 6px; }
.how-steps p { margin: 0; color: var(--muted); }

/* Warum ToolHarbor / Datenschutz */
.why { padding-bottom: 72px; }
.why-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.why-intro h2 { font-size: clamp(26px, 3vw, 34px); }
.why-intro > p { color: var(--ink-2); font-size: 17px; }
.local-box { display: flex; gap: 16px; padding: 22px; margin-top: 22px; background: var(--navy); color: #DCE6F7; border-radius: var(--radius-lg); }
.local-box > .i { width: 28px; height: 28px; color: #5EEAD4; flex: none; margin-top: 2px; }
.local-box h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.local-points { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: 15px; }
.local-points li { display: flex; gap: 10px; }
.local-points .i { color: #5EEAD4; margin-top: 3px; width: 17px; height: 17px; }
.local-box strong { color: #fff; }
.local-box .text-link { color: #9CC0FF; }
.local-box .text-link:hover { color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why-list li { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.why-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.why-list h3 { font-size: 17px; margin: 0 0 4px; }
.why-list p { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 1080px) {
  .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .block { padding-top: 44px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .tool-rows { grid-template-columns: minmax(0, 1fr); }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .all-tools .cat-section { padding: 16px; }
}
@media (max-width: 520px) {
  .feature-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tool-feature { flex-direction: row; align-items: center; padding: 16px 44px 16px 16px; }
  .tool-feature .tool-icon { width: 44px; height: 44px; }
  .tool-go { top: 50%; transform: translateY(-50%); }
  .tool-feature:hover .tool-go { transform: translate(3px, -50%); }
  .cat-tile { padding: 14px; }
  .cat-desc { display: none; }
}

/* ---------- Werkzeugseite ---------- */
.tool-page { padding-top: 22px; padding-bottom: 72px; max-width: 1040px; }
.tool-page.has-side { max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.tool-side { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1239px) { .tool-page.has-side { display: block; max-width: 1040px; } .tool-side { display: none; } }
.page-wrap { padding-top: 22px; padding-bottom: 72px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary-text); text-decoration: underline; }
.tool-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.tool-head h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.tool-lead { font-size: 18px; color: var(--ink-2); margin: 0; max-width: 66ch; }
.tool-icon.lg { width: 60px; height: 60px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.tool-icon.lg .i { width: 30px; height: 30px; }
.local-note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; margin: 0 0 20px; border-radius: var(--radius); background: var(--c-web-soft); border: 1px solid #BFEDE6; color: var(--ink); font-size: 15px; }
.local-note p { margin: 0; }
.local-note .i { color: var(--teal-ink); margin-top: 2px; }
.local-note.subtle { background: transparent; border: 0; padding: 0; color: var(--muted); font-size: 14px; }
.local-note.subtle .i { color: var(--teal-ink); width: 1.1em; height: 1.1em; }
@media (max-width: 520px) { .tool-head .tool-icon.lg { width: 48px; height: 48px; border-radius: 13px; } .tool-head .tool-icon.lg .i { width: 24px; height: 24px; } .tool-head { gap: 14px; } .tool-lead { font-size: 16px; } }

.workspace { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 32px; margin-bottom: 32px; }
.workspace::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--primary), var(--teal)); }
.ws-loading { color: var(--muted); margin: 0; min-height: 200px; }
.ws-step + .ws-step { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); }
.ws-label { display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 700; margin: 0 0 14px; }
.ws-label .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; letter-spacing: 0; }
.ws-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 520px) { .workspace { padding: 20px 16px; border-radius: var(--radius); margin-left: -4px; margin-right: -4px; } .ws-actions .btn { width: 100%; } }

/* Dateiauswahl */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 44px 20px; border: 2px dashed #B9CDF2; border-radius: var(--radius); background: linear-gradient(180deg, #FAFCFF, #F3F7FF); transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.dropzone:hover { border-color: var(--primary); }
.dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .dz-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--primary); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }
.dropzone .dz-icon .i { width: 26px; height: 26px; }
.dropzone p { margin: 0; color: var(--muted); font-size: 14px; }
.dropzone .dz-title { color: var(--ink); font-size: 17px; font-weight: 600; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone input[type=file]:focus-visible + .btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.dropzone .btn { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; min-height: 48px; padding: 0 22px; }
.dropzone .btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
@media (max-width: 520px) { .dropzone { padding: 26px 14px; } }

.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.file-item .fi-icon { color: var(--primary); }
.file-item .fi-main { flex: 1; min-width: 0; }
.file-item .fi-name { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .fi-meta { display: block; font-size: 13px; color: var(--muted); }
.file-item .fi-meta.err { color: var(--err); }
.file-item .fi-tools { display: flex; gap: 2px; }
.file-item .icon-btn { min-height: 38px; min-width: 38px; padding: 0 6px; }
.file-item.dragging { opacity: .5; }
.file-item[draggable="true"] { cursor: grab; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.btn:hover { border-color: var(--primary); color: var(--primary-text); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; min-height: 52px; padding: 0 28px; font-size: 16px; box-shadow: 0 6px 16px rgba(37, 99, 235, .24); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37, 99, 235, .3); }
.btn.small { min-height: 38px; padding: 0 13px; font-size: 14px; }
.btn.small.primary { min-height: 42px; padding: 0 18px; box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--primary-text); }
.btn.ghost:hover { background: var(--primary-soft); }
.result-head .btn.primary { min-height: 46px; padding: 0 20px; font-size: 15px; }

/* Formularfelder */
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px 20px; align-items: end; }
.fields.wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .flabel { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); margin: 0; }
.input, .field select, .field textarea, .field input[type=text], .field input[type=number], .field input[type=date], .field input[type=time], .field input[type=url], .field input[type=password], .field input[type=search] { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 16px/1.4 var(--font); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.field textarea { min-height: 210px; resize: vertical; line-height: 1.55; }
.field textarea.mono, .output.mono { font-family: var(--mono); font-size: 14px; }
.field select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23536174' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.with-suffix { display: flex; align-items: stretch; }
.with-suffix input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.with-suffix .suffix { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--sunken); color: var(--muted); font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; min-height: 32px; padding-top: 4px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.range-row { display: flex; gap: 12px; align-items: center; min-height: 46px; }
.range-row input[type=range] { flex: 1; accent-color: var(--primary); min-height: 32px; min-width: 0; }
.range-row output { min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--sunken); border-radius: 12px; border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 15px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; min-height: 38px; line-height: 22px; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.seg input:checked + span { background: var(--surface); color: var(--primary-text); box-shadow: 0 1px 3px rgba(23, 32, 51, .12); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 7px; }
.color-input { display: flex; gap: 8px; align-items: center; }
.color-input input[type=color] { width: 50px; height: 46px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; flex: none; }

/* Status */
.ws-status { margin-top: 20px; }
.ws-status:empty { display: none; }
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius-sm); font-size: 15px; margin: 0; }
.msg .i { margin-top: 2px; }
.msg.info { background: var(--sunken); color: var(--ink-2); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }
.msg.error { background: var(--err-soft); color: var(--err); }
.msg + .msg { margin-top: 8px; }
.progress { margin-top: 12px; height: 10px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--teal)); border-radius: inherit; transition: width .15s; }
.progress.indeterminate > div { width: 30%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

/* Ergebnis */
.ws-result { margin-top: 26px; padding: 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.result-head h2 { font-size: 19px; margin: 0; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.result-item .thumb { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--sunken); flex: none; border: 1px solid var(--line); }
.result-item .ri-main { flex: 1; min-width: 0; }
.result-item .ri-name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-item .ri-meta { display: block; font-size: 13px; color: var(--muted); }
.ri-meta .smaller { color: var(--ok); font-weight: 600; }
.ri-meta .bigger { color: var(--warn); font-weight: 600; }
@media (max-width: 520px) { .ws-result { padding: 14px; } .result-item { flex-wrap: wrap; } .result-item .btn { width: 100%; } .result-head .btn { width: 100%; } }
.next-tools { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.next-tools p { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.next-tools ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.next-tools .chip .i { width: 15px; height: 15px; }

.output { width: 100%; min-height: 140px; padding: 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 16px/1.55 var(--font); white-space: pre-wrap; word-break: break-word; resize: vertical; }
.out-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.stat { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.stat .v { display: block; font: 700 26px/1.15 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.stat .k { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat.hl { background: var(--primary-soft); border-color: transparent; }
.stat.hl .v { color: var(--primary-text); }

.big-result { padding: 20px; border-radius: var(--radius); background: var(--primary-soft); }
.big-result .v { font: 800 clamp(28px, 5vw, 42px)/1.15 var(--font-display); color: var(--primary-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; letter-spacing: -.02em; }
.big-result .k { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.data th { font-weight: 600; color: var(--muted); font-size: 13px; }
table.data td.num { text-align: right; }
.table-scroll { overflow-x: auto; }

/* Bildvorschau / Zuschneiden */
.preview-box { position: relative; display: flex; justify-content: center; background: var(--sunken) repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 16px 16px; border-radius: var(--radius-sm); padding: 12px; overflow: hidden; }
.preview-box img, .preview-box canvas { display: block; max-height: 60vh; max-width: 100%; height: auto; }
.crop-stage { position: relative; display: inline-block; touch-action: none; user-select: none; -webkit-user-select: none; }
.crop-stage img { display: block; max-height: 60vh; max-width: 100%; }
.crop-box { position: absolute; border: 2px solid #fff; outline: 1px solid rgba(0, 0, 0, .55); box-shadow: 0 0 0 9999px rgba(15, 27, 61, .45); cursor: move; }
.crop-box .h { position: absolute; width: 18px; height: 18px; background: #fff; border: 1px solid rgba(0, 0, 0, .6); border-radius: 4px; }
.crop-box .h.nw { left: -10px; top: -10px; cursor: nwse-resize; } .crop-box .h.ne { right: -10px; top: -10px; cursor: nesw-resize; }
.crop-box .h.sw { left: -10px; bottom: -10px; cursor: nesw-resize; } .crop-box .h.se { right: -10px; bottom: -10px; cursor: nwse-resize; }
.crop-box::before, .crop-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.crop-box::before { border-left: 1px solid rgba(255,255,255,.45); border-right: 1px solid rgba(255,255,255,.45); left: 33.33%; right: 33.33%; }
.crop-box::after { border-top: 1px solid rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.45); top: 33.33%; bottom: 33.33%; }

/* PDF-Seitenraster */
.page-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.page-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); transition: border-color var(--t) var(--ease); }
.page-tile button.sel { all: unset; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; width: 100%; }
.page-tile button.sel:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.page-tile canvas, .page-tile .ph { display: block; width: 100%; height: auto; aspect-ratio: 1/1.414; object-fit: contain; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .15s; }
.page-tile .ph { display: grid; place-items: center; color: #888; font-size: 12px; }
.page-tile .pn { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-tile.selected { border-color: var(--primary); background: var(--primary-soft); }
.page-tile.marked-del { border-color: var(--err); }
.page-tile.marked-del canvas { opacity: .35; }
.page-tile .badge { position: absolute; top: 6px; right: 6px; background: var(--primary); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 12px; font-weight: 600; }
.page-tile.marked-del .badge { background: var(--err); color: #fff; }
.page-tile .tile-tools { display: flex; gap: 2px; }
.page-tile .tile-tools .icon-btn { min-width: 36px; min-height: 36px; padding: 0; }
.page-tile[draggable="true"] { cursor: grab; }
.page-tile.drop-target { border-style: dashed; border-color: var(--primary); }

/* Diff */
.diff { font-family: var(--mono); font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: auto; max-height: 70vh; background: var(--surface); }
.diff .ln { display: grid; grid-template-columns: 3.2em 3.2em 1.4em 1fr; padding: 0 8px 0 0; white-space: pre-wrap; word-break: break-word; }
.diff .ln > span:nth-child(-n+2) { color: var(--muted); text-align: right; padding-right: 8px; user-select: none; }
.diff .ln > span:nth-child(3) { text-align: center; user-select: none; }
.diff .add { background: var(--ok-soft); } .diff .add > span:nth-child(3) { color: var(--ok); }
.diff .del { background: var(--err-soft); } .diff .del > span:nth-child(3) { color: var(--err); }
.diff ins { background: rgba(21, 115, 71, .22); text-decoration: none; border-radius: 2px; }
.diff del { background: rgba(180, 35, 24, .2); text-decoration: none; border-radius: 2px; }
.diff .gap { color: var(--muted); padding: 4px 12px; background: var(--sunken); }

/* QR & Farben */
.qr-out { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.qr-out .qr-img { width: 240px; max-width: 100%; height: auto; background: #fff; padding: 0; border-radius: var(--radius-sm); border: 1px solid var(--line); image-rendering: pixelated; }
.swatch { width: 100%; min-height: 100px; border-radius: var(--radius); border: 1px solid var(--line); }
.contrast-preview { border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.contrast-preview .big-t { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.contrast-preview p { margin: 0 0 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.pill.pass { background: var(--ok-soft); color: var(--ok); } .pill.fail { background: var(--err-soft); color: var(--err); }
.list-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list-out li { display: flex; gap: 8px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-family: var(--mono); font-size: 15px; word-break: break-all; }
.list-out li span { flex: 1; }
.strength { height: 7px; border-radius: 99px; background: var(--sunken); overflow: hidden; margin-top: 6px; }
.strength > div { height: 100%; border-radius: inherit; }
.rows-table { display: grid; gap: 8px; }
.row-line { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; }
@media (max-width: 520px) { .row-line { grid-template-columns: 1fr 1fr; } }

/* Weitere Werkzeuge, Anleitung, FAQ */
.related { margin-bottom: 32px; }
.related h2, .info-card h2, .faq h2 { font-size: 21px; }
.tool-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool-card { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.tool-card:hover { border-color: var(--cat-line); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.tool-card:hover .tool-title { color: var(--cat); }
.tool-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.info-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 0; }
.notes { margin: 0; padding-left: 1.1em; display: grid; gap: 9px; color: var(--ink-2); }
.notes li::marker { color: var(--teal); }
.faq { margin-bottom: 32px; padding: 8px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.faq h2 { margin: 16px 0 8px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 16px 34px 16px 0; font-weight: 600; list-style: none; position: relative; transition: color var(--t) var(--ease); }
.faq-item summary:hover { color: var(--primary-text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 22px; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item div { padding: 0 0 16px; color: var(--ink-2); }
.faq-item p { margin: 0; }
@media (max-width: 860px) { .tool-cards, .tool-cards.compact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .tool-info { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .tool-cards, .tool-cards.compact { grid-template-columns: minmax(0, 1fr); } .faq { padding: 4px 16px; } .info-card { padding: 18px; } }

/* ---------- Werbeplätze (nur vorhanden, wenn ads.enabled = true) ----------
   Neutral, klar beschriftet, mit Mindestabstand (--ad-gap) zu Werkzeug und Downloads und festen Mindestmaßen gegen Layout-Sprünge.
   Bewusst keine Kategoriefarben, Schatten, Icons oder Buttons, damit nichts wie eine Werkzeugkarte oder ein Download wirkt. */
.ad-slot { --ad-gap: 48px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: var(--ad-gap) auto; padding-top: 14px; border-top: 1px solid var(--line); max-width: 100%; }
.ad-label { margin: 0; font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #5B6878; }
.ad-box { width: 100%; max-width: 970px; min-height: 90px; display: flex; align-items: center; justify-content: center; background: #F3F5F8; border-radius: 6px; overflow: hidden; }
.ad-box ins { width: 100%; }
.ad-rect .ad-box { max-width: 728px; min-height: 90px; }
.ad-sidebar { margin: 0; padding-top: 0; border-top: 0; }
.ad-sidebar .ad-box { width: 300px; min-height: 600px; }
.ad-unfilled { display: none; }
.ad-test { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #5B6878; font-size: 13px; text-align: center; user-select: none; pointer-events: none; }
.ad-test .ad-dim { font: 600 12px/1 var(--mono); color: #6B7686; }
.ad-dim-m { display: none; }
/* Side-Rails: nur auf sehr breiten Bildschirmen, außerhalb des Inhaltsbereichs */
.ad-rail { display: none; }
@media (min-width: 1680px) {
  .ad-rail { display: flex; position: fixed; top: calc(var(--header-h) + 24px); margin: 0; padding: 0; border: 0; width: 160px; z-index: 5; }
  .ad-rail .ad-box { min-height: 600px; width: 160px; }
  .ad-rail-left { left: calc((100vw - var(--wrap)) / 4 - 80px); }
  .ad-rail-right { right: calc((100vw - var(--wrap)) / 4 - 80px); }
}
/* Mobiler Anchor: nur unter 768 px, schließbar, berücksichtigt die iPhone-Safe-Area; die Seite erhält unten Platz */
.ad-anchor { display: none; }
@media (max-width: 767px) {
  .ad-box { min-height: 100px; }
  .ad-rect .ad-box { max-width: 336px; min-height: 250px; }
  .ad-dim-d { display: none; }
  .ad-dim-m { display: inline; }
  .ad-anchor { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 6px 48px calc(6px + env(safe-area-inset-bottom)) 12px; gap: 4px; background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 18px rgba(16, 42, 86, .08); }
  .ad-anchor .ad-label { align-self: flex-start; }
  .ad-anchor .ad-box { min-height: 50px; max-width: 320px; }
  .ad-close { position: absolute; top: 6px; right: 8px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2); cursor: pointer; }
  .ad-close .i { width: 16px; height: 16px; }
  body.has-anchor { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.tool-side .ad-slot { margin: 0; }

/* Über uns: vollständiges Logo */
.about-logo { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.about-mark { display: inline-flex; width: 88px; height: 88px; padding: 8px; border-radius: 22px; background: #F8FBFF; border: 1px solid var(--line); }
.about-mark svg { width: 100%; height: 100%; }
.about-name { font: 800 26px/1 var(--font-display); letter-spacing: -.03em; color: var(--navy); }
.founder { margin-top: 28px; padding: 20px 22px; background: var(--sky); border: 1px solid #D6E4FA; border-radius: var(--radius); }
.founder h2, .prose .founder h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.site-footer .creator a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
/* Strenge PDF-Komprimierung: Bestätigung */
.strong-confirm { margin-top: 10px; padding: 12px 14px; border: 1px solid #F3C98B; border-radius: var(--radius-sm); background: var(--warn-soft); }
/* Grenzen der Dateiauswahl */
.fi-notice { margin-top: 12px; }
.fi-notice ul { margin: 6px 0 0; padding-left: 22px; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.fi-mem { margin-top: 12px; }

/* Fließtext-Seiten */
.prose-wrap { padding-top: 22px; padding-bottom: 72px; }
.prose { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 44px; box-shadow: var(--shadow); }
.prose h1 { font-size: clamp(30px, 4vw, 42px); }
.prose h2 { font-size: 21px; margin-top: 32px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .updated { margin-top: 32px; font-size: 14px; color: var(--muted); }
.prose .imprint { font-style: normal; line-height: 1.7; margin: 8px 0 16px; }
.contact-mail { margin-top: 24px; }
.nf { text-align: left; }
.nf-code { font: 800 72px/1 var(--font-display); color: var(--primary-soft); margin: 0 0 8px; -webkit-text-stroke: 1.5px var(--primary); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nf-langs { list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
@media (max-width: 560px) { .prose { padding: 24px 18px; } }

/* Fußzeile */
.site-footer { background: var(--navy); color: #B8C5DD; padding: 56px 0 24px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { width: 54px; height: 54px; padding: 5px; background: #F8FBFF; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.foot-top { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.foot-cols a, .foot-cols li { overflow-wrap: break-word; }
@media (max-width: 420px) { .foot-cols a, .foot-cols li { hyphens: auto; } }
.foot-brand p { color: #9FB0CE; margin-top: 12px; font-size: 14px; }
.foot-brand .foot-claim { color: #fff; font-weight: 600; font-size: 15px; margin-top: 16px; margin-bottom: 4px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 32px 28px; }
.foot-h { font: 700 12px/1.3 var(--font); text-transform: uppercase; letter-spacing: .09em; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #B8C5DD; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer a.more { color: #8FB4FF; font-weight: 600; }
.site-footer a[aria-current="true"] { color: #fff; font-weight: 600; }
.site-footer :focus-visible { outline-color: #8FB4FF; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9FB0CE; font-size: 14px; }
.foot-bottom p { margin: 0; }
@media (max-width: 1180px) { .foot-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }

/* Reduzierte Bewegung: keine Übergänge, keine Neigung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .progress.indeterminate > div { width: 100%; opacity: .5; }
  .tool-feature:hover, .cat-tile:hover, .tool-card:hover, .hcard:hover, .chip:hover, .btn.primary:hover { transform: none; }
}

/* ---------- Erweiterung (Werkzeuge 52–100): gemeinsame Bausteine ---------- */
.ws-actions .ws-reset { margin-left: auto; }
@media (max-width: 520px) { .ws-actions .ws-reset { margin-left: 0; } }
.ws-sub { margin: 12px 0 8px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.or-line { margin: 10px 0; text-align: center; }
.field-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.check-row .field { margin: 0; }
.small-msg { margin-top: 12px; font-size: 14px; }
.cat-dock { margin: 0 0 2px !important; font: 600 11.5px/1.2 var(--font) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--cat) !important; opacity: .85; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.cf-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 14.5px/1 var(--font); cursor: pointer; }
.cf-btn .cf-n { font-size: 12px; font-weight: 600; color: var(--muted); }
.cf-btn:hover { border-color: var(--cat-line, var(--primary)); background: var(--cat-soft, var(--primary-soft)); }
.cf-btn[aria-pressed="true"] { border-color: var(--cat, var(--primary)); background: var(--cat-soft, var(--primary-soft)); box-shadow: inset 0 0 0 1px var(--cat, var(--primary)); font-weight: 600; }
.cf-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Original und Ergebnis getrennt */
.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.ba-fig { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.ba-fig figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; font-size: 13.5px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ba-fig figcaption span { color: var(--muted); }
.ba-img { display: grid; place-items: center; padding: 10px; min-height: 140px; background-color: #fff; background-image: linear-gradient(45deg, #EEF2F7 25%, transparent 25%), linear-gradient(-45deg, #EEF2F7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #EEF2F7 75%), linear-gradient(-45deg, transparent 75%, #EEF2F7 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.ba-img img { max-width: 100%; max-height: 320px; height: auto; }
@media (max-width: 560px) { .before-after { grid-template-columns: minmax(0, 1fr); } }
/* Seitenvorschau mit Zuschnittrahmen */
.page-preview { position: relative; display: inline-block; max-width: 100%; margin-top: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); line-height: 0; }
.page-preview .pp-canvas { display: block; max-width: 100%; height: auto; }
.pp-crop { position: absolute; border: 2px dashed var(--primary); box-shadow: 0 0 0 9999px rgba(16, 42, 86, .35); pointer-events: none; }
.page-preview { overflow: hidden; }
.wm-preview { margin-top: 14px; }
.wm-canvas { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
/* Tabellen für Metadaten, Hashes usw. */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.data-table th { width: 34%; font-weight: 600; color: var(--ink-2); }
.data-table tr.match td, .data-table tr.match th { background: var(--ok-soft); }
.hash-table th { width: 22%; white-space: nowrap; }
.hash-val { font-size: 13px; word-break: break-all; }
.tag-weak { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); }
.meta-report { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--surface); }
.meta-report summary { cursor: pointer; padding: 4px 0; overflow-wrap: anywhere; }
.meta-h { margin: 16px 0 6px; font-size: 15px; }
.muted { color: var(--muted); font-weight: 400; }
.err-box { padding: 12px 14px; border: 1px solid #F3B8B2; border-radius: var(--radius-sm); background: var(--err-soft); color: var(--err); }
.err-box p { margin: 0 0 8px; }
.err-snippet { margin: 0; padding: 10px; border-radius: 8px; background: #fff; color: var(--ink); font: 13px/1.5 var(--mono); overflow-x: auto; white-space: pre; }
/* Farbpalette */
.pal-wrap { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pal-img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.pal-bar { display: flex; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; }
.pal-bar span { min-width: 6px; }
.pal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pal-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pal-sw { flex: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .1); }
.pal-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13.5px; }
.pal-info strong { font-size: 14.5px; }
@media (max-width: 640px) { .pal-wrap { grid-template-columns: minmax(0, 1fr); } }
.b64-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.b64-prev { max-width: 120px; max-height: 90px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.b64-head .stats { flex: 1; min-width: 220px; }
.pp-mark { position: absolute; border: 2px solid var(--primary); background: rgba(37, 99, 235, .14); border-radius: 4px; pointer-events: none; }
.sign-preview { cursor: crosshair; }
.sig-pad { display: block; width: 100%; max-width: 600px; aspect-ratio: 3 / 1; height: auto; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: #fff; touch-action: none; cursor: crosshair; }
.sig-pad:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.scan-video { display: block; width: 100%; max-width: 640px; border-radius: var(--radius-sm); background: #000; margin: 10px 0; }
.scan-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.scan-list li { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); counter-increment: scan; }
.scan-list img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.scan-list .btn { position: absolute; top: 6px; right: 6px; }
.px-stage { margin-top: 12px; line-height: 0; }
.px-canvas { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); touch-action: none; cursor: crosshair; }
.px-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.px-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: var(--surface); }
.code-out { margin: 0 0 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font: 13.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.md-preview { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow-wrap: anywhere; }
.md-preview > :first-child { margin-top: 0; }
.md-preview pre { padding: 10px; background: var(--surface-2); border-radius: 8px; overflow-x: auto; }
.md-preview table { border-collapse: collapse; } .md-preview th, .md-preview td { border: 1px solid var(--line); padding: 6px 10px; }
.md-preview blockquote { margin: 0 0 1em; padding-left: 12px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.md-preview .md-img { color: var(--muted); font-style: italic; }
.barcode-box { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; }
.barcode-img { display: block; max-width: 100%; height: auto; }
.qr-found { margin-bottom: 14px; }
.fav-preview { display: flex; align-items: flex-end; gap: 14px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.meta-view { margin-top: 12px; }
.data-table tr.tracking th, .data-table tr.tracking td { background: var(--warn-soft); }
