/* Dachfenster Knie — website template stylesheet (templates/Site/knie).
   Rebuilt 2026-09-26 from the old Knie2020 site (dachfenster-knie.at: Tailwind 2, Vue/Alpine, Swiper, PhotoSwipe)
   so visitors see no difference: same colours, Roboto Regular (the old site only had the Regular face — bold is
   synthesised by the browser, exactly as before), the Tailwind breakpoints 640 / 768 / 1024 / 1280 and the
   container widths that go with them, the old spacing (every element 16px apart, text/picture 32px and lines 48px
   below). No framework, no library: menu = knie.js, header slider = /site/_default/slider.js (+ the slide effect
   below), lightbox = /site/_default/lightbox.js, map = /site/_default/embed.js.
   Sections: 1 tokens + base · 2 header + menu · 3 page head (banner, slider) · 4 rhythm · 5 Knie elements
   · 6 footer · 7 other elements (re-tokenised _default rules) · 8 shop · 9 table */

/* ── 1 tokens + base ───────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Roboto-Regular.woff2") format("woff2");
}

:root {
  --kn-yellow: #fbb900;
  --kn-gray: #575656;        /* text */
  --kn-gray-light: #e2e2e2;  /* active menu item, phone menu panel */
  --kn-gray-dark: #9c9d9d;   /* footer */
  --kn-red: #e41819;
  --kn-field: #f3f4f6;       /* form fields */
  --kn-hair: #e5e7eb;        /* lines */
  --kn-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
  --kn-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);

  /* names shared with the _default rules in sections 7–9 */
  --font: "Roboto", sans-serif;
  --ink: var(--kn-gray);
  --muted: #7b7a7a;
  --line: var(--kn-hair);
  --bg: #ffffff;
  --bg-soft: var(--kn-field);
  --accent: var(--kn-yellow);
  --accent-ink: #946c00;
  --dark: var(--kn-gray);
  --radius: 0;
  --gap: 24px;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: #000; background: #fff; min-height: 100vh; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
code { font-family: ui-monospace, monospace; font-size: .9em; }
.pre { white-space: pre-line; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--kn-yellow); outline-offset: 2px; }
.preview-bar { background: #b45309; color: #fff; text-align: center; font-size: .8rem; padding: 4px; letter-spacing: .05em; }

/* the old Tailwind "container": full width, then a fixed max-width per breakpoint; content 8px inside */
.kn-container, .kn-wrap { width: 100%; margin-inline: auto; padding-inline: 8px; }
@media (min-width: 640px)  { .kn-container, .kn-wrap { max-width: 640px; } }
@media (min-width: 768px)  { .kn-container, .kn-wrap { max-width: 768px; } }
@media (min-width: 1024px) { .kn-container, .kn-wrap { max-width: 1024px; } }
@media (min-width: 1280px) { .kn-container, .kn-wrap { max-width: 1280px; } }

/* ── 2 header + menu ───────────────────────────────────────────────────────────────────────── */
.kn-header { position: relative; z-index: 50; background: #fff; }
.kn-logo img { width: auto; height: 128px; object-fit: contain; }
.kn-nav__list { list-style: none; }
.kn-nav__link { display: block; border: 0; background: none; cursor: pointer; text-align: inherit; }
.kn-nav__sub { list-style: none; background: var(--kn-yellow); }
.kn-nav__sub a, .kn-nav__sub span { display: block; color: #fff; }
.kn-cart { color: var(--kn-gray); font-size: 16px; white-space: nowrap; }
.kn-cart__count { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; text-align: center; background: var(--kn-yellow); color: #fff; border-radius: 999px; font-size: 12px; }

/* burger (the old "hamburgers" spring button, now plain CSS) */
.kn-burger { display: block; padding: 5px 15px; border: 0; background: none; cursor: pointer; line-height: 0; }
.kn-burger__box { position: relative; display: inline-block; width: 35px; height: 22px; }
.kn-burger__inner, .kn-burger__inner::before, .kn-burger__inner::after { position: absolute; left: 0; width: 35px; height: 4px; border-radius: 4px; background: var(--kn-gray); }
.kn-burger__inner { top: 9px; transition: background-color 0s linear .13s; }
.kn-burger__inner::before, .kn-burger__inner::after { content: ""; transition: top .1s cubic-bezier(.33333, .66667, .66667, 1) .2s, transform .13s cubic-bezier(.55, .055, .675, .19); }
.kn-burger__inner::before { top: -9px; }
.kn-burger__inner::after { top: 9px; }
.kn-header.is-open .kn-burger__inner { background-color: transparent; transition-delay: .22s; }
.kn-header.is-open .kn-burger__inner::before { top: 0; transform: rotate(45deg); transition: top .1s cubic-bezier(.33333, 0, .66667, .33333) .15s, transform .13s cubic-bezier(.215, .61, .355, 1) .22s; }
.kn-header.is-open .kn-burger__inner::after { top: 0; transform: rotate(-45deg); transition: top .1s cubic-bezier(.33333, 0, .66667, .33333) .15s, transform .13s cubic-bezier(.215, .61, .355, 1) .22s; }

@keyframes kn-pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }

/* phone + tablet (< 1024px): 128px bar, logo left, burger right, grey menu panel under the bar */
@media (max-width: 1023.98px) {
  .kn-header__bar.kn-container { max-width: none; height: 128px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
  .kn-nav { display: none; position: absolute; top: 112px; left: 0; right: 0; z-index: 50; }
  .kn-header.is-open .kn-nav { display: block; animation: kn-pop .3s ease-out; }
  .kn-nav__list { margin: 0 8px; padding: 16px 8px; border-radius: 4px; background: rgba(226, 226, 226, .95); }
  .kn-nav__item { padding: 16px 0; text-align: center; }
  .kn-nav__link { width: 100%; font-size: 30px; line-height: 36px; color: #1f2937; text-align: center; }
  .kn-nav__item.is-trail > .kn-nav__link, .kn-nav__item.is-open > .kn-nav__link { font-weight: 700; }
  .kn-nav__sub { display: none; position: relative; top: 16px; padding: 8px 0; border-radius: 4px; box-shadow: var(--kn-shadow-xl); }
  .kn-nav__item.is-open > .kn-nav__sub { display: block; animation: kn-pop .3s ease-out; }
  .kn-nav__sub a, .kn-nav__sub span { padding: 8px 16px; font-size: 24px; line-height: 32px; }
  .kn-cart { margin-left: auto; margin-right: 8px; }
}

/* desktop (≥ 1024px): 160px bar, logo + menu items spread evenly, items sit at the bottom edge */
@media (min-width: 1024px) {
  .kn-header__bar { height: 160px; display: flex; justify-content: space-evenly; align-items: flex-end; padding-inline: 0; }
  .kn-logo { align-self: center; }
  .kn-logo img { height: 144px; }
  .kn-nav, .kn-nav__list { display: contents; }
  .kn-nav__item { position: relative; display: inline-flex; margin-bottom: 8px; }
  .kn-nav__link { font-size: 18px; line-height: 28px; padding: 2.5px 6px; margin: -2.5px 0; color: var(--kn-gray); }   /* = the old inline link with 6px padding */
  .kn-nav__item.is-trail > .kn-nav__link { background: var(--kn-gray-light); }
  .kn-nav__sub {
    position: absolute; left: 0; top: 32px; z-index: 30; width: 288px; padding: 8px 0; box-shadow: var(--kn-shadow-xl);
    visibility: hidden; opacity: 0; transform: scale(.95);
    transition: opacity .1s ease-in, transform .1s ease-in, visibility 0s linear .1s;
  }
  .kn-nav__item.is-open > .kn-nav__sub { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease-out, transform .2s ease-out; }
  .kn-nav__sub a, .kn-nav__sub span { padding: 8px 16px; font-size: 16px; line-height: 24px; transition: background-color .2s, color .2s; }
  .kn-nav__sub a:hover, .kn-nav__sub a:focus-visible { background: #fff; color: var(--kn-gray); }
  .kn-burger { display: none; }
  .kn-cart { align-self: flex-end; margin-bottom: 8px; }
}

/* ── 3 page head: banner with claim, header slider ─────────────────────────────────────────── */
.kn-claim { margin: 0; padding: 2px; background: var(--kn-yellow); color: #fff; font-size: 20px; line-height: 1.25; text-align: center; font-weight: 400; }
@media (min-width: 768px) { .kn-claim { padding: 12px; font-size: 30px; line-height: 36px; } }

.kn-banner { position: relative; display: flex; justify-content: center; overflow: hidden; background: #fff; }
.kn-banner picture { width: 100%; }
.kn-banner img { width: 100%; height: auto; }
.kn-claim--banner { position: absolute; z-index: 2; top: 33.3333%; margin: 0 16px; }
@media (min-width: 768px) { .kn-claim--banner { top: 50%; margin: 0; } }

/* header slider: slides stacked, the active one slides in from the side (data-dir from slider.js), photos keep their
   proportions (the track is as tall as the tallest slide), claim box centred, round dots bottom right */
.kn-slider { position: relative; overflow: hidden; background: #fff; outline: none; touch-action: pan-y; }
.kn-slider__track { display: grid; }
.kn-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; visibility: hidden; }
.kn-slide.is-active, .kn-slide.is-leaving { visibility: visible; }
.kn-slide__media { display: block; width: 100%; }
.kn-slide__media img { width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
.kn-slide .kn-claim--slide { position: absolute; }
a.kn-claim--slide:hover { text-decoration: underline; }
.kn-slider[data-dir="next"] .kn-slide.is-active { animation: kn-in-next .3s ease both; }
.kn-slider[data-dir="next"] .kn-slide.is-leaving { animation: kn-out-next .3s ease both; }
.kn-slider[data-dir="prev"] .kn-slide.is-active { animation: kn-in-prev .3s ease both; }
.kn-slider[data-dir="prev"] .kn-slide.is-leaving { animation: kn-out-prev .3s ease both; }
@keyframes kn-in-next { from { transform: translateX(100%); } to { transform: none; } }
@keyframes kn-out-next { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes kn-in-prev { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes kn-out-prev { from { transform: none; } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .kn-slider .kn-slide.is-active, .kn-slider .kn-slide.is-leaving { animation: none; } .kn-slide.is-leaving { visibility: hidden; } }
.kn-slider__dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; padding-right: 24px; pointer-events: none; }
.kn-slider .slider__dot { width: 18px; height: 18px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(255, 255, 255, .2); cursor: pointer; pointer-events: auto; }
.kn-slider .slider__dot.is-active { background: #fff; }
@media (min-width: 768px)  { .kn-slider__dots { padding-right: 32px; } }
@media (min-width: 1024px) { .kn-slider__dots { padding-right: 44px; } }

/* ── 4 rhythm ──────────────────────────────────────────────────────────────────────────────────
   The old site wrapped every element in a <p>, which the browser turned into an empty paragraph (16px bottom
   margin) in front of and behind it. Rebuilt with collapsing margins: every element 16px above and below, text and
   pictures 32px below, lines 48px below. Rows and .kn-content have no vertical padding, so the first element's margin
   melts into the 48px under the page head and the last one into the footer's 48px — same as before.
   Columns are flex rows: margins stay inside the columns there, like in the old layout. */
.kn-content { margin-top: 24px; }
@media (min-width: 768px)  { .kn-content { margin-top: 32px; } }
@media (min-width: 1024px) { .kn-content { margin-top: 48px; } }
.kn-content .el { margin: 16px 0; }
.kn-content .el-text, .kn-content .el-picture, .kn-content .embed { margin-bottom: 32px; }
.kn-content .el-line { margin-bottom: 48px; }


/* ── 7 other elements — the _default rules, re-tokenised (Roboto, yellow accent, square corners). The old site had
   none of these; they keep the Knie look when editors use them. The Knie-specific rules in section 5 follow. */
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent-ink); margin: 0 0 .5em; font-weight: 600; }
.lead { font-size: 1.1rem; color: var(--muted); }
.pre { white-space: pre-line; }
.btn { display: inline-block; padding: .65em 1.3em; background: var(--accent); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-ink); }
.textlink { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.surface { padding: 32px; border-radius: var(--radius); }
.surface--light { background: var(--bg-soft); }
.surface--dark { background: var(--dark); color: #fff; }
.surface--dark .kicker, .surface--dark a { color: #b6e3a4; }
.surface--accent { background: var(--accent); color: #fff; }
.surface--accent .kicker, .surface--accent a { color: #fff; }
.surface--accent .btn { background: #fff; color: var(--accent-ink); }
.surface--plain { padding: 0; }

.el-hero { margin: 0 calc(-1 * var(--gap)) 48px; background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.el-hero .kicker { color: #b6e3a4; }
.el-hero h1 em { font-style: normal; color: var(--accent); }
.el-hero__inner { max-width: var(--container); margin: 0 auto; padding: 64px var(--gap); display: grid; gap: 40px; align-items: center; position: relative; }
.el-hero--split .el-hero__inner { grid-template-columns: 1.1fr 1fr; }
.el-hero__media { margin: 0; position: relative; }
.el-hero__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.el-hero__badge { position: absolute; left: 20px; bottom: 20px; background: rgba(255,255,255,.95); color: var(--ink); padding: 14px 18px; border-radius: 8px; display: grid; gap: 2px; max-width: 70%; }
.el-hero__badge .kicker { margin: 0; }
.el-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.el-hero--image .el-hero__inner, .el-hero--plain .el-hero__inner { text-align: center; max-width: 820px; }
.el-hero__actions { display: flex; gap: 20px; align-items: center; justify-content: inherit; margin-top: 24px; }
.el-hero__actions .textlink { color: #fff; }
@media (max-width: 760px) { .el-hero--split .el-hero__inner { grid-template-columns: 1fr; padding: 40px var(--gap); } }
.el-textpic { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.el-textpic--left .el-textpic__media { order: -1; }
.el-textpic__media { margin: 0; }
.el-textpic__media img { border-radius: var(--radius); width: 100%; }
@media (max-width: 760px) { .el-textpic { grid-template-columns: 1fr; } .el-textpic__media { order: -1; } }
.el-quickfact { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.el-quickfact.surface--dark { border-left-color: #b6e3a4; }
.el-quickfact.surface--accent { border-left-color: #fff; }
.el-quickfact img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.el-quickfact h3 { margin-bottom: .25em; }
.el-quickfact p { margin: 0; }

/* news article */
.el-news__main { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: start; }
.el-news__main:not(:has(.el-news__media)) { grid-template-columns: 1fr; }
.el-news__media { margin: 0; }
.el-news__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.el-news__title { margin-top: 0; }
.el-news__link { margin: 16px 0 0; }
.el-news__download { display: inline-flex; gap: 12px; align-items: center; margin-top: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.el-news__download:hover { border-color: var(--accent); }
.el-news__download small { color: var(--muted); margin-left: 6px; }
.el-news__images { margin-top: var(--gap); }   /* slider5 strip — rules under "gallery sliders" */
@media (max-width: 760px) { .el-news__main { grid-template-columns: 1fr; } }

.el-teaser h3 { margin-top: 0; }
.el-teaser .btn { margin-top: 16px; }
.el-facts { margin-left: calc(-1 * var(--gap)); margin-right: calc(-1 * var(--gap)); border-radius: 0; padding: 48px var(--gap); }
.el-facts__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; max-width: var(--container); margin-inline: auto; }
.el-facts__grid li { display: grid; gap: 2px; }
.el-facts__value { font-size: 2.2rem; font-weight: 700; line-height: 1; font-family: ui-monospace, monospace; }
.el-facts__label { font-weight: 600; }
.el-facts small { color: inherit; opacity: .7; }
.el-facts .el-head { max-width: var(--container); margin-inline: auto; }

.el-dates.has-head { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.el-dates__list { list-style: none; margin: 0; padding: 0; }
.el-dates__list li { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.el-dates__list li:last-child { border-bottom: 1px solid var(--line); }
.el-dates__list time { font-family: ui-monospace, monospace; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .el-dates.has-head { grid-template-columns: 1fr; gap: 16px; } }

.el-tabs__strip { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.el-tabs__strip button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.el-tabs__strip button.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.el-tabs__panel { display: none; }
.el-tabs__panel.is-active { display: block; }
.el-tabs__panel > .el:first-child { margin-top: 0; }

.el-card__title { margin-top: 0; }
.el-card__body > .el:first-child { margin-top: 0; }
.el-card__body > .el:last-child { margin-bottom: 0; }
.el-card__body > .el { margin: 20px 0; }
/* gallery sliders (Layout = slider5 / slider1; JS in /site/_default/gallery.js) */
.el-gallery__slider { position: relative; }
.el-gallery__arrow { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; cursor: pointer; padding: 0; }
.el-gallery__arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: translate(-30%, -50%) rotate(-135deg); }
.el-gallery__arrow--prev { left: 8px; }
.el-gallery__arrow--next { right: 8px; }
.el-gallery__arrow--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.el-gallery__arrow:hover { background: var(--accent); }
.el-gallery__arrow:disabled { opacity: .3; cursor: default; }
.el-gallery__arrow:disabled:hover { background: rgba(0,0,0,.5); }
/* slider5: strip */
.el-gallery__strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.el-gallery__strip::-webkit-scrollbar { display: none; }
.el-gallery__strip figure { flex: 0 0 calc((100% - 4 * 12px) / 5); margin: 0; scroll-snap-align: start; }
.el-gallery__strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.el-gallery__strip figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 960px) { .el-gallery__strip figure { flex-basis: calc((100% - 2 * 12px) / 3); } }
@media (max-width: 640px) { .el-gallery__strip figure { flex-basis: calc((100% - 12px) / 2); } }
/* slider1: stage */
.el-gallery__slider--stage { outline: none; touch-action: pan-y; }
.el-gallery__stage { display: grid; background: var(--bg-soft); border-radius: 8px; overflow: hidden; }
.el-gallery__stage figure { grid-area: 1 / 1; margin: 0; position: relative; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.el-gallery__stage figure.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.el-gallery__stage a { display: block; }
.el-gallery__stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; display: block; }
.el-gallery.is-keepratio .el-gallery__stage img { object-fit: contain; }
.el-gallery__stage figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .85rem; }
.el-gallery__counter { position: absolute; right: 12px; top: 12px; z-index: 2; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; }

/* lightbox (gallery "Vergrößern"; JS in /site/_default/lightbox.js) */
html.has-lightbox { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.92); padding: 56px 72px; }
.lightbox.is-open { display: flex; }
.lightbox, .el-gallery__stage img, .slider .slide__media img { touch-action: pan-y; -webkit-user-drag: none; user-select: none; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; display: block; transition: opacity .25s; }
.lightbox.is-loading .lightbox__img { opacity: .4; }
.lightbox__caption { color: #fff; text-align: center; }
.lightbox__close, .lightbox__arrow { position: absolute; z-index: 2; border: 0; background: transparent; color: #fff; cursor: pointer; padding: 0; width: 48px; height: 48px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__close::before, .lightbox__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 24px; height: 1.5px; background: #fff; transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox__arrow { top: 50%; margin-top: -24px; }
.lightbox__arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; transform: translate(-30%, -50%) rotate(-135deg); }
.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }
.lightbox__arrow--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.lightbox.is-single .lightbox__arrow { display: none; }
.lightbox__counter { position: absolute; left: 16px; top: 24px; color: rgba(255,255,255,.7); }
@media (max-width: 760px) { .lightbox { padding: 56px 12px 40px; } .lightbox__arrow { display: none; } .lightbox__img { max-height: calc(100vh - 120px); } }
.lightbox__caption { font-size: .9rem; }
.lightbox__counter { font-size: .8rem; }
.lightbox__close:hover, .lightbox__arrow:hover { color: var(--accent); }
.lightbox__close:hover::before, .lightbox__close:hover::after, .lightbox__arrow:hover::before { background-color: var(--accent); border-color: var(--accent); }
.el-person { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.el-person__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.el-person__function { color: var(--muted); margin-top: -.25em; }
.el-person__contact { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 600px) { .el-person { grid-template-columns: 1fr; } .el-person__photo { max-width: 200px; } }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.product-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.product-card img { aspect-ratio: 1; object-fit: contain; background: var(--bg-soft); border-radius: 8px; margin-bottom: 8px; width: 100%; }
.product-card h3 { margin: 0; font-size: 1.05rem; }
.product-card__sub { margin: 0; color: var(--muted); font-size: .9rem; }
.product-card__price { margin: 8px 0 0; font-weight: 700; }
.product-card__price small { font-weight: 400; color: var(--muted); }
.product-card__badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.product-card__note { margin: 0; color: #b91c1c; font-weight: 600; font-size: .85rem; }
.is-soldout img { opacity: .5; }

.el-product { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: start; }
.el-product__media { margin: 0; }
.el-product__media img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg-soft); border-radius: var(--radius); }
.el-product__text .product-card__badge { position: static; display: inline-block; margin-bottom: 12px; }
.el-product__attrs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 20px 0; font-size: .95rem; }
.el-product__attrs dt { color: var(--muted); }
.el-product__attrs dd { margin: 0; }
@media (max-width: 760px) { .el-product { grid-template-columns: 1fr; } }

.el-video { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
/* Two-click embeds (YouTube, Google Maps): placeholder → iframe on click (_default/embed.js).
   Nothing loads from the third party before the click; poster = optional ImageDB image. */
.embed { margin-left: 0; margin-right: 0; }
.embed__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; border-radius: var(--radius); }
.embed__poster, .embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.embed__play { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-decoration: none; }
.embed__play:hover, .embed__play:focus-visible { color: #fff; }
.embed__icon { position: relative; width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, .6); transition: background-color .2s; }
.embed__icon--play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.embed__play:hover .embed__icon, .embed__play:focus-visible .embed__icon { background: var(--accent); }
.embed__label { font-size: .95rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.embed__notice { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 10px 16px; font-size: 12px; line-height: 1.4; text-align: center; color: rgba(255, 255, 255, .85); background: linear-gradient(transparent, rgba(0, 0, 0, .7)); pointer-events: none; }
.embed figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.embed--md { max-width: 60%; }
.embed__icon svg { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; fill: #fff; }
.embed__open { display: inline-block; margin-top: 8px; font-size: .9rem; }
@media (max-width: 760px) { .embed__icon { width: 56px; height: 56px; } .embed__icon--play::after { left: 22px; top: 16px; border-width: 12px 0 12px 18px; } .embed__notice { font-size: 11px; padding: 6px 10px; } .embed--md { max-width: none; } }

/* ── 8 shop (the _default Shop pages + buy buttons, re-tokenised) ──────────────────────────── */
/* ---------- shop: header cart link, buy buttons, cart / checkout / confirmation pages ---------- */
.cart-link { margin-left: auto; text-decoration: none; color: var(--ink); font-weight: 600; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.cart-link:hover { background: var(--bg-soft); }
.cart-link__count { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; padding: 0 6px; }
.site-brand + .cart-link { margin-left: 0; }
.site-header__inner .site-brand { margin-right: auto; }
.buy { margin: 8px 0 0; }
.product-card .buy { margin-top: auto; padding-top: 8px; }
.buy .btn { font-size: .85rem; padding: .5em 1em; }
.buy--inline { display: flex; align-items: flex-end; gap: 16px; margin-top: 16px; }
.buy__qty { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.buy__qty input { width: 72px; font: inherit; padding: .45em .6em; border: 1px solid var(--line); border-radius: 8px; }
.shop-head { margin-bottom: 8px; }
.shop-flash { padding: 12px 16px; border-radius: 8px; background: var(--bg-soft); border-left: 4px solid var(--accent); margin: 0 0 20px; }
.shop-flash--warning { border-left-color: #b45309; }
.shop-flash--error { border-left-color: #b91c1c; }
.shop-note { color: var(--muted); font-size: .9rem; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.shop-actions .textlink { margin-right: auto; }
.btn--ghost { background: transparent; color: var(--accent-ink); border: 1px solid var(--accent); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--block { display: block; width: 100%; text-align: center; }
.icon-btn { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.icon-btn:hover { color: #b91c1c; }
.cart-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cart-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 0 8px 10px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table__thumb { width: 64px; }
.cart-table__thumb img { width: 56px; height: 56px; object-fit: contain; background: var(--bg-soft); border-radius: 6px; }
.cart-table__name { display: table-cell; }
.cart-table__name strong { display: block; }
.cart-table__name span { display: block; color: var(--muted); font-size: .85rem; }
.cart-table__warn { display: block; color: #b45309; font-style: normal; font-size: .85rem; font-weight: 600; }
.cart-table__qty input { width: 70px; font: inherit; padding: .4em .5em; border: 1px solid var(--line); border-radius: 8px; }
.cart-table tfoot td { border-bottom: 0; padding-top: 16px; }
.cart-table tfoot .is-grand td { font-size: 1.05rem; }
.cart-table tfoot .is-tax td { color: var(--muted); font-size: .85rem; padding-top: 2px; }
.cart-table--plain td { padding: 10px 8px; }
.is-short td { background: #fff8f1; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.checkout__form { display: grid; gap: 28px; }
.checkout__section { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.checkout__section legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; padding: 0; }
.checkout .field { display: grid; gap: 4px; }
.checkout label { font-weight: 600; font-size: .95rem; }
.checkout input[type=text], .checkout input[type=email], .checkout input[type=tel], .checkout select, .checkout textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: var(--bg); }
.checkout .field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkout .field--check input { margin-top: 4px; accent-color: var(--accent); }
.checkout .hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row--zip { grid-template-columns: 120px 1fr; }
.checkout__ship { display: grid; gap: 14px; }
.checkout__ship[hidden] { display: none; }
.field__hint { color: var(--muted); font-size: .85rem; margin: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--bg-soft); }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choice__text { flex: 1; display: grid; gap: 2px; }
.choice__text span { color: var(--muted); font-size: .85rem; }
.choice__price { font-weight: 600; white-space: nowrap; }
.checkout__legal { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; margin: 0; }
.checkout__summary { position: sticky; top: 80px; background: var(--bg-soft); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.checkout__summary h2 { font-size: 1.15rem; margin: 0; }
.summary-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.summary-lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
.summary-lines__qty { color: var(--muted); }
.summary-lines__total { white-space: nowrap; }
.summary-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; border-top: 1px solid var(--line); padding-top: 12px; font-size: .95rem; }
.summary-totals dd { margin: 0; text-align: right; white-space: nowrap; }
.summary-totals__grand { font-weight: 700; font-size: 1.05rem; }
.checkout__back { margin: 0; text-align: center; }
.done-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; margin: 24px 0; }
.done-main h2 { font-size: 1.15rem; margin: 24px 0 12px; }
.done-main h2:first-child { margin-top: 0; }
.done-aside { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.done-aside h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 4px; }
.done-aside h3:first-child { margin-top: 0; }
.done-aside .address { margin: 0; }
.done-payment { background: var(--bg-soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
@media (max-width: 860px) { .checkout, .done-grid { grid-template-columns: 1fr; } .checkout__summary { position: static; } }
@media (max-width: 600px) {
  .cart-table thead { display: none; }
  .cart-table tbody tr { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-table tbody td { border: 0; padding: 0; }
  .cart-table__thumb { grid-row: 1 / 4; }
  .cart-table__remove { grid-column: 3; grid-row: 1; }
  .cart-table tbody .num { grid-column: 2; text-align: left; font-size: .9rem; }
  .cart-table__qty { grid-column: 2; }
  .field-row { grid-template-columns: 1fr; }
}
.product-card__base, .product-card__legal { display: block; font-size: .75rem; color: var(--muted); margin-top: 4px; }

/* withdrawal page (/widerruf) */
.shop-withdrawal .checkout { display: block; max-width: 640px; }
.shop-withdrawal .shop-intro { max-width: 640px; }
.wd-review { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0 0 20px; max-width: 640px; }
.wd-review dt { color: var(--muted); }
.wd-review dd { margin: 0; }
.wd-review .pre { white-space: pre-wrap; }
.shop-actions .btn + .btn { margin-left: 12px; }

/* Produktraster: optional per-product link — the name's link covers the whole card, the buy form stays clickable above it */
.product-card .product-card__link { color: inherit; text-decoration: none; }
.product-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card .product-card__link:hover, .product-card .product-card__link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.product-card .buy { position: relative; z-index: 2; }

/* shop pages (templates/Site/_default/Shop/*): their main.page has no Knie rows → the same column as the content */
main.page:not(.kn-main) { width: 100%; margin-inline: auto; padding: 0 8px; color: var(--kn-gray); }
@media (min-width: 640px)  { main.page:not(.kn-main) { max-width: 640px; } }
@media (min-width: 768px)  { main.page:not(.kn-main) { max-width: 768px; } }
@media (min-width: 1024px) { main.page:not(.kn-main) { max-width: 1024px; } }
@media (min-width: 1280px) { main.page:not(.kn-main) { max-width: 1280px; } }
main.page:not(.kn-main) .page-header { margin: 48px 0 16px; }
main.page:not(.kn-main) h1 { font-size: 30px; line-height: 36px; font-weight: 700; }
main.page:not(.kn-main) h2 { margin: 24px 0 12px; font-size: 20px; line-height: 28px; }
main.page:not(.kn-main) .el { margin: 16px 0; }

/* ── 9 table (Elements/table.html + table.js) ─────────────────────────────────────────────── */
.el-table__frame { position: relative; }
.el-table__frame::before, .el-table__frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.el-table__frame::before { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0)); }
.el-table__frame::after { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0)); }
.el-table__frame.has-more-left::before, .el-table__frame.has-more-right::after { opacity: 1; }
.el-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* always-visible scrollbar for wide tables: macOS hides overlay scrollbars until one scrolls, a styled
   ::-webkit-scrollbar is always drawn (Safari, Chrome, Edge); Firefox gets the thin standard bar */
.el-table__scroll::-webkit-scrollbar { height: 10px; }
.el-table__scroll::-webkit-scrollbar-track { background: var(--tbl-track); border-radius: var(--tbl-radius); }
.el-table__scroll::-webkit-scrollbar-thumb { background: var(--tbl-thumb); border: 2px solid var(--tbl-track); border-radius: var(--tbl-radius); }
.el-table__scroll::-webkit-scrollbar-thumb:hover { background: var(--tbl-thumb-hover); }
@supports not selector(::-webkit-scrollbar) {
  .el-table__scroll { scrollbar-width: thin; scrollbar-color: var(--tbl-thumb) var(--tbl-track); }
}
.el-table__frame:is(.has-more-left, .has-more-right) .el-table__scroll { padding-bottom: 6px; }
.el-table { --tbl-track: var(--bg-soft); --tbl-thumb: #c4c9d0; --tbl-thumb-hover: var(--muted); --tbl-radius: 5px; }
.surface--dark .el-table, .surface--accent .el-table { --tbl-track: rgba(255, 255, 255, .12); --tbl-thumb: rgba(255, 255, 255, .45); --tbl-thumb-hover: rgba(255, 255, 255, .7); }
.el-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.el-table th, .el-table td { text-align: left; vertical-align: top; }
.el-table .al-right { text-align: right; }
.el-table .al-center { text-align: center; }
.el-table thead th { white-space: nowrap; }
.el-table .el-table__rep { display: none; }   /* repeat of a cell merged over several rows (Serializer::table) — only the card layout shows it */
@media (max-width: 640px) {
  .el-table--cards .el-table__frame::before, .el-table--cards .el-table__frame::after { display: none; }
  .el-table--cards .el-table__scroll { overflow: visible; }
  .el-table--cards table, .el-table--cards tbody, .el-table--cards tr, .el-table--cards tbody th, .el-table--cards td { display: block; width: 100%; }
  .el-table--cards .el-table__rep { display: block; }
  .el-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .el-table--cards td, .el-table--cards tbody th { text-align: left !important; border: 0 !important; }
  .el-table--cards td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; }
}
.el-table__title { font-size: 1.15rem; margin: 0 0 12px; }
.el-table__scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.el-table th, .el-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.el-table thead th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.el-table tbody th { font-weight: 600; }
.el-table a { color: var(--accent-ink); }
.el-table--striped th, .el-table--striped td { border-bottom: 0; }
.el-table--striped tbody tr:nth-child(odd) { background: var(--bg-soft); }
.el-table--compact th, .el-table--compact td { padding: 6px 10px; font-size: .92em; }
.el-table__note { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 640px) {
  .el-table--cards tr { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; background: var(--bg); }
  .el-table--cards td, .el-table--cards tbody th { padding: 4px 0; }
  .el-table--cards tbody th { font-size: 1.05em; padding-bottom: 6px; }
  .el-table--cards td[data-label]:not([data-label=""])::before { font-size: .8em; color: var(--muted); }
}

/* Knie adjustments of the rules above */
.kicker { color: var(--kn-gray); letter-spacing: .08em; }
.btn { border-radius: 0; background: var(--kn-yellow); color: #fff; font-weight: 400; }
.btn:hover { background: var(--kn-yellow); filter: brightness(.95); }
.kn-band > .el-hero, .kn-band > .el-facts { margin: 16px 0 0; }
.el-hero, .surface--dark { background: var(--kn-gray); }
.surface--dark .kicker, .surface--dark a, .el-hero .kicker { color: var(--kn-yellow); }
.surface--accent .btn, .surface--accent .kicker { color: #fff; }
.surface--accent .btn { background: var(--kn-gray); }
.el-hero h1 em { color: var(--kn-yellow); }
.el-card__title, .el-teaser h3, .el-quickfact h3, .el-person h3, .el-news__title { color: inherit; }
.el-tabs__strip button.is-active { border-bottom-color: var(--kn-yellow); }
.el-product__attrs dt { color: var(--muted); }
.el-table { --tbl-radius: 0; }
.el-table thead th { background: var(--kn-yellow); color: #fff; border-bottom: 0; }
/* several head rows (Serializer::table): head cells ending above the last head row get a thin divider, head cells over several rows sit at the bottom */
.el-table thead th.el-table__th-mid { border-bottom: 1px solid rgba(255, 255, 255, .45); }
.el-table thead th[rowspan] { vertical-align: bottom; }

/* ── 5 Knie elements ───────────────────────────────────────────────────────────────────────── */

/* headline: h1 grey bold · h2 yellow bar with white capitals (half width on desktop) · h3 grey */
h1.el-headline { font-size: 30px; line-height: 36px; font-weight: 700; color: var(--kn-gray); }
h2.el-headline { width: 100%; padding: 4px; background: var(--kn-yellow); color: #fff; font-size: 20px; line-height: 28px; font-weight: 400; text-transform: uppercase; }
h3.el-headline { font-size: 18px; line-height: 28px; font-weight: 400; color: var(--kn-gray); }
@media (min-width: 768px)  { h2.el-headline { padding: 6px; } }
@media (min-width: 1024px) { h2.el-headline { width: 50%; padding: 8px; } }
.el-columns__zone h2.el-headline { width: 100%; }

/* text: 20px on phones and tablets, 16px from 1024px, grey */
.rich p { margin: 0 0 16px; }
.rich ul, .rich ol { margin-top: 8px; list-style-position: inside; }
.rich ul { list-style-type: disc; }
.rich ol { list-style-type: decimal; }
.rich li { margin-bottom: 8px; }
.el-text { color: var(--kn-gray); font-size: 20px; line-height: 28px; }
@media (min-width: 1024px) { .el-text { font-size: 16px; line-height: 24px; } }

/* picture: column width, own proportions */
.el-picture { margin-inline: 0; }
.el-picture img { width: 100%; }
.el-picture--md { max-width: 60%; }
.el-picture--sm { max-width: 30%; margin-inline: auto; }
.el-picture__caption { margin-top: 8px; font-size: 14px; color: var(--kn-gray); }
@media (max-width: 760px) { .el-picture--sm { max-width: 50%; } }

/* columns: the old flex row — full width below 768px, then the preset widths with 12px padding on the inner
   sides (= 24px between two columns). Widths come per zone from Elements/columns.html. */
.el-columns { display: flex; flex-wrap: wrap; }
.el-columns__zone { width: 100%; min-width: 0; }
@media (min-width: 768px) {
  .el-columns__zone { width: var(--w); }
  .el-columns__zone:first-child { padding-right: 12px; }
  .el-columns__zone:last-child { padding-left: 12px; }
  .el-columns__zone:not(:first-child):not(:last-child) { padding-inline: 12px; }
}

/* link: box with white text — Stil Standard / Akzent = the old yellow, Hell = grey field, Dunkel = dark grey;
   Breite kompakt = the old "light" box (8px 16px), volle Breite = the old "dark" full-width bar (8px) */
.el-link .el-link__box { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--kn-yellow); color: #fff; font-size: 16px; line-height: 24px; }
.el-link .el-link__box--light { background: var(--kn-field); color: var(--kn-gray); }
.el-link .el-link__box--dark { background: var(--kn-gray); color: #fff; }
.el-link__icon { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.el-link--full .el-link__box { display: flex; width: 100%; padding: 8px; }
@media (min-width: 1024px) {
  .el-link .el-link__box { font-size: 18px; line-height: 28px; }
  a.el-link__box:hover .el-link__text { text-decoration: underline; }
}

/* line: the old 1px double hairline */
.el-line { height: 0; border: 0; border-top: 1px solid var(--kn-hair); border-bottom: 1px solid var(--kn-hair); }

/* download: yellow box — optional file preview on the left, text + white chevron button */
.kn-dl { display: flex; background: var(--kn-yellow); color: #fff; font-size: 16px; line-height: 24px; }
.kn-dl__media { width: 33.3333%; flex: 0 0 auto; padding: 12px; }
.kn-dl__media img { width: 100%; object-fit: cover; box-shadow: var(--kn-shadow-lg); }
.kn-dl__text { flex: 1 1 auto; min-width: 0; padding: 12px; }
.kn-dl__text p { margin: 0 0 16px; }
.kn-dl__label { font-weight: 700; }
.kn-dl__btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 12px; background: #fff; color: var(--kn-yellow); }
.kn-dl__btn svg { width: 14px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.kn-dl__btn:hover { background: var(--kn-gray-light); }
@media (min-width: 768px)  { .kn-dl__media, .kn-dl__text { padding: 16px; } }
@media (min-width: 1024px) { .kn-dl__media, .kn-dl__text { padding: 24px; } }

/* gallery (Layout "Raster"): on the page = the Referenzen grid (square photos, 2 / 3 / 4 per row, centred,
   lightbox on click); inside columns = the old two-photo rows (photos in their own proportions, 2 per row) */
.el-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; justify-items: center; }
.el-gallery__grid figure { margin: 16px 0; }
.el-gallery__grid img { width: 176px; height: 176px; object-fit: cover; box-shadow: var(--kn-shadow-lg); transition: box-shadow .15s; }
.el-gallery__grid figcaption { margin-top: 4px; font-size: 14px; color: var(--kn-gray); text-align: center; }
@media (min-width: 768px)  { .el-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .el-gallery__grid img { width: 224px; height: 224px; } }
@media (min-width: 1024px) {
  .el-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .el-gallery__grid figure { margin: 32px 0; }
  .el-gallery__grid img { box-shadow: none; }
  .el-gallery__grid a:hover img, .el-gallery__grid a:focus-visible img { box-shadow: var(--kn-shadow-lg); }
}
@media (min-width: 1280px) { .el-gallery__grid img { width: 288px; height: 288px; } }
/* phones: one photo per row, 12px under each and 16px more after every pair (the old two-photo rows) */
.el-columns__zone .el-gallery__grid { grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: stretch; }
.el-columns__zone .el-gallery__grid figure { margin: 0; padding-bottom: 12px; }
.el-columns__zone .el-gallery__grid figure:nth-child(2n):not(:last-child) { margin-bottom: 16px; }
.el-columns__zone .el-gallery__grid img { width: 100%; height: auto; box-shadow: none; }
@media (min-width: 768px) {
  .el-columns__zone .el-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: start; }
  .el-columns__zone .el-gallery__grid figure, .el-columns__zone .el-gallery__grid figure:nth-child(2n):not(:last-child) { padding-bottom: 0; margin-bottom: 0; }
}

/* form: label left (1/3), grey field right (2/3), yellow submit button */
.el-form { color: var(--kn-gray); }
.el-form .lead { margin: 0 0 8px; }
.el-form .field { display: grid; grid-template-columns: 1fr 2fr; align-items: start; padding-top: 20px; }
.el-form .field > label:first-child { font-size: 14px; line-height: 20px; }
.el-form .field > :not(label:first-child) { grid-column: 2; }
.el-form .field--check > label:first-child { grid-column: 2; display: flex; gap: 8px; align-items: flex-start; }
.el-form input[type=text], .el-form input[type=email], .el-form input[type=tel], .el-form input[type=date], .el-form select, .el-form textarea {
  display: block; width: 100%; margin: 0; padding: 0 6px; border: 0; border-radius: 0; background: var(--kn-field); color: #000; font: inherit; font-size: 16px; line-height: 24px;
}
.el-form input[type=text], .el-form input[type=email], .el-form input[type=tel], .el-form input[type=date], .el-form select { height: 32px; }
.el-form textarea { height: 96px; resize: vertical; }   /* four lines, like the old rows="4" */
.el-form input[type=checkbox], .el-form input[type=radio] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--kn-yellow); flex: 0 0 auto; }
.el-form .field--check label { font-size: 14px; line-height: 20px; }
.el-form .field:has(> .field__group) { display: block; }
.el-form .field:has(> .field__group) > small { margin-left: 33.3333%; }
.el-form .field__group { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.el-form .field__group legend { float: left; width: 33.3333%; padding: 0; font-size: 14px; line-height: 20px; }
.el-form .field__opt { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px 33.3333%; font-size: 14px; line-height: 20px; }
.el-form small { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; }
.el-form .field__error, .el-form__error { color: #b91c1c; }
.el-form__error { margin: 16px 0 0; padding: 12px 16px; background: #fee2e2; border-radius: 6px; }
.el-form .has-error input, .el-form .has-error select, .el-form .has-error textarea { box-shadow: inset 0 0 0 1px #b91c1c; }
.el-form .btn { margin-top: 48px; height: 40px; padding: 0 32px; border: 0; border-radius: 0; background: var(--kn-yellow); color: #fff; font-size: 18px; line-height: 28px; cursor: pointer; }
.el-form .btn:hover { filter: brightness(.95); }
.el-form .hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.el-form--done .el-form__answer { margin: 16px 0 0; padding: 16px; background: #d1fae5; border-radius: 6px; color: #064e3b; }
@media (min-width: 640px)  {
  .el-form .field > label:first-child, .el-form .field__group legend { padding-top: 8px; }
  .el-form input[type=text], .el-form input[type=email], .el-form input[type=tel], .el-form input[type=date], .el-form select, .el-form textarea { font-size: 14px; line-height: 20px; }
  .el-form textarea { height: 80px; }
}
@media (min-width: 768px)  { .el-form .field > label:first-child, .el-form .field__group legend, .el-form .field--check label, .el-form .field__opt { font-size: 18px; line-height: 28px; } }
@media (min-width: 1024px) { .el-form__error, .el-form--done .el-form__answer { width: 75%; } }

/* Produktraster = the clouds band of the old home page: white cards with photo, name, text and the yellow ">" */
.kn-row--produktraster.kn-band { margin: 16px 0 48px; background: url("clouds.jpg") fixed; }
.kn-band > .kn-products { margin: 0; }
.kn-band .kn-products__inner { width: 100%; margin-inline: auto; padding: 48px 20px; }
@media (min-width: 640px)  { .kn-band .kn-products__inner { max-width: 640px; } }
@media (min-width: 768px)  { .kn-band .kn-products__inner { max-width: 768px; } }
@media (min-width: 1024px) { .kn-band .kn-products__inner { max-width: 1024px; padding: 80px 8px; } }
@media (min-width: 1280px) { .kn-band .kn-products__inner { max-width: 1280px; } }
.kn-products .el-head { margin-bottom: 24px; }
.kn-products__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 512px; margin-inline: auto; }
@media (min-width: 768px)  { .kn-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .kn-products__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; max-width: none; } }
.el-columns__zone .kn-products__grid { grid-template-columns: minmax(0, 1fr); max-width: none; }
@media (min-width: 1024px) { .el-columns__zone .kn-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.kn-card { position: relative; background: #fff; }
.el-columns__zone .kn-card { box-shadow: var(--kn-shadow-lg); }
.kn-card__img { width: 100%; object-fit: cover; }
.kn-card__body { margin: 24px 16px; color: var(--kn-gray); }
@media (min-width: 768px)  { .kn-card__body { margin: 16px; } }
@media (min-width: 1024px) { .kn-card__body { margin: 16px 32px; } }
.kn-card__title { font-size: 18px; line-height: 28px; font-weight: 700; }
.kn-card__sub { margin-top: 4px; }
.kn-card__text { margin: 16px 0; font-size: 16px; line-height: 24px; }
.kn-card__price { margin: 16px 0 0; font-weight: 700; }
.kn-card__price small { font-weight: 400; }
.kn-card__more { margin: 0; }
@media (min-width: 1024px) { .kn-card__more { padding-bottom: 16px; } }
.kn-btn { padding: 8px 12px; background: var(--kn-yellow); color: #fff; }
.kn-btn:hover { filter: brightness(.95); }
.kn-card.is-soldout img { opacity: .5; }

/* Google Maps / YouTube: two-click placeholder in the site's grey + yellow */
/* lightbox: PhotoSwipe's 80 % black of the old site */
.lightbox { background: rgba(0, 0, 0, .8); }
.lightbox__close:hover, .lightbox__arrow:hover { color: #fff; }
.lightbox__close:hover::before, .lightbox__close:hover::after, .lightbox__arrow:hover::before { background-color: var(--kn-yellow); border-color: var(--kn-yellow); }

.embed__frame { background: var(--kn-gray-light); }
.embed__play { color: var(--kn-gray); }
.embed__play:hover, .embed__play:focus-visible { color: var(--kn-gray); }
.embed__icon { background: var(--kn-yellow); }
.embed__play:hover .embed__icon, .embed__play:focus-visible .embed__icon { background: var(--kn-gray); }
.embed__label { text-shadow: none; }
.embed__notice { color: var(--kn-gray); background: rgba(255, 255, 255, .85); }
.embed figcaption { color: var(--kn-gray); }

/* ── 6 footer ──────────────────────────────────────────────────────────────────────────────── */
.kn-footer { margin-top: 48px; padding-bottom: 48px; background: var(--kn-gray-dark); color: #fff; font-size: 16px; line-height: 24px; }
.kn-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.kn-footer__badge img { width: auto; height: 144px; margin-top: 20px; object-fit: contain; }
.kn-footer__info { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
.kn-footer p { margin: 0 0 16px; }
.kn-footer a:hover, .kn-footer a:focus-visible { text-decoration: underline; }
.kn-footer__title { font-weight: 700; text-transform: uppercase; }
.kn-footer__nav ul { list-style: none; }
.kn-footer__nav li { margin-top: 4px; }
.kn-footer__nav a[aria-current] { text-decoration: underline; }
@media (min-width: 1024px) {
  .kn-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; padding-inline: 0; }
  .kn-footer__badge img { margin-top: 40px; }
  .kn-footer__info { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; padding-top: 40px; }
}
