/* TiffCore Werbeseite: gestaltet wie eine Installationszeichnung (Vorlauf rot, Rücklauf blau).
   Keine fremden Schriften, keine Skripte, keine Cookies. */
:root {
  --papier: #f5f2e9;
  --weiss: #fffdf7;
  --ink: #14231b;
  --forest: #16653c;
  --forest-deep: #0f4b2c;
  --gold: #c9a053;
  --gold-soft: #e0c488;
  --rot: #b8321f;
  --blau: #1f5f9f;
  --linie: #cdd3c6;
  --muted: #55625a;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  background-color: var(--papier);
  /* Millimeterpapier: feines Raster alle 24px, kräftigeres alle 120px */
  background-image:
    linear-gradient(rgba(20, 35, 27, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 27, .06) 1px, transparent 1px),
    linear-gradient(rgba(20, 35, 27, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 27, .03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
img, svg { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--rot); }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.025em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--weiss); padding: 8px 12px; border: 2px solid var(--ink); z-index: 30; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }

/* Knöpfe: wie Stempel mit hartem Schatten */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-deep); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink); }
.btn-outline { background: var(--weiss); color: var(--ink); }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }

/* Kopfzeile: wie der Rahmen einer Zeichnung */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 242, 233, .96); backdrop-filter: blur(6px); border-bottom: 2px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.marke img { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 6px; }
.marke strong { font-size: 21px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rot); color: var(--ink); }
.top-aktion { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* Hero */
.held { padding: 64px 0 80px; }
.held .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { font: 600 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--ink); }
.held h1 { font-size: clamp(40px, 5.2vw, 70px); font-weight: 800; line-height: 1.12; letter-spacing: -0.04em; }
.held h1 span { padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.held h1 .vor { color: var(--rot); background: linear-gradient(var(--rot), var(--rot)) 0 100% / 100% 7px no-repeat; }
.held h1 .rueck { color: var(--blau); background: linear-gradient(var(--blau), var(--blau)) 0 100% / 100% 7px no-repeat; }
.held .lead { margin-top: 30px; font-size: 19px; max-width: 30em; color: #2b3a31; }
.held .aktionen { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.held .fuss { margin-top: 26px; font: 500 13px/1.5 var(--mono); color: var(--muted); }

/* Schema-Zeichnung */
.schema { background: var(--weiss); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.schema svg { width: 100%; height: auto; padding: 10px 10px 0; }
.schriftfeld-klein { display: grid; grid-template-columns: 1fr 1.4fr auto; border-top: 2px solid var(--ink); font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.schriftfeld-klein span { padding: 8px 12px; border-right: 2px solid var(--ink); color: var(--muted); }
.schriftfeld-klein span:last-child { border-right: 0; color: var(--ink); }

.s-ink { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.s-fuell { fill: var(--weiss); }
.s-voll { fill: var(--ink); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.rohr { fill: none; stroke-width: 12; stroke-linecap: butt; }
.rohr.rot { stroke: var(--rot); }
.rohr.blau { stroke: var(--blau); }
.fluss { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 4; stroke-dasharray: 8 24; animation: fluss 1.3s linear infinite; }
.pfeil { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.flansch { fill: var(--ink); }
.mass { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.t { font-family: var(--mono); fill: var(--ink); }
.t-gross { font-size: 16px; font-weight: 700; letter-spacing: .05em; }
.t-lab { font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.t-fein { font-size: 12.5px; fill: #2b3a31; }
.t-rot { fill: var(--rot); }
.t-blau { fill: var(--blau); }
.t-muted { fill: var(--muted); }
.t-weiss-bg { fill: var(--weiss); }
@keyframes fluss { to { stroke-dashoffset: -32; } }

/* Anlage: Rohrleitung (Vorlauf rot, Rücklauf blau) läuft an den Positionen entlang */
.anlage { padding: 24px 0 40px; }
.anlage .wrap { position: relative; padding-left: 116px; }
.anlage .wrap::before, .anlage .wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8px; }
.anlage .wrap::before {
  left: 30px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .6) 0 10px, transparent 10px 36px), var(--rot);
  background-size: 100% 36px, 100% 100%;
  animation: runter 1.8s linear infinite;
}
.anlage .wrap::after {
  left: 56px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .6) 0 10px, transparent 10px 36px), var(--blau);
  background-size: 100% 36px, 100% 100%;
  animation: runter 1.8s linear infinite reverse;
}
@keyframes runter { to { background-position: 0 36px, 0 0; } }

.pos { position: relative; padding: 52px 0 56px; border-top: 2px dashed var(--linie); }
.pos:first-child { border-top: 0; }
.armatur {
  position: absolute; left: -116px; top: 44px; width: 78px; height: 78px; display: grid; place-items: center;
  background: var(--papier); z-index: 1;
}
.armatur b {
  width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); background: var(--weiss);
  display: grid; place-items: center; font: 800 18px/1 var(--mono); box-shadow: 3px 3px 0 var(--ink);
}
.pos-kopf { display: block; font: 700 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.pos-kopf.rot { color: var(--rot); }
.pos-kopf.blau { color: var(--blau); }
.pos-kopf.gruen { color: var(--forest); }
.pos h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; max-width: 17em; }
.pos .lead { margin-top: 16px; max-width: 36em; font-size: 18px; color: #2b3a31; }
.pos-inhalt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; margin-top: 32px; }
.pos-inhalt.mit-bild { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); align-items: start; }

/* Stückliste: Pos | Bezeichnung | Bemerkung */
.liste { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: z; }
.liste li { counter-increment: z; display: grid; grid-template-columns: 2.6em minmax(0, 12em) minmax(0, 1fr); gap: 4px 16px; padding: 14px 4px; border-bottom: 1px solid var(--ink); align-items: baseline; background: rgba(255, 253, 247, .6); }
.liste li::before { content: counter(z, decimal-leading-zero); font: 700 13px/1 var(--mono); color: var(--muted); }
.liste b { font-weight: 700; }
.liste span { color: #2b3a31; font-size: 16px; }
.hinweis { margin-top: 16px; font: 500 13.5px/1.5 var(--mono); color: var(--muted); }
.hinweis::before { content: "▸ "; color: var(--rot); }

/* Zeichnungen neben den Listen */
.zeichnung { background: var(--weiss); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 18px; }
.zeichnung svg { width: 100%; height: auto; }
.zeichnung figcaption { margin-top: 12px; font: 500 12.5px/1.45 var(--mono); color: var(--muted); }
.zettel { transform: rotate(1.5deg); padding: 10px; }
.zettel svg { margin: 0 auto; }
.t-hand { font-family: "Segoe Script", "Bradley Hand", "Lucida Handwriting", "Comic Sans MS", cursive; font-size: 15px; fill: #1b3f8a; }
.s-hand { fill: none; stroke: #1b3f8a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nadel { transform-box: view-box; transform-origin: 120px 130px; animation: zittern 3.4s ease-in-out infinite alternate; }
@keyframes zittern { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
.bogen { fill: none; stroke-width: 16; }
.bogen.g { stroke: var(--forest); }
.bogen.a { stroke: var(--gold); }
.bogen.r { stroke: var(--rot); }
.skala { fill: none; stroke: var(--ink); stroke-width: 7; stroke-dasharray: 2 6.8; }

/* Datenblatt */
.datenblatt { padding: 72px 0; background: var(--ink); color: var(--papier); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.datenblatt .pos-kopf { color: var(--gold-soft); }
.datenblatt h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; color: #fff; }
.datenblatt dl { margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.datenblatt .zeile { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dotted rgba(245, 242, 233, .45); align-items: baseline; }
.datenblatt dt { flex: 0 0 9.5em; font: 600 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); }
.datenblatt dd { margin: 0; }

/* Fragen */
.fragen { padding: 72px 0 40px; }
.fragen h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.fragen dl { margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.fragen .f { padding: 20px 0; border-top: 2px solid var(--ink); }
.fragen dt { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.fragen dd { margin: 8px 0 0; color: #2b3a31; font-size: 16px; }

/* Schriftfeld (Abschluss) */
.abschluss { padding: 40px 0 88px; }
.schriftfeld { background: var(--weiss); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); display: grid; grid-template-columns: 1.25fr 1fr; }
.schriftfeld .links { padding: 40px 40px 36px; border-right: 3px solid var(--ink); }
.schriftfeld h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.schriftfeld .links p { margin-top: 16px; font-size: 18px; color: #2b3a31; max-width: 26em; }
.schriftfeld .aktionen { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; }
.schriftfeld dl { margin: 0; display: grid; align-content: stretch; }
.schriftfeld .zeile { padding: 14px 22px; border-bottom: 1px solid var(--ink); }
.schriftfeld .zeile:last-child { border-bottom: 0; }
.schriftfeld dt { font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.schriftfeld dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* Fusszeile */
footer { background: var(--ink); color: rgba(245, 242, 233, .75); padding: 44px 0 34px; font-size: 15px; border-top: 2px solid var(--ink); }
footer a { color: rgba(245, 242, 233, .9); }
footer a:hover { color: var(--gold-soft); }
footer h3 { font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-soft); margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer .marke { color: #fff; margin-bottom: 12px; }
footer .marke img { border-color: var(--gold); }
.fuss-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(245, 242, 233, .2); padding-top: 20px; margin-top: 4px; font: 500 13px/1.5 var(--mono); color: rgba(245, 242, 233, .55); }
footer .copy.copy-solo { grid-column: auto; border: 0; margin: 0; padding: 0; }

/* Textseiten (Impressum, Datenschutz) */
.text { padding: 64px 0 88px; }
.text .wrap { max-width: 760px; }
.text h1 { font-size: 44px; font-weight: 800; margin-bottom: 8px; }
.text h2 { font-size: 22px; margin: 36px 0 8px; padding-top: 14px; border-top: 2px solid var(--ink); }
.text p, .text li { color: #2b3a31; }
.text p + p { margin-top: 12px; }
.text .stand { color: var(--muted); font: 500 14px/1.5 var(--mono); margin-bottom: 8px; }

/* Schmale Bildschirme */
@media (max-width: 960px) {
  .held .wrap { grid-template-columns: 1fr; gap: 48px; }
  .pos-inhalt.mit-bild { grid-template-columns: 1fr; }
  .zeichnung { max-width: 380px; }
  .datenblatt dl, .fragen dl { grid-template-columns: 1fr; }
  .schriftfeld { grid-template-columns: 1fr; }
  .schriftfeld .links { border-right: 0; border-bottom: 3px solid var(--ink); }
  .fuss-grid { grid-template-columns: 1fr 1fr; }
  .fuss-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .liste li { grid-template-columns: 2.4em minmax(0, 1fr); }
  .liste li span { grid-column: 2; }
}
@media (max-width: 640px) {
  .anlage .wrap { padding-left: 62px; }
  .anlage .wrap::before { left: 12px; width: 6px; }
  .anlage .wrap::after { left: 30px; width: 6px; }
  .armatur { left: -62px; top: 46px; width: 46px; height: 46px; }
  .armatur b { width: 38px; height: 38px; font-size: 14px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
  .fein { display: none; }
  .datenblatt .zeile { flex-direction: column; gap: 4px; }
  .datenblatt dt { flex: none; }
  .schriftfeld .links { padding: 28px 22px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .marke strong { font-size: 19px; }
  .top .wrap { gap: 10px; }
  .top-aktion { gap: 8px; }
  .top-aktion .btn { padding: 8px 12px; font-size: 14px; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
  .held { padding: 40px 0 56px; }
  .held .aktionen .btn { flex: 1 1 100%; }
  .fuss-grid { grid-template-columns: 1fr; }
  .schriftfeld-klein { grid-template-columns: 1fr 1fr; }
  .schriftfeld-klein span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fluss, .nadel, .anlage .wrap::before, .anlage .wrap::after { animation: none; }
  .btn { transition: none; }
}
