@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-700.woff2") format("woff2"); }

:root {
  --ink: #23262b;
  --ink-deep: #14161a;
  --ink-2: #3a3f46;
  --muted: #565d66;
  --paper: #eceff0;
  --white: #fff;
  --line: #d3d8db;
  --line-strong: #98a0a8;
  --orange: #e8590c;
  --orange-dark: #b93a06;
  --orange-soft: #ffd8bf;
  --on-ink: #c6cbd1;
  --f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Barlow", Verdana, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 76rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--orange) var(--ink); accent-color: var(--orange-dark);
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.55 var(--f-body); caret-color: var(--orange-dark);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--orange-soft); color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .betriebe :focus-visible, .nf-hero :focus-visible { outline-color: var(--ink-deep); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1; margin: 0; text-wrap: balance; }
h1, h2 { text-transform: uppercase; font-weight: 800; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--ink-deep); padding: .75rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.5rem;
  font: 700 1.1rem/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--orange); background: var(--orange); color: var(--ink-deep); border-radius: 3px;
  cursor: pointer;
  transition: background-color .16s ease-out, border-color .16s ease-out, color .16s ease-out, transform .16s ease-out;
}
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.btn--line { background: transparent; border-color: var(--ink-deep); color: var(--ink-deep); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #fff; border-color: #fff; color: var(--ink-deep); }
  .btn--ink:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
  .btn--line:hover { background: var(--ink-deep); color: #fff; }
  .btn--ghost:hover { background: #fff; color: var(--ink-deep); border-color: #fff; }
}
.btn svg, .tel svg { width: 1.15em; height: 1.15em; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4.5rem; }
.brand { display: block; flex: none; }
.brand img { height: 3rem; width: auto; }
.nav { display: none; margin-left: auto; gap: 1.75rem; }
.nav a { font: 700 1.1rem var(--f-display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: .5rem 0; border-bottom: 3px solid transparent; transition: border-color .16s ease-out; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { border-bottom-color: var(--orange); } }
.head-cta { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.tel { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; font: 700 1.2rem var(--f-display); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .tel:hover { color: var(--orange-dark); } }
.tel-text { display: none; }
.head-cta .btn { display: none; }
.back { margin-left: auto; font: 700 1.1rem var(--f-display); text-transform: uppercase; letter-spacing: .04em; }

@media (min-width: 40rem) { .tel-text { display: inline; } }
@media (min-width: 62rem) {
  .nav { display: flex; }
  .head-cta { margin-left: 1.5rem; }
  .head-cta .btn { display: inline-flex; }
  .brand img { height: 3.25rem; }
}
@media (max-width: 61.99rem) {
  .head-cta .tel { border: 2px solid var(--ink); border-radius: 3px; padding-inline: .9rem; }
  .mobnav { display: flex; }
}
.mobnav { display: none; overflow-x: auto; gap: .25rem; padding: 0 var(--gutter); background: var(--white); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.mobnav a { flex: none; padding: .8rem .9rem; font: 700 1.05rem var(--f-display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.mobnav a:first-child { padding-left: 0; }
@media (min-width: 62rem) { .mobnav { display: none !important; } }

/* Hero: the orange field owns the first viewport */
.hero { display: grid; background: var(--orange); color: var(--ink-deep); }
.hero-copy { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(2.25rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(3.6rem, 13vw, 6rem); line-height: .88; letter-spacing: -.005em; }
.hero h1 span { display: block; }
.hero p.lead { margin-top: 1.5rem; max-width: 30rem; font-size: clamp(1.15rem, 2.4vw, 1.35rem); font-weight: 600; line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-facts { display: grid; gap: .35rem; margin: 2rem 0 0; padding: 1.1rem 0 0; border-top: 2px solid var(--ink-deep); list-style: none; font-weight: 600; font-size: 1.05rem; }
.open-now { display: flex; align-items: center; gap: .6rem; }
.rating a { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
@media (hover: hover) and (pointer: fine) { .rating a:hover { border-bottom-color: transparent; } }
.rating strong { font: 800 1.05rem var(--f-display); }
.rating .stars { font-size: .85rem; letter-spacing: .05em; }
.dot { width: .75rem; height: .75rem; flex: none; border-radius: 50%; border: 2px solid var(--ink-deep); }
.is-open .dot { background: var(--ink-deep); }
.hero-photo { margin: 0; position: relative; min-height: 18rem; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.plate { position: absolute; left: 0; bottom: 0; background: var(--ink-deep); color: #fff; text-decoration: none; padding: .9rem 1.25rem; font: 600 .95rem/1.2 var(--f-body); }
.plate strong { display: block; font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: .2rem; }
@media (hover: hover) and (pointer: fine) { .plate:hover { background: #fff; color: var(--ink-deep); } }
@media (min-width: 62rem) {
  .hero { grid-template-columns: 1.05fr 1fr; min-height: min(38rem, calc(100vh - 4.5rem)); }
  .hero-copy { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: 3rem; }
  .hero-photo img { aspect-ratio: auto; }
}

.swatches { display: flex; height: 1.25rem; overflow: hidden; background: var(--ink-deep); }
.swatches span { flex: 1; transform-origin: bottom; }
.swatches span:nth-child(1) { background: #3a3a3a; }
.swatches span:nth-child(2) { background: #6b6b6b; }
.swatches span:nth-child(3) { background: #8c2b23; }
.swatches span:nth-child(4) { background: #c3412c; }
.swatches span:nth-child(5) { background: var(--orange); }
.swatches span:nth-child(6) { background: #d98a4e; }
.swatches span:nth-child(7) { background: #2f7d3a; }
.swatches span:nth-child(8) { background: #8fa83a; }
.swatches span:nth-child(9) { background: #bfc65a; }
.swatches span:nth-child(10) { background: #b7284f; }
.swatches span:nth-child(11) { background: #d9668c; }
.swatches span:nth-child(12) { background: #4b4f9c; }

/* Marken */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.brands { padding-block: 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.brands h2 { font: 600 1rem/1.3 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--muted); margin-bottom: .5rem; }
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(2rem, 8vw, 6rem); z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), rgba(236, 239, 240, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--paper), rgba(236, 239, 240, 0)); }
.marquee-track { display: flex; width: max-content; will-change: transform; backface-visibility: hidden; }
.marquee ul { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.marquee li { flex: none; padding-right: clamp(2.5rem, 6vw, 4.5rem); font: 800 clamp(2rem, 5vw, 3.25rem)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.marquee li:first-child { color: var(--orange-dark); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 32s linear infinite; }
  @keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee::before, .marquee::after { display: none; }
  .marquee-track { width: auto; flex-wrap: wrap; will-change: auto; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; }
}

/* Sections */
.sec-head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.sec-head h2, .about h2, .karsen h2, .betriebe h2 { font-size: clamp(2.6rem, 7vw, 4.5rem); letter-spacing: -.005em; line-height: .95; }
.sec-head p { margin-top: 1rem; color: var(--muted); font-size: 1.2rem; }

/* Sortiment: Kacheln. Alle Kacheln quer, fließen automatisch (mobil 1, Tablet 2, Desktop 3 pro Reihe).
   Eine unvollständige letzte Reihe wird aufgezogen, es bleiben keine Lücken. Neue Kategorie =
   einfach einen weiteren <a class="tile"> einfügen, hier ist nichts anzupassen. */
.sortiment { background: var(--white); }
.bento { --gap: .5rem; --cols: 1; container-type: inline-size; display: flex; flex-wrap: wrap; gap: var(--gap); }
.tile { position: relative; overflow: hidden; display: block; flex: 1 1 100%; background: var(--line); color: #fff; text-decoration: none; }
/* Höhe = 3/4 der normalen Kachelbreite: Querformat-Fotos (4:3) passen ganz hinein, auch aufgezogene Kacheln der letzten Reihe bleiben gleich hoch */
.bento > .tile { height: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * .75); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tag { position: absolute; left: 0; bottom: 0; max-width: calc(100% - .75rem); background: var(--ink-deep); padding: .7rem .9rem .8rem; font-size: .88rem; line-height: 1.3; color: var(--on-ink); transition: background-color .2s ease-out, color .2s ease-out; }
.tag strong { display: block; font: 700 1.3rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: #fff; margin-bottom: .25rem; transition: color .2s ease-out; }
.tile:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.05); }
  .tile:hover .tag { background: var(--orange); color: var(--ink-deep); }
  .tile:hover .tag strong { color: var(--ink-deep); }
}
.bento > .tile.t-karsen { flex-basis: 100%; height: 15rem; }
.tile.t-karsen .tag { background: var(--orange); color: var(--ink-deep); }
.tile.t-karsen .tag strong { color: var(--ink-deep); }
@media (hover: hover) and (pointer: fine) { .tile.t-karsen:hover .tag { background: var(--ink-deep); color: #fff; } .tile.t-karsen:hover .tag strong { color: #fff; } }
@media (min-width: 40rem) {
  .bento { --gap: .6rem; --cols: 2; }
  .tile { flex-basis: calc((100% - var(--gap)) / 2); }
  .tag { font-size: .95rem; }
}
@media (min-width: 64rem) {
  .bento { --gap: .75rem; --cols: 3; }
  .tile { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
}

/* KARSEN Farben */
.karsen { background: var(--ink); color: #fff; }
.karsen .wrap { display: grid; gap: 2.5rem; }
.karsen-copy { display: grid; gap: 1.1rem; align-content: start; max-width: 32rem; }
.karsen-copy p { color: var(--on-ink); font-size: 1.15rem; }
.karsen .k-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; align-self: center; }
.chips span { aspect-ratio: 3 / 5; background: var(--c); border-radius: 3px; }
@media (min-width: 62rem) { .karsen .wrap { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; } }

/* Für Betriebe + Anfrage */
.betriebe { background: var(--orange); color: var(--ink-deep); }
.betriebe .wrap { display: grid; gap: 2.5rem; }
.b-copy { display: grid; gap: 1.25rem; align-content: start; }
.b-lead { font-size: clamp(1.2rem, 2.6vw, 1.45rem); font-weight: 600; line-height: 1.35; max-width: 30rem; }
.b-list { margin: 1rem 0 0; }
.b-list > div { display: grid; gap: .25rem 2rem; padding: 1rem 0; border-top: 2px solid var(--ink-deep); }
.b-list > div:last-child { border-bottom: 2px solid var(--ink-deep); }
.b-list dt { font: 800 1.7rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.b-list dd { margin: 0; font-weight: 600; }
@media (min-width: 40rem) { .b-list > div { grid-template-columns: 13rem 1fr; align-items: baseline; } }
@media (min-width: 62rem) { .betriebe .wrap { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; } }

.form { background: var(--white); color: var(--ink); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 3px; display: grid; gap: 1rem; scroll-margin-top: 6rem; }
.form h3 { font: 800 2rem/1 var(--f-display); text-transform: uppercase; }
.form-intro { color: var(--muted); margin-top: -.5rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .98rem; }
.form input:not([type="radio"]), .form textarea {
  width: 100%; min-height: 3rem; padding: .7rem .85rem; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--white); border: 2px solid var(--line-strong); border-radius: 3px;
  transition: border-color .16s ease-out;
}
.form textarea { resize: vertical; }
.form input:not([type="radio"]):focus, .form textarea:focus { border-color: var(--ink-deep); outline-offset: 1px; }
.form input::placeholder, .form textarea::placeholder { color: #6b727a; }
.form [aria-invalid="true"] { border-color: #b42318; }
.f-row { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .f-row { grid-template-columns: 1fr 1fr; } }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.form legend { font-weight: 600; font-size: .98rem; padding: 0; margin-bottom: .25rem; }
.form .opt { display: inline-flex; grid-template-columns: none; align-items: center; gap: .5rem; min-height: 2.75rem; font-weight: 400; font-size: 1.05rem; cursor: pointer; }
.form .opt input { width: 1.25rem; height: 1.25rem; margin: 0; }
.req { color: var(--orange-dark); }
.form-error { color: #b42318; font-weight: 700; }
.form .btn { width: 100%; }
.form-note { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.form-note a { color: var(--orange-dark); font-weight: 600; }

/* Über uns */
.about { background: var(--paper); }
.about .wrap { display: grid; gap: 2.5rem; }
.about-copy { display: grid; gap: 1.1rem; max-width: 40rem; }
.since { font: 800 clamp(5rem, 14vw, 9rem)/.85 var(--f-display); color: var(--orange); letter-spacing: -.02em; margin-top: 1.5rem; }
.since small { display: block; font: 600 1.05rem var(--f-body); color: var(--muted); letter-spacing: 0; margin-top: .75rem; }
.leist { display: grid; gap: 0 2rem; margin: 1rem 0 0; }
.leist > div { padding: .9rem 0; border-top: 2px solid var(--ink); }
.leist dt { font: 800 1.45rem/1.1 var(--f-display); text-transform: uppercase; }
.leist dd { margin: .2rem 0 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 34rem) { .leist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .about .wrap { grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; } }

/* Häufige Fragen */
.faq { background: var(--white); }
.faq-list { max-width: 46rem; display: grid; gap: .75rem; }
.faq-list details { border-top: 2px solid var(--ink); padding: 1.1rem 0; }
.faq-list details:last-child { border-bottom: 2px solid var(--ink); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; font: 700 1.25rem/1.4 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--f-body); color: var(--orange-dark); transition: transform .2s var(--ease); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list p { margin-top: .75rem; color: var(--muted); font-size: 1.05rem; max-width: 40rem; }
.faq-list p a { color: var(--orange-dark); font-weight: 600; }

/* Kontakt */
.kontakt { background: var(--ink); color: #fff; }
.kontakt .sec-head p { color: var(--on-ink); }
.k-grid { display: grid; gap: 2.5rem; }
.k-block h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; text-transform: uppercase; }
.k-block address { font-style: normal; line-height: 1.7; }
.k-block a { color: #fff; }
.big-tel { display: inline-block; font: 800 clamp(2.4rem, 8vw, 3.6rem)/1.05 var(--f-display); text-decoration: none; color: var(--orange) !important; margin-bottom: 1rem; }
@media (hover: hover) and (pointer: fine) { .big-tel:hover { text-decoration: underline; } }
.k-row { margin-top: .75rem; }
.k-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.k-block .btn { color: var(--ink-deep); }
.k-block .btn--ghost:not(:hover) { color: #fff; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font: 700 1.5rem var(--f-display); text-transform: uppercase; margin-bottom: .75rem; }
.hours th, .hours td { text-align: left; padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .2); font-weight: 400; }
.hours th { font-weight: 600; }
.hours td { text-align: right; }
.hours tr.closed td { color: #b4b8be; }
.hours tr.today { color: var(--orange-soft); }
.hours tr.today th, .hours tr.today td { font-weight: 800; }
.status { margin-top: 1rem; font-weight: 600; min-height: 1.55em; }
@media (min-width: 56rem) { .k-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.k-map { margin-top: 3rem; border-radius: 3px; overflow: hidden; }
.k-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.k-map-btn {
  display: grid; gap: .3rem; width: 100%; min-height: 320px; padding: 1.5rem; place-content: center; justify-items: start;
  background: var(--ink-2); color: #fff; border: 0; border-radius: 3px; cursor: pointer; text-align: left;
}
.k-map-btn strong { font: 800 1.5rem var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.k-map-btn span { color: var(--on-ink); font-size: .95rem; max-width: 26rem; }
@media (hover: hover) and (pointer: fine) { .k-map-btn:hover { background: var(--ink-deep); } }

/* Footer */
.site-footer { background: #17191c; color: #b4b8be; padding-block: 2rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.site-footer a { display: inline-block; padding: .6rem 0; color: #fff; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--orange); } }

/* Kategorie-Seiten */
.breadcrumb { padding-top: 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; font: 600 .92rem var(--f-body); color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .breadcrumb a:hover { color: var(--orange-dark); } }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 700; }

.cat-hero { padding-top: 1.5rem; padding-bottom: clamp(2rem, 5vw, 3rem); }
.cat-hero .kicker { display: inline-block; background: var(--orange); color: var(--ink-deep); font: 700 .85rem var(--f-display); text-transform: uppercase; letter-spacing: .06em; padding: .3rem .7rem; border-radius: 2px; }
.cat-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; font-weight: 800; margin: .6rem 0 1.25rem; }
.cat-hero img { width: 100%; height: 40vh; min-height: 16rem; max-height: 26rem; object-fit: cover; border-radius: 3px; }

.cat-body { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
.cat-copy p { color: var(--muted); font-size: 1.15rem; max-width: 38rem; }
.cat-copy p + p { margin-top: .9rem; }
.cat-facts { margin: 1.5rem 0 0; display: grid; gap: 0 2rem; }
.cat-facts > div { padding: .9rem 0; border-top: 2px solid var(--ink); }
.cat-facts > div:last-child { border-bottom: 2px solid var(--ink); }
.cat-facts dt { font: 800 1.2rem var(--f-display); text-transform: uppercase; }
.cat-facts dd { margin: .2rem 0 0; color: var(--muted); }
.cat-cta { background: var(--ink); color: #fff; border-radius: 3px; padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; gap: .85rem; align-content: start; height: fit-content; }
.cat-cta h2 { font-size: 1.7rem; text-transform: uppercase; }
.cat-cta > p:first-of-type { color: var(--on-ink); margin-top: -.35rem; }
.cat-cta .btn { width: 100%; }
.cat-cta .btn--line { border-color: rgba(255, 255, 255, .5); color: #fff; }
@media (hover: hover) and (pointer: fine) { .cat-cta .btn--line:hover { background: #fff; color: var(--ink-deep); } }
.cat-cta a[href^="mailto"] { color: #fff; font-weight: 600; }
@media (min-width: 34rem) { .cat-facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .cat-body { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* Produktsuche */
.products { background: var(--white); padding-top: 0; }
.prod-filter { margin-bottom: 1.5rem; }
.prod-filter input { width: 100%; max-width: 26rem; min-height: 3rem; padding: .7rem 1rem; font: 400 1.05rem var(--f-body); color: var(--ink); background: #fff; border: 2px solid var(--line-strong); border-radius: 3px; }
.prod-filter input:focus { border-color: var(--ink-deep); outline-offset: 1px; }
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.prod-group-title { grid-column: 1 / -1; font: 700 1.1rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); margin: 1.75rem 0 .15rem; }
.prod-group-title:first-child { margin-top: 0; }
.prod-card {
  position: relative; background: var(--paper); border-radius: 3px; overflow: hidden;
  transition: transform .16s ease-out, background-color .16s ease-out;
}
/* Trefferfläche = ganze Karte. Der Button liegt transparent über Foto, Text
   und Rand, damit es keine toten Zonen gibt (Foto reagierte sonst nicht). */
.prod-open {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; background: transparent; appearance: none; cursor: pointer;
  /* Ohne das wartet iOS/Android auf einen möglichen zweiten Tap (Doppeltipp-Zoom),
     bevor der Klick feuert -- fühlte sich wie "reagiert nicht" an, und ein
     ungeduldiger zweiter Tap zoomte stattdessen die ganze Seite. */
  touch-action: manipulation;
}
.prod-card:has(.prod-open:active) { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .prod-card:has(.prod-open:hover) { background: var(--line); }
}
.prod-media { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.prod-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.prod-info { padding: .9rem 1rem 1.1rem; display: grid; gap: .3rem; }
.prod-info strong { font: 700 1.05rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.prod-info span { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.prod-info em { font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-dark); }

/* KARSEN Farben: Produktbeschreibung (Liter, Deckkraft-/Nassabrieb-Klasse usw.) fett,
   damit die Qualitätsangaben auf der eigenen Marke stärker auffallen als auf den
   übrigen Kategorieseiten. */
.cat-karsen-farben .prod-info span { font-weight: 700; color: var(--ink); }
.prod-open-hint {
  position: absolute; top: .5rem; right: .5rem; width: 1.85rem; height: 1.85rem; pointer-events: none;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink-deep); border-radius: 50%;
}
.prod-open-hint svg { width: 1rem; height: 1rem; }
.prod-empty { color: var(--muted); padding: 1.5rem 0; }
.prod-empty a { color: var(--orange-dark); font-weight: 600; }
@media (min-width: 34rem) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 56rem) { .prod-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

/* Produkt-Detail: Sheet (mobil) / Modal (Desktop) */
body.prod-dialog-open { overflow: hidden; }
/* Pflicht: Autoren-CSS schlaegt das Browser-Default "dialog:not([open]) {
   display:none }". Ohne diese Zeile bleibt der geschlossene Dialog als
   unsichtbare Flaeche ueber der Seite liegen und frisst die Klicks auf die
   Karten darunter — genau das liess die Haelfte der Produkte tot wirken. */
.prod-dialog:not([open]) { display: none; }
/* Der Dialog bekommt beim Oeffnen programmatisch den Fokus (damit der
   Fokusring nicht auf dem X landet) — er ist aber kein Bedienelement und
   braucht deshalb selbst keinen Ring. */
.prod-dialog:focus, .prod-dialog:focus-visible { outline: none; }
.prod-dialog {
  position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 88vh;
  padding: 0; border: 0; border-radius: 12px 12px 0 0; background: var(--white); color: var(--ink);
  overflow: hidden; transform: translateY(100%);
  transition: transform .28s var(--ease);
  display: flex; flex-direction: column;
}
.prod-dialog.is-open { transform: translateY(0); }
.prod-dialog::backdrop { background: rgba(20, 22, 26, 0); transition: background-color .28s var(--ease); }
.prod-dialog.is-open::backdrop { background: rgba(20, 22, 26, .55); }
.prod-dialog-handle { display: grid; place-items: center; padding: .6rem 0 .3rem; background: var(--white); flex: none; }
.prod-dialog-handle::before { content: ""; width: 2.75rem; height: 4px; border-radius: 2px; background: var(--line-strong); }
/* Scrollt nur der Inhalt (Foto+Text) -- Griff und X bleiben Geschwister
   ausserhalb dieses Containers, damit sie beim Scrollen sichtbar an Ort und
   Stelle bleiben statt mit dem Inhalt wegzuwandern. overscroll-behavior
   verhindert zusaetzlich, dass iOS beim Erreichen des Endes den Hintergrund
   mitscrollen laesst ("Seite rutscht"). */
.prod-dialog-scroll { overflow-y: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; }
.prod-dialog-close {
  position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center; background: rgba(20, 22, 26, .55); color: #fff; border: 0; border-radius: 50%; cursor: pointer;
  transition: transform .16s ease-out, background-color .16s ease-out;
  touch-action: manipulation;
}
.prod-dialog-close:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .prod-dialog-close:hover { background: var(--ink-deep); } }
/* Gebindefotos sind hochformatig — "cover" schnitt das Etikett an, also das
   Einzige, worauf es hier ankommt. "contain" auf ruhigem Grund zeigt es ganz. */
.prod-dialog-img {
  width: 100%; height: 44vh; max-height: 19rem; object-fit: contain; display: block;
  background: var(--paper); padding: 1.25rem;
}
.prod-dialog-info { padding: 1.25rem 1.25rem 1.75rem; display: grid; gap: .4rem; align-content: start; min-height: 0; }
.prod-dialog-info em { font-style: normal; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-dark); }
.prod-dialog-info h3 { font: 800 1.6rem/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .005em; }
.prod-dialog-lead { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.prod-dialog-detail { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.prod-dialog-detail h4 {
  font: 700 .82rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-deep);
  margin: 1.25rem 0 .3rem;
}
.prod-dialog-detail h4:first-child { margin-top: 0; }
.prod-dialog-detail p { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.prod-dialog-detail ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.prod-dialog-detail li { margin-bottom: .2rem; }
.prod-dialog-cta { display: grid; gap: .6rem; margin-top: .75rem; }
.prod-dialog-cta .btn { width: 100%; }
@media (min-width: 26rem) { .prod-dialog-cta { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .prod-dialog { transition: opacity .15s ease; transform: none; opacity: 0; }
  .prod-dialog.is-open { opacity: 1; }
  .prod-dialog::backdrop, .prod-dialog.is-open::backdrop { transition: background-color .15s ease; }
}
@media (min-width: 48rem) {
  .prod-dialog {
    /* Hoehe gedeckelt und Fotospalte breit: die Gebindefotos sind hochformatig
       (3:4). In einer schmalen, sehr hohen Spalte schwamm das Foto vorher in
       einer grossen leeren Flaeche. 27rem/42rem liegt nah an 3:4, das Foto
       fuellt die Spalte, ohne dass das Etikett angeschnitten wird. */
    position: fixed; inset: 0; margin: auto; width: min(92vw, 60rem);
    max-height: min(86vh, 42rem); max-width: none;
    border-radius: 8px; display: grid; grid-template-columns: 27rem 1fr;
    /* minmax(0, 1fr) zwingt die Zeile in die Dialoghoehe. Mit "auto" waechst
       sie auf Texthoehe: die Textspalte scrollt dann nicht und das Foto wird
       auf die volle Texthoehe gestreckt und dadurch stark angeschnitten. */
    grid-template-rows: minmax(0, 1fr); align-items: stretch;
    overflow: hidden;
    transform: scale(.95); opacity: 0;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .prod-dialog.is-open { transform: scale(1); opacity: 1; }
  .prod-dialog-handle { display: none; }
  /* Der mobile Scroll-Wrapper wird hier layoutlos: seine Kinder (Foto + Info)
     rutschen als direkte Grid-Items in die zwei Spalten von .prod-dialog,
     genau wie vor der Sheet/Scroll-Umstrukturierung. */
  .prod-dialog-scroll { display: contents; }
  .prod-dialog-img { height: 100%; max-height: none; padding: 0; object-fit: cover; }
  /* Nur die Textspalte scrollt — das Foto bleibt stehen. min-height: 0 ist
     hier Pflicht: ohne das wächst die Spalte über max-height des Dialogs
     hinaus und der Inhalt wird von overflow: hidden abgeschnitten. */
  .prod-dialog-info { overflow-y: auto; min-height: 0; padding: 1.75rem 1.75rem 2rem; overscroll-behavior: contain; }
  @media (prefers-reduced-motion: reduce) { .prod-dialog { transform: none; } }
}

/* Musterbuch-Showcase */
.showcase { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.showcase-media img { width: 100%; border-radius: 3px; display: block; }
.showcase-copy { display: grid; gap: 1rem; align-content: center; }
.showcase-copy h2 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; font-weight: 800; }
.showcase-copy p { color: var(--muted); font-size: 1.1rem; max-width: 28rem; }
.showcase-copy .btn { justify-self: start; }
@media (min-width: 56rem) { .showcase { grid-template-columns: 1fr 1.3fr; align-items: center; } }

.cat-related { background: var(--paper); }
.cat-related h2 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1.25rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.cat-chips a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; background: #fff; border: 2px solid var(--line); border-radius: 3px; text-decoration: none; font: 700 .95rem var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cat-chips a:hover { border-color: var(--orange); color: var(--orange-dark); } }

/* Legal + 404 pages */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.6rem; font-weight: 700; margin: 2.25rem 0 .6rem; text-transform: none; }
.legal p + p { margin-top: .8rem; }
.legal a { color: var(--orange-dark); }
.legal .btn { color: var(--ink-deep); }
.todo { background: var(--orange-soft); padding: 0 .3em; border-radius: 2px; }

/* 404 */
.nf-hero { background: var(--orange); color: var(--ink-deep); padding-block: clamp(3rem, 10vw, 6rem); }
.nf-hero .wrap { max-width: 40rem; }
.nf-code { font: 800 clamp(6rem, 26vw, 11rem)/.8 var(--f-display); letter-spacing: -.01em; margin: 0; }
.nf-hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: .5rem 0 0; }
.nf-lead { margin-top: 1.25rem; max-width: 30rem; font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.nf-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .8s var(--ease) both; }
  .reveal.d1 { animation-delay: .08s; }
  .reveal.d2 { animation-delay: .16s; }
  .reveal.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  .swatches span { animation: grow .7s var(--ease) both; }
  .swatches span:nth-child(2) { animation-delay: .04s; } .swatches span:nth-child(3) { animation-delay: .08s; }
  .swatches span:nth-child(4) { animation-delay: .12s; } .swatches span:nth-child(5) { animation-delay: .16s; }
  .swatches span:nth-child(6) { animation-delay: .2s; } .swatches span:nth-child(7) { animation-delay: .24s; }
  .swatches span:nth-child(8) { animation-delay: .28s; } .swatches span:nth-child(9) { animation-delay: .32s; }
  .swatches span:nth-child(10) { animation-delay: .36s; } .swatches span:nth-child(11) { animation-delay: .4s; }
  .swatches span:nth-child(12) { animation-delay: .44s; }
  @keyframes grow { from { transform: scaleY(0); } }
  .is-open .dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 .4rem rgba(20, 22, 26, .18); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
