@charset "UTF-8";
/* =============================================================================
   joomla.css – Ergänzungen für den Joomla-Betrieb
   (Systemmeldungen, Altinhalte aus K2/Bootstrap 3, Galerie-Video, Kachel-Video,
   "Mehr laden", Anfrageformular, Suche, Kontaktseite)
   Design-Tokens kommen aus style.css.
   ========================================================================== */

/* --- Systemmeldungen ---------------------------------------------------- */
#system-message-container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter, 1.25rem); }
#system-message-container:empty { display: none; }
joomla-alert, #system-message-container .alert {
  display: block;
  margin: var(--space-md) 0;
  padding: var(--space-md) var(--space-lg);
  border: var(--border-hair);
  border-left: 3px solid var(--color-primary);
  background: var(--color-light);
  color: var(--color-text);
  font-size: var(--fs-small);
}
joomla-alert[type="danger"], joomla-alert[type="error"] { border-left-color: #8a3b3b; }
joomla-alert .alert-heading { display: none; }
joomla-alert .joomla-alert--close, joomla-alert button { float: right; border: 0; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--color-text-muted); }

/* --- Altinhalte (K2-Import, Bootstrap-3-Markup) ------------------------- */
.legacy-content img { max-width: 100%; height: auto; }
.legacy-content .img-responsive { display: block; max-width: 100%; height: auto; }
.legacy-content .center-block { display: block; margin-inline: auto; }
.legacy-content .pull-left { float: left; margin: 0 var(--space-lg) var(--space-md) 0; }
.legacy-content .pull-right { float: right; margin: 0 0 var(--space-md) var(--space-lg); }
.legacy-content .blocksatz { text-align: justify; hyphens: auto; }
.legacy-content .mb30 { margin-bottom: 30px; }
.legacy-content .mb60 { margin-bottom: 60px; }
.legacy-content .mt30 { margin-top: 30px; }
.legacy-content .mt60 { margin-top: 60px; }
.legacy-content .row { display: flex; flex-wrap: wrap; margin-inline: calc(var(--space-md) * -1); }
.legacy-content .row > [class*="col-"] { padding-inline: var(--space-md); width: 100%; }
.legacy-content .col-xs-12 { flex: 0 0 100%; max-width: 100%; }
.legacy-content .col-xs-6 { flex: 0 0 50%; max-width: 50%; }
.legacy-content .col-xs-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.legacy-content .col-xs-3 { flex: 0 0 25%; max-width: 25%; }
@media (min-width: 768px) {
  .legacy-content .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  .legacy-content .col-sm-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .legacy-content .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .legacy-content .col-sm-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .legacy-content .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .legacy-content .col-sm-offset-2 { margin-left: 16.666%; }
}
@media (min-width: 992px) {
  .legacy-content .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .legacy-content .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .legacy-content .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .legacy-content .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .legacy-content .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .legacy-content .col-md-offset-2 { margin-left: 16.666%; }
}
.legacy-content .container { padding-inline: 0; }
.legacy-content section, .legacy-content article { margin-bottom: var(--space-xl); }
.legacy-content figure { margin: 0 0 var(--space-lg); }
.legacy-content figcaption { margin-top: var(--space-sm); }
.legacy-content h1, .legacy-content .h1 { font-size: var(--fs-h1); text-align: center; }
.legacy-content .embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.legacy-content .embed-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.legacy-content iframe { max-width: 100%; }
.legacy-content::after { content: ""; display: table; clear: both; }

.article-body { margin-inline: auto; }
.article-lead { margin: 0 auto var(--space-xl); max-width: 720px; }
.article-lead__media img { width: 100%; height: auto; }
.article-section { padding-block: var(--space-2xl); }
.article-section__media { margin: 0 0 var(--space-xl); }
.article-section__media img { display: block; width: 100%; height: auto; max-height: 90vh; object-fit: cover; }
.article-section__body { max-width: var(--container-narrow); }

/* --- Kategorie-Raster / Mehr laden -------------------------------------- */
.card-grid__status { margin-top: var(--space-md); font-size: var(--fs-small); color: var(--color-text-muted); }
.card-grid__more .btn-js.is-loading { opacity: .6; pointer-events: none; }
.card-grid__item.is-appended { animation: jws-fade-up .6s var(--ease-lux, ease) both; }
@keyframes jws-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card-grid__item.is-appended { animation: none; } }
/* Kachelraster: Spalten aus dem Menüpunkt (--cols), unvollständige letzte Reihe mittig */
.card-grid__items {
  --c: var(--cols, 4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--grid-gap);
}
.card-grid__items > * {
  flex: 0 0 calc((100% - (var(--c) - 1) * var(--grid-gap)) / var(--c));
  min-width: 0;
}
@media (max-width: 991.98px) { .card-grid__items { --c: var(--cols-md, 3); } }
@media (max-width: 767.98px) { .card-grid__items { --c: var(--cols-sm, 2); } }

/* --- Produktbühne: Video-Folie ------------------------------------------ */
.stage__slide--video { background: var(--color-light); }
.stage__slide--video img { opacity: .9; }
.stage__play {
  position: absolute; inset: 50% auto auto 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border: 1px solid rgba(255,255,255,.85); border-radius: 50%;
  background: rgba(51,51,51,.55); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--dur-fast, .2s) ease, transform var(--dur-fast, .2s) ease;
}
.stage__play svg { width: 28px; height: 28px; margin-left: 4px; }
.stage__play:hover, .stage__play:focus-visible { background: rgba(51,51,51,.8); transform: scale(1.05); }
.stage__slide iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage__slide.is-playing .stage__play { display: none; }
.stage__side:empty { visibility: hidden; }
.product-intro .lead p:last-child,
.product-intro__text p:last-child { margin-bottom: 0; }
/* Produktbeschreibung in normaler Textgröße wie auf allen anderen Seiten */
.product-intro__text { font-size: var(--fs-body); line-height: 1.8; font-weight: var(--fw-light); color: var(--color-text); }
.tag-row span { white-space: nowrap; }

/* --- Kachelmosaik: Video, Embed, Formate -------------------------------- */
.tile--portrait { aspect-ratio: var(--ratio-teaser); }
.tile--static { display: block; position: relative; overflow: hidden; }
.tile--static > img { width: 100%; height: 100%; object-fit: cover; }
.tile__embed { border: 0; }
.tile__embed { opacity: 0; transition: opacity .8s ease; pointer-events: none; transform: scale(1.2); }
.tile__embed.is-ready { opacity: 1; }
div.tile { cursor: default; }

/* --- Navigation-Details ------------------------------------------------- */
.mega-card__media--empty { display: block; aspect-ratio: 1 / 1; background: var(--color-light); }
.offcanvas-lang { margin-top: var(--space-xl); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-nav); text-transform: uppercase; }
.offcanvas-meta p { margin: 0 0 .5em; }
.main-nav__item.is-active > .main-nav__link::after { transform: scaleX(1); }

/* --- Footer-Module ------------------------------------------------------ */
.footer-module p { margin: 0 0 1em; }
.footer-module address { font-style: normal; }
.footer-bottom .mod-custom, .footer-bottom p { display: inline; margin: 0; }
.footer-legal a + a { margin-left: var(--space-md); }

/* --- Anfrageformular ---------------------------------------------------- */
.form-js__choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.form-js__choice legend { float: left; width: auto; margin: 0 var(--space-md) 0 0; padding: 0; font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--color-text-muted); }
.form-js__choice label { display: inline-flex; gap: .4em; align-items: center; text-transform: none; letter-spacing: 0; font-size: var(--fs-small); margin: 0; }
.form-js__choice input { accent-color: var(--color-primary); }
.form-js__consent label { text-transform: none !important; letter-spacing: 0 !important; font-size: var(--fs-small) !important; color: var(--color-text-muted); }
.form-js__note { margin: 0; font-size: var(--fs-small); color: var(--color-text-muted); }
.form-js__result { padding: var(--space-md) var(--space-lg); border-left: 3px solid var(--color-primary); background: var(--color-light); margin-bottom: var(--space-md); outline: none; }
.form-js__result.is-error { border-left-color: #8a3b3b; }
.form-js [type="submit"]:disabled { opacity: .6; }

/* --- Kontaktseite (com_contact) & Suche (com_finder) -------------------- */
.com-contact, .com-finder { max-width: var(--container-max); margin: 0 auto; padding: var(--space-2xl) var(--gutter, 1.25rem); }
.com-contact h1, .com-finder h1 { font-family: var(--font-display); font-weight: var(--fw-light); text-align: center; }
.com-contact .form-control, .com-finder .form-control, .com-contact input[type="text"], .com-contact input[type="email"], .com-contact textarea {
  width: 100%; padding: .8em 1em; border: 1px solid var(--color-border-strong); border-radius: 0; background: #fff; font: inherit;
}
.com-contact .btn, .com-finder .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 2.2em; border: 1px solid var(--color-primary); border-radius: 0;
  background: var(--color-primary); color: #fff; font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
}
.com-finder .result__item { padding-block: var(--space-md); border-bottom: var(--border-hair); list-style: none; }
.com-finder .result__title-text { font-family: var(--font-display); font-size: var(--fs-h4); }
.com-finder .result__list { padding: 0; }

/* --- Paginierung (Fallback ohne JS) ------------------------------------- */
.pagination { display: flex; justify-content: center; gap: var(--space-2xs); list-style: none; padding: 0; margin: var(--space-2xl) 0 0; }
.pagination .page-link { display: block; padding: .5em .9em; border: var(--border-hair); color: var(--color-text); }
.pagination .active .page-link { background: var(--color-primary); color: #fff; }

/* Mega-Menü: feste Spaltenzahl (7) in allen Dropdowns → Schmuckkreationen und
   Highlights haben gleich große Bilder; fehlende Plätze bleiben rechts frei */
.megamenu__grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
@media (min-width: 1200px) {
  .megamenu__grid[style*="--mega-cols"] { grid-template-columns: repeat(var(--mega-cols), minmax(0, 1fr)); }
}

/* =============================================================================
   Kachelmosaik (Modul) – Raster mit 6 Spalten
   Breite 1/1, 2/3, 1/2, 1/3 gilt auf ALLEN Bildschirmgrößen (keine Umbrüche).
   Die Höhe kommt aus dem Bild: Desktop- und Mobilbild (über <picture>) dürfen
   verschiedene Seitenverhältnisse haben – z. B. 16:9 am Desktop, 1:1 mobil.
   In einer Reihe bestimmt das höchste Bild die Höhe; die übrigen Kacheln
   werden auf diese Höhe gestreckt und ihr Bild per object-fit beschnitten,
   damit keine Lücken entstehen.
   ========================================================================== */
.mosaic--grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}
.mosaic--grid .tile--w-full { grid-column: span 6; }
.mosaic--grid .tile--w-2-3  { grid-column: span 4; }
.mosaic--grid .tile--w-1-2  { grid-column: span 3; }
.mosaic--grid .tile--w-1-3  { grid-column: span 2; }

.mosaic--grid .tile { aspect-ratio: auto; }
.mosaic--grid .tile > picture { position: relative; display: block; height: 100%; }
.mosaic--grid .tile > picture > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Video/Embed liegen über dem Vorschaubild und übernehmen dessen Format */
.mosaic--grid .tile__video,
.mosaic--grid .tile__embed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* Ohne Bild gibt es kein Format – dann 16:9 */
.mosaic--grid .tile--noimage { aspect-ratio: 16 / 9; }

/* Beschriftung wächst mit der Kachel – auch kleine 1/3-Kacheln auf dem
   Smartphone bleiben lesbar, große Kacheln werden nicht überdimensioniert */
.mosaic--grid .tile { container-type: inline-size; }
.mosaic--grid .tile__veil, .mosaic--grid .tile__caption { z-index: 2; }
.mosaic--grid .tile__caption { z-index: 3; padding: clamp(4px, 4cqi, var(--space-md)); inset: clamp(4px, 2.2cqi, 10px); }
.mosaic--grid .tile__title { font-size: clamp(.75rem, 4.2cqi + .3rem, 2rem); letter-spacing: clamp(.04em, 1cqi, .12em); }
.mosaic--grid .tile__meta { font-size: clamp(.5625rem, 2cqi + .2rem, var(--fs-eyebrow)); }
@media (hover: hover) {
  .mosaic--grid .tile__veil { inset: clamp(4px, 2.2cqi, 10px); }
}

/* Kachel-Medien: Video blendet ein, sobald es läuft */
.tile__video { opacity: 0; transition: opacity .8s ease, transform 1.6s var(--ease-lux, ease); }
.tile__video.is-ready { opacity: 1; }
.tile--video:hover .tile__poster img,
.tile--video:hover .tile__video { transform: scale(1.035); }

/* =============================================================================
   Lightbox (PhotoSwipe) – heller, ruhiger Auftritt passend zur Marke
   ========================================================================== */
.pswp {
  --pswp-bg: #fff;
  --pswp-placeholder-bg: var(--color-light, #f4f3f1);
  --pswp-icon-color: #3c3c3c;
  --pswp-icon-color-secondary: #fff;
  --pswp-icon-stroke-color: #fff;
  --pswp-icon-stroke-width: 0;
  --pswp-error-text-color: #3c3c3c;
  font-family: var(--font-sans);
}
.pswp__counter { color: #565857; font-size: var(--fs-eyebrow); letter-spacing: var(--ls-nav); text-shadow: none; opacity: 1; }
.pswp__button { opacity: .8; }
.pswp__button:hover { opacity: 1; }
.pswp__jws-caption {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  max-width: min(90vw, 60ch); text-align: center;
  font-family: var(--font-display); font-weight: var(--fw-light);
  font-size: clamp(1rem, .9rem + .5vw, 1.375rem); letter-spacing: .12em; text-transform: uppercase;
  color: #3c3c3c; pointer-events: none;
  transition: opacity var(--dur-base, .3s) ease;
}
.pswp--ui-visible .pswp__jws-caption { opacity: 1; }
.pswp:not(.pswp--ui-visible) .pswp__jws-caption { opacity: 0; }

/* Zoom-Hinweis auf der Produktbühne */
.stage__zoom { display: block; position: relative; cursor: zoom-in; height: 100%; color: inherit; }
.stage__zoom img { display: block; }
.stage__zoom-hint {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.85); color: #3c3c3c;
  opacity: 0; transform: scale(.9);
  transition: opacity var(--dur-base, .3s) var(--ease-soft, ease), transform var(--dur-base, .3s) var(--ease-soft, ease);
}
.stage__zoom-hint svg { width: 20px; height: 20px; }
.stage__zoom:hover .stage__zoom-hint, .stage__zoom:focus-visible .stage__zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .stage__zoom-hint { opacity: .9; transform: none; } }

/* Kampagnen-Raster: Zoom-Cursor statt Link */
.card-grid__items--lightbox .product-card { cursor: zoom-in; }

/* Nur die aktive Folie ist klickbar (die übrigen liegen unsichtbar darüber) */
.stage__slide { pointer-events: none; }
.stage__slide.is-active { pointer-events: auto; z-index: 1; }

/* =============================================================================
   Mobilmenü: Unterkategorien mit Bildern als „Story-Kreise“ (wie Instagram)
   Horizontal wischbar, rastet je Kreis ein. Der Streifen läuft bis an den
   rechten Rand des Menüs, sodass der letzte sichtbare Kreis angeschnitten ist –
   das zeigt, dass es weitergeht. Nur im Off-Canvas, das Desktop-Mega-Menü
   bleibt unverändert.
   ========================================================================== */
.offcanvas-sub--images:not([hidden]) {
  --story-gap: 14px;
  --story-size: calc((100% - 3 * var(--story-gap)) / 4.4);   /* ≈ 4½ Kreise sichtbar */
  display: flex;
  gap: var(--story-gap);
  margin: 0 calc(var(--space-lg) * -1) 0 0;                  /* bis an den rechten Rand */
  padding: var(--space-2xs) var(--space-lg) var(--space-lg) 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.offcanvas-sub--images::-webkit-scrollbar { display: none; }

.offcanvas-sub--images > li {
  flex: 0 0 var(--story-size);
  min-width: 0;
  margin: 0 !important;
  scroll-snap-align: start;
}
.offcanvas-sub--images a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}
.offcanvas-sub--images .mega-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-light, #f4f3f1);
  /* feiner Ring mit weißem Abstand */
  box-shadow: 0 0 0 2px var(--color-background, #fff), 0 0 0 3px var(--color-border-strong, #d9d6d1);
  transition: box-shadow var(--dur-base, .3s) var(--ease-soft, ease), transform var(--dur-base, .3s) var(--ease-soft, ease);
}
.offcanvas-sub--images .mega-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offcanvas-sub--images a:active .mega-card__media { transform: scale(.96); }
.offcanvas-sub--images a[aria-current="page"] .mega-card__media {
  box-shadow: 0 0 0 2px var(--color-background, #fff), 0 0 0 3.5px var(--color-primary, #3c3c3c);
}
.offcanvas-sub--images .mega-card__label {
  display: block;
  width: calc(100% + var(--story-gap));   /* Text darf in den Zwischenraum laufen */
  margin-inline: calc(var(--story-gap) / -2);
  font-size: .5625rem;              /* 9 px */
  line-height: 1.35;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-text-muted, #565857);
  hyphens: auto;
  -webkit-hyphenate-limit-before: 5;
  hyphenate-limit-chars: 12 5 5;    /* nur lange Wörter trennen */
}

/* =============================================================================
   Editorial-Seiten mit Sektionen (Unternehmen, Service, Highlights)
   Einheitlicher Rhythmus, einheitliche Überschriften, Bildeffekte wie auf der
   Startseite. Altes K2-Markup (text-center, mb30/mb60, blocksatz) wird hier
   neutralisiert, damit alle Sektionen gleich aussehen.
   ========================================================================== */
.item-page--sections .page-head { padding-bottom: 0; }
.item-page--sections .page-head + .section,
.item-page--sections .page-head + .article-section { padding-top: var(--section-y-tight); }

/* Abstände zwischen den Sektionen: einheitlich "tight", Bildbänder ohne Doppelabstand */
.article-section.section { padding-block: var(--section-y-tight); }
.article-section--band + .article-section--band { padding-top: 0; }
.article-section--quote { margin-block: var(--section-y-tight); }
.item-page--sections > .article-section:last-of-type { margin-bottom: var(--section-y-tight); }

/* Einheitliche Überschriften in allen Sektionen */
.article-section:not(.article-section--module) h2, .article-section:not(.article-section--module) h3, .article-section:not(.article-section--module) h4,
.item-page--sections .article-body h2, .item-page--sections .article-body h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: none;
  margin: 0 0 var(--space-lg);
}
.article-section:not(.article-section--module) .eyebrow { margin-bottom: var(--space-sm); }
.article-section p:last-child { margin-bottom: 0; }

/* Altes Markup im Editorial: linksbündig, normale Abstände, kein Blocksatz */
.article-section--editorial .legacy-content .text-center,
.article-section--editorial .legacy-content [style*="text-align: center"] { text-align: left !important; }
.article-section .legacy-content .mb30,
.article-section .legacy-content .mb60,
.article-section .legacy-content .mt30,
.article-section .legacy-content .mt60 { margin-top: 0; margin-bottom: var(--space-lg); }
.article-section .blocksatz { text-align: inherit; hyphens: manual; }
.article-section--editorial .legacy-content img { margin-inline: 0 !important; }
.article-section--editorial .legacy-content .row { display: block; margin: 0; }
.article-section--editorial .legacy-content .row > [class*="col-"] { max-width: none; padding: 0; }

/* Nur-Text-Sektion zentriert */
.article-section--text { text-align: center; }
.article-section--text p { max-width: 60ch; margin-inline: auto; }

/* Zitat im Bildband */
.article-section--quote .quote,
.article-section--quote blockquote { color: #fff; max-width: 26ch; margin: 0 auto; font-family: var(--font-display); font-weight: var(--fw-light); font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem); line-height: 1.3; }
.article-section--quote .quote__source { color: rgba(255,255,255,.75); }
.article-section--quote h2, .article-section--quote h3 { color: #fff; }

/* Personenkarte (Portrait mit Name/Funktion) */
.person-card { margin: 0; max-width: 360px; }
.person-card .media { margin-bottom: var(--space-lg); }
.person-card figcaption p { color: var(--color-text-muted); line-height: 1.8; }

/* Buttons im Inhalt – auch alte "readon"-Links aus K2 */
.article-actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.article-section--text .article-actions, .article-body .article-actions { justify-content: center; }
.legacy-content a.readon {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 1.15em 2.4em; border: 1px solid var(--color-primary);
  color: var(--color-primary); font-family: var(--font-sans);
  font-size: var(--fs-button); letter-spacing: var(--ls-button); text-transform: uppercase; line-height: 1;
  text-decoration: none; transition: background var(--dur-base) var(--ease-lux), color var(--dur-base) var(--ease-lux);
}
.legacy-content a.readon:hover, .legacy-content a.readon:focus-visible { background: var(--color-primary); color: #fff; }

/* Download-Kennzeichnung: Pfeil-nach-unten-Symbol + Dateityp */
.btn-js--download > span::after,
.legacy-content a.readon[href$=".pdf"]::before {
  content: "";
  display: inline-block;
  width: 1.15em; height: 1.15em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M12 4v11m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M12 4v11m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
  vertical-align: -0.2em;
}
.btn-js--download > span { display: inline-flex; align-items: center; gap: .7em; flex-direction: row-reverse; }
.btn-js--download:hover > span::after { animation: jws-nudge .6s var(--ease-lux) 1; }
@keyframes jws-nudge { 50% { transform: translateY(3px); } }
.file-meta { font-size: var(--fs-eyebrow); letter-spacing: var(--ls-nav); text-transform: uppercase; color: var(--color-text-muted); }

/* Mobil: Editorial einspaltig, Bild oben – kompaktere Abstände */
@media (max-width: 991.98px) {
  .article-section--editorial .editorial__body { margin-top: var(--space-xl); }
}

/* Bilder in Bildrahmen (.media) auch innerhalb von Altinhalten vollflächig */
.legacy-content .media > img,
.legacy-content .media > picture > img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Bild-Trio (z. B. Service) – drei quadratische Bilder nebeneinander, mobil 1 + 2 */
.image-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md, 1rem); max-width: var(--container, 1320px); margin-inline: auto; }
.image-trio .media { margin: 0; }
.image-trio .media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-section:has(> .container .image-trio), .article-section:has(.image-trio) { padding-block: var(--section-y-tight); }
.article-section--text:has(.image-trio) p, .article-section:has(.image-trio) .article-section__body { max-width: none; }
@media (max-width: 767.98px) {
  .image-trio { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .image-trio .media:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
}
/* eingebundene Module (z. B. Kreations-Slider) als eigene Sektion */
.article-section--module { padding-block: 0; }
/* Eingebundene Module (Kreations-Slider) mit halbem Abstand zum Inhalt davor */
.article-section--module > .section { padding-block: var(--section-y-tight); }
.hl-gallery-section, .hl-page > .section:has(+ .article-section--module) { padding-bottom: var(--section-y-tight); }
.article-section--text .container--narrow:has(.image-trio) { max-width: var(--container, 1320px); }

/* =============================================================================
   Highlight-Seiten (Larimar/El Mar, Paraiba, Welo, Clear Crystals, Trinity)
   ========================================================================== */
.hl-page > .section--tight { padding-block: var(--section-y-tight); }
.hl-page > .page-head { padding-bottom: var(--space-xl); }
.hl-page > .page-head + .section { padding-top: 0; }

/* Titelbild: nie größer als die Originaldatei, zentriert */
.hl-hero { max-width: min(var(--hl-w, 900px), 100%); margin-inline: auto; }
.hl-hero .media { background: none; }

/* Text */
.hl-text .lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); line-height: 1.7; margin-bottom: var(--space-lg); }
.hl-text p { max-width: 64ch; margin-inline: auto; }

/* Bildreihe (5 Bilder) */
.hl-row { gap: var(--space-sm); }
@media (max-width: 991.98px) {
  .hl-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hl-row > * { grid-column: span 2; }
  .hl-row > :nth-child(4), .hl-row > :nth-child(5) { grid-column: span 3; }
}

/* Zoombare Bilder */
.hl-zoom { display: block; cursor: zoom-in; }
.hl-zoom img { transition: transform var(--dur-slow, .9s) var(--ease-soft, ease); }
@media (hover: hover) { .hl-zoom:hover > img, .js .hl-zoom[data-image-reveal].is-inview:hover > img { transform: scale(1.04); transition-duration: .9s; } }

/* Bildband mit Unterschrift */
.hl-band .media { background: none; }
.hl-caption { text-align: center; max-width: 70ch; margin: var(--space-md) auto 0; }

/* Bild-Slider: ein Bild je Ansicht, Wischen, Klick öffnet Lightbox */
.pslider--single .pslider__viewport { grid-auto-columns: 100% !important; gap: 0; }
.pslider--single .pslider__item .media { aspect-ratio: 2 / 1; }
.pslider--single .pslider__arrow { opacity: .7; background: rgba(255,255,255,.8); }
.pslider--single .pslider__arrow--prev { left: var(--space-sm); }
.pslider--single .pslider__arrow--next { right: var(--space-sm); }
.pslider--single .pslider__dots { flex-wrap: wrap; row-gap: var(--space-xs); }
.pslider--single .pslider__dot { width: 22px; position: relative; }
.pslider--single .pslider__dot::before { content: ""; position: absolute; inset: -10px -2px; }
@media (max-width: 767.98px) {
  .pslider--single .pslider__item .media { aspect-ratio: 3 / 2; }
  .pslider--single .pslider__dot { width: 14px; }
}

/* Video */
.hl-video { background: #000; }
.hl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* El Mar: Einstieg als Editorial mit Zitat */
.hl-intro-editorial .media { background: none; }
.hl-quote { font-family: var(--font-display); font-weight: var(--fw-light); font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem); line-height: 1.25; margin-bottom: var(--space-md); }

/* El Mar: Magazin-Raster – zweispaltig, Text und Bilder im Wechsel */
.hl-mag { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) clamp(1.5rem, 4vw, 5rem); align-items: center; }
.hl-mag__col > * + * { margin-top: var(--space-lg); }
.hl-mag__col--full { grid-column: 1 / -1; }
.hl-mag__col--full.hl-mag__col--text { max-width: 64ch; margin-inline: auto; text-align: center; }
.hl-mag__col--text p { line-height: 1.85; }
.hl-mag .media { background: none; }
.hl-mag-section + .hl-mag-section { padding-top: 0; }
@media (max-width: 767.98px) {
  /* Bilder paarweise nebeneinander, Text über die volle Breite */
  .hl-mag { gap: var(--space-lg) var(--space-sm); grid-auto-flow: row dense; align-items: start; }
  .hl-mag__col--text, .hl-mag__col:has(p) { grid-column: 1 / -1; }
}
.hl-mag .hl-narrow { max-width: 860px; margin-inline: auto; }

/* =============================================================================
   Mobile Story-Leiste unter dem Header (Position header-mobile)
   Fixiert mit dem Header, nur unter 992 px. Etwa 5½ Kreise sichtbar, der
   letzte angeschnitten → zeigt, dass man wischen kann.
   ========================================================================== */
.header-stories { display: none; }
@media (max-width: 991.98px) {
  .header-stories { display: block; border-top: 1px solid var(--color-border, #ebe9e6); background: var(--color-background, #fff); }
}
.story-bar__list {
  --story-gap: 12px;
  --story-size: calc((100% - 4 * var(--story-gap)) / 5.4);
  display: flex;
  gap: var(--story-gap);
  margin: 0;
  padding: 10px var(--gutter, 20px) 8px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter, 20px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.story-bar__list::-webkit-scrollbar { display: none; }
.story-bar__list > li { flex: 0 0 var(--story-size); min-width: 0; scroll-snap-align: start; }
.story-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--color-text); text-decoration: none; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.story-bar__media {
  display: block; width: 100%; max-width: 72px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  background: var(--color-light, #f4f3f1);
  box-shadow: 0 0 0 2px var(--color-background, #fff), 0 0 0 3px var(--color-border-strong, #d9d6d1);
  transition: transform var(--dur-base, .3s) var(--ease-soft, ease), box-shadow var(--dur-base, .3s) var(--ease-soft, ease);
}
.story-bar__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-bar a:active .story-bar__media { transform: scale(.95); }
.story-bar a[aria-current="page"] .story-bar__media { box-shadow: 0 0 0 2px var(--color-background, #fff), 0 0 0 3.5px var(--color-primary, #3c3c3c); }
.story-bar__label {
  display: block; width: calc(100% + var(--story-gap)); margin-inline: calc(var(--story-gap) / -2);
  font-size: .5625rem; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase;
  color: var(--color-text-muted, #565857);
  hyphens: auto; -webkit-hyphenate-limit-before: 5; hyphenate-limit-chars: 12 5 5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Beim Scrollen (kompakter Header) Leiste etwas flacher */
.site-header.is-compact .story-bar__list { padding-block: 6px 5px; }

/* Produktbühne: Format des Beitragsbilds, Zusatzbilder auf Weiß eingepasst
   (Hochformat: volle Höhe, weiße Ränder links/rechts · Querformat: volle Breite,
   weiße Ränder oben/unten) */
.stage__frame, .stage__slide { background: #fff; }
.stage__slide img { object-fit: contain; object-position: center; }

/* Kategorieseiten: Abstand Überschrift → Kacheln halbiert */
.com-content-category-blog > .section:first-child,
.blog-featured > .section:first-child { padding-bottom: calc(var(--section-y-tight) / 2); }

/* Beiträge in "Kategorien in voller Breite" (Lookbooks): Inhalt bis zum Rand */
.container-edge { width: 100%; max-width: none; padding-inline: 0; margin-inline: 0; }
.item-page--fluid .article-body { max-width: none; text-align: center; }
.item-page--fluid .article-body > :not(iframe):not(img):not(figure):not(.media) { padding-inline: var(--gutter, 20px); }
.item-page--fluid .article-body iframe,
.item-page--fluid .article-body > img,
.item-page--fluid .article-body > figure,
.item-page--fluid .article-body > .media { display: block; width: 100% !important; max-width: none; margin: 0 !important; border: 0; }
.item-page--fluid .article-lead { max-width: none; }
.item-page--fluid .article-body > .article-actions { margin: 0 0 var(--space-xl); }

/* =============================================================================
   Kampagnen (Lightbox-Kategorien): Zeilen mit gleicher Bildhöhe
   Hoch- und Querformate gemischt; jedes Bild ist so breit, wie sein Format bei
   der Zeilenhöhe verlangt (--r = Breite/Höhe). Passt ein Bild nicht mehr in die
   Zeile, beginnt eine neue. Jede Zeile ist mittig ausgerichtet.
   ========================================================================== */
.card-grid__items--rows {
  --row-h: clamp(240px, 24vw, 380px);
  justify-content: center;
  align-items: flex-start;
}
.card-grid__items--rows > .card-grid__item {
  flex: 0 0 auto;
  width: calc(var(--r, 1) * var(--row-h));
  max-width: 100%;
}
.card-grid__items--rows .product-card__media { background: none; }
.card-grid__items--rows .product-card__media img { width: 100%; height: 100%; object-fit: cover; }
/* Titel unter dem Bild wie bei den Produkten */
.card-grid__items--rows .product-card__body { text-align: center; }
@media (max-width: 991.98px) { .card-grid__items--rows { --row-h: 30vw; } }
@media (max-width: 767.98px) { .card-grid__items--rows { --row-h: 52vw; } }
@media (min-width: 768px) and (max-width: 991.98px) { .grid--editorial.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Startseite: Zitat im Stil der H1, weiß, nicht kursiv */
.quote-display { margin: 0 auto; max-width: 56rem; text-align: center; color: #fff; }
.quote-display__text { color: inherit; margin: 0; }
.quote-display .quote__source { display: block; margin-top: var(--space-lg); color: rgba(255,255,255,.85); }

/* Editorial-Abschnitte: quadratische/Hochformat-Bilder ungeschnitten */
.media--natural { background: none; }
.media--natural > img { object-fit: contain; }

/* Kategoriebeschreibung mit Einbettung (Instagram-Widget): volle Inhaltsbreite */
.category-embed { width: 100%; margin-top: var(--space-xl); text-align: center; }
.category-embed iframe { display: block; width: 100%; border: 0; }
.category-embed .readon { display: inline-block; }

/* Instagram-Widget (Kategoriebeschreibung mit Einbettung): Desktop 75 % der Inhaltsbreite */
@media (min-width: 992px) {
  .category-embed { width: 75%; margin-inline: auto; }
}

/* Startseite: einheitliche Abstände – das Kachelmosaik hat unten keinen eigenen
   Abstand, wenn eine weiße Sektion folgt (sonst addieren sich beide Abstände) */
.mod-jws-mosaic:has(+ .section:not(.section--light):not(.image-section)),
.mod-jws-mosaic:has(+ .visually-hidden + .section:not(.section--light):not(.image-section)),
.mod-jws-mosaic:has(+ div > .section:first-child:not(.section--light):not(.image-section)),
.mod-jws-mosaic:has(+ .visually-hidden + div > .section:first-child:not(.section--light):not(.image-section)) { padding-bottom: 0; }
