/* ==========================================================================
   PlasterOne® Teile- und Kompatibilitätsseiten
   Alles unter main.tf, damit Kopf und Fuß der Website unberührt bleiben.
   Tokens kommen aus style.css.
   ========================================================================== */

main.tf {
  --kopf-h: calc(var(--ann-h, 0px) + var(--hdr-h, 84px));
  --leiste-h: 55px;
  display: block;
  background: var(--white);
  color: var(--ink);
}

/* Sprungziele landen unter Kopf und Produktleiste, nicht dahinter */
main.tf section[id], main.tf #anfrage { scroll-margin-top: calc(var(--kopf-h) + var(--leiste-h) + 12px); }

/* ---------- Sticky Produktleiste ---------- */
main.tf .tfleiste {
  position: sticky; top: var(--kopf-h); z-index: 58;
  display: flex; align-items: center; gap: 22px;
  padding: 0 clamp(16px, 4vw, 48px); height: var(--leiste-h);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
main.tf .tfleiste__marke {
  font-family: var(--display); font-weight: 800; font-size: 1.04rem;
  margin-right: auto; white-space: nowrap;
}
main.tf .tfleiste__links { display: flex; gap: 24px; }
main.tf .tfleiste__links a {
  font-size: 14px; color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
main.tf .tfleiste__links a.is-aktiv { color: var(--ink); border-bottom-color: var(--ink); }
@media (hover: hover) { main.tf .tfleiste__links a:hover { color: var(--ink); } }
@media (max-width: 900px) { main.tf .tfleiste__links { display: none; } }

/* ---------- Held ---------- */
main.tf .tfheld {
  padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px) clamp(40px, 5vw, 72px);
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(47, 207, 194, 0.14) 0%, transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
main.tf .tfheld__in {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
@media (max-width: 860px) { main.tf .tfheld__in { grid-template-columns: 1fr; } }

main.tf .tfheld__marke {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--petrol); margin-bottom: 18px;
}
main.tf .tfheld h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.02;
  letter-spacing: -0.03em; text-wrap: balance;
}
main.tf .tfheld h1 em { font-style: normal; color: var(--petrol); display: block; }
main.tf .tfheld__lede {
  margin-top: 20px; max-width: 54ch; font-size: 1.06rem; line-height: 1.6; color: var(--muted);
}
main.tf .tfheld__zahlen {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 32px;
  border-top: 1px solid var(--line);
}
main.tf .tfzahl { padding: 18px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
main.tf .tfzahl:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
main.tf .tfzahl b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; letter-spacing: -0.02em;
}
main.tf .tfzahl span {
  display: block; margin-top: 7px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
main.tf .tfheld__aktion { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
main.tf .tfheld__bild {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--line);
}
main.tf .tfheld__bild img { display: block; width: 100%; height: auto; }

/* ---------- Knöpfe ---------- */
main.tf .tfknopf {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform 0.16s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
main.tf .tfknopf--voll { background: var(--petrol); color: #fff; }
main.tf .tfknopf--rand { background: transparent; color: var(--ink); border-color: var(--line); }
@media (hover: hover) {
  main.tf .tfknopf--voll:hover { background: var(--petrol-deep); }
  main.tf .tfknopf--rand:hover { border-color: var(--ink); }
}
main.tf .tfknopf:active { transform: scale(0.97); }

/* ---------- Abschnitte ---------- */
main.tf .tfsec { padding: clamp(56px, 7vw, 104px) clamp(16px, 4vw, 48px); }
main.tf .tfsec--grau { background: var(--paper); }
main.tf .tfsec__in { max-width: 1280px; margin: 0 auto; }
main.tf .tfsec__in--schmal { max-width: 860px; }
main.tf .tfsec h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.08;
  letter-spacing: -0.025em; text-wrap: balance;
}
main.tf .tfsec__lede {
  margin-top: 14px; max-width: 62ch; color: var(--muted); font-size: 1.02rem; line-height: 1.62;
}

/* ---------- Kompatibilitätstabelle ---------- */
main.tf .tftab { margin-top: 36px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
main.tf table.tfmatrix { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
main.tf table.tfmatrix thead th {
  text-align: left; padding: 0 16px 12px 0; vertical-align: bottom;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); font-weight: 400;
  border-bottom: 1px solid var(--ink);
}
main.tf table.tfmatrix td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
main.tf table.tfmatrix tbody tr { transition: background-color 0.15s var(--ease); }
@media (hover: hover) { main.tf table.tfmatrix tbody tr:hover { background: rgba(47, 207, 194, 0.07); } }
main.tf .tfgroesse { font-family: var(--mono); font-weight: 600; font-size: 15px; white-space: nowrap; }
main.tf .tfteil { font-weight: 600; }
main.tf .tfteil small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------- Merkmal-Plaketten ---------- */
main.tf .tfmerk {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap;
  background: rgba(22, 96, 106, 0.09); color: var(--petrol);
}
main.tf .tfmerk--lager { background: rgba(47, 207, 194, 0.18); color: #0B5B54; }
main.tf .tfmerk--anfrage { background: rgba(23, 25, 29, 0.07); color: var(--muted); }

/* ---------- Bauart-Vergleich ---------- */
main.tf .tfbau { display: grid; gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { main.tf .tfbau { grid-template-columns: repeat(3, 1fr); } }
main.tf .tfbau__sp { background: var(--white); padding: 28px 26px 30px; }
main.tf .tfbau__sp h3 { font-family: var(--display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.01em; }
main.tf .tfbau__sp p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
main.tf .tfbau__fuer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
main.tf .tfbau__fuer b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 400; }

/* ---------- Hinweiskasten (Sonderfälle) ---------- */
main.tf .tfnote {
  margin-top: 32px; padding: 24px 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
}
main.tf .tfnote h3 { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
main.tf .tfnote ul { margin-top: 14px; list-style: none; display: grid; gap: 11px; }
main.tf .tfnote li { padding-left: 22px; position: relative; font-size: 15px; line-height: 1.58; color: var(--muted); }
main.tf .tfnote li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}
main.tf .tfnote li b { color: var(--ink); font-weight: 600; }

/* ---------- Markenblock: die eigene Maschine ---------- */
main.tf .tfmarke {
  background: var(--petrol-ink); color: #fff;
  padding: clamp(56px, 7vw, 104px) clamp(16px, 4vw, 48px);
  isolation: isolate;
}
main.tf .tfmarke__in {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
@media (max-width: 860px) { main.tf .tfmarke__in { grid-template-columns: 1fr; } }
main.tf .tfmarke__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}
main.tf .tfmarke h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.04; letter-spacing: -0.03em; color: #fff;
}
main.tf .tfmarke p { margin-top: 18px; max-width: 48ch; color: rgba(255, 255, 255, 0.76); line-height: 1.62; }
main.tf .tfmarke__daten { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
main.tf .tfmarke__daten div b {
  display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: #fff;
}
main.tf .tfmarke__daten div span {
  display: block; margin-top: 6px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
}
main.tf .tfmarke .tfknopf--voll { background: var(--teal); color: var(--petrol-ink); }
main.tf .tfmarke .tfknopf--rand { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
@media (hover: hover) {
  main.tf .tfmarke .tfknopf--voll:hover { background: var(--band-hover); }
  main.tf .tfmarke .tfknopf--rand:hover { border-color: #fff; }
}
main.tf .tfmarke__bild img { display: block; width: 100%; height: auto; }

/* ---------- Fragen ---------- */
main.tf .tffrage { border-bottom: 1px solid var(--line); }
main.tf .tffrage summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-family: var(--display); font-weight: 800; font-size: 1.06rem; line-height: 1.4;
}
main.tf .tffrage summary::-webkit-details-marker { display: none; }
main.tf .tffrage summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.25s var(--ease);
}
main.tf .tffrage[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
main.tf .tffrage__text { padding: 0 0 24px; color: var(--muted); line-height: 1.65; max-width: 68ch; }

/* ---------- Markenhinweis ---------- */
main.tf .tfrecht {
  padding: 26px clamp(16px, 4vw, 48px) 40px;
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
main.tf .tfrecht p { max-width: 1280px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  main.tf * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Anfragelink je Tabellenzeile (keine Preise auf der Website) ---------- */
main.tf a.tfzeile {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--petrol); white-space: nowrap;
  border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease);
}
@media (hover: hover) { main.tf a.tfzeile:hover { border-bottom-color: var(--petrol); } }
main.tf a.tfzeile:active { transform: translateY(1px); }
main.tf select.is-uebernommen {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 207, 194, 0.25);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* ---------- Breite Matrix mit Maschinen-Spalte ---------- */
main.tf table.tfmatrix--breit { min-width: 980px; }
main.tf .tflaeuft { color: var(--muted); font-size: 13.5px; line-height: 1.45; max-width: 26ch; }

/* ---------- Produktliste in den Spalten (Schläuche) ---------- */
main.tf .tfliste { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
main.tf .tfliste li { padding: 13px 0; border-bottom: 1px solid var(--line); }
main.tf .tfliste b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
main.tf .tfliste span {
  display: block; margin-top: 5px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Ersatzteil-Übersicht: Liste statt Kachelraster ---------- */
main.tf .etliste { list-style: none; margin-top: 32px; border-top: 1px solid var(--ink); }
main.tf .etzeile { border-bottom: 1px solid var(--line); }
main.tf .etzeile a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 140px 32px;
  gap: 24px; align-items: center; padding: 26px 0;
  transition: background-color 0.2s var(--ease);
}
@media (hover: hover) {
  main.tf .etzeile a:hover { background: rgba(47, 207, 194, 0.06); }
  main.tf .etzeile a:hover .etpfeil { transform: translateX(4px); color: var(--petrol); }
}
main.tf .etzeile a:active { transform: scale(0.995); }
main.tf .etnr { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; padding-left: 4px; }
main.tf .ettext b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.15;
}
main.tf .ettext span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 60ch; }
main.tf .etzahl { text-align: right; }
main.tf .etzahl b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
main.tf .etzahl span {
  display: block; margin-top: 4px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
main.tf .etpfeil { color: var(--muted); transition: transform 0.25s var(--ease), color 0.2s var(--ease); }
main.tf .etpfeil svg { width: 22px; height: 22px; display: block; }
@media (max-width: 720px) {
  main.tf .etzeile a { grid-template-columns: 34px minmax(0, 1fr) 22px; gap: 14px; }
  main.tf .etzahl { display: none; }
}

/* ==========================================================================
   Länderseiten
   ========================================================================== */
main.ln .lnnetz {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { main.ln .lnnetz { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
main.ln .lnnetz__w { padding: 22px 0 24px; border-inline-end: 1px solid var(--line); padding-inline: 20px; }
main.ln .lnnetz__w:first-child { padding-inline-start: 0; }
main.ln .lnnetz__w:last-child { border-inline-end: 0; }
main.ln .lnnetz__w span {
  display: block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
main.ln .lnnetz__w b {
  display: block; margin-top: 10px; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.02em; line-height: 1;
  direction: ltr; unicode-bidi: isolate;
}
main.ln .lnurteil {
  margin-top: 28px; padding: 26px 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
main.ln .lnurteil--passt { background: rgba(47, 207, 194, 0.10); border-color: rgba(47, 207, 194, 0.45); }
main.ln .lnurteil--anpassen { background: rgba(232, 98, 45, 0.08); border-color: rgba(232, 98, 45, 0.35); }
main.ln .lnurteil__maschine {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
main.ln .lnurteil h3 { margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.015em; }
main.ln .lnurteil p:not(.lnurteil__maschine) { margin-top: 8px; color: var(--ink); line-height: 1.62; max-width: 68ch; }

/* ---------- Rechts-nach-links: feste Seitenangaben spiegeln ---------- */
[dir="rtl"] main.tf .tfzahl { padding: 18px 0 0 28px; margin: 0 0 0 28px; border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] main.tf .tfzahl:last-child { border-left: 0; margin-left: 0; padding-left: 0; }
[dir="rtl"] main.tf .tfnote li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] main.tf .tfnote li::before { left: auto; right: 0; }
[dir="rtl"] main.tf .tffrage summary { padding: 22px 0 22px 36px; }
[dir="rtl"] main.tf .tffrage summary::after { right: auto; left: 6px; }
[dir="rtl"] main.tf table th, [dir="rtl"] main.tf table td { text-align: right; padding-right: 0; padding-left: 16px; }
[dir="rtl"] main.tf .tfknopf .pf { transform: scaleX(-1); }
[dir="rtl"] main.tf .tfheld h1, [dir="rtl"] main.tf h2 { letter-spacing: 0; }
/* Arabisch: verbundene Schrift — kein Buchstabenabstand, keine Versalien,
   und eine Schriftfolge mit echten arabischen Zeichen statt Zufalls-Fallback. */
[dir="rtl"] main.tf :is(p, h1, h2, h3, span, b, a, li, summary, label, em, th, td, button) {
  letter-spacing: 0 !important; text-transform: none !important;
}
[dir="rtl"] main.tf {
  font-family: "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, var(--body);
}
[dir="rtl"] main.tf :is(h1, h2, h3, .tfheld__marke) {
  font-family: "Segoe UI", "Noto Kufi Arabic", "Geeza Pro", Tahoma, var(--display); font-weight: 700;
}

/* Spaltenzahl als Modifikator: am Handy immer einspaltig */
main.tf .tfbau--1, main.tf .tfbau--2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { main.tf .tfbau--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Ersatzteil-Liste in Rechts-nach-links: Zahlen links, Pfeil gespiegelt */
[dir="rtl"] main.tf .etzahl { text-align: left; }
[dir="rtl"] main.tf .etpfeil svg { transform: scaleX(-1); }
[dir="rtl"] main.tf .etnr { padding-left: 0; padding-right: 4px; }
