/* Lokal gehostete Google Fonts (Inter, Instrument Serif) */
/* Ursprünglich von fonts.gstatic.com — heruntergeladen, lizenziert unter SIL Open Font License */

/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/InstrumentSerif-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/InstrumentSerif-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/InstrumentSerif-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/InstrumentSerif-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Inter-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Inter-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Inter-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Inter-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/Inter-600-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/Inter-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Inter-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Inter-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ============================
   Hausverstehen — Startseite
   ============================ */

:root {
  --bg: #0e1014;
  --bg-elev: #161a21;
  --bg-card: #1c2129;
  --border: #262c37;
  --border-strong: #38404d;
  --text: #f1ede7;
  --text-dim: #a8a39b;
  --text-mute: #6b6862;
  --accent: #ff6b47;
  --accent-soft: #ff8c6e;
  --accent-deep: #d24a28;
  --teal: #4fd1c5;
  --good: #4fd1a3;
  --mid: #f0c14b;
  --warn: #ff8c5a;
  --bad: #e85a4a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 12px 40px -16px rgba(0, 0, 0, 0.55);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================
   Hintergrund — Gradient Mesh
   ============================ */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: float 22s ease-in-out infinite;
}
.blob-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -20vw;
  right: -10vw;
  animation-delay: 0s;
}
.blob-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  bottom: -15vw;
  left: -10vw;
  opacity: 0.32;
  animation-delay: -7s;
}
.blob-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #6b3aff 0%, transparent 70%);
  top: 40%;
  left: 30%;
  opacity: 0.18;
  animation-delay: -14s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4vw, -3vw) scale(1.08); }
  66% { transform: translate(-3vw, 4vw) scale(0.95); }
}

/* ============================
   Header
   ============================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text);
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
  transform-origin: center;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.logo:hover .logo-mark {
  transform: rotate(45deg);
}
.logo-suffix {
  color: var(--accent);
  font-weight: 600;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text-dim);
}
.nav a:hover {
  color: var(--text);
}
.cta-mini {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 180ms ease, border-color 180ms ease;
}
.cta-mini:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 720px) {
  .nav { display: none; }
}

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 12vh, 140px) var(--gutter) clamp(80px, 14vh, 160px);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-inner {
  max-width: 920px;
}
.kicker {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 107, 71, 0.1);
  color: var(--accent-soft);
  border: 1px solid rgba(255, 107, 71, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.kicker-light {
  background: rgba(241, 237, 231, 0.06);
  color: var(--text-dim);
  border-color: rgba(241, 237, 231, 0.1);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.5;
}

.hero-pills {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pills-label {
  font-size: 14px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), background 180ms ease, border-color 180ms ease;
}
.pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-mute);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--text-mute);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ============================
   Live-Tool
   ============================ */
.live-tool {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--gutter);
}
.live-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) {
  .live-tool-grid { grid-template-columns: 1fr; }
}

.live-tool-intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.live-tool-intro p {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 460px;
}
.legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-good { background: var(--good); }
.dot-mid  { background: var(--mid); }
.dot-warn { background: var(--warn); }
.dot-bad  { background: var(--bad); }

/* Card */
.live-tool-card {
  background: linear-gradient(150deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.live-tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(255,107,71,0.08), transparent 50%);
  pointer-events: none;
}

.field { position: relative; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  transition: border-color 160ms ease, background 160ms ease;
}
.input-wrap:focus-within {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.35);
}
.input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 32px;
  padding: 14px 0;
  font-weight: 400;
  letter-spacing: -0.01em;
  width: 100%;
}
.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-wrap input[type='number'] {
  -moz-appearance: textfield;
}
.suffix {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text-mute);
  margin-left: 8px;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 12px;
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
  transition: transform 120ms ease;
}
input[type='range']::-webkit-slider-thumb:active {
  transform: scale(1.18);
  cursor: grabbing;
}
input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
}

.result {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.result-number {
  font-family: var(--serif);
  font-size: clamp(60px, 10vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
  transition: color 240ms ease;
}
.result-unit {
  font-size: 0.5em;
  color: var(--text-mute);
}
.result-bar {
  position: relative;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin: 22px 0 16px;
  overflow: visible;
}
.result-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--good) 0%, var(--mid) 33%, var(--warn) 67%, var(--bad) 100%);
  background-size: 300% 100%;
  background-position: 0% 0%;
  transition: width 360ms cubic-bezier(.2,.8,.2,1);
}
.result-bar-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(241, 237, 231, 0.18);
}
.result-text {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.5;
  min-height: 3em;
}
.result-text strong { color: var(--text); }

/* ============================
   Tools-Galerie
   ============================ */
.tools {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--gutter);
}
.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), border-color 240ms ease, background 240ms ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255,107,71,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-elev);
}
.tool-card:hover::after {
  opacity: 1;
}
.tool-card.highlight {
  border-color: rgba(255, 107, 71, 0.4);
  background: linear-gradient(140deg, rgba(255,107,71,0.08), var(--bg-card));
}
.tool-card.highlight::after {
  opacity: 1;
}
.tool-icon {
  font-size: 30px;
  margin-bottom: 4px;
  filter: grayscale(0.1);
}
.tool-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.tool-card p {
  color: var(--text-dim);
  font-size: 15px;
  flex: 1;
}
.tool-status {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-mute);
  background: rgba(241, 237, 231, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-top: auto;
}
.tool-status.status-live {
  color: var(--good);
  background: rgba(79, 209, 163, 0.08);
  border-color: rgba(79, 209, 163, 0.24);
}
.tool-status.status-offline {
  color: var(--text-mute);
  background: rgba(241, 237, 231, 0.04);
  border-color: var(--border);
}

/* Offline-Tools: gedämpft, nicht klickbar */
.tool-card.offline {
  opacity: 0.55;
  cursor: not-allowed;
}
.tool-card.offline:hover {
  transform: none;
  border-color: var(--border);
  background: var(--bg-card);
}
.tool-card.offline:hover::after {
  opacity: 0;
}

/* ============================
   Warum
   ============================ */
.warum {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--gutter);
}
.warum-inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin-bottom: 64px;
}
.warum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.big-stat {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 92px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.warum-grid p {
  color: var(--text-dim);
  font-size: 16px;
}

/* ============================
   Kontakt
   ============================ */
.kontakt {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--gutter);
}
.kontakt-inner {
  background: linear-gradient(140deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.kontakt-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,107,71,0.18), transparent 60%);
  transform: translateX(-50%);
  pointer-events: none;
}
.kontakt-inner > * { position: relative; }
.kontakt-inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.kontakt-inner > p {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 17px;
}
.newsletter {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  transition: border-color 160ms ease;
}
.newsletter:focus-within {
  border-color: var(--accent);
}
.newsletter input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  padding: 12px 18px;
  font-size: 15px;
  font-family: inherit;
}
.newsletter input::placeholder {
  color: var(--text-mute);
}
.newsletter button {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: background 160ms ease, transform 120ms ease;
}
.newsletter button:hover {
  background: var(--accent-deep);
}
.newsletter button:active {
  transform: scale(0.97);
}
.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--good);
  min-height: 1.5em;
}

/* ============================
   Footer
   ============================ */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-mute);
}
.footer-links a:hover { color: var(--text-dim); }

/* ============================
   Scroll-Animationen
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================
   Tool-Seite (mieten-kaufen.html)
   ============================ */
.tool-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(60px, 10vh, 120px);
}

.tool-hero {
  padding: clamp(40px, 8vh, 80px) 0 clamp(32px, 5vh, 56px);
  max-width: 760px;
}
.tool-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
}
.tool-hero-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-dim);
  line-height: 1.6;
}

/* Workspace */
.tool-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
@media (max-width: 980px) {
  .tool-workspace { grid-template-columns: 1fr; }
}

/* --- Form-Spalte --- */
.tool-form {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.tool-form::-webkit-scrollbar { width: 6px; }
.tool-form::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
@media (max-width: 980px) {
  .tool-form { position: static; max-height: none; }
}

.tool-form fieldset {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tool-form legend {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  padding-bottom: 8px;
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.tool-form .field label {
  font-size: 12px;
}
.tool-form .input-wrap input {
  font-size: 22px;
  padding: 10px 0;
}
.tool-form .suffix {
  font-size: 16px;
}
.hint {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.5;
  margin-top: 2px;
}

.reset-btn {
  margin-top: 8px;
  padding: 10px 16px;
  background: rgba(241, 237, 231, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  align-self: flex-start;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.reset-btn:hover {
  background: rgba(255, 107, 71, 0.08);
  color: var(--accent);
  border-color: rgba(255, 107, 71, 0.3);
}

/* --- Result-Spalte --- */
.tool-result {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.verdict {
  background: linear-gradient(140deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.verdict::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 71, 0.18), transparent 60%);
  pointer-events: none;
}
.verdict-kicker {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.verdict h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
}
.verdict p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  position: relative;
  max-width: 60ch;
}
.verdict.buy h2 { color: var(--accent); }
.verdict.rent h2 { color: var(--teal); }
.verdict.tie h2 { color: var(--text); }

/* --- Chart --- */
.chart-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 16px;
  position: relative;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-buy  { background: var(--accent); }
.dot-rent { background: var(--teal); }

#chart {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--sans);
}
#chart .axis text {
  font-size: 11px;
  fill: var(--text-mute);
}
#chart .axis line, #chart .axis path {
  stroke: var(--border);
  stroke-width: 1;
  fill: none;
}
#chart .grid line {
  stroke: var(--border);
  stroke-dasharray: 2 4;
  opacity: 0.5;
}
#chart .line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: d 360ms cubic-bezier(.2,.8,.2,1);
}
#chart .line-buy  { stroke: var(--accent); }
#chart .line-rent { stroke: var(--teal); }
#chart .area-buy  { fill: var(--accent); opacity: 0.08; }
#chart .area-rent { fill: var(--teal); opacity: 0.08; }
#chart .crosshair {
  stroke: var(--text-dim);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0;
}
#chart .crosshair.active { opacity: 0.6; }
#chart .hover-dot {
  opacity: 0;
}
#chart .hover-dot.active {
  opacity: 1;
}

.chart-hover {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  pointer-events: none;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  transform: translate(-50%, -110%);
  z-index: 10;
}
.chart-hover strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.chart-hover div {
  color: var(--text-dim);
  margin: 2px 0;
}

/* --- Milestones --- */
.milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .milestones { grid-template-columns: 1fr; }
}
.milestone {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.milestone.highlight {
  border-color: rgba(255, 107, 71, 0.35);
  background: linear-gradient(140deg, rgba(255,107,71,0.06), var(--bg-card));
}
.ms-label {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ms-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.ms-pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
}
.pill-buy {
  background: rgba(255, 107, 71, 0.14);
  color: var(--accent-soft);
}
.pill-rent {
  background: rgba(79, 209, 197, 0.14);
  color: var(--teal);
}
.ms-value {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.ms-delta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

/* --- Details --- */
.details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.details summary {
  padding: 18px 24px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dim);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 160ms ease;
}
.details summary::-webkit-details-marker { display: none; }
.details summary::after {
  content: '↓';
  font-size: 14px;
  color: var(--text-mute);
  transition: transform 200ms ease;
}
.details[open] summary::after {
  transform: rotate(180deg);
}
.details summary:hover { color: var(--text); }
.details-body {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.details-body strong { color: var(--text); }

/* ============================
   Standort-Score (standort.html)
   ============================ */

/* Suchbalken */
.search-bar {
  margin-bottom: clamp(28px, 4vh, 48px);
}
.search-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  position: relative;
}
.search-input-wrap {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  gap: 8px;
  transition: border-color 160ms ease;
}
.search-input-wrap:focus-within {
  border-color: var(--accent);
}
.search-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.search-input-wrap input {
  flex: 1;
  min-width: 160px;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  padding: 12px 0;
  font-size: 16px;
  font-family: inherit;
}
.search-input-wrap input::placeholder { color: var(--text-mute); }

/* Autocomplete-Dropdown */
.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-card);
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.suggestions::-webkit-scrollbar { width: 6px; }
.suggestions::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.suggestion {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  transition: background 120ms ease;
}
.suggestion[aria-selected='true'],
.suggestion:hover {
  background: rgba(255, 107, 71, 0.08);
}
.suggestion-icon {
  color: var(--text-mute);
  font-size: 14px;
  text-align: center;
}
.suggestion-name {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-name strong {
  color: var(--accent);
  font-weight: 600;
}
.suggestion-meta {
  display: block;
  color: var(--text-mute);
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestions-loading,
.suggestions-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--text-mute);
  text-align: center;
}
.suggestions-header,
.suggestions-footer {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
}
.suggestions-footer {
  border-bottom: none;
  border-top: 1px solid var(--border);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

/* Beispiel-Chips (jetzt eigene Reihe unter dem Suchfeld) */
.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.chips-label {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}
.example-chip {
  font-size: 13px;
  padding: 6px 14px;
  background: rgba(241, 237, 231, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.example-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.search-submit {
  padding: 14px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: background 160ms ease, transform 120ms ease;
  white-space: nowrap;
}
.search-submit:hover { background: var(--accent-deep); }
.search-submit:active { transform: scale(0.97); }
.search-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.search-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-dim);
  min-height: 1.4em;
}
.search-status.error { color: var(--bad); }

/* Workspace */
.standort-workspace {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
@media (max-width: 980px) {
  .standort-workspace { grid-template-columns: 1fr; }
}

/* Karte */
.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 24px;
}
@media (max-width: 980px) {
  .map-card { position: static; }
}
#map {
  width: 100%;
  height: 540px;
  background: #1a1f28;
}
@media (max-width: 720px) {
  #map { height: 380px; }
}
.map-foot {
  padding: 10px 16px;
  font-size: 11px;
  color: var(--text-mute);
  border-top: 1px solid var(--border);
}
.map-foot a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.map-foot a:hover { color: var(--accent); }

/* Leaflet override für Dark Theme */
.leaflet-container {
  background: #1a1f28 !important;
  font-family: var(--sans) !important;
}
.leaflet-control-attribution {
  background: rgba(14, 16, 20, 0.85) !important;
  color: var(--text-mute) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--text-dim) !important; }
.leaflet-control-zoom a {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--accent) !important;
  color: #fff !important;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
  box-shadow: var(--shadow-card) !important;
}
.leaflet-popup-content {
  font-size: 13px;
  line-height: 1.4;
}

/* Score-Pane */
.score-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overall-score {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.overall-score::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 107, 71, 0.12), transparent 60%);
  pointer-events: none;
}
.overall-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 16px;
  position: relative;
}
.overall-circle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 18px;
}
.overall-circle svg { width: 100%; height: 100%; }
#overall-ring {
  transition: stroke-dashoffset 800ms cubic-bezier(.2,.8,.2,1), stroke 400ms ease;
}
.overall-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-family: var(--serif);
}
#overall-number {
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 400ms ease;
}
.overall-max {
  font-size: 18px;
  color: var(--text-mute);
}
.overall-text {
  color: var(--text-dim);
  font-size: 14px;
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Kategorien */
.categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.category {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
}
.cat-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
}
.cat-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.cat-name {
  color: var(--text);
  font-weight: 500;
}
.cat-meta {
  color: var(--text-mute);
  font-size: 12px;
}
.cat-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.cat-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 700ms cubic-bezier(.2,.8,.2,1), background 300ms ease;
}
.cat-score {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  min-width: 36px;
  text-align: right;
  transition: color 400ms ease;
}

/* POI-Liste */
.poi-list {
  padding: 0 24px 22px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.poi-list::-webkit-scrollbar { width: 6px; }
.poi-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.poi-empty {
  color: var(--text-mute);
  font-size: 14px;
  padding: 12px 0;
}
.poi-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(241, 237, 231, 0.025);
  border: 1px solid transparent;
  font-size: 13px;
  transition: background 140ms ease, border-color 140ms ease;
  cursor: pointer;
}
.poi-item:hover {
  background: rgba(255, 107, 71, 0.06);
  border-color: rgba(255, 107, 71, 0.2);
}
.poi-icon { font-size: 14px; text-align: center; }
.poi-name {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poi-meta {
  color: var(--text-mute);
  font-size: 11px;
}

/* Loading-Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================
   Sanierungs-Rechner (sanierung.html)
   ============================ */

/* Radio-Pills für Gebäudetyp */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.radio-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(241, 237, 231, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.radio-pill input {
  display: none;
}
.radio-pill:has(input:checked),
.radio-pill.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.radio-pill:hover:not(:has(input:checked)) {
  border-color: var(--border-strong);
  color: var(--text);
}

/* Bonus-Checkboxen (vertikal mit Beschreibung) */
.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 140ms ease;
}
.check-row:hover {
  background: rgba(241, 237, 231, 0.03);
}
.check-row input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  margin-top: 2px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease;
  flex-shrink: 0;
}
.check-row input[type='checkbox']:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check-row input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.check-meta {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.4;
}

/* Maßnahmen-Sektion */
.masnahmen-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
}
.masnahmen-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.masnahmen-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}
.masnahmen-group {
  margin-bottom: 24px;
}
.masnahmen-group:last-child {
  margin-bottom: 0;
}
.group-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.masnahmen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

/* Maßnahme-Karte */
.masnahme {
  background: rgba(241, 237, 231, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms cubic-bezier(.2,.8,.2,1);
}
.masnahme:hover {
  background: rgba(241, 237, 231, 0.05);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.masnahme.active {
  background: linear-gradient(140deg, rgba(255, 107, 71, 0.12), rgba(255, 107, 71, 0.04));
  border-color: var(--accent);
}
.masnahme.active::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.m-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  padding-right: 28px;
}
.m-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}
.m-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  min-height: 2.2em;
}
.m-cost {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 2px;
}
.m-cost-range {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: -4px;
}

/* Ergebnis-Karte */
.ergebnis-card {
  background: linear-gradient(140deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}
.ergebnis-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 71, 0.18), transparent 60%);
  pointer-events: none;
}
.erg-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 24px;
  position: relative;
}
@media (max-width: 720px) {
  .erg-row { grid-template-columns: 1fr; gap: 18px; }
}
.erg-row-secondary {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .erg-row-secondary { grid-template-columns: 1fr; }
}
.erg-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.erg-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.erg-value {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.erg-cell.big .erg-value {
  font-size: 44px;
  color: var(--accent);
}
.erg-cell.minus .erg-value::before {
  content: '−';
  margin-right: 2px;
}
.erg-foerderung { color: var(--good); }
.erg-meta {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
}
.erg-value-small {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Aufschlüsselungs-Tabelle */
.auf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.auf-table th, .auf-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.auf-table th {
  color: var(--text-mute);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auf-table td.num,
.auf-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.auf-table tbody tr:last-child td { border-bottom: none; }
.auf-table tbody tr:hover { background: rgba(241, 237, 231, 0.03); }

/* ============================
   Faire-Miete-Check (faire-miete.html)
   ============================ */

/* Suggestions-Dropdown im normalen .field statt absolutes Suchfeld */
.field .suggestions {
  position: relative;
  top: auto; left: auto; right: auto;
  margin-top: 8px;
  max-height: 280px;
}

.vergleich-card {
  background: linear-gradient(140deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.vergleich-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 20px;
}
@media (max-width: 720px) {
  .vergleich-row { grid-template-columns: 1fr; }
}
.vc-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vc-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.vc-value {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.vc-cell.big .vc-value {
  font-size: 38px;
  transition: color 400ms ease;
}
.vc-meta {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* Vergleichs-Balken */
.bar-vergleich {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bv-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}
.bv-value {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
}
.bv-track {
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.bv-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 700ms cubic-bezier(.2,.8,.2,1), background 300ms ease;
}
.bv-fill-deine {
  background: var(--accent);
}
.bv-fill-vergleich {
  background: var(--teal);
}

/* Verdict-Farben */
.verdict.verdict-fair       h2 { color: var(--good); }
.verdict.verdict-cheap      h2 { color: var(--teal); }
.verdict.verdict-overpriced h2 { color: var(--warn); }
.verdict.verdict-very-over  h2 { color: var(--bad); }

/* ============================
   Lifestyle-Match (lifestyle.html)
   ============================ */

.lifestyle-page .tool-hero {
  max-width: 720px;
}

/* Quiz-Container */
.quiz-container {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 40px) 0;
}

.quiz-progress {
  margin-bottom: 32px;
}
.quiz-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.quiz-back {
  font-size: 13px;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  letter-spacing: 0;
  text-transform: none;
  transition: color 160ms ease;
}
.quiz-back:hover {
  color: var(--accent);
}
.quiz-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 500ms cubic-bezier(.2,.8,.2,1);
}

/* Quiz-Card */
.quiz-card {
  animation: fade-slide-in 400ms cubic-bezier(.2,.8,.2,1);
}
.quiz-card.leaving {
  animation: fade-slide-out 200ms ease-in forwards;
}
@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-slide-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-20px); }
}

.quiz-question {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-align: center;
}

.quiz-answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 600px) {
  .quiz-answers { grid-template-columns: 1fr; }
}

.quiz-answer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  transition: all 200ms cubic-bezier(.2,.8,.2,1);
  font-family: inherit;
  color: var(--text);
}
.quiz-answer:hover {
  background: var(--bg-elev);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.quiz-answer.selected {
  background: linear-gradient(140deg, rgba(255, 107, 71, 0.18), rgba(255, 107, 71, 0.04));
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 0 4px rgba(255, 107, 71, 0.15);
}
.qa-icon {
  font-size: 32px;
  line-height: 1;
}
.qa-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}
.qa-sub {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Result-Container */
.result-container {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 40px) 0;
  animation: fade-slide-in 600ms cubic-bezier(.2,.8,.2,1);
}
.result-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 71, 0.18), transparent 60%);
  pointer-events: none;
}
.result-card > * { position: relative; }

.result-kicker {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 16px;
  text-align: center;
}

.result-main {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}
.result-icon {
  font-size: 64px;
  line-height: 1;
}
.result-text { display: flex; flex-direction: column; }
.result-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}
.result-confidence {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 6px;
}

.result-description {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.55;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 36px;
}

.result-section {
  margin-bottom: 32px;
}
.result-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: 14px;
}

.result-examples {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.result-examples li {
  padding: 6px 14px;
  background: rgba(241, 237, 231, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
}
.result-hint {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 10px;
}

.result-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.result-checklist li::before {
  content: '✓';
  color: var(--good);
  font-weight: 700;
  flex-shrink: 0;
}
.result-checklist li.no::before {
  content: '✗';
  color: var(--text-mute);
}

.result-secondaries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-secondary {
  display: grid;
  grid-template-columns: 32px 1fr 60px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(241, 237, 231, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
}
.rs-icon { font-size: 22px; text-align: center; }
.rs-name { color: var(--text); font-weight: 500; }
.rs-pct { text-align: right; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.result-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 160ms ease;
  font-family: inherit;
}
.result-btn:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
}
.result-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.result-btn.primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* Interner Hinweis — gelb/warnend, nur für Entwickler-Augen */
.internal-note {
  max-width: var(--maxw);
  margin: 16px auto 0;
  padding: 12px 18px;
  background: rgba(240, 193, 75, 0.08);
  border: 1px solid rgba(240, 193, 75, 0.4);
  border-left: 4px solid var(--mid);
  border-radius: 8px;
  font-size: 13px;
  color: var(--mid);
  margin-left: var(--gutter);
  margin-right: var(--gutter);
  line-height: 1.5;
}
.internal-note strong { color: var(--mid); }

/* ============================
   Legal-Seiten (Impressum, Datenschutz)
   ============================ */
.legal-page .tool-hero {
  max-width: 720px;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 40px) 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}
.legal-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.legal-content p strong { color: var(--text); font-weight: 500; }
.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-content ul li {
  color: var(--text-dim);
  font-size: 14px;
  padding-left: 20px;
  position: relative;
}
.legal-content ul li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--accent);
  font-weight: 700;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-content a:hover {
  color: var(--accent-soft);
}
.legal-stand {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px;
}

/* ============================
   Besichtigungs-Check (besichtigung.html)
   ============================ */

.besichtigung-page .tool-hero { max-width: 760px; }

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.action-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 160ms ease;
}
.action-btn:hover { background: var(--bg-elev); border-color: var(--accent); }
.action-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.action-btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.action-meta { margin-left: auto; font-size: 13px; color: var(--text-dim); }

.checklist-container { display: flex; flex-direction: column; gap: 28px; }
.cat-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px clamp(20px, 3vw, 32px);
}
.cat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cat-title-icon { font-size: 24px; }
.cat-count {
  margin-left: auto;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text-mute);
  font-weight: 500;
  background: rgba(241, 237, 231, 0.04);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

.check-list { display: flex; flex-direction: column; }
.check-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: start;
}
.check-item:last-child { border-bottom: none; }

.check-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; flex: 1; }
.check-label input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease;
}
.check-label input[type='checkbox']:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check-label input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-text { font-size: 15px; line-height: 1.45; color: var(--text); }
.check-label input[type='checkbox']:checked + .check-text {
  text-decoration: line-through;
  text-decoration-color: var(--text-mute);
  color: var(--text-dim);
}

.check-why-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 2px 0;
  align-self: flex-start;
  white-space: nowrap;
}
.check-why-toggle:hover { text-decoration: underline; }

.check-why {
  grid-column: 1 / -1;
  display: none;
  padding: 12px 14px;
  margin-top: 8px;
  background: rgba(255, 107, 71, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}
.check-why.open { display: block; }

.check-note-row { grid-column: 1 / -1; display: none; }

/* Unterlagen-Check spezifisch */
.cat-hint {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 16px;
  margin-top: -4px;
  font-style: italic;
}
.dok-details {
  display: none;
}
.dok-details.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dok-details > div {
  font-size: 13px;
  line-height: 1.55;
}
.dok-details strong {
  color: var(--text);
  font-weight: 500;
}

/* Checkbox-Pill (für Filter mit Mehrfachauswahl) */
.check-pill input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  margin-right: 6px;
  position: relative;
  vertical-align: middle;
}
.check-pill:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.check-pill:has(input:checked) input[type='checkbox'] {
  background: #fff;
  border-color: #fff;
}
.check-pill:has(input:checked) input[type='checkbox']::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ============================
   Print-only / no-print Helfer
   ============================ */
.print-only { display: none; }
@media print {
  .no-print { display: none !important; }
  .print-only { display: block; }
}

/* ============================
   Print-Stil
   ============================ */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.4;
  }
  .bg-mesh { display: none; }
  .tool-page { padding: 0 !important; max-width: 100% !important; }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 8px;
    border-bottom: 2px solid #000;
    margin-bottom: 16px;
  }
  .print-header strong { font-family: var(--serif); font-size: 14pt; }
  .print-header span { font-size: 10pt; color: #444; }

  .print-objektinfo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 1px dashed #999;
    font-size: 10pt;
  }

  .checklist-container { gap: 18px; }
  .cat-section {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    page-break-inside: auto;
  }
  .cat-title {
    color: #000 !important;
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
    margin-bottom: 8px;
    font-size: 13pt;
    page-break-after: avoid;
  }
  .cat-title-icon, .cat-count { display: none; }

  .check-item {
    padding: 6px 0 !important;
    border-bottom: 1px dotted #ccc !important;
    grid-template-columns: 1fr !important;
    page-break-inside: avoid;
  }
  .check-label input[type='checkbox'] {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    width: 14px !important;
    height: 14px !important;
    border: 1.5px solid #000 !important;
    background: transparent !important;
  }
  .check-label input[type='checkbox']::after { display: none !important; }
  .check-text { color: #000 !important; font-size: 11pt !important; }
  .check-label input[type='checkbox']:checked + .check-text {
    text-decoration: none !important;
    color: #000 !important;
  }

  .check-note-row {
    display: flex !important;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
    margin-left: 30px;
  }
  .check-note-label { font-size: 9pt; color: #666; }
  .check-note-line {
    flex: 1;
    border-bottom: 1px solid #999;
    height: 14px;
  }

  /* Im Besichtigungs-Tool werden Why-Boxen NICHT gedruckt */
  .check-why:not(.dok-details) { display: none !important; }

  /* Im Unterlagen-Tool werden die Details aufgeklappt mitgedruckt */
  .dok-details {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 6px 30px;
    padding: 8px 10px;
    background: #f5f5f5;
    border-left: 2px solid #999;
    font-size: 9.5pt;
    line-height: 1.4;
    page-break-inside: avoid;
  }
  .dok-details strong { color: #000; }
  .cat-hint {
    color: #555 !important;
    font-style: italic;
    font-size: 9.5pt;
    margin-bottom: 6px;
  }

  a { color: #000 !important; text-decoration: none !important; }
}

/* ============================
   404-Seite
   ============================ */
.error-section {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 10vh, 100px) var(--gutter);
  text-align: center;
}
.error-code {
  display: block;
  font-family: var(--serif);
  font-size: clamp(80px, 15vw, 180px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  opacity: 0.85;
}
.error-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.error-text {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.error-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.error-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 180ms cubic-bezier(.2,.8,.2,1);
}
.error-tool:hover {
  background: var(--bg-elev);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.error-tool.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.error-tool.primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.et-icon { font-size: 20px; line-height: 1; }
.et-name { font-size: 14px; font-weight: 500; }

/* Coming-Soon-Badge (z.B. Newsletter) */
.coming-soon-badge {
  display: inline-block;
  padding: 10px 22px;
  background: rgba(241, 237, 231, 0.06);
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* ============================
   Disclaimer-Box (alle Tools)
   ============================ */
.disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(241, 237, 231, 0.03);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-mute);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}
.disclaimer strong {
  color: var(--text);
  font-weight: 500;
}

/* Warning-Box: deutlicher als Disclaimer, für kritische Hinweise */
.warning-box {
  margin-top: 24px;
  padding: 18px 22px;
  background: rgba(255, 107, 71, 0.06);
  border: 1px solid rgba(255, 107, 71, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.warning-box strong {
  color: var(--accent-soft);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.warning-box ul {
  margin: 0;
  padding-left: 20px;
}
.warning-box ul li {
  margin-bottom: 6px;
}
.warning-box ul li:last-child {
  margin-bottom: 0;
}
.warning-box .warning-links {
  margin: 14px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
}
.warning-box .warning-links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 71, 0.4);
  padding-bottom: 1px;
  transition: border-color 200ms ease, color 200ms ease;
}
.warning-box .warning-links a:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

/* Flash-Highlight beim Anklicken von Pills/Karten */
.flash {
  animation: flash-pulse 1.2s cubic-bezier(.2,.8,.2,1);
}
@keyframes flash-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 71, 0.55); }
  60%  { box-shadow: 0 0 0 14px rgba(255, 107, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 71, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
