@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #eef4ff;
  --muted: #aebed4;
  --quiet: #899fba;
  --sky: #080f1e;
  --line: #90b2df38;
  --surface: linear-gradient(132deg, #172a43b3, #101e32ba);
  --inner: #091426b8;
  --cyan: #9dddf4;
  --lavender: #c1b4ef;
  --apricot: #f1c399;
  --mint: #a9dbc5;
  --product-accent-column: var(--apricot);
  --product-accent-interface: var(--cyan);
  --product-accent-mount: var(--lavender);
  --content-accent-gallery: var(--lavender);
  --content-accent-second-hand: var(--apricot);

  --body-font: "Segoe UI", Arial, sans-serif;
  --mono-font: "JetBrains Mono", Consolas, monospace;
  --rail-width: clamp(15.5rem, 16.2vw, 16.25rem);
  --gutter: clamp(1.125rem, 2.35vw, 3rem);
  --panel-padding: clamp(1.125rem, 2.7vw, 2.75rem);
  --panel-radius: 1.125rem;
  --gap: clamp(.875rem, 1.5vw, 1.5rem);
  font-family: var(--body-font);
  background: var(--sky);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; line-height: 1.65; isolation: isolate; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
p, figure { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .75rem; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.375rem); letter-spacing: -.025em; }
h3 { font-size: 1.2rem; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 4px; }
[id] { scroll-margin-top: 1.25rem; }

.skip {
  position: fixed;
  z-index: 10;
  inset: .75rem auto auto .75rem;
  transform: translateY(-200%);
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--cyan);
  color: var(--sky);
  font-weight: 600;
}
.skip:focus { transform: none; }

/* One sky spans the page and the transparent navigation. */
.night-sky {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #081421 url("himmelsglas.webp") center / cover no-repeat;
}
.night-sky::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='51' viewBox='0 0 72 42'%3E%3Cpath d='M12 0H36L48 21 36 42H12L0 21ZM48 21H72' fill='none' stroke='%239bc6d7' stroke-opacity='.13' stroke-width='.65'/%3E%3C/svg%3E");
  mask-image:
    radial-gradient(ellipse at 12% 29%, #000d, transparent 52%),
    radial-gradient(ellipse at 74% 8%, #000, transparent 64%),
    radial-gradient(ellipse at 51% 96%, #000b, transparent 53%);
}
.star-layer {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  pointer-events: none;
}
.stars-far { --dx: 10px; --dy: -6px; --drift: 61s; --pulse: 16s; --delay: -6s; }
.stars-middle { --dx: -17px; --dy: 10px; --drift: 39s; --pulse: 10s; --delay: -13s; }
.stars-near { --dx: 22px; --dy: 13px; --drift: 30s; --pulse: 7s; --delay: -3s; }
@media (prefers-reduced-motion: no-preference) {
  .star-layer {
    animation: star-drift var(--drift) ease-in-out var(--delay) infinite alternate,
               star-light var(--pulse) ease-in-out var(--delay) infinite alternate;
  }
  .night-sky.paused .star-layer { animation-play-state: paused; }
}
@keyframes star-drift {
  from { transform: translate3d(calc(0px - var(--dx)), calc(0px - var(--dy)), 0); }
  to { transform: translate3d(var(--dx), var(--dy), 0); }
}
@keyframes star-light {
  from { opacity: .66; }
  to { opacity: 1; }
}
.shooting-star {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 100%;
  width: clamp(3rem, 7vw, 7.25rem);
  height: 1.5px;
  pointer-events: none;
  opacity: 0;
  transform-origin: 100% 50%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #8bb3ef30 36%, #b5d8ff9e 82%, #e7f6ff);
}
.shooting-star::after {
  position: absolute;
  content: "";
  right: -1px;
  top: 50%;
  width: 3px;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #e9f7ff;
  box-shadow: 0 0 5px 1px #add6ffa6;
}

/* Fixed side navigation and its mobile menu. */
.site-sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  padding: var(--gutter) 1.06rem 1rem;
  overflow-y: auto;
  background: linear-gradient(155deg, #0a172c4a, #09152138 74%);
  border-right: 1px solid #a7cee58c;
  box-shadow: inset -1px 0 #b7deef1a, .35rem 0 1.3rem #020c193b;
}
.mobile-home-link { display: none; }
.icon { width: 1.2rem; height: 1.2rem; flex: none; }
.menu-toggle { display: none; }
.navigation {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}
.nav-links, .nav-products {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links { display: grid; gap: .22rem; }
.nav-products {
  display: grid;
  gap: .1rem;
  margin: .17rem 0 .38rem 2.65rem;
  padding-left: .47rem;
  border-left: 1px solid #afa8d753;
}
.nav-products a {
  display: flex;
  align-items: center;
  min-height: 1.94rem;
  padding: .32rem .43rem;
  border-radius: .37rem;
  color: #b6c8da;
  line-height: 1.35;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.nav-products a:is(:hover, :focus-visible) { color: hsl(from var(--nav-accent) h 100% calc(493 / 510 * 100%)); background: #b4c6e815; }
.nav-products a[aria-current="page"] {
  color: hsl(from var(--nav-accent) h calc(31 / 37 * 100%) calc(473 / 510 * 100%));
  background: #b5a4d325;
  box-shadow: inset 2px 0 hsl(from var(--nav-accent) h calc(51 / 107 * 100%) calc(403 / 510 * 100%));

}
.nav-item {
  --tone: var(--cyan);
  --nav-accent: var(--product-accent-interface);
  position: relative;
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 2.8rem;
  border: 1px solid transparent;
  border-radius: .68rem;
  padding: .55rem .72rem .55rem .86rem;
  color: var(--muted);
  font-size: .96rem;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.nav-item[href="produkte.html"], .nav-item[href="galerie.html"] { --tone: var(--lavender); }
.nav-item[href="2ndhand.html"], .nav-item[href="kontakt.html"] { --tone: var(--apricot); }
.nav-item .icon { color: var(--nav-accent); }
.nav-item:hover, .nav-item:focus-visible {
  color: var(--ink);
  border-color: rgb(from var(--nav-accent) r g b / calc(56 / 255));
  background: #a9ceff13;
}
.nav-item[aria-current="page"], .nav-item.nav-section {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--nav-accent) 44%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 18%, transparent), #7aaaf009);
  box-shadow: inset 2px 0 var(--nav-accent), 0 0 1.1rem rgb(from var(--nav-accent) r g b / calc(26 / 255));
}
.nav-footer {
  border-top: 1px solid var(--line);
  padding: 1rem .5rem .35rem;
  color: var(--muted);
}
.nav-footer p { display: flex; align-items: center; gap: .5rem; font-size: .87rem; margin-bottom: .45rem; }
.nav-footer .icon { color: var(--apricot); width: 1rem; height: 1rem; }
.nav-footer a { display: block; width: fit-content; padding-block: .12rem; font-size: .79rem; text-wrap: balance; }
.nav-footer a:is(:hover, [aria-current]) { color: var(--cyan); text-decoration: underline; text-underline-offset: .25em; }

.site-content {
  margin-inline-start: var(--rail-width);
  min-width: 0;
  padding: var(--gutter);
  padding-block-end: max(var(--gutter), 4.5rem);
}

.glass {
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: inset 0 1px #bcd3f808, 0 .8rem 2.2rem #02071536;
  backdrop-filter: blur(10px);
}

.eyebrow {
  color: var(--cyan);
  font: 500 .78rem/1.65 var(--mono-font);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.button, .subtle-button {
  --tone: var(--cyan);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.06rem;
  min-height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--tone) 60%, #324a67);
  border-radius: .64rem;
  background: linear-gradient(120deg, #24486bfa, #1c335bea);
  box-shadow: 0 0 1.15rem color-mix(in srgb, var(--tone) 18%, transparent), inset 0 1px #c0dfff36;
  color: #f2f7ff;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.button-secondary, .subtle-button {
  --tone: var(--lavender);
  border-color: color-mix(in srgb, var(--tone) 32%, transparent);
  background: color-mix(in srgb, var(--tone) 11%, #0d172ebb);
  box-shadow: inset 0 1px #ddccff12;
}
.button-cyan { --tone: var(--cyan); }
.button-warm { --tone: var(--apricot); }
.button:is(:hover, :focus-visible), .subtle-button:is(:hover, :focus-visible) {
  border-color: var(--tone);
  background: color-mix(in srgb, var(--tone) 24%, #0e1e35);
  box-shadow: 0 0 1.25rem color-mix(in srgb, var(--tone) 32%, transparent), inset 0 1px #e2f0ff45;
}
.text-link {
  display: inline-block;
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .27em;
  text-decoration-color: #9dddf46b;
}
.text-link:hover { color: #e0f5ff; text-decoration-color: currentColor; }

[data-product-family="column"] { --product-accent: var(--product-accent-column); }
[data-product-family="interface"] { --product-accent: var(--product-accent-interface); }
[data-product-family="mount"] { --product-accent: var(--product-accent-mount); }
/* Preserve the original outline alpha 0x4d and corner alpha 0xaa. */
body[data-product-family] .panorama {
  border-color: rgb(from var(--product-accent) r g b / calc(77 / 255));
}
body[data-product-family] .panorama::after {
  border-color: rgb(from var(--product-accent) r g b / calc(170 / 255));
}

/* Panoramic header. The main title and controls stay above the image. */
.panorama {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(13.5rem, 21vw, 18rem);
  border: 1px solid #8fb9e14d;
  border-radius: var(--panel-radius);
  background: #111c31;
  box-shadow: 0 1rem 3rem #02061554;
}
[data-page="index"] .panorama {
  align-items: start;
  min-height: clamp(21rem, 28vw, 28rem);
}
.panorama-image, .panorama::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.panorama-image { object-fit: cover; object-position: 68% 65%; }
.panorama::before {
  z-index: 0;
  background:
    linear-gradient(90deg, #080f20e8, #09112499 48%, #0a152516 85%),
    linear-gradient(0deg, #070e1d63, transparent 36%);
  content: "";
}
.panorama::after {
  position: absolute;
  inset: 0 auto auto 0;
  width: 5rem;
  height: 2.35rem;
  border: solid #9dddf4aa;
  border-width: 2px 0 0 2px;
  border-radius: var(--panel-radius) 0 0;
  content: "";
  pointer-events: none;
}
.panorama-copy { position: relative; z-index: 1; padding: clamp(1.4rem, 3.9vw, 4.5rem); }
.panorama:has(.panorama-credit) { grid-template-rows: 1fr auto; }
.panorama-credit {
  position: relative;
  justify-self: end;
  margin: 0 .65rem .55rem;
  padding: .12rem .4rem;
  border-radius: .28rem;
  text-shadow: 0 1px 3px #080f20;
  color: #9aa6ba;
  font-size: .75rem;
  line-height: 1.4;
}
.panorama-kicker { margin-bottom: .95rem; }
.panorama-kicker a { text-decoration: underline; text-underline-offset: .27em; }
.panorama h1 {
  max-width: 23ch;
  margin-bottom: .9rem;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-shadow: 0 .2rem 1.3rem #060a18b0;
}
[data-page="index"] .panorama h1 { font-size: clamp(2.565rem, 4.68vw, 4.95rem); line-height: 1.035; }
.panorama h1 span { display: block; color: #b9d8ff; }
.lead { max-width: 47ch; margin: 0; color: #d1def0; font-size: clamp(1rem, 1.5vw, 1.23rem); }
:is([data-page="produkte"], [data-page="betonadapter"], [data-page="kontakt"]) .panorama-copy { min-width: 0; container: products-header / inline-size; }
:is([data-page="produkte"], [data-page="betonadapter"], [data-page="kontakt"]) .lead {
  max-width: none;
  white-space: nowrap;
  font-size: min(clamp(1rem, 1.5vw, 1.23rem), 3.3cqi);
}
@container products-header (max-width: 22.5rem) {
  :is([data-page="produkte"], [data-page="betonadapter"], [data-page="kontakt"]) .lead {
    font-size: min(1rem, 4.1cqi);
    transform: scaleX(.8);
    transform-origin: left center;
  }
}
[data-page="produkte"] .prose.detail-content h2 {
  margin: 0 0 .85rem;
  font-size: 1.3rem;
  font-weight: 700;
}
[data-page="produkte"] .detail-content p { text-align: justify; hyphens: auto; }
[data-page="2ndhand"] .panorama-copy { min-width: 0; container: second-hand-header / inline-size; }
[data-page="2ndhand"] .lead {
  max-width: none;
  white-space: nowrap;
  font-size: min(clamp(1rem, 1.5vw, 1.23rem), 3.5cqi);
}
@container second-hand-header (max-width: 22.5rem) {
  [data-page="2ndhand"] .lead {
    font-size: min(1rem, 4.4cqi);
    transform: scaleX(.8);
    transform-origin: left center;
  }
}
.panorama-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.25rem, 2.4vw, 2.15rem); }

/* Start page and product index. */
.section, .home-panels, .contact-panel, .detail-content, .catalog, .admin-layout {
  margin-top: clamp(1.25rem, 2.4vw, 2.25rem);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 1.25rem;
  margin-bottom: 1rem;
}
.section-heading h2 { margin: 0; }
.product-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
[data-page="index"] .glass { background: var(--surface); backdrop-filter: none; }
[data-page="index"] .panorama-copy {
  --home-top-inset: clamp(1.1rem, 1.6vw, 1.95rem);
  --home-inline-inset: clamp(1.4rem, 3.9vw, 4.5rem);
  min-width: 0;
  padding-block: var(--home-top-inset) clamp(1.35rem, 2.3vw, 2.75rem);
  padding-inline: var(--home-inline-inset);
}
[data-page="index"] .panorama::before {
  --moon-backdrop: radial-gradient(ellipse 16rem 9rem at left top, #020307 45%, transparent);
  background: var(--moon-backdrop),
    linear-gradient(90deg, #070e1efc 0%, #080f20f2 30%, #091124ac 50%, transparent 81%);
}
.home-brand {
  display: grid;
  width: min(100%, clamp(17rem, 32vw, 29rem));
  margin-inline-start: calc(var(--home-top-inset) - var(--home-inline-inset));
  margin-bottom: clamp(.8rem, 1.2vw, 1.3rem);
  container-type: inline-size;
}
.home-brand > * { grid-area: 1 / 1; align-self: start; }
.home-logo { width: 100%; }
.home-brand .panorama-kicker {
  /* Keep the tagline in the clear space below the lettering, to the right of the Moon. */
  margin: 17.7cqi 1% 0 34.5%;
  font-size: clamp(.625rem, 2.7cqi, .78rem);
  line-height: 1.25;
}
.home-panorama-text { width: fit-content; }
.home-panorama-text .lead {
  /* Let the heading set the available width. */
  container-type: inline-size;
  max-width: none;
  white-space: nowrap;
}
.home-panorama-text .lead span { font-size: min(1.23rem, 3.35cqi); }
.sortiment-slider { position: relative; min-width: 0; }
.slider-controls { display: contents; }
.slider-controls button {
  color: #c7e9f2b3;
  cursor: pointer;
}
.slider-previous, .slider-next {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 5rem;
  padding: .35rem;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 1px 4px #020a18);
  transition: color .25s;
}
.slider-previous { left: -.65rem; }
.slider-next { right: -.65rem; }
.slider-controls svg { width: 2.25rem; height: 3.75rem; pointer-events: none; }
.slider-controls button:hover { color: #e4f7ff; }
#sortiment-karten {
  padding: 2px;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
#sortiment-karten.is-looping { scroll-snap-type: none; overflow-anchor: none; }
#sortiment-karten::-webkit-scrollbar { display: none; }
#sortiment-karten .product-card {
  display: flex;
  grid-column: auto;
  min-width: 0;
  scroll-snap-align: start;
}
#sortiment-karten .product-card:is(:hover, :focus-visible) { transform: none; }
@media (max-width: 560px) {
  #sortiment-karten { grid-auto-columns: 100%; }
}
.product-card {
  --tone: var(--product-accent);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .65rem;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.product-card:hover, .product-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tone) 70%, transparent);
  box-shadow: 0 .7rem 2rem #0006, 0 0 1.55rem color-mix(in srgb, var(--tone) 15%, transparent);
}
.product-card::before, .feature-panel:is([href="galerie.html"], [href="2ndhand.html"])::before {
  position: absolute;
  top: 0;
  left: 1.15rem;
  width: 3.65rem;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--tone);
  box-shadow: 0 0 .75rem var(--tone);
  opacity: .8;
  content: "";
}
.product-image {
  height: clamp(10rem, 14.4vw, 16.25rem);
  overflow: hidden;
  border: 1px solid #8eadd32e;
  border-radius: .7rem;
  background: #080f1c;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-card:is([href="konisch.html"], [href="rundrohr.html"], [href="knicksaeulen.html"]) .product-image {
  background: radial-gradient(ellipse at 50% 40%, #26354a, #0a1322 75%);
}
.product-card:is([href="konisch.html"], [href="rundrohr.html"], [href="knicksaeulen.html"]) img { object-fit: contain; }
[data-page="produkte"] .glass { background: var(--surface); backdrop-filter: none; }
:is([data-page="produkte"], [data-page="index"]) .product-card:is([href="konisch.html"], [href="rundrohr.html"], [href="knicksaeulen.html"]) .product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .55rem;
}
:is([data-page="produkte"], [data-page="index"]) .product-card:is([href="konisch.html"], [href="rundrohr.html"], [href="knicksaeulen.html"]) img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: .55rem;
}
.card-copy { padding: .95rem .65rem .55rem; }
.card-copy :is(h2, h3) { margin-bottom: .35rem; color: var(--ink); font-size: 1.2rem; letter-spacing: 0; }
.card-copy p { margin: 0; color: var(--muted); }

.home-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.feature-panel {
  --tone: var(--content-accent-gallery);
  display: grid;
  grid-template-columns: 33% minmax(0, 1fr);
  border-top-color: color-mix(in srgb, var(--tone) 60%, transparent);
  overflow: hidden;
}
.feature-warm { --tone: var(--content-accent-second-hand); }
/* Card outline alpha remains 0x38 from --line; gallery top retains its 60% mix. */
.product-card {
  border-color: rgb(from var(--product-accent) r g b / calc(56 / 255));
}
.feature-panel:is([href="galerie.html"], [href="2ndhand.html"])::before { z-index: 1; }
.feature-panel[href="2ndhand.html"] { position: relative; }
.feature-panel[href="galerie.html"] {
  position: relative;
  border-color: rgb(from var(--content-accent-gallery) r g b / calc(56 / 255));
  border-top-color: color-mix(in srgb, var(--content-accent-gallery) 60%, transparent);
}

.feature-media { min-height: 10rem; background: #091225; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 31%; }
.feature-copy { align-self: center; padding: clamp(1rem, 1.8vw, 1.75rem); }
.feature-copy h2 { font-size: clamp(1.32rem, 1.8vw, 1.72rem); }
.feature-copy p, .contact-panel p { color: var(--muted); }
.feature-copy .text-link { color: var(--tone); }
.feature-panel[href]:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--tone) 70%, transparent);
  box-shadow: 0 .7rem 2rem #0006, 0 0 1.55rem color-mix(in srgb, var(--tone) 15%, transparent);
}


.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--gap);
  padding: var(--panel-padding);
}
.contact-panel h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.contact-panel p { margin-bottom: 0; }
.contact-actions { display: flex; justify-content: flex-end; align-items: center; gap: .85rem; flex-wrap: wrap; }
.contact-actions .text-link { overflow-wrap: anywhere; }
.contact-full { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
.contact-full h2 { margin-top: .4rem; }
[data-page="kontakt"] .contact-full { background: var(--surface); backdrop-filter: none; }
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
  padding: 0 1rem 1rem;
  background: var(--inner);
  border: 1px solid var(--line);
  border-radius: .8rem;
}
.contact-details > a:not(.text-link), .contact-details .postal-address {
  padding-block: .8rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.contact-details > a:first-child, .contact-details .postal-address, .contact-details .text-link { grid-column: 1 / -1; }
.contact-details > a:hover { color: var(--cyan); }
.contact-details small { display: block; color: var(--muted); font-size: .82rem; }
.contact-details .text-link { margin-top: .8rem; }
.contact-panel .notice {
  border-left: 2px solid var(--apricot);
  padding-inline-start: .9rem;
  margin-top: 1.25rem;
}

/* Product detail, gallery and legal pages. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
.gallery-photo {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: clamp(.75rem, 1vw, 1.125rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: linear-gradient(#070f1b69, #070f1b69), var(--surface);
  box-shadow: inset 0 1px #c8e7ff0d, 0 .35rem 1.3rem #030e1d38;
  cursor: zoom-in;
}
.gallery-photo:is(:hover, :focus-visible) { border-color: #a3cce692; }
.gallery-photo.landscape { grid-column: span 3; }
.gallery-photo.portrait { grid-column: span 2; }
.gallery-photo.wide { grid-column: 1 / -1; }
 .gallery-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.gallery-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: .7rem;
}
.gallery-photo.landscape .gallery-image { height: clamp(12rem, 24vw, 26rem); }
.gallery-photo.portrait .gallery-image { height: clamp(17rem, 31vw, 31rem); }
.gallery-photo.wide img { max-height: 37rem; }
.detail-content { padding: var(--panel-padding); }
[data-page="impressum"] .detail-content { background: var(--surface); backdrop-filter: none; }
.prose.detail-content .legal-heading {
  margin: 0 0 .85rem;
  font-size: 1.3rem;
  font-weight: 700;
}
[data-page="impressum"] .detail-content :is(p, li) {
  text-align: justify;
  hyphens: auto;
}
[data-page="impressum"] .detail-content section:not(.legal-break) > h2,
[data-page="impressum"] .detail-content h3 {
  padding-block-start: 1lh;
}
[data-page="impressum"] #agb > h2 + h3 {
  padding-block-start: 0;
}
[data-page="impressum"] .detail-content .legal-break {
  padding-block-start: 2lh;
}
.legal-justified { text-align: justify; hyphens: auto; }
.legal-hosting { text-align: left; }
.legal-hosting p { margin: 0; }
.legal-hosting a { display: block; width: fit-content; margin-top: 1lh; }
.prose .legal-hosting img { margin: 0; border-radius: 0; max-height: none; }

.prose .legal-subheading { margin: calc(1rem + 1lh) 0 1rem; }
.prose .legal-closing { margin: 1rem 0 0; }
.prose .legal-closing-rule { margin-top: calc(1.2rem + 1lh); }
.shipping-table-wrap { max-width: 100%; overflow-x: auto; margin: calc(1rem + 1lh) 0 1rem; }
.shipping-table { width: 100%; min-width: 34rem; border-collapse: collapse; text-align: left; }
.shipping-table caption {
  text-align: left;
  color: var(--ink);
  font-weight: 650;
  padding-bottom: .75rem;
}
.shipping-table th, .shipping-table td {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  vertical-align: top;
  hyphens: auto;
}
.shipping-table th { color: var(--ink); background: #b2cbe616; }
.shipping-table td:nth-child(2), .shipping-table td:nth-child(3) { white-space: nowrap; }
.shipping-table tbody tr:nth-child(even) { background: #b2cbe609; }
.g11-description { text-align: justify; hyphens: auto; }
.g11-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--gap);
}
.g11-photos figure { margin: 0; text-align: center; }
.g11-photos a { display: block; }
.prose .g11-photos img { width: auto; margin: 0 auto; }
.g11-photos figcaption, .eq6-photos figcaption, .verlaengerungen-photos figcaption { margin-top: .25rem; }
.verlaengerungen-detail { container: extensions / inline-size; }
.verlaengerungen-detail > p { text-align: justify; hyphens: auto; }
.verlaengerungen-contact { margin-bottom: .5lh; }
.verlaengerungen-contact + p { margin-bottom: 2lh; }
.verlaengerungen-photos {
  /* The first row's tall EQ8 photo sets the height limit for all three rows. */
  --photo-height: min(28rem, calc((100cqi - 2 * var(--gap)) / 3 * 720 / 481));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-bottom: calc(var(--gap) + 1lh);
}
.verlaengerungen-photos:last-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}
.verlaengerungen-photos figure {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  margin: 0;
  text-align: center;
}
.verlaengerungen-photos a { align-self: end; }
.prose .verlaengerungen-photos img { max-height: var(--photo-height); margin: 0 auto; }
.prose .verlaengerungen-photos:nth-of-type(2) img {
  /* Use the widest EQ6 photo to fit all three portraits at the same height. */
  height: min(var(--photo-height), calc((100cqi - 2 * var(--gap)) / 3 * 720 / 524));
  width: auto;
}
.prose.verlaengerungen-detail #produktbeispiele { margin-bottom: 1.35rem; }
@container extensions (max-width: 32rem) {
  .verlaengerungen-photos, .verlaengerungen-photos:last-child {
    --photo-height: min(28rem, calc(100cqi * 720 / 481));
    grid-template-columns: minmax(0, 1fr);
  }
  .prose .verlaengerungen-photos:nth-of-type(2) img { height: var(--photo-height); }
  .verlaengerungen-photos figure + figure { margin-top: calc(var(--gap) + 1lh); }
}
.eq6-detail { container: eq6 / inline-size; }
.knicksaeulen-detail { container: knick / inline-size; text-align: justify; hyphens: auto; }
.betonadapter-detail { container: knick / inline-size; }
.betonadapter-detail p { text-align: justify; hyphens: auto; }
.beton-pricelink { margin-bottom: calc(1.65rem + 1lh); }
.beton-photos-eq8 { --image-ratio: .619444444; }
.beton-photos-zwischenadapter { --image-ratio: .625; }
.beton-photos-eq5 { --image-ratio: .792; }
.prose .beton-photos img {
  height: min(28rem, calc((100cqi - var(--gap)) / 2 * var(--image-ratio)));
}
.betonadapter-detail .beton-photos + .beton-photos { margin-top: 3.3rem; }
@container knick (max-width: 32rem) {
  .prose .beton-photos img { height: min(28rem, calc(100cqi * var(--image-ratio))); }
}
.rundrohr-detail, .konisch-detail { container: rundrohr / inline-size; }
.rundrohr-detail p, .konisch-detail p { text-align: justify; hyphens: auto; }
.rundrohr-detail .rundrohr-before-photos, .konisch-detail .rundrohr-before-photos { padding-bottom: 1lh; margin-bottom: .5lh; }
.rundrohr-example + .rundrohr-example { margin-top: 3.3rem; }
.rundrohr-example {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: var(--gap);
  margin-block: 1.65rem;
}
.rundrohr-example > div { align-self: start; min-width: 0; }
.rundrohr-example figure { margin: 0; min-width: 0; }
.rundrohr-example a { display: block; }
.prose .rundrohr-example img { width: auto; max-width: 100%; margin: 0 auto; border-radius: .55rem; }
.prose .rundrohr-example:first-of-type img {
  height: min(28rem, calc((100cqi - 2 * var(--gap)) / 3 * 720 / 411));
}
@container rundrohr (max-width: 32rem) {
  .rundrohr-example { grid-template-columns: minmax(0, 1fr); }
  .prose .rundrohr-example:first-of-type img { height: min(28rem, calc(100cqi * 720 / 411)); }
}
.prose.detail-content.knicksaeulen-detail h2 { margin: 0 0 .85rem; }
.konisch-example-klein { --image-ratio: 1.263157895; }
.konisch-example-mittel { --image-ratio: 1.313868613; }
.konisch-example-gross { --image-ratio: 1.051094891; }
.prose .rundrohr-example.konisch-example img {
  height: min(28rem, calc((100cqi - 2 * var(--gap)) / 3 * var(--image-ratio)));
}
@container rundrohr (max-width: 32rem) {
  .prose .rundrohr-example.konisch-example img {
    height: min(28rem, calc(100cqi * var(--image-ratio)));
  }
}
.knick-section {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: calc(1.5rem + 1lh);
}
.knick-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.knick-section p { margin: 0 0 .5lh; }
.knick-section:nth-of-type(3), .knick-section:nth-of-type(4) {
  margin-top: calc(1.65rem + 1lh);
}
.knick-photos {
  display: grid;
  grid-template-columns: repeat(var(--columns, 2), minmax(0, 1fr));
  gap: 0 var(--gap);
  margin-block: 1.65rem;
}
.knick-photos-three { --columns: 3; }
.knick-photos-four { --columns: 4; }
.knick-photos figure {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  margin: 0;
  min-width: 0;
  text-align: center;
}
.knick-photos a { display: block; align-self: end; }
.prose .knick-photos img { width: auto; max-width: 100%; margin: 0 auto; border-radius: .55rem; }
.knick-photos figcaption { margin-top: .25rem; hyphens: none; }
.knick-photos:has(a[href="bilder/saeulen/kseq8_cadv201.png"]) {
  --cad-height: min(28rem, 364px, calc((100cqi - var(--gap)) / 2 * 364 / 720));
}
.prose .knick-photos a[href="bilder/saeulen/kseq8_cadv201.png"] img { height: var(--cad-height); }
.knick-section .knick-testphase { padding-top: 1lh; }
.knick-section .knick-zwischenadapter, .knick-section .knick-before-photos { padding-bottom: 1lh; }
.knick-photos + .knick-photos { margin-top: calc(1.65rem + .5lh); }
@container knick (max-width: 32rem) {
  .knick-photos:has(a[href="bilder/saeulen/kseq8_cadv201.png"]) {
    --cad-height: min(28rem, 364px, calc(100cqi * 364 / 720));
  }
}
@container knick (max-width: 32rem) {
  .knick-photos { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .knick-photos figure + figure { margin-top: calc(1.65rem + .5lh); }
}
.eq6-index { padding-inline-start: 1.65rem; }
.eq6-index li + li { margin-top: .45rem; }
.eq6-section {
  --old-cell-width: calc((100cqi - var(--gap)) / 2);
  /* Three quarters of the first polar-axis photo at its former 720:449 ratio. */
  --photo-height: min(21rem, calc(var(--old-cell-width) * .4677083), 50dvh);
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: calc(1.5rem + 1lh);
}
@container eq6 (max-width: 27rem) {
  .eq6-section { --old-cell-width: 100cqi; }
}
.prose .eq6-section h2, .prose.verlaengerungen-detail h2, .prose.knicksaeulen-detail h2 {
  margin: 0 0 .85rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.eq6-section p { text-align: justify; hyphens: auto; }
.eq6-photos, .eq6-pair { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: start; margin-block: 1rem; }
.eq6-photos { justify-content: space-evenly; }
.eq6-section figure { margin: 0; padding-block: 1lh; max-width: 100%; text-align: center; }
.eq6-section figure a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.prose .eq6-section img { display: block; margin: 0 auto; border-radius: .55rem; }
.eq6-photos img { height: var(--photo-height); width: auto; }
.eq6-photos figcaption { contain: inline-size; }
.eq6-pair > * { flex: 1 1 13rem; min-width: 0; }
.eq6-pair figure a { width: 75%; }
/* Keep the corners on the photo when the 300 × 194 kit image reaches the height limit. */
.eq6-pair a[href="bilder/eq6/lagersatz.jpg"] {
  max-width: min(100%, calc(21rem * 300 / 194), calc(50dvh * 300 / 194));
}
.prose .eq6-pair img { width: 100%; max-height: min(21rem, 50dvh); }
.eq6-repair .eq6-pair { padding-top: 1lh; row-gap: calc(var(--gap) + 1lh); }
.eq6-repair figure { padding-top: 0; }
.eq6-repair .eq6-pair img { width: auto; }
.prose { min-width: 0; color: #c7d5e7; overflow-wrap: anywhere; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: .22em; }
.prose a:hover { color: #dff5ff; }
.prose h2, .prose h3 { color: var(--ink); margin-block: 1.55rem .8rem; }
.prose > h2:first-child { margin-top: 0; }
.prose img {
  margin: .45rem auto;
  max-height: 28rem;
  object-fit: contain;
  border-radius: .55rem;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 1.4rem; }
.content-row { display: flex; align-items: flex-start; gap: var(--gap); flex-wrap: wrap; margin-bottom: 1.25rem; }
.content-cell { flex: 1 1 13rem; min-width: 0; }
.content-cell:empty { display: none; }
.content-cell:has(> hr:only-child) { flex-basis: 100%; }
.content-cell img { width: 100%; }
.prose > div > div:empty { display: none; }

/* Catalog, price search and used items. */
.catalog { min-width: 0; }
.terms {
  padding: .88rem 1.1rem;
  margin-bottom: var(--gap);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--muted);
}
.terms summary { color: var(--ink); font-weight: 650; cursor: pointer; }
.terms p { margin-top: .85rem; white-space: pre-line; }
.terms a { color: var(--cyan); text-decoration: underline; text-underline-offset: .22em; }
.catalog-controls { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(12.5rem, 1fr); gap: var(--gap); }
.catalog-controls label > span, .editor label > span {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .92rem;
}
input, select, textarea {
  width: 100%;
  padding: .66rem .8rem;
  border: 1px solid #6f8eb965;
  border-radius: .55rem;
  background: #0b172a;
  color: var(--ink);
  accent-color: var(--cyan);
}
input::placeholder, textarea::placeholder { color: var(--quiet); opacity: 1; }
textarea { resize: vertical; min-height: 9rem; }
#result-count { margin: .65rem 0 1.2rem; color: var(--muted); font-size: .88rem; }
#category-filter {
  appearance: none;
  padding-inline-end: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23d1def0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: .9rem;
}
@media (forced-colors: active) {
  #category-filter { appearance: auto; background-image: none; }
}
.price-group { margin-bottom: 1.65rem; }
.price-group:not([hidden]) ~ .price-group { margin-top: 3.3rem; }
.price-group > h2 { font-size: clamp(1.35rem, 2vw, 1.88rem); }
.catalog-note { color: var(--muted); }
.price-row, .second-item {
  display: grid;
  gap: var(--gap);
}
.price-row, .second-item, .g11-detail, .eq6-detail, .verlaengerungen-detail, .knicksaeulen-detail, .rundrohr-detail, .konisch-detail, .betonadapter-detail {
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
}
.price-row {
  grid-template-columns: 5.75rem minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: .62rem;
  padding: .82rem 1rem;
}
.price-row h3 { margin-bottom: .3rem; font-size: 1.02rem; }
.price-row p { margin-bottom: .3rem; color: var(--muted); }
.price-row small { color: var(--quiet); }
.photo-link { display: block; border-radius: .5rem; }
.photo-link:hover { outline: 1px solid var(--lavender); }
.price-photo img, .no-photo {
  width: 100%;
  height: 5.35rem;
  border-radius: .5rem;
  background: #0a1323;
  object-fit: contain;
}
.no-photo {
  display: grid;
  place-items: center;
  padding: .35rem;
  color: var(--muted);
  font-size: .81rem;
  text-align: center;
}
.price-action { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.price-action strong, .second-action strong { font: 600 1.06rem/1.4 var(--mono-font); color: var(--apricot); white-space: nowrap; }
.price-action a { color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: .24em; }
.empty-state, .admin-empty {
  padding: 2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: .75rem;
  background: var(--inner);
  color: var(--muted);
  text-align: center;
}
.second-intro p { color: var(--muted); }
.status-filters, .admin-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .85rem; }
.status-filters button, .admin-tabs button {
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--inner);
  color: var(--muted);
}
.status-filters button:is(:hover, [aria-pressed="true"]),
.admin-tabs button:is(:hover, [aria-pressed="true"]) {
  border-color: #b2a3e78f;
  background: #332d4d;
  color: #f3eaff;
  box-shadow: 0 0 .8rem #b2a3e71a;
}
.second-item {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  align-items: start;
  margin-bottom: var(--gap);
  padding: var(--panel-padding);
}
.second-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.second-photos > :first-child { grid-column: 1 / -1; }
.second-photos img {
  width: 100%;
  height: 8.5rem;
  object-fit: contain;
  background: #0a1323;
  border-radius: .5rem;
}
.second-photos > :first-child img { height: clamp(11rem, 19vw, 20rem); }
.second-copy .eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: .65rem; }
.second-copy h2 { font-size: clamp(1.25rem, 2.1vw, 1.85rem); }
.status {
  padding: .16rem .55rem;
  border-radius: 99px;
  background: #133b39;
  color: #b2ebd0;
  font: 600 .81rem/1.55 var(--body-font);
  text-transform: none;
}
.status.reserved { background: #493427; color: #ffe0b7; }
.status.sold { background: #30394c; color: #d9e2f3; }
.condition { color: var(--mint); }
.description { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.second-action { display: flex; align-items: center; gap: .85rem 1.1rem; flex-wrap: wrap; }

/* Same size, arrow, palette and edge spacing as the workshop dashboards. */
.back-to-top {
  position: fixed;
  z-index: 20;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #756184;
  border-radius: 50%;
  background: #172135fa;
  color: #dbcce5;
  box-shadow: 0 3px 14px #0003;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, color .2s;
}
.back-to-top svg { display: block; width: 22px; height: 22px; pointer-events: none; }
.back-to-top:hover { background: #352c46; color: #f5e7ff; }
.back-to-top:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.lightbox {
  max-width: min(94vw, 88rem);
  max-height: 94dvh;
  padding: 2.8rem 1.15rem 1rem;
  border: 1px solid #93b7e08c;
  border-radius: .85rem;
  background: #101b2f;
  color: var(--ink);
  box-shadow: 0 1.2rem 4rem #0009;
}
.lightbox::backdrop { background: #040914df; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; }
[data-page="eq6"] .lightbox {
  min-width: min(94vw, 88rem, calc(var(--preview-width, 0px) + 2.3rem + 2px));
}
[data-page="eq6"] .lightbox img { min-width: min(100%, var(--preview-width, 0px)); }
.lightbox img { max-width: 100%; max-height: 75dvh; min-height: 0; object-fit: contain; }
.lightbox p { max-width: 100%; overflow-wrap: anywhere; color: var(--muted); text-align: center; margin: .6rem 0 0; }
.lightbox-close { position: absolute; inset: .12rem .47rem auto auto; border: 0; padding: .2rem .6rem; background: transparent; font-size: 1.8rem; line-height: 1.25; }


/* Neutral menu text and surface colors retain their existing state values. */
[data-content-accent="second-hand"] { --content-accent: var(--content-accent-second-hand); }
[data-content-accent="gallery"] { --content-accent: var(--content-accent-gallery); }
body[data-content-accent] { --page-accent: var(--content-accent); }
.nav-item[data-content-accent] { --nav-accent: var(--content-accent); }
.nav-products a[data-product-family] { --nav-accent: var(--product-accent); }
.nav-item:focus-visible, .nav-products a:focus-visible { outline-color: var(--nav-accent); }

/* Preserve outline alpha 0x4d and corner alpha 0xaa, as on the product heroes. */
body[data-content-accent] .panorama {
  border-color: rgb(from var(--page-accent) r g b / calc(77 / 255));
}
body[data-content-accent] .panorama::after {
  border-color: rgb(from var(--page-accent) r g b / calc(170 / 255));
}
body[data-content-accent] :is(main :focus-visible, .lightbox :focus-visible) {
  outline-color: var(--page-accent);
}
body[data-content-accent] .lightbox {
  border-color: hsl(from var(--page-accent) h calc(77 / 139 * 100%) calc(371 / 510 * 100%) / calc(140 / 255));
}
body[data-content-accent] .photo-link:hover { outline-color: var(--page-accent); }
body[data-content-accent] .terms {
  border-color: rgb(from var(--page-accent) r g b / calc(56 / 255));
}
body[data-content-accent] .terms summary::marker { color: var(--page-accent); }
body[data-content-accent] .terms a { color: var(--page-accent); }

/* Original filter variants: #b2a3e78f, #b2a3e71a and #332d4d.
   Keep their original saturation, lightness and alpha, changing hue only. */
body[data-content-accent] .status-filters button {
  border-color: rgb(from var(--page-accent) r g b / calc(56 / 255));
}
body[data-content-accent] .status-filters button:is(:hover, [aria-pressed="true"]) {
  border-color: hsl(from var(--page-accent) h calc(17 / 29 * 100%) calc(197 / 255 * 100%) / calc(143 / 255));
  background: hsl(from var(--page-accent) h calc(16 / 61 * 100%) calc(61 / 255 * 100%));
  box-shadow: 0 0 .8rem hsl(from var(--page-accent) h calc(17 / 29 * 100%) calc(197 / 255 * 100%) / calc(26 / 255));
}
body[data-content-accent] .second-copy .eyebrow { color: var(--page-accent); }
body[data-content-accent] .second-action strong { color: var(--page-accent); }
body[data-content-accent] main .button {
  --tone: var(--page-accent);
  background: linear-gradient(120deg, hsl(from var(--page-accent) h calc(71 / 143 * 100%) calc(143 / 510 * 100%) / calc(250 / 255)), hsl(from var(--page-accent) h calc(9 / 17 * 100%) calc(7 / 30 * 100%) / calc(234 / 255)));
  box-shadow: 0 0 1.15rem color-mix(in srgb, var(--tone) 18%, transparent), inset 0 1px hsl(from var(--page-accent) h calc(1 / 1 * 100%) calc(149 / 170 * 100%) / calc(54 / 255));
}
body[data-content-accent] main .button:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--tone) 24%, #0e1e35);
  box-shadow: 0 0 1.25rem color-mix(in srgb, var(--tone) 32%, transparent), inset 0 1px hsl(from var(--page-accent) h calc(1 / 1 * 100%) calc(481 / 510 * 100%) / calc(69 / 255));
}
/* Original gallery-hover variant #a3cce692 retains its saturation/lightness/alpha. */
body[data-content-accent] .gallery-photo:is(:hover, :focus-visible) {
  border-color: hsl(from var(--page-accent) h calc(67 / 117 * 100%) calc(131 / 170 * 100%) / calc(146 / 255));
}

/* Administration, using the same palette and focus states. */
.admin-toolbar, .admin-actions, .form-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.admin-toolbar { margin-bottom: 1rem; }
.admin-toolbar .admin-tabs { margin: 0; }
.admin-columns { display: grid; grid-template-columns: minmax(12rem, .75fr) minmax(0, 1.6fr); gap: var(--gap); }
.admin-list { margin-top: .6rem; }
.admin-list button {
  width: 100%;
  padding: .8rem .68rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: .45rem;
  background: transparent;
  text-align: left;
}
.admin-list button:is(:hover, [aria-current="true"]) {
  background: #b6a3e328;
  box-shadow: inset 2px 0 var(--lavender);
}
.admin-list small, .setup-note, .draft-note { color: var(--muted); }
.admin-list small { display: block; }
.editor, .login-box {
  padding: var(--panel-padding);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
}
.editor h2, .login-box h2 { font-size: 1.45rem; }
.editor label, .login-box label { display: block; margin-bottom: 1rem; }
.login-box input, #admin-search { margin-top: .32rem; }
.login-box { width: min(100%, 36rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.editor .check { display: flex; align-items: center; gap: .55rem; }
.editor .check input { width: auto; }
.form-buttons { margin-top: 1rem; }
.danger {
  border: 1px solid #db898995;
  border-radius: .55rem;
  padding: .5rem .72rem;
  background: #55232358;
  color: #ffd3d3;
}
.image-editor { display: flex; flex-wrap: wrap; gap: .6rem; }
.image-editor figure { flex: 0 1 8rem; max-width: 100%; margin: 0 0 .6rem; }
.image-editor img { width: 100%; height: 5.25rem; object-fit: contain; background: var(--inner); }
.image-editor button { width: 100%; border: 1px solid var(--line); background: var(--inner); }
.upload-zone { border: 1px dashed #8ab0d580; border-radius: .55rem; padding: .85rem; text-align: center; cursor: pointer; }
.upload-zone input { margin: .5rem 0; }
.message {
  padding: .7rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #a0d9be73;
  border-radius: .55rem;
  background: #143b39;
  color: #e1f7ef;
  white-space: pre-line;
}
.message.error { border-color: #df8e8e87; background: #52282f; color: #ffe8e8; }
.draft-note { margin: .85rem 0 0; }

@media (min-width: 1081px) {
  [data-page="produkte"] .product-cards .product-card:last-child:nth-child(3n+1) { grid-column: span 3; display: grid; grid-template-columns: 32% minmax(0, 1fr); align-items: center; }
  [data-page="produkte"] .product-card:last-child:nth-child(3n+1) .card-copy { padding: 1.25rem; }
}

@media (561px <= width <= 1080px) {
  .product-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
  .product-card:last-child:nth-child(odd) .card-copy { padding: 1.25rem; }
}

@media (max-width: 1080px) {
  .product-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-media { min-height: 0; height: 10rem; }
}

@media (max-width: 850px) {
  :root { --rail-width: 0px; }
  [id] { scroll-margin-top: 5.4rem; }
  .site-sidebar {
    position: sticky;
    inset: 0 0 auto;
    width: auto;
    max-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    border: 0;
    border-bottom: 1px solid #a7cee58c;
    padding: .55rem var(--gutter);
    background: linear-gradient(110deg, #0a1b2d55, #10253a42);
    box-shadow: 0 1px #b7deef1a;
  }
  body:has(.back-to-top:not([hidden])) .site-sidebar {
    background: linear-gradient(110deg, #0a1b2dd9, #10253acc);
    backdrop-filter: blur(6px);
  }
  html:has(.navigation.open) { overflow: hidden; }
  .site-sidebar:has(.navigation.open) {
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .site-sidebar:has(.navigation.open) ~ .site-content { visibility: hidden; }
  .site-sidebar:not(.menu-ready) { position: static; max-height: none; overflow: visible; }
  .site-sidebar:not(.menu-ready) .navigation { max-height: none; overflow: visible; }
  .mobile-home-link { display: inline-block; justify-self: start; font-weight: 600; }
  .menu-ready .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.65rem;
    padding: .46rem .68rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: #152641;
    font-weight: 600;
  }
  .navigation {
    grid-column: 1 / -1;
    max-height: calc(100dvh - 5rem);
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    justify-content: flex-start;
    gap: .65rem;
    padding: .15rem .35rem .35rem;
  }
  .menu-ready .navigation:not(.open) { display: none; }
  .navigation.open { align-self: stretch; max-height: none; }
  .navigation.open .nav-footer { margin-top: auto; }
  .nav-links, .nav-footer { flex: none; }
  .nav-products a { min-height: 2.38rem; }
  .nav-item { font-size: .94rem; gap: .55rem; }
  .nav-footer { padding-top: .5rem; }
  .nav-footer p { margin-bottom: .25rem; }
  .panorama-image { object-position: 71% 58%; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
  .admin-columns { grid-template-columns: 1fr; }
  .admin-list { max-height: 14rem; overflow: auto; }
}

@media (561px <= width <= 850px) {
  .nav-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --gutter: .85rem; --panel-radius: .9rem; }
  .panorama-copy { padding: 1.35rem 1.05rem; }
  [data-page="index"] .panorama-copy { --home-inline-inset: 1.05rem; }
  .panorama h1 { font-size: clamp(2rem, 8.4vw, 2.65rem); }
  [data-page="index"] .panorama h1 { font-size: clamp(2.16rem, 9vw, 2.925rem); }
  .panorama::before { background: linear-gradient(90deg, #070f20e8, #0a14289c); }
  [data-page="index"] .panorama::before {
    background: var(--moon-backdrop),
      linear-gradient(180deg, #070e1efa 0%, #080f20f2 27%, #091124ac 61%, #09112466);
  }
  .panorama::after { width: 3.6rem; height: 1.7rem; }
  .panorama-actions { gap: .62rem; }
  .product-cards, .home-panels, .catalog-controls, .second-item, .form-grid { grid-template-columns: 1fr; }
  .product-image { height: clamp(10rem, 46vw, 14rem); }
  .section-heading .button { min-height: 2.5rem; }
  .feature-panel { grid-template-columns: 32% minmax(0, 1fr); }
  .feature-media { height: auto; }
  .feature-copy { padding: .88rem; }
  .detail-content { padding: .95rem; }
  .content-cell { flex-basis: min(100%, 11rem); }
  .price-row {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    align-items: start;
    gap: .65rem;
    padding: .65rem;
  }
  .price-photo img, .no-photo { height: 3.75rem; }
  .price-action { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .second-photos img { height: 6.5rem; }
  .second-photos > :first-child img { height: 12rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-photo.landscape { grid-column: 1 / -1; }
  .gallery-photo.portrait { grid-column: span 1; }
  .gallery-photo.landscape .gallery-image { height: auto; }
  .gallery-photo.portrait .gallery-image { height: clamp(10rem, 53vw, 16rem); }
  .form-grid { gap: 0; }
}

@media (max-width: 520px) {
  .back-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .shooting-star { display: none; }
  .back-to-top, .nav-item, .button, .subtle-button, .product-card { transition: none; }
  .product-card:is(:hover, :focus-visible) { transform: none; }
}

@media print {
  :root { color-scheme: light; background: #fff; color: #111; --ink: #111; --muted: #333; --line: #bbb; }
  .site-sidebar, .back-to-top, .night-sky, .panorama-image, .panorama-actions, .panorama-credit,
  .catalog-controls, .status-filters, .price-action a, .lightbox, .skip { display: none !important; }
  .site-content { margin: 0; padding: 0; }
  .panorama { min-height: 0 !important; box-shadow: none; background: #fff; }
  .panorama::before, .panorama::after, .shooting-star { display: none; }
  .panorama-copy { padding: .6rem; }
  [data-page="index"] .panorama-copy { --home-top-inset: .6rem; --home-inline-inset: .6rem; }
  .panorama h1, .panorama h1 span, .lead, .eyebrow { color: #111; text-shadow: none; }
  .glass, .terms, .price-row, .second-item { background: #fff; box-shadow: none; }
  .price-row, .second-item { break-inside: avoid; }
  .price-action strong, .second-action strong, .prose { color: #111; }
}

