/* ===========================================================================
   Pumpenvertrieb Schmid GmbH & Co. KG
   Design abgeleitet von der alten Site: Signalfarbe #e31921, Text #333,
   Flächen #f1f2f3 / Weiß, rote & graue Punkte, gepunktete Trennlinien.
   Typografie: Inter (Fließtext) + Inter Tight (Überschriften), lokal
   gehostet als Variable Fonts – keine externen Ressourcen.
   =========================================================================== */

/* ------------------------------------------------------- Local Fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;           /* Variable Font */
  font-display: swap;
  src: url('../assets/fonts/inter-latin-var.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;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-var-italic.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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 800;           /* Variable Font */
  font-display: swap;
  src: url('../assets/fonts/inter-tight-latin-var.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;
}

:root {
  --red: #e31921;
  --red-dark: #b7141b;
  --ink: #333333;
  --muted: #75787b;
  --bg: #f1f2f3;
  --paper: #ffffff;
  --line: #e3dfdf;          /* entspricht border-color der alten Formulare */
  --dotline: #cccccc;
  --shadow: 0 2px 10px rgba(20, 22, 26, .12);
  --radius: 8px;
  --font: 'Inter', Verdana, Geneva, "DejaVu Sans", Arial, Helvetica, sans-serif;
  --font-head: 'Inter Tight', 'Inter', Verdana, Geneva, Arial, Helvetica, sans-serif;
  --sidebar-w: 280px;
  --maxw: 1180px;
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0 0 1.25rem; }
a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); text-decoration: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.011em;
}
h2 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
h3 { font-size: 1.08rem; margin: 1.5rem 0 .5rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
hr { border: 0; border-top: 1px dotted var(--dotline); margin: 2rem 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- Shell */
.shell {
  max-width: var(--maxw);
  margin: clamp(.5rem, 2vw, 2rem) auto;
  background: var(--paper);
  box-shadow: var(--shadow);          /* alter Rand-Schatten (sh_re/sh_un) */
}

/* ------------------------------------------------------------- Header */
.site-header { background: var(--paper); }
.masthead {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.25rem .6rem;
}
.mast-pump { flex: 0 0 auto; }
.mast-spacer { flex: 1 1 auto; }
.brand { display: inline-block; flex: 0 0 auto; }
.brand img { width: min(300px, 70vw); height: auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  background: linear-gradient(#fafafa, #f0f0f1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .35rem 1.25rem;
  min-height: 44px;
}
.top-links { font-size: .85rem; white-space: nowrap; }
.top-links a { color: var(--ink); text-decoration: none; }
.top-links a:hover { color: var(--red); }
.top-links a[aria-current="page"] { color: var(--red); font-weight: bold; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  margin-right: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .45rem .7rem;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--red); color: var(--red); }
.nav-toggle-box { width: 18px; height: 14px; position: relative; display: inline-block; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.nav-toggle-bar { top: 6px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

/* ------------------------------------------------------------- Layout */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 0 1.75rem;
  padding: 1.25rem;
  align-items: start;
}

/* ------------------------------------------------------------- Sidebar */
.sidebar { min-width: 0; }
.sidebar-inner { position: sticky; top: 1rem; }

.main-nav > ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.main-nav > ul > li {
  border-bottom: 1px dotted var(--dotline);
  padding: .3rem 0 .35rem;
  position: relative;
}
.main-nav .nav-item { padding-left: 1.15rem; }
.main-nav .nav-item::before {           /* die Punkte wie im alten Menü */
  content: "";
  position: absolute; left: 0; top: .72em;
  width: 8px; height: 8px; border-radius: 50%;
  background: #a9abac;
}
.main-nav .dot-red::before { background: var(--red); }
.main-nav a {
  font-family: var(--font-head);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.006em;
}
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav .nav-sub { list-style: none; margin: .15rem 0 .25rem; padding: 0; }
.main-nav .nav-sub li { padding-left: 1.15rem; position: relative; margin: .1rem 0; }
.main-nav .nav-sub li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%; background: #c9cacc;
}
.main-nav .nav-sub a { font-family: var(--font); font-weight: normal; font-size: .9rem; }
.main-nav .nav-sub li.active > a, .main-nav .nav-sub a[aria-current="page"] { color: var(--red); }

.side-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  font-size: .85rem;
}
.side-box-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  margin: 0 0 .5rem;
  color: var(--red);
}
.side-box address { font-style: normal; }
.side-box a { overflow-wrap: anywhere; }
.hours { border-collapse: collapse; width: 100%; }
.hours th { text-align: left; font-weight: bold; padding: .15rem .6rem .15rem 0; vertical-align: top; }
.hours td { padding: .15rem 0; vertical-align: top; white-space: nowrap; }
.side-note { font-size: .8rem; color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------- Content */
.content { min-width: 0; }
.page-title {
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  margin: .2rem 0 1rem;
  padding-bottom: .55rem;
  border-bottom: 3px solid var(--red);
}
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: .35rem;
  margin: 0 0 .8rem; padding: 0; font-size: .8rem; color: var(--muted);
}
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: #b0b2b4; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }

.article { max-width: 100%; }
.article > p, .article > ul, .article > ol, .article > dl,
.article > blockquote, .article > .note { max-width: 72ch; }
.lead { font-size: 1.12rem; color: #444; max-width: 72ch; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -.005em;
  background: var(--red);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 6px;
  padding: .55rem 1.1rem;
  margin: 0 .4rem .4rem 0;
  border: 2px solid var(--red);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-alt { background: #fff; color: var(--red) !important; }
.btn-alt:hover { background: #fdecec; color: var(--red-dark) !important; }

/* Hero (Startseite) */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  background: linear-gradient(135deg, #fff 60%, #fdecec 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 .8rem; }
.hero-title::after {
  content: ""; display: block; width: 64px; height: 4px;
  background: var(--red); margin-top: .6rem; border-radius: 2px;
}
.hero-cta { margin-top: 1.2rem; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Figuren */
.fig { margin: 0 0 1.25rem; }
.fig figcaption { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.fig img { border-radius: 6px; }
.fig-right { float: right; margin: 0 0 1rem 1.5rem; max-width: 42%; }
.fig-left { float: left; margin: 0 1.5rem 1rem 0; max-width: 42%; }
.fig-wide { clear: both; margin: 1.25rem 0; }
.fig-inline { display: inline-block; margin-right: 1rem; }
.figwrap { display: block; }
.img-frame img { border: 1px solid var(--line); padding: .5rem; background: #fff; border-radius: 6px; }
.split { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.legend { list-style: none; padding: 0; }
.legend li { padding: .15rem 0; }
.legend strong { color: var(--red); }
.clearfix::after { content: ""; display: table; clear: both; }
.article > h2 { clear: both; }

/* Karten */
.cards { display: grid; gap: 1rem; margin: 1.25rem 0; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}
a.card { transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
a.card:hover { box-shadow: var(--shadow); border-color: #d8d8d8; transform: translateY(-2px); color: var(--ink); }
.cardimg {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; padding: .8rem; background: #fafafa;
  border-bottom: 1px solid var(--line);
}
.cardimg img { max-height: 150px; width: auto; object-fit: contain; }
.cardbody { padding: .8rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.cardtitle { font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: -.008em; }
a.card:hover .cardtitle { color: var(--red); }
.cardbody p { font-size: .85rem; color: var(--muted); margin: 0; }
.cardbody p a { color: var(--red); }

/* PDF-Karten */
.pdfcards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.25rem 0; }
.pdfcard {
  display: flex; gap: .9rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; color: var(--ink); text-decoration: none; background: #fff;
  transition: box-shadow .15s ease;
}
.pdfcard:hover { box-shadow: var(--shadow); color: var(--ink); }
.pdficon {
  flex: 0 0 auto; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700;
  font-size: .72rem; border-radius: 4px; padding: .3rem .45rem; letter-spacing: .04em;
}
.pdfdesc { display: block; font-size: .85rem; color: var(--muted); }
.pdfmeta { display: block; font-size: .75rem; color: var(--muted); margin-top: .25rem; }

/* Linklisten */
.linklist { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .15rem .75rem; }
.linklist.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.linklist.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.linklist li {
  position: relative; padding: .28rem 0 .28rem 1.15rem;
  border-bottom: 1px dotted var(--dotline); font-size: .92rem;
}
.linklist li::before {
  content: ""; position: absolute; left: 0; top: .85em;
  width: 7px; height: 7px; border-radius: 50%; background: #a9abac;
}
.linklist li:hover::before { background: var(--red); }
.linklist a { color: var(--ink); text-decoration: none; }
.linklist a:hover { color: var(--red); }
.linklist .sub { font-size: .75rem; color: var(--muted); margin-left: .4rem; }

/* Kategorien (Lieferprogramm) */
.catgrid { display: grid; gap: 1rem 2rem; margin: 1.25rem 0; }
.catgrid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; break-inside: avoid; background: #fff; }
.cat h3 { margin: 0 0 .5rem; color: var(--red); font-size: 1rem; border-bottom: 1px dotted var(--dotline); padding-bottom: .4rem; }
.cat ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; font-size: .88rem; }
.cat li { position: relative; padding-left: 1rem; break-inside: avoid; }
.cat li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: #c9cacc;
}

/* Checklisten */
.checks { list-style: none; padding-left: 1.4rem; }
.checks li { position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: -1.4rem; top: 0;
  color: var(--red); font-weight: bold;
}

/* Notizen */
.note {
  border-left: 4px solid var(--red);
  background: #fdf3f3;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .8rem 1.1rem;
  margin: 1.25rem 0;
  font-size: .92rem;
}

/* Tabellen */
.tablewrap { overflow-x: auto; margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.article table th, .article table td { border: 1px solid var(--line); padding: .45rem .65rem; text-align: left; vertical-align: top; }
.article table thead th { background: var(--bg); border-bottom: 2px solid var(--red); }
.article table tbody tr:nth-child(even) { background: #fafafa; }
.article table caption { caption-side: top; text-align: left; font-weight: bold; padding-bottom: .4rem; }

/* Zeitlinie (Geschichte) */
.timeline { list-style: none; margin: 1.5rem 0; padding: 0 0 0 2px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: .4rem; bottom: .4rem;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 1.4rem 2.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red);
}
.tl-year { display: inline-block; font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 1.1rem; margin-bottom: .2rem; }
.tl-body p { margin: 0 0 .6rem; max-width: 68ch; }

/* Technik-Modelle (Fasspumpen) */
.specmodel { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; margin: 1.5rem 0; }
.spec-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem 1.25rem; font-size: .9rem; border-top: 1px dotted var(--dotline); padding-top: .8rem; }
.spec-dl dt { font-weight: bold; }
.spec-dl dd { margin: 0; }
.sfoot { font-size: .78rem; color: var(--muted); margin-top: .8rem; }

/* Kontakt */
.contactgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.25rem 0; }
.contactcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; background: #fff; }
.contactcard h2 { margin-top: 0; }
.contactcard address { font-style: normal; margin-bottom: .8rem; }
.contact-lines { font-size: .95rem; }

/* Seitenaktionen & Footer */
.page-actions {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  border-top: 1px dotted var(--dotline);
  margin-top: 2.5rem; padding-top: .8rem;
  font-size: .8rem;
}
.page-actions a { color: var(--muted); text-decoration: none; }
.page-actions a:hover { color: var(--red); }

.site-footer {
  background: var(--ink);
  color: #d9dadc;
  font-size: .82rem;
  margin-top: 1rem;
}
.footer-inner { padding: 1.25rem; display: grid; gap: .3rem; }
.footer-inner a { color: #fff; text-decoration: none; }
.footer-inner a:hover { color: #ffb3b7; text-decoration: underline; }
.footer-brand { margin: 0; }
.footer-links { margin: 0; }
.footer-copy { margin: 0; color: #a0a2a4; }

/* Nach-oben-Button */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--red); color: #fff; font-size: 1.2rem;
  cursor: pointer; box-shadow: var(--shadow);
  opacity: .92;
}
.to-top:hover { background: var(--red-dark); opacity: 1; }
.to-top[hidden] { display: none; }

/* Datenschutz-Seite */
.article h2 { counter-reset: none; }
.article h3 { color: #444; }

/* ------------------------------------------------------- Responsive */
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle { display: inline-flex; }
  .top-links { display: none; }
  .sidebar-inner { position: static; }

  /* Off-Canvas nur mit JavaScript; ohne JS bleibt das Menü statisch oben */
  html.js .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 60;
    width: min(320px, 86vw);
    background: #fff;
    box-shadow: 4px 0 18px rgba(0, 0, 0, .25);
    padding: 1rem 1.25rem 2rem;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  html.js .sidebar.open { transform: translateX(0); }
  html.js .scrim { position: fixed; inset: 0; background: rgba(20, 22, 26, .45); z-index: 50; }
  html.js .scrim[hidden] { display: none; }
  html.js .sidebar-close {
    display: block; margin: 0 0 .75rem auto;
    background: none; border: 1px solid var(--line); border-radius: 6px;
    font: inherit; font-size: .85rem; padding: .3rem .6rem; cursor: pointer; color: var(--ink);
  }
  html.js .sidebar-close:hover { border-color: var(--red); color: var(--red); }
}
.sidebar-close { display: none; }
@media (min-width: 1024px) {
  .sidebar-close { display: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linklist.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catgrid.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .specmodel { grid-template-columns: minmax(0, 1fr); }
  .specmodel .fig { max-width: 220px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .masthead { justify-content: center; }
  .mast-pump, .mast-spacer { display: none; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .linklist.cols-2, .linklist.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .cat ul { columns: 1; }
  .fig-right, .fig-left { float: none; max-width: 100%; margin: 0 0 1rem; }
  .layout { padding: .9rem; }
}

/* ------------------------------------------------------------- Druck */
@media print {
  body { background: #fff; font-size: 11pt; }
  .shell { margin: 0; box-shadow: none; max-width: none; }
  .topbar, .nav-toggle, .sidebar, .to-top, .page-actions, .hero-cta, .site-footer { display: none !important; }
  .layout { grid-template-columns: 1fr; padding: 0; }
  a { color: #000; text-decoration: none; }
  .article a { text-decoration: underline; }
  .card, .cat, .pdfcard { break-inside: avoid; }
}

/* ---------------------------------------------------- Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
