/* Paul Knobel AG – Entwurf Seetalwebsites
   Farben aus Logo und Betrieb: Hürlimann-Rot, Chrom-Grau, der gelbe Rand vom Logo (und von AGIP).
   Schrift: Archivo, fett und kursiv wie der Schriftzug im Logo. Plex Mono für Teilebuch und Etiketten. */

:root {
  --rot: #d2261c;
  --rot-dunkel: #a81d15;
  --gelb: #ffd400;
  --chrom: #c7c9ca;
  --tinte: #1a1918;
  --text: #2b2a28;
  --text-2: #66625c;
  --papier: #f4f2ed;
  --weiss: #fff;
  --linie: rgba(26, 25, 24, .14);

  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --rand: clamp(16px, 3.2vw, 44px);
  --max: 1320px;
  --kopf: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-padding-top: calc(var(--kopf) + 12px); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

html, body { overflow-x: clip; }
body {
  font: 400 17px/1.55 var(--sans);
  color: var(--text);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--rot); color: #fff; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }

.skip { position: absolute; left: var(--rand); top: -60px; z-index: 200; background: var(--tinte); color: #fff; padding: 10px 16px; }
.skip:focus { top: 10px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.rahmen { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }

/* Typo */
h1, h2, h3 {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 800;
  font-stretch: 112%;
  color: var(--tinte);
  letter-spacing: -.02em;
  line-height: 1;
}
h1 { font-size: clamp(44px, 7.4vw, 108px); letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 60px); text-wrap: balance; }
h3 { font-size: 26px; }

.etikett {
  font: 500 13px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: 18px;
}

/* Knöpfe – oval wie das Logo */
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--rot); color: #fff;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.knopf:hover { background: var(--rot-dunkel); }
.knopf:active { transform: scale(.97); }
.knopf-rand { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte); }
.knopf-rand:hover { background: var(--tinte); color: #fff; }
.knopf-klein { height: 42px; padding: 0 18px; font-size: 15px; font-variant-numeric: tabular-nums; }

.link {
  color: var(--rot); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.link:hover { color: var(--rot-dunkel); }

/* Offen/geschlossen */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--mono); color: var(--text-2); white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--chrom); }
.status.offen::before { background: #2f9e44; box-shadow: 0 0 0 4px rgba(47, 158, 68, .18); }
.status.zu::before { background: var(--rot); }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 242, 237, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 4px solid var(--gelb);
  transition: box-shadow .25s var(--ease);
}
.kopf.gescrollt { box-shadow: 0 1px 0 var(--linie); }
.kopf-innen {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--rand);
  height: var(--kopf); display: flex; align-items: center; gap: 28px;
}
.marke img { height: 46px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 16px; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rot);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.menu-knopf { display: none; font-weight: 600; }

/* ---------- Einstieg ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); }
.hero-text { display: grid; grid-template-columns: 1fr; gap: 0; }
.hero h1 { max-width: 13ch; }
.hero-seite {
  display: grid; grid-template-columns: minmax(0, 42ch) auto; gap: 24px 48px;
  align-items: end; justify-content: space-between;
  margin-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 56px);
}
.hero-seite p { font-size: 19px; color: var(--text-2); }

.band { position: relative; overflow: hidden; background: var(--tinte); }
.band img { width: 100%; aspect-ratio: 1000 / 350; object-fit: cover; }
.hero-band img { transform-origin: 50% 60%; }

.fakten {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--linie);
}
.fakten li { padding: 26px 20px 28px 0; border-right: 1px solid var(--linie); }
.fakten li + li { padding-left: 20px; }
.fakten li:last-child { border-right: 0; }
.fakten strong {
  display: block; font-style: italic; font-weight: 800; font-stretch: 112%;
  font-size: clamp(22px, 2.3vw, 30px); color: var(--tinte); letter-spacing: -.02em; line-height: 1.1;
}
.fakten span { display: block; margin-top: 6px; font-size: 15px; color: var(--text-2); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(72px, 10vw, 140px) 0; }
.abschnitt-kopf { margin-bottom: clamp(36px, 5vw, 64px); }
.abschnitt-kopf h2 { max-width: 16ch; }

/* Angebot */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.karte {
  background: var(--weiss); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.karte:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(26, 25, 24, .35); }
.karte img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.karte-text { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.karte-text p { color: var(--text-2); font-size: 16px; }
.nr { font: 500 12px/1 var(--mono); color: var(--rot); letter-spacing: .06em; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips li {
  font-size: 13px; line-height: 1; padding: 7px 10px; border-radius: 999px;
  background: var(--papier); color: var(--text);
}
.chips .chip-neu { background: var(--gelb); font-weight: 600; }

/* Oldtimer */
.dunkel { background: var(--tinte); color: #d8d5cf; }
.dunkel h2 { color: #fff; }
.dunkel .etikett { color: var(--gelb); }
.oldtimer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.oldtimer-text h2 { margin-bottom: 24px; }
.oldtimer-text > p { font-size: 18px; max-width: 42ch; }
.farben { display: flex; gap: 22px; margin: 28px 0 36px; font: 500 14px/1 var(--mono); }
.farben li { display: flex; align-items: center; gap: 8px; }
.farben i { width: 18px; height: 18px; border-radius: 50%; background: var(--f); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.teil-gesucht { font-size: 20px; color: #fff; }
.teil-gesucht a {
  font-style: italic; font-weight: 800; font-stretch: 112%;
  color: var(--gelb); border-bottom: 2px solid currentColor; white-space: nowrap;
}

/* Teilebuch: wie eine Seite aus dem Ersatzteilkatalog */
.teilebuch {
  background: var(--papier); color: var(--tinte); border-radius: 6px;
  padding: 26px 28px 22px; font-family: var(--mono);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  transform: rotate(.6deg);
}
.teilebuch-kopf span { white-space: nowrap; }
.teilebuch-kopf {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  padding-bottom: 12px; border-bottom: 2px solid var(--tinte);
}
.teilebuch ol { counter-reset: pos; }
.teilebuch li {
  counter-increment: pos; display: flex; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px dashed rgba(26, 25, 24, .25); font-size: 15px;
}
.teilebuch li::before { content: counter(pos, decimal-leading-zero); color: var(--rot); font-size: 12px; }
.teilebuch li::after { content: "ab Lager"; margin-left: auto; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.teilebuch-fuss { padding-top: 14px; font-size: 13px; color: var(--text-2); }

.oldtimer-bilder {
  display: grid; grid-template-columns: 2.6fr 1fr; gap: 20px;
  margin-top: clamp(56px, 8vw, 110px);
}
.oldtimer-bilder img { width: 100%; height: clamp(220px, 26vw, 360px); object-fit: cover; border-radius: 6px; }
.oldtimer-bilder figcaption { margin-top: 12px; font-size: 14px; color: #a8a49c; }

/* Über uns */
.ueber { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.ueber .abschnitt-kopf { margin-bottom: 0; }
.ueber-text p { font-size: 19px; }
blockquote {
  margin-top: 26px; padding-left: 20px; border-left: 3px solid var(--rot);
  font-style: italic; font-size: 20px; color: var(--tinte);
}

/* Kontakt */
.kontakt { background: var(--weiss); }
.kontakt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.kontakt h2 { margin-bottom: 22px; }
.status-gross { font-size: 14px; margin-bottom: 28px; }
.zeiten { width: 100%; border-collapse: collapse; font-size: 17px; }
.zeiten th, .zeiten td { text-align: left; vertical-align: top; padding: 16px 0; border-top: 1px solid var(--linie); }
.zeiten th { font-weight: 500; padding-right: 20px; }
.zeiten td { font-family: var(--mono); font-size: 15px; text-align: right; }
.zeiten tr.heute th, .zeiten tr.heute td { color: var(--rot); }
.zeiten tr.heute th::after {
  content: "heute"; margin-left: 10px; padding: 3px 8px; border-radius: 999px;
  background: var(--rot); color: #fff; font: 500 11px/1 var(--mono); vertical-align: 2px;
}
.adresse { font-style: normal; font-size: 20px; line-height: 1.45; margin-bottom: 22px; }
.adresse strong { font-style: italic; font-weight: 800; font-stretch: 112%; color: var(--tinte); }
.kontakt-liste { margin-bottom: 26px; }
.kontakt-liste li { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--linie); }
.kontakt-liste span { width: 80px; flex: none; font: 500 13px/1.9 var(--mono); color: var(--text-2); }
.kontakt-liste a { font-weight: 600; }
.kontakt-liste a:hover { color: var(--rot); }
.karte-map { width: 100%; height: 280px; border: 0; border-radius: 14px; margin-top: 28px; filter: grayscale(.4); background: var(--papier); }

/* Fuss */
.fuss { background: var(--tinte); color: #a8a49c; border-top: 4px solid var(--gelb); font-size: 14px; }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 28px; }

.aktionsleiste { display: none; }

/* ---------- Bewegung ---------- */
.js .zeige { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .zeige.sichtbar { opacity: 1; transform: none; }
.js .karten .zeige:nth-child(3n+2) { transition-delay: .08s; }
.js .karten .zeige:nth-child(3n+3) { transition-delay: .16s; }
.js .fakten .zeige:nth-child(2) { transition-delay: .08s; }
.js .fakten .zeige:nth-child(3) { transition-delay: .16s; }
.js .fakten .zeige:nth-child(4) { transition-delay: .24s; }
.js .hero-band img { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1) .15s; }
.js .hero-band.sichtbar img { clip-path: inset(0); }

@media (prefers-reduced-motion: reduce) {
  .js .zeige, .js .hero-band img { opacity: 1; transform: none; clip-path: none; transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .karten { grid-template-columns: repeat(2, 1fr); }
  .fakten { grid-template-columns: repeat(2, 1fr); }
  .fakten li:nth-child(2) { border-right: 0; }
  .fakten li:nth-child(3) { padding-left: 0; }
  .fakten li:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .oldtimer, .ueber, .kontakt-raster { grid-template-columns: 1fr; }
  .teilebuch { transform: none; }
}

/* ---------- Handy ---------- */
@media (max-width: 780px) {
  :root { --kopf: 64px; }
  body { padding-bottom: 68px; }
  .marke img { height: 36px; }
  .kopf-innen { gap: 14px; }
  .kopf .status, .kopf .knopf-klein { display: none; }
  .menu-knopf { display: block; margin-left: auto; padding: 10px 0 10px 12px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--rand) 20px;
    background: var(--papier); border-bottom: 1px solid var(--linie);
    font-size: 22px; font-weight: 600;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .nav a::after { display: none; }
  .kopf.menu-offen .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

  h1 { font-size: clamp(32px, 10vw, 44px); font-stretch: 104%; }
  .hero-seite { grid-template-columns: 1fr; }
  .hero-seite p { font-size: 17px; }
  .band img { aspect-ratio: 4 / 3; }
  .fakten li, .fakten li + li { padding: 20px 12px 20px 0; }
  .fakten li:nth-child(even) { padding-left: 14px; }
  .karten { grid-template-columns: 1fr; }
  .oldtimer-bilder { grid-template-columns: 1fr; }
  .teilebuch { padding: 20px 18px 18px; }
  .teilebuch li { font-size: 14px; gap: 12px; }
  .zeiten tr.heute th::after { display: none; }

  .aktionsleiste {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(26, 25, 24, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .aktionsleiste a {
    display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 999px;
    font-weight: 600; background: #3a3835; color: #fff;
  }
  .aktionsleiste a:first-child { background: var(--rot); }
}
