/* ── Reset & Base ─────────────────────────────────────────────────────── */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}


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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Buttons are links too, but must keep their high-contrast label. */
.btn,
.btn:visited,
.btn:hover,
.btn:focus-visible {
  color: #fff !important;
  text-decoration: none;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Skip Link ────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus { top: 0; }

/* ── Layout ───────────────────────────────────────────────────────────── */

.container {
  width: min(90%, 68ch);
  margin-inline: auto;
  padding-block: 2rem;
}

.site-header .container {
  width: min(95%, 1100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

main { flex: 1; }

/* ── Header & Nav ─────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}


.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}


.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--fg);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}


.site-nav a:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}


.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}


@media (max-width: 600px) {
  .nav-toggle { display: flex; }

  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
    padding: 0.5rem;
  }



  .site-nav ul.is-open { display: flex; }

  .site-nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 44px;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ── Breadcrumb ───────────────────────────────────────────────────────── */

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  opacity: 0.5;
}

.breadcrumb a {
  color: inherit;
  opacity: 0.7;
}

.breadcrumb a:hover { opacity: 1; }

/* ── Post / Page Content ──────────────────────────────────────────────── */

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.post-header time {
  font-size: 0.875rem;
  opacity: 0.6;
}

.post-hero-image {
  margin: 0 0 2.25rem;
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  box-shadow: 0 14px 38px color-mix(in srgb, var(--fg) 14%, transparent);
}

.post-hero-image img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.post-hero-image figcaption {
  padding: 0.65rem 1rem 0.8rem;
  color: color-mix(in srgb, var(--fg) 68%, transparent);
  font-size: 0.8rem;
  line-height: 1.4;
}

.post-content,
.page-content {
  max-width: 70ch;
}

.post-content h2,
.page-content h2 {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.post-content h3,
.page-content h3 {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.post-content p,
.page-content p {
  margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li,
.page-content li {
  margin-bottom: 0.4rem;
}

.post-content a,
.page-content a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.post-content img,
.page-content img {
  border-radius: 6px;
  margin-block: 1.5rem;
}

.post-content strong,
.page-content strong {
  font-weight: 600;
}

.post-content table,
.page-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.post-content th,
.post-content td,
.page-content th,
.page-content td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
}

.post-content th,
.page-content th {
  font-weight: 600;
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}

/* ── Archive / Post List ──────────────────────────────────────────────── */

.archive-header {
  margin-bottom: 2.5rem;
}

.archive-header h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.post-list {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.post-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.post-card:hover {
  border-color: var(--accent);
}

.post-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.post-card h2 a {
  color: var(--fg);
  text-decoration: none;
}


.post-card h2 a:hover { color: var(--accent); }


.post-card time {
  font-size: 0.8125rem;
  opacity: 0.55;
  display: block;
  margin-bottom: 0.5rem;
}

.post-card p {
  font-size: 0.9375rem;
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
}

/* ── Related Posts ────────────────────────────────────────────────────── */

.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.related-posts h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.related-posts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.related-posts a {
  font-size: 0.9375rem;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  font-size: 0.875rem;
  opacity: 0.7;
}

.site-footer .container {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  width: min(95%, 1100px);
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer a {
  color: inherit;
}

/* ── Home ─────────────────────────────────────────────────────────────── */

.page-home .container {
  width: min(95%, 1100px);
}

/* Fließtext-Content auf der Homepage zentrieren (kein "halb links"-Effekt) */
.page-home .page-content {
  max-width: 70ch;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.hero {
  text-align: center;
  padding-block: 4rem 3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  text-align: left;
}

.hero__copy { min-width: 0; }

.hero__image {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--fg) 18%, transparent);
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 2.5rem;
  }
  .hero__image { order: -1; }
}

.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  opacity: 0.75;
  max-width: 52ch;
  margin-inline: 0;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  min-height: 44px;
  transition: filter 0.15s;
}

.btn:hover { filter: brightness(1.1); }


.home-section-header {
  margin-bottom: 1.5rem;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

/* ── 404 ──────────────────────────────────────────────────────────────── */

.page-404 .container {
  text-align: center;
  padding-block: 6rem 4rem;
}

.page-404 h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  margin-bottom: 1rem;
}

.page-404 p { opacity: 0.7; margin-bottom: 2rem; }

/* ── YouTube DSGVO-Consent ────────────────────────────────────────────── */

.yt-consent {
  position: relative;
  background: #0f0f0f;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 1.5rem;
  overflow: hidden;
}

.yt-consent__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.9375rem;
  font-family: inherit;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
  max-width: 36ch;
}

.yt-consent__btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.yt-consent__icon {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
}


.yt-consent__note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  margin-top: 0.75rem;
  text-align: center;
  max-width: 40ch;
}

.yt-consent__note a {
  color: inherit;
  text-decoration-color: rgba(255,255,255,0.3);
}

/* ── Content Note (aus [su_note] Shortcode) ───────────────────────────── */

.content-note {
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}


/* ── Post CTA (config.cta) ────────────────────────────────────────────── */

.post-cta {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}


.post-cta__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}


.post-cta h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  color: var(--fg);
}


.post-cta p {
  margin-bottom: 1rem;
  opacity: 0.85;
  font-size: 0.9375rem;
}

.post-cta .btn {
  font-size: 0.9375rem;
  color: #fff !important;
}


/* ── Schraubendatenbank ── */

/* ── Schraubendatenbank – site-spezifische Styles ─────────────────────── */

/* Breite Container für Datenbank & Home */
.page-db .container { width: min(95%, 1200px); }
.page-home .container { width: min(95%, 1200px); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { gap: clamp(2rem, 5vw, 4rem); }
.hero__copy h1 { letter-spacing: -0.04em; }
.hero__image { border-radius: 16px; }

/* ── Home: Sektionen ───────────────────────────────────────────────────── */
.home-intro { margin-bottom: 3rem; }
.home-section { margin: 2.75rem 0; }
.home-section-header { margin-bottom: 1.25rem; }
.home-cta-line { margin-top: 1.5rem; text-align: center; }

.family-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.family-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.family-card:hover, .family-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--fg) 12%, transparent); }
.family-card strong { font-size: 1.05rem; }
.family-card span { font-size: 0.875rem; opacity: 0.72; line-height: 1.4; }
.family-card__count { margin-top: auto; padding-top: 8px; font-style: normal; font-size: 0.8125rem; font-weight: 600; color: var(--accent); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: color-mix(in srgb, var(--accent) 7%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tool-card:hover, .tool-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--fg) 12%, transparent); }
.tool-card strong { font-size: 1.1rem; }
.tool-card span { font-size: 0.9rem; opacity: 0.78; line-height: 1.5; }
.tool-card__go { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 600; font-size: 0.875rem; color: var(--accent); }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mini-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.mini-card:hover, .mini-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.mini-card strong { font-size: 0.95rem; line-height: 1.3; }
.mini-card span { font-size: 0.8125rem; opacity: 0.6; }

/* ── Datenbank: Filter ─────────────────────────────────────────────────── */
.db-filter { margin: 1.5rem 0 1.25rem; padding: 18px; background: #fff; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 14px; }
.db-filter form { display: grid; gap: 14px; }
.db-filter label { display: grid; gap: 6px; font-size: 0.8125rem; font-weight: 600; }
.db-filter input, .db-filter select { width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-radius: 10px; background: var(--bg); font: inherit; color: inherit; }
.db-filter input:focus, .db-filter select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.db-filter__selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.db-filter__actions { display: flex; align-items: end; }
.db-filter button { min-height: 44px; padding: 11px 18px; border: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); border-radius: 10px; background: #fff; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.db-filter button:hover { border-color: var(--accent); color: var(--accent); }
.db-filter--simple form { grid-template-columns: 1fr; max-width: 420px; }

.db-count { font-size: 0.9375rem; font-weight: 600; color: var(--accent); margin: 0 0 1rem; }
.db-empty { margin: 1.5rem 0; padding: 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, #fff); border: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent); }

/* ── Datenbank: Karten ─────────────────────────────────────────────────── */
.db-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.db-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: #fff; border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.db-card:hover { border-color: var(--accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--fg) 10%, transparent); }
.db-card h2 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.db-card h2 a { color: var(--fg); text-decoration: none; }
.db-card h2 a:hover { color: var(--accent); }
.db-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.db-desc { margin: 0; font-size: 0.9rem; opacity: 0.82; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.db-more { margin-top: auto; padding-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.db-more:hover { text-decoration: underline; }

.badge { display: inline-block; padding: 3px 9px; background: color-mix(in srgb, var(--accent) 10%, #fff); color: color-mix(in srgb, var(--accent) 92%, var(--fg)); border-radius: 999px; font-size: 0.78rem; font-weight: 600; line-height: 1.3; }

/* ── Ratgeber-Liste ────────────────────────────────────────────────────── */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: #fff; border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.guide-card:hover { border-color: var(--accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--fg) 10%, transparent); }
.guide-card h2 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.guide-card h2 a { color: var(--fg); text-decoration: none; }
.guide-card h2 a:hover { color: var(--accent); }
.guide-card time { font-size: 0.8125rem; opacity: 0.55; }
.guide-card p { margin: 0; font-size: 0.9rem; opacity: 0.8; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Detail: Steckbrief ────────────────────────────────────────────────── */
.affiliate-disclosure { margin: 0 0 1.5rem; padding: 12px 15px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); font-size: 0.875rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; }
.steckbrief-wrap { margin: 0 0 1.75rem; }
.steckbrief { width: 100%; }
.steckbrief th { width: 40%; background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.steckbrief td { word-break: break-word; }
.db-back { margin-top: 2rem; }

/* ── Rechner & Finder (Werkzeuge) ──────────────────────────────────────── */
.calc { margin: 2rem 0; padding: 22px; background: #fff; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 16px; }
.calc h2 { margin-top: 0; }
.calc-field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 0.875rem; font-weight: 600; }
.calc-field input, .calc-field select { width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-radius: 10px; background: var(--bg); font: inherit; color: inherit; }
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.calc-unit { font-weight: 400; opacity: 0.6; }
.calc-range { margin: 4px 0 0; }
.calc-range input[type=range] { width: 100%; accent-color: var(--accent); }

.calc-output { margin-top: 18px; padding: 18px 20px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); }
.calc-output__main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-output__value { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--accent); line-height: 1; }
.calc-output__label { font-weight: 600; }
.calc-output__row { margin-top: 12px; font-size: 0.9375rem; line-height: 1.6; }
.calc-output__row strong { color: var(--accent); }
.calc-output__hint { margin-top: 10px; font-size: 0.85rem; opacity: 0.75; line-height: 1.5; }

/* Finder */
.finder-step { margin: 1.5rem 0; }
.finder-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.finder-option { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); border-radius: 12px; background: var(--bg); cursor: pointer; font: inherit; font-weight: 600; text-align: left; transition: border-color .15s, background .15s; }
.finder-option:hover { border-color: var(--accent); }
.finder-option.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); }
.finder-result { margin-top: 1.5rem; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
.finder-result h3 { margin-top: 0; }
.finder-result ul { margin: 0 0 14px 20px; }
.finder-result a { color: var(--accent); }

/* ── Tabellen in Ratgebern / Werkzeugen ────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-bottom: 1.25rem; border-radius: 8px; }
.page-content .table-wrap table { margin-bottom: 0; }

/* ── Mobil ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .db-grid { grid-template-columns: 1fr; }
  .calc, .finder-result { padding: 16px; }
  .db-filter { padding: 14px; }
}

/* Lange Einzelwörter (z. B. „Schraubendatenbank“) dürfen umbrechen, statt zu überlaufen */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
}
