/* Dellorto-Bedüsungsdatenbank — moto-renzo.biz/dellorto-beduesung/
   Design nach Moto-Renzo-Vorgaben: Fira Sans (max. 700), Caps-Titel 400,
   Rot #ff2b2b, Kauf-Grün #44C21C, weiche Schatten, große Touch-Ziele. */

@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/firasans-regular.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/firasans-medium.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/firasans-bold.woff2") format("woff2"); }

:root {
  --rot: #ff2b2b; --rot-hover: #d90000;
  --gruen: #44C21C; --gruen-hover: #3aa617;
  --text: #333; --text-soft: #555; --text-mute: #767676;
  --flaeche: #f5f5f5; --flaeche-2: #f7f7f7; --linie: #e2e2e2;
  --radius: 10px; --radius-s: 6px;
  --schatten: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.07);
  --ls: 0.018em;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: var(--flaeche);
  font: 400 15px/1.6 "Fira Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: var(--ls);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--rot); text-decoration: none; }
a:hover { color: var(--rot-hover); text-decoration: underline; }

.wrap { max-width: 1260px; margin: 0 auto; padding: 0 16px; }

/* Shop-Prinzip: Inhalt direkt auf grauem Fond, volle Breite —
   Weiß bekommen nur die wichtigen Karten (Tabellen, Boxen, Suche, FAQ). */
main.panel { padding: 0 0 30px; }

/* ---------- Kopf: rotes Marken-Band wie im Shop ---------- */
.kopf { background: var(--rot); }
.kopf-inner { display: flex; align-items: center; gap: 18px; padding: 12px 16px; }
.kopf-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.kopf-logo:hover { text-decoration: none; }
.kopf-logo img { width: 95px; height: 80px; object-fit: contain; flex: none; }
.kopf-claim { display: flex; flex-direction: column; gap: 2px; color: #fff; min-width: 0; }
.kopf-claim strong { font-weight: 700; font-size: 17.5px; letter-spacing: .02em; line-height: 1.25; }
.kopf-claim span { font-size: 12.5px; opacity: .92; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kopf-shoplink {
  color: #fff; font-weight: 500; font-size: 13px;
  text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius-s); white-space: nowrap;
}
.kopf-shoplink:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.kopf-shoplink .kurz { display: none; }
.such-knopf {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; color: #fff;
  border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius-s);
}
.such-knopf:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-band { background: #fff; border-bottom: 1px solid var(--linie); }
.kopf-nav { display: flex; gap: 2px; flex-wrap: nowrap; justify-content: center; overflow-x: auto; }
.kopf-nav a {
  display: inline-block; padding: 12px 13px; color: var(--text-soft);
  font-weight: 500; font-size: 13.5px; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .05em;
}
.kopf-nav a:hover { background: var(--flaeche-2); color: var(--text); text-decoration: none; }

/* ---------- Typo ---------- */
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-weight: 400; text-transform: uppercase; font-size: 26px; color: var(--text); letter-spacing: .03em; margin-top: 26px; }
h2 { font-weight: 400; text-transform: uppercase; font-size: 21px; color: var(--text); letter-spacing: .03em; margin: 56px 0 12px; }
h2::after { content: ""; display: block; width: 46px; height: 3px; background: var(--rot); margin-top: 8px; border-radius: 2px; }
/* Inhalt gehört näher an seine Überschrift als die Überschrift an die Sektion darüber */
h2 + .tab-scroll, h2 + .karten, h2 + .tab-breit { margin-top: 6px; }
h2 + details { margin-top: 6px; }
h3 + .tab-scroll, h3 + .tab-breit { margin-top: 8px; }
h3 { font-weight: 500; font-size: 16.5px; margin-top: 36px; }
p { margin: 0 0 1em; }
.lead { font-size: 15.5px; color: var(--text-soft); max-width: 760px; }

/* Hero: Titel + Text links, eigenes Produktfoto rechts (Landing-Page-Stil) */
.hero { display: flex; gap: 28px; align-items: center; }
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 { margin-top: 26px; }
.hero .lead { max-width: none; }
.hero-bild {
  flex: none; width: 172px; display: block; background: #fff;
  border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 10px;
}
.hero-bild img { display: block; width: 100%; height: auto; border-radius: var(--radius-s); }
.hero-bild:hover { border-color: var(--rot); }
.klein { font-size: 13px; color: var(--text-mute); }

/* ---------- Brotkrumen ---------- */
.krumen { font-size: 13px; color: var(--text-mute); padding: 12px 0 0; }
.krumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.krumen li + li::before { content: "›"; margin: 0 6px 0 2px; color: #bbb; }
.krumen a { color: var(--text-mute); }

/* ---------- Suche ---------- */
.suche {
  position: relative; margin: 20px 0 8px;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 14px 16px 16px;
}
.suche label { display: block; margin-bottom: 7px; }
.suche-zeile { display: flex; gap: 8px; }
.suche-zeile input { flex: 1; min-width: 0; }
.suche-marke {
  flex: none; max-width: 44%; padding: 0 10px; font: inherit; font-size: 15px;
  border: 2px solid #d8d8d8; border-radius: var(--radius); background: #fff;
  color: var(--text); min-height: 50px;
}
.suche-marke:focus { border-color: var(--rot); outline: none; }
.suche-marke:empty, .suche-marke:not(:has(option)) { display: none; }
.suche input {
  width: 100%; padding: 13px 16px; font: inherit; font-size: 16px;
  border: 2px solid #d8d8d8; border-radius: var(--radius); outline: none; min-height: 50px;
}
.suche input:focus { border-color: var(--rot); }
.suche-liste {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
}
.suche-liste li a { display: block; padding: 11px 12px; border-radius: var(--radius-s); color: var(--text); min-height: 44px; }
.suche-liste li a:hover, .suche-liste li a.aktiv { background: var(--flaeche-2); text-decoration: none; }
.suche-liste .typ { font-size: 12px; color: var(--text-mute); margin-left: 6px; }
[hidden] { display: none !important; }

/* ---------- Such-Overlay (Lupe im roten Band) ---------- */
.such-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45);
  padding: 14px; overflow-y: auto;
}
.such-karte {
  background: #fff; border-radius: var(--radius); box-shadow: var(--schatten);
  max-width: 640px; margin: 72px auto 0; padding: 14px 16px 16px;
}
.such-kopfzeile { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.such-schliessen {
  border: 0; background: var(--flaeche); border-radius: var(--radius-s);
  width: 44px; height: 44px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-soft);
}
.such-schliessen:hover { background: #eee; }
.such-karte .suche { margin: 0; max-width: none; background: none; border: 0; box-shadow: none; padding: 0; }
.such-karte .suche-liste { position: static; box-shadow: none; border: 0; padding: 6px 0 0; max-height: 55vh; }
@media (max-width: 700px) {
  .such-karte { margin-top: 8px; }
}

/* ---------- Karten / Listen ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 0; margin: 14px 0; list-style: none; }
.karten a {
  display: block; padding: 15px 17px; background: #fff;
  border: 1px solid var(--linie); border-radius: var(--radius); color: var(--text); min-height: 48px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.karten a:hover { border-color: var(--rot); box-shadow: var(--schatten); text-decoration: none; }
.karten .name { font-weight: 500; display: block; }
.karten .meta { font-size: 13px; color: var(--text-mute); margin-top: 2px; display: block; }

/* ---------- Tabellen ---------- */
.tab-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: #fff; box-shadow: var(--schatten);
}
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
caption { text-align: left; font-weight: 500; padding: 10px 12px; background: var(--flaeche-2); border-bottom: 1px solid var(--linie); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--flaeche-2); font-weight: 500; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbfbfb; }
th[scope="row"] { font-weight: 500; width: 40%; min-width: 180px; }
/* Quer-Variante der Übersichtstabellen: nur mobil (Spalte je Modell/Variante) */
.tab-quer { display: none; }
td .hilfe { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-mute); }
th .hilfe { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-mute); }
.wert { font-weight: 700; font-size: 15.5px; white-space: nowrap; }

/* Detail-Tabelle der Werksvarianten (Modellseiten): Beschriftungs-Spalte klebt links,
   eine Wertespalte je Variante — auf schmalen Screens seitlich wischbar */
.tab-detail th[scope="row"], .tab-detail thead th:first-child {
  position: sticky; left: 0; z-index: 2; background: var(--flaeche-2);
  box-shadow: 1px 0 0 var(--linie);
  width: 250px; min-width: 200px; max-width: 280px;
}
.tab-detail tbody tr:nth-child(even) th[scope="row"] { background: var(--flaeche-2); }
.tab-detail td { min-width: 170px; }
.tab-detail thead th { white-space: normal; font-size: 13.5px; vertical-align: bottom; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 16px; border-radius: var(--radius-s);
  font-weight: 500; font-size: 13.5px; text-transform: uppercase; letter-spacing: .065em;
  border: 0; cursor: pointer; min-height: 44px; line-height: 22px;
}
.btn:hover { text-decoration: none; }
.btn-gruen { background: var(--gruen); color: #fff; }
.btn-gruen:hover { background: var(--gruen-hover); color: #fff; }
.btn-rot { background: var(--rot); color: #fff; }
.btn-rot:hover { background: var(--rot-hover); color: #fff; }
.btn-hell { background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); }
.btn-hell:hover { background: #eee; }
.btn-mini {
  display: inline-block; padding: 5px 10px; border-radius: var(--radius-s);
  background: var(--gruen); color: #fff; font-size: 12px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.btn-mini:hover { background: var(--gruen-hover); color: #fff; text-decoration: none; }

/* ---------- Boxen ---------- */
.box { border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px; margin: 22px 0; background: #fff; box-shadow: var(--schatten); }
.box-warn { border-left: 4px solid var(--rot); background: #fff6f6; }
.box-info { border-left: 4px solid #999; }
.box-kauf { border-left: 4px solid var(--gruen); background: #f7fcf5; }
.box h3 { margin-top: 0; }
.box :last-child { margin-bottom: 0; }
.anfrage-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.konflikt { border-left: 4px solid #e0a800; background: #fffaf0; border-radius: var(--radius-s); padding: 10px 12px; margin: 6px 0; font-size: 13.5px; }
.konflikt .kl { font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; color: #8a6d00; display: block; margin-bottom: 4px; }

.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.badge-praxis { background: #fff3cd; color: #7a5d00; border: 1px solid #ffe69c; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--linie); border-radius: var(--radius); margin: 8px 0; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 500; min-height: 48px; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--text-mute); }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 16px 14px; color: var(--text-soft); }
.faq .faq-a :last-child { margin-bottom: 0; }
.faq .faq-quelle { font-size: 12.5px; color: var(--text-mute); }

/* ---------- Abstimm-Matrix ---------- */
.matrix td:first-child { font-weight: 500; }
.richtung { white-space: nowrap; font-weight: 700; }

/* ---------- Artikel ---------- */
.artikel { max-width: 760px; }
.artikel h2 { font-size: 19px; }
.artikel figure {
  margin: 26px 0; background: #fff; border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten); padding: 16px;
}
.artikel figcaption { font-size: 13px; color: var(--text-mute); margin-top: 6px; }
.artikel ul, .artikel ol { padding-left: 22px; }
.artikel li { margin-bottom: 6px; }

/* ---------- Fuß ---------- */
.fuss { margin-top: 42px; border-top: 3px solid var(--rot); background: #fff; }
.fuss .trust { font-size: 12.5px; color: var(--text-mute); margin-top: 12px; }
.fuss-inner { padding: 26px 16px 34px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: 13.5px; color: var(--text-soft); }
.fuss a { color: var(--text-soft); }
.fuss h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--text-mute); margin: 0 0 8px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin: 5px 0; }

/* ---------- Mobil ---------- */
@media (max-width: 700px) {
  body { font-size: 14.5px; line-height: 1.4; }
  h1 { font-size: 23px; }
  h2 { font-size: 22px; margin-top: 44px; margin-bottom: 10px; }
  .lead { font-size: 14.5px; }
  main.panel { padding: 0 0 20px; }
  .hero { gap: 12px; }
  .hero-bild { width: 116px; padding: 6px; }

  /* Modell-/Vergaser-Kacheln zweispaltig (Wissen-Karten bleiben einspaltig) */
  .karten { grid-template-columns: 1fr 1fr; gap: 10px; }
  .karten a { padding: 12px 12px; }
  .karten .meta { font-size: 12px; }
  .karten-breit { grid-template-columns: 1fr; }

  /* Kompakter Kopf: kleineres Logo/Claim, Shop-Button verkürzt, Nav einzeilig */
  .kopf-inner { gap: 10px; padding: 8px 12px; }
  .kopf-logo { gap: 10px; }
  .kopf-logo img { width: 56px; height: 47px; }
  .kopf-claim strong { font-size: 14px; }
  .kopf-claim span { font-size: 10.5px; }
  .kopf-rechts { gap: 6px; }
  .such-knopf { width: 42px; height: 42px; }
  .kopf-shoplink { padding: 10px 11px; font-size: 12px; }
  .kopf-shoplink .lang { display: none; }
  .kopf-shoplink .kurz { display: inline; }
  .kopf-nav { gap: 0; }
  .kopf-nav a { padding: 11px 8px; font-size: 12.5px; letter-spacing: .04em; }

  /* Tabellen kompakter: kleinere Schrift, engere Zeilen */
  table { font-size: 13px; line-height: 1.4; }
  caption { padding: 8px 10px; }
  th, td { padding: 7px 9px; }
  .wert { font-size: 14px; }
  th[scope="row"] { min-width: 130px; width: 44%; }
  /* Detailtabellen: Zeilen bleiben lesbar, kein Quetschen — die Wertspalte
     darf umbrechen, Kauf-Buttons rutschen unter den Wert */
  .wert { white-space: normal; }
  .zeilen-aktion { display: block; margin-top: 6px; }

  /* Übersichtstabellen gedreht: Spalte je Modell, Beschriftungs-Spalte klebt */
  .tab-breit { display: none; }
  .tab-quer { display: block; }
  .tab-quer thead th:first-child,
  .tab-quer tbody th[scope="row"] {
    position: sticky; left: 0; z-index: 2; background: var(--flaeche-2);
    box-shadow: 1px 0 0 var(--linie);
    width: 116px; min-width: 116px; max-width: 116px; font-size: 12.5px;
  }
  .tab-quer tbody tr:nth-child(even) th[scope="row"] { background: var(--flaeche-2); }
  .tab-quer td, .tab-quer thead th:not(:first-child) { min-width: 98px; }
  .tab-quer thead th { font-size: 13px; white-space: normal; }

  /* Varianten-Detailtabelle mobil: schmalere Klebe-Spalte, Hilfetexte ausblenden */
  .tab-detail th[scope="row"], .tab-detail thead th:first-child {
    width: 128px; min-width: 128px; max-width: 128px; font-size: 12.5px;
  }
  .tab-detail th[scope="row"] .hilfe { display: none; }
  .tab-detail td { min-width: 130px; }
}

/* ---------- Druck ---------- */
@media print {
  .kopf-nav, .nav-band, .kopf-rechts, .suche, .btn, .btn-mini, .anfrage-links, .fuss-nav, .such-overlay, .no-print { display: none !important; }
  .tab-quer { display: none !important; }
  .tab-breit { display: block !important; }
  body { font-size: 12px; color: #000; background: #fff; }
  .kopf { background: #fff; border-bottom: 2px solid #000; }
  .kopf-claim { color: #000; }
  main.panel { box-shadow: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .tab-scroll { border: 0; overflow: visible; }
  table { font-size: 11px; }
  th, td { padding: 5px 7px; }
  .box { background: #fff; }
  .faq details { break-inside: avoid; }
  .faq details > .faq-a { display: block; }
  h1 { margin-top: 0; }
  .druck-quelle { display: block !important; font-size: 10.5px; color: #444; margin-top: 14px; }
}
.druck-quelle { display: none; }

/* ---------- Zubehör-Block ---------- */
.box-zubehoer { border-left: 4px solid #888; }
.zubehoer-liste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.zubehoer-liste a { display: block; padding: 10px 12px; background: var(--flaeche-2);
  border: 1px solid var(--linie); border-radius: var(--radius-s); color: var(--text); min-height: 44px; }
.zubehoer-liste a:hover { border-color: var(--rot); background: #fff; text-decoration: none; }
.zub-label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-mute); font-weight: 500; }
.zub-name { display: block; font-size: 13.5px; margin-top: 2px; }
@media (max-width: 700px) { .zubehoer-liste { grid-template-columns: 1fr 1fr; gap: 6px; }
  .zubehoer-liste a { padding: 8px 10px; } .zub-name { font-size: 12.5px; } }
