/* PASIM Direktantriebe – Stylesheet
   Aufbau: dunkler Kopf und Hero (Logo gelb auf Schwarz wie bisher), helle Inhaltsflächen, Produktfotos auf Weiß.
   Akzent Gelb aus dem Logo nur als Fläche; für Text auf Hell das dunkle Oliv. */
:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --ink: #161615;
  --muted: #5b5b55;
  --line: #deded8;
  --brand: #ffe600;
  --brand-ink: #5f5900;
  --band: #121211;
  --band-ink: #f1f1ec;
  --band-muted: #b3b3ab;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --r: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110; --surface: #1b1b1a; --ink: #ececE6; --muted: #a9a9a1; --line: #2e2e2b;
    --brand-ink: #ffe600; --band: #0a0a09;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #111; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.eyebrow { font: 600 .78rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.prose { display: grid; gap: 1rem; max-width: 68ch; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.prose li::marker { color: var(--brand-ink); }
.prose a { color: var(--brand-ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 0 1.25rem; border-radius: var(--r); border: 2px solid transparent; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; }
.btn-brand { background: var(--brand); color: #141400; }
.btn-brand:hover { background: #fff04d; }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 30; background: var(--band); color: var(--band-ink); border-bottom: 1px solid #ffffff14; }
.top-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.logo { flex: none; }
.logo img { width: 190px; height: auto; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--band-muted); font-weight: 500; font-size: .97rem; padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--band-ink); }
.nav a[aria-current="page"] { color: var(--band-ink); border-bottom-color: var(--brand); }
.top-tel { font: 500 .95rem var(--mono); color: var(--band-ink); text-decoration: none; white-space: nowrap; }
.lang { font: 600 .9rem var(--font); color: var(--band-ink); text-decoration: none; border: 1px solid #ffffff40; border-radius: 4px; padding: .35rem .55rem; min-width: 44px; min-height: 36px; display: inline-grid; place-items: center; flex: none; }
.lang:hover { border-color: var(--brand); color: var(--brand); }
.lang-note { font-weight: 400; text-transform: none; letter-spacing: 0; }
.top .btn { min-height: 40px; white-space: nowrap; flex: none; }
@media (max-width: 1060px) { .top-tel { display: none; } }
@media (max-width: 900px) {
  .top-row { flex-wrap: wrap; gap: .25rem 1rem; padding-top: .6rem; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 1.2rem; scrollbar-width: none; padding-bottom: .2rem; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .logo img { width: 150px; }
}
@media (max-width: 480px) {
  .logo img { width: 118px; }
  .top-row { gap: .25rem .6rem; }
  .top .btn { padding: 0 .8rem; font-size: .9rem; min-height: 40px; }
}

/* Hero */
.hero { position: relative; background: var(--band) var(--hero) center/cover no-repeat; color: var(--band-ink); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a09f2 0%, #0a0a09cc 45%, #0a0a0940 100%); }
.hero .wrap { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); display: grid; gap: 1.3rem; }
.hero .eyebrow { color: var(--brand); }
.hero h1 { max-width: 16ch; }
.hero h1 b { color: var(--brand); font-weight: inherit; }
.hero p { color: #d2d2cb; font-size: 1.15rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .6rem; }
.page-head { background: var(--band) var(--hero) center/cover no-repeat; color: var(--band-ink); position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0; background: #0a0a09d9; }
.page-head .wrap { position: relative; padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: .7rem; }
.page-head .eyebrow { color: var(--brand); }
.page-head p { color: #cfcfc8; max-width: 60ch; }
@media (max-width: 700px) { .hero::before { background: #0a0a09d0; } }

/* Abschnitte */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { display: grid; gap: .7rem; margin-bottom: 2.2rem; max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.top-align { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.photo { border-radius: var(--r); overflow: hidden; background: #222; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Kategorien */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .cats { grid-template-columns: minmax(0, 1fr); } }
.cat { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: border-color .15s; }
.cat:hover { border-color: var(--ink); }
/* Bildfläche: immer gleich groß, Bild randlos auf Weiß (Produktfotos sind freigestellt auf Weiß) */
.cat .pic, .card .pic { position: relative; background: #fff; overflow: hidden; }
.cat .pic { aspect-ratio: 4/3; }
.card .pic { aspect-ratio: 1; }
.cat .pic img, .card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cat .txt { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: .35rem; align-content: start; }
.cat .txt span { color: var(--muted); font-size: .95rem; }
.more { font-weight: 600; color: var(--brand-ink); }

/* Fotostreifen */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--band); }
.strip img { width: 100%; aspect-ratio: 49/30; object-fit: cover; }
@media (max-width: 700px) { .strip { grid-template-columns: minmax(0, 1fr); } .strip img:nth-child(n+2) { display: none; } }

/* Kontaktband */
.cta-band { background: var(--band); color: var(--band-ink); }
.cta-band .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta-band h2 { max-width: 22ch; }
.cta-band .tel { font: 700 clamp(1.4rem, 3vw, 2rem)/1.2 var(--font); color: var(--brand); text-decoration: none; display: block; }
.cta-band small { color: var(--band-muted); }

/* Produktliste */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filter button { font: 600 .95rem var(--font); min-height: 42px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter button span { font-weight: 400; opacity: .7; margin-left: .25rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: var(--ink); }
.card .txt { padding: .9rem 1rem 1.1rem; display: grid; gap: .25rem; align-content: start; border-top: 1px solid var(--line); }
.card .txt small { color: var(--muted); font-size: .88rem; }
.card .tag { font: 600 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }

/* Produktseite */
.crumbs { font-size: .9rem; color: var(--band-muted); display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--band-ink); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; gap: .6rem; }
.gallery .main { position: relative; background: #fff; border-radius: var(--r); aspect-ratio: 1; overflow: hidden; }
.gallery .main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; }
.thumbs a { background: #fff; border: 2px solid var(--line); border-radius: 4px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.thumbs a[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.p-info { display: grid; gap: 1.2rem; }
.p-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.files { margin-top: 3rem; }
.files h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.ftable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .97rem; }
.ftable th, .ftable td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ftable th { font: 600 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.ftable tr:last-child td { border-bottom: 0; }
.dl { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand-ink); text-decoration: none; white-space: nowrap; }
.dl:hover { text-decoration: underline; }
.dl svg { width: 18px; height: 18px; }
.dash { color: var(--muted); }
@media (max-width: 700px) {
  .ftable, .ftable tbody, .ftable tr, .ftable td { display: block; width: 100%; }
  .ftable thead { display: none; }
  .ftable tr { border-bottom: 1px solid var(--line); padding: .6rem 0; }
  .ftable tr:last-child { border-bottom: 0; }
  .ftable td { border: 0; padding: .25rem 1rem; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .5rem; }
  .ftable td::before { content: attr(data-label); font: 600 .72rem/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; gap: 1.4rem; align-content: start; }
.fact small { display: block; font: 600 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.fact .big { font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.8rem); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field label i { font-style: normal; color: var(--muted); font-weight: 400; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .85rem; min-height: 46px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: .2rem; flex: none; accent-color: var(--ink); }
.msg { grid-column: 1 / -1; padding: .9rem 1rem; border-radius: var(--r); border-left: 4px solid var(--brand); background: var(--bg); }
.msg.err { border-left-color: #c62828; }

/* Downloads */
.dlist { display: grid; gap: .75rem; max-width: 760px; }
.ditem { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; text-decoration: none; }
.ditem:hover { border-color: var(--ink); }
.ditem svg { width: 30px; height: 30px; flex: none; color: var(--brand-ink); }
.ditem b { display: block; }
.ditem span { color: var(--muted); font-size: .92rem; }
.ditem em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--brand-ink); white-space: nowrap; }

/* Referenzen */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.refs img { width: 100%; aspect-ratio: 49/20; object-fit: cover; border-radius: 4px; }
@media (max-width: 700px) { .refs { grid-template-columns: minmax(0, 1fr); } }
.person { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.person .av { width: 48px; height: 48px; border-radius: 50%; background: var(--band); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: none; }
.person span { display: block; color: var(--muted); font-size: .93rem; }

/* Rechtstexte */
.legal { max-width: 74ch; display: grid; gap: 1rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.2rem; }
.legal h3 { font-size: 1.05rem; margin-top: .4rem; }
.legal ul { margin: 0; padding-left: 1.2rem; }
.legal a { color: var(--brand-ink); }

/* Fuß */
footer { background: var(--band); color: var(--band-muted); font-size: .94rem; }
footer .wrap { padding-block: 2.5rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 800px) { footer .wrap { grid-template-columns: minmax(0, 1fr); } }
footer b { color: var(--band-ink); }
footer nav { display: grid; gap: .35rem; align-content: start; }
footer a { color: var(--band-muted); text-decoration: none; }
footer a:hover { color: var(--band-ink); text-decoration: underline; }
footer .sponsor { display: inline-block; background: #fff; padding: .5rem .7rem; border-radius: 4px; }
footer .sponsor img { width: 260px; }
.copy { border-top: 1px solid #ffffff14; }
.copy .wrap { padding-block: 1rem; display: block; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Fotos mit eigenem Hintergrund füllen die Kachel */
.cat .pic.pic-foto img, .card .pic.pic-foto img { object-fit: cover; }

/* Referenzbilder anklickbar */
.refs a { display: block; border-radius: 4px; overflow: hidden; position: relative; }
.refs a img { transition: transform .25s; }
.refs a:hover img { transform: scale(1.03); }
.refs a::after { content: "Vergrößern"; position: absolute; right: 8px; bottom: 8px; font: 600 .75rem var(--font); background: #000a; color: #fff; padding: .25rem .5rem; border-radius: 3px; }
html[lang="en"] .refs a::after { content: "Enlarge"; }

/* Bildbetrachter */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: #000e; }
.lb-in { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: max(12px, env(safe-area-inset-top, 0px)) 12px 12px; gap: 10px; }
.lb-bild { display: grid; place-items: center; min-height: 0; }
.lb-bild img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-leiste { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: center; color: #eee; }
.lb-leiste .btn { color: #fff; border-color: #fff8; min-height: 44px; }
.lb-leiste span { min-width: 5rem; text-align: center; font-size: .95rem; }
