:root {
      --brand: #0066b3;
      --ink: #1a1a1a;
      --muted: #555;
      --bg: #f4f6f9;
      --radius-lg: 16px;
      --radius-md: 12px;
      --nav-bg: #fff;
      --nav-shadow: 0 8px 30px rgba(0,0,0,0.15);
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; }
    body { font-family: 'Segoe UI', Roboto, Arial, sans-serif; background: var(--bg); color: var(--ink); padding: clamp(8px, 2vw, 20px); line-height: 1.55; overflow-x: hidden; }
    img { max-width: 100%; }
    .page { max-width: 1400px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); padding: clamp(12px, 3vw, 20px) clamp(12px, 3vw, 30px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); position: relative; overflow: visible; }

    /* ---------- Kopfbereich mit Header als Positionierungsanker ---------- */
    .header {
      position: relative;
      border-bottom: 3px solid var(--brand);
      padding-bottom: 12px;
      margin-bottom: 24px;
    }
    .header h1 { font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; }
    .header h1 span { color: var(--brand); }
    .header .subline { color: var(--muted); font-size: clamp(0.8rem, 0.75rem + 0.2vw, 1rem); margin-top: 4px; }
    .header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

    /* Hamburger-Button – immer sichtbar */
    .nav-toggle {
      display: flex;
      background: #f0f2f5;
      border: none;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      cursor: pointer;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      flex-shrink: 0;
      transition: background 0.2s;
    }
    .nav-toggle:hover { background: #e0e4ea; }
    .nav-toggle span {
      width: 20px;
      height: 2px;
      background: var(--ink);
      border-radius: 2px;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    /* Navigation – als Overlay-Dropdown unterhalb des Headers */
    .nav {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--nav-bg);
      border-radius: var(--radius-md);
      box-shadow: var(--nav-shadow);
      padding: 0 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      font-weight: 600;
      z-index: 100;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
      border: 1px solid #eef0f3;
    }
    .nav.is-open {
      max-height: 500px;
      opacity: 1;
      padding: 16px 20px;
      pointer-events: auto;
    }
    .nav a {
      color: var(--ink);
      text-decoration: none;
      transition: color 0.2s;
      padding: 6px 0;
      border-bottom: 1px solid #f0f2f5;
    }
    .nav a:last-child { border-bottom: none; }
    .nav a:hover, .nav .active { color: var(--brand); }
    .nav .active { border-bottom: 2px solid var(--brand); padding-bottom: 4px; }

    /* ---------- Kachel-Grid (Bento) ---------- */
    .grid-heading { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.4rem); margin: 4px 0 14px; }
    .grid-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .grid-heading-row .grid-heading { margin: 4px 0; }
    .startgrid-reset-btn {
      flex-shrink: 0; border: 1px solid #d8dde3; background: #fff; color: var(--ink, #1c1f24);
      font-size: 0.8rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease;
    }
    .startgrid-reset-btn:hover { background: #f4f6f8; border-color: #c4cbd3; }
    .startgrid-reset-btn[hidden] { display: none; }

    /* ---------- Hero-Slider ---------- */
    .hero-slider { position: relative; margin-bottom: 8px; }
    .hero-slider__viewport { overflow: hidden; border-radius: var(--radius-md); }
    .hero-slider__track {
      display: flex;
      transition: transform 0.55s cubic-bezier(.16,1,.3,1);
      touch-action: pan-y;
    }
    .hero-slider__track.is-dragging { transition: none; }
    .hero-slider.is-dimmed .hero-slider__track { filter: blur(2px) brightness(0.9); pointer-events: none; }
    .hero-slider__nav { margin: -20px;
      position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
      width: 44px; height: 44px; border-radius: 50%; border: none;
      background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      font-size: 1.05rem; line-height: 1; color: var(--ink, #1c1f24);
      transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .hero-slider__nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
    .hero-slider__nav:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
    .hero-slider__nav[hidden] { display: none; }
    .hero-slider__nav--prev { left: 12px; }
    .hero-slider__nav--next { right: 12px; }
    .hero-slider__dots { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 14px; }
    .hero-slider__dot {
      width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
      background: #c7ced6; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
    }
    .hero-slider__dot:hover { background: #a7b0bb; }
    .hero-slider__dot.is-active { background: var(--brand); transform: scale(1.3); }
    .hero-slider__dot:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

    .tile-slide { flex: 0 0 100%; width: 100%; }
    .grid-container { display: grid; grid-template-columns: 45px 1fr 1fr 1fr 1fr 45px; grid-template-rows: auto auto auto auto; gap: 12px; }
    @media (min-width: 901px) {
      .grid-container { height: 1200px; max-height: 1200px; overflow: hidden; }
      .grid-container > .spacer:first-child { grid-column: 1 / 2; grid-row: 1 / -1; }
      .grid-container > .spacer:last-child { grid-column: -2 / -1; grid-row: 1 / -1; }
    }
    .tile { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #e9edf2; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); transition: transform 0.25s ease, box-shadow 0.25s ease; min-height: 200px; }
    .tile:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12); }
    .tile a { display: block; text-decoration: none; color: inherit; height: 100%; position: relative; }
    .tile a:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: var(--radius-md); }
    .tile__image-wrapper { width: 100%; height: 100%; overflow: hidden; position: relative; background: #e9edf2; pointer-events: none; }
    .tile__image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: 0; transform: scale(1.04); will-change: opacity, transform; transition: transform 0.7s cubic-bezier(.16,1,.3,1), opacity 0.7s cubic-bezier(.16,1,.3,1); }
    .tile__image-wrapper img.is-loaded { opacity: 1; transform: scale(1); }
    .tile:hover .tile__image-wrapper img.is-loaded { transform: scale(1.08); }
    .spinner { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e9edf2 0%, #dfe4ea 100%); transition: opacity 0.5s ease, visibility 0.5s ease; z-index: 2; pointer-events: none; }
    .spinner.is-hidden { opacity: 0; visibility: hidden; }
    .spinner-ring { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(0, 102, 179, 0.15); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
    .spinner-ring.small { width: 26px; height: 26px; border-width: 2px; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .tile__overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px 20px; z-index: 3; opacity: 1; }
    .tile__title { display: inline-block; padding: 6px 14px; font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1.2rem); font-weight: 400; border-radius: 30px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.2); align-self: flex-start; pointer-events: none; background-color: var(--brand); }
    .tile__description { align-self: flex-end; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); padding: 8px 16px; border-radius: 30px; color: #fff; font-size: clamp(0.7rem, 0.65rem + 0.2vw, 0.95rem); max-width: 85%; pointer-events: none; margin-top: auto; line-height: 1.4; }
    .tile--a { grid-column: 2 / 4; grid-row: 1 / 2; }
    .tile--b { grid-column: 4 / 5; grid-row: 1 / 2; }
    .tile--c { grid-column: 5 / 6; grid-row: 1 / 3; }
    .tile--d { grid-column: 2 / 3; grid-row: 2 / 4; }
    .tile--e { grid-column: 3 / 5; grid-row: 2 / 3; }
    .tile--f { grid-column: 3 / 4; grid-row: 3 / 4; }
    .tile--g { grid-column: 4 / 6; grid-row: 3 / 4; }
    .grid-container > .spacer { background: transparent; pointer-events: none; }
    .tile--external .tile__title::after { content: " ↗"; font-size: 0.9rem; }

    @media (max-width: 900px) {
      .grid-container { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 14px; }
      .grid-container > .spacer { display: none; }
      .tile { grid-column: auto !important; grid-row: auto !important; min-height: 0; aspect-ratio: 4 / 3; }
      .tile__description { max-width: 100%; }
      .hero-slider__nav { width: 38px; height: 38px; font-size: 0.95rem; }
    }
    @media (max-width: 560px) {
      .grid-container { grid-template-columns: 1fr; }
      .tile { aspect-ratio: 16 / 11; }
      .hero-slider__nav--prev { left: 6px; }
      .hero-slider__nav--next { right: 6px; }
    }

    /* ---------- Statische SEO-Inhalte (Akkordeon) ---------- */
    .seo-content { margin: 36px 0 8px; }
    .seo-content h2 { font-size: clamp(1.1rem, 1rem + 0.8vw, 1.6rem); margin-bottom: 6px; color: var(--ink); }
    .seo-content__intro { color: var(--muted); margin-bottom: 16px; max-width: 70ch; }
    .accordion { display: flex; flex-direction: column; gap: 10px; }
    .accordion-item { border: 1px solid #e6e9ee; border-radius: var(--radius-md); background: #fff; overflow: hidden; padding:2px 15px;}
    .accordion-item summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .accordion-item summary::-webkit-details-marker { display: none; }
    .accordion-item summary:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
    .accordion-item summary h3, .accordion-item summary h4 { font-size: 1rem; font-weight: 700; color: var(--ink);text-shadow: 0 1px 0px rgba(0, 0, 0, 0.5); }
    .accordion-summary__label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .accordion-summary__plus { font-size: 1.3rem; color: var(--brand); transition: transform 0.2s ease; flex-shrink: 0; }
    .accordion-item[open] .accordion-summary__plus { transform: rotate(45deg); }
    .accordion-badge { font-size: 0.72rem; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
    .accordion-item__body { padding: 0 18px 18px; color: #666; font-size: 0.95rem; }
    .accordion-item__body h3 { font-size: 1.05rem; margin: 14px 0 8px; }
    .accordion-item__body ul { margin: 0 0 14px 1.2em; }
    .accordion-item__body li { margin-bottom: 4px; }
    .accordion-item__body p { margin-bottom: 12px; }
    .accordion-subitem { padding: 10px 0; border-top: 1px solid #eef0f3; }
    .accordion-subitem:first-child { border-top: none; padding-top: 0; }
    .accordion-subitem h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--ink); }
    .accordion-subitem p { color: #444; }

    .footer { border-top: 1px solid #e0e4ea; padding-top: 16px; margin-top: 30px; font-size: 0.85rem; color: #666; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
    .footer a { color: var(--brand); text-decoration: none; }
    .footer a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

    /* ---------- Detailansicht (Slide-Panel) ---------- */
    .detail-panel { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 1000; visibility: hidden; display: flex; flex-direction: column; overflow-y: auto; }
    .detail-panel.is-active { visibility: visible; }
    .detail-panel[data-anim="slide-left"]  { transform: translateX(100%); transition: transform 0.5s cubic-bezier(.22,.9,.32,1); }
    .detail-panel[data-anim="slide-right"] { transform: translateX(-100%); transition: transform 0.5s cubic-bezier(.22,.9,.32,1); }
    .detail-panel[data-anim="slide-up"]    { transform: translateY(100%); transition: transform 0.5s cubic-bezier(.22,.9,.32,1); }
    .detail-panel[data-anim="slide-down"]  { transform: translateY(-100%); transition: transform 0.5s cubic-bezier(.22,.9,.32,1); }
    .detail-panel.is-open { transform: translate(0, 0); }

    .detail-header { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 4vw, 30px); border-bottom: 1px solid #e0e4ea; position: sticky; top: 0; background: #fff; z-index: 5; gap: 12px; }
    .detail-header h2 { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); color: var(--brand); }
    .detail-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
    .detail-close { background: #f0f2f5; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; color: var(--ink); transition: background 0.2s; flex-shrink: 0; }
    .detail-close:hover { background: #e0e4ea; }
    .detail-close:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

    .detail-panel .accordion-item summary h3 {  color: var(--card-color, var(--brand));}
    /* ---------- Merken-Button (Produkt-Detailseite) ---------- */
    .merken-btn {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 10px 16px; border-radius: 30px;
      border: 1.5px solid var(--brand); background: #fff; color: var(--brand);
      font-weight: 600; font-size: 0.88rem; cursor: pointer; white-space: nowrap;
      transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    }
    .merken-btn:hover { background: #eaf3fb; }
    .merken-btn:active { transform: scale(0.95); }
    .merken-btn[hidden] { display: none; }
    .merken-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
    .merken-btn__icon { flex-shrink: 0; transition: fill 0.2s ease; }
    .merken-btn.is-saved { background: var(--brand); color: #fff; }
    .merken-btn.is-saved .merken-btn__icon { fill: #fff; }
    @media (max-width: 560px) {
      .merken-btn { padding: 10px; border-radius: 50%; }
      .merken-btn__label { display: none; }
    }

    .detail-body { max-width: 1400px; width: 100%; margin: 0 auto; padding: clamp(12px, 3vw, 30px); display: grid; grid-template-columns: 2fr 0.55fr; gap: 30px; flex: 1; align-items: start; }

    /* Linke Hauptspalte: Bild/Steckbrief oben, ausführliche Infos darunter */
    .detail-primary { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

    /* --- Bild-Text-Layout im Hauptbereich: Bild links (breiter), Steckbrief rechts (schmaler) --- */
    .detail-main { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }

    .detail-media { display: flex; flex-direction: column; gap: 12px; }
    .detail-hero {
      width: 100%;
      aspect-ratio: 4 / 3;
      border-radius: 14px;
      overflow: hidden;
      position: relative;
      background: linear-gradient(135deg, #f2f4f7 0%, #e6e9ee 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: zoom-in;
      border: 1px solid #eef0f3;
    }
    .detail-hero img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; opacity: 0; transform: scale(0.98); will-change: opacity, transform; transition: transform 0.7s cubic-bezier(.16,1,.3,1), opacity 0.7s cubic-bezier(.16,1,.3,1); }
    .detail-hero img.is-loaded { opacity: 1; transform: scale(1); }
    .detail-hero__zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.15); pointer-events: none; z-index: 3; transition: transform 0.2s ease; }
    .detail-hero:hover .detail-hero__zoom { transform: scale(1.08); }
    .detail-hero:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

    .detail-badge { display: inline-block; padding: 5px 14px; border-radius: 30px; color: #fff; font-weight: 700; font-size: 0.85rem; margin-bottom: 14px; }
    .detail-content, .detail-info { transition: opacity 0.35s ease, transform 0.35s ease; }
    .detail-content.is-switching, .detail-info.is-switching { opacity: 0; transform: translateY(8px); }

    .spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px 20px; background: #f8f9fb; border: 1px solid #eef0f3; border-radius: var(--radius-md); padding: 14px 18px 4px; }
    .spec-list[hidden] { display: none; }
    .spec-list__row { padding: 6px 0; border-bottom: 1px dashed #e4e8ee; }
    .spec-list dt { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand); margin-bottom: 2px; }
    .spec-list dd { font-size: 0.92rem; color: #333; }

    .detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
    .detail-gallery[hidden] { display: none; }
    .detail-gallery__item { margin: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #e9edf2; aspect-ratio: 4 / 3; border: 2px solid transparent; padding: 0; position: relative; }
    .detail-gallery__item:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
    .detail-gallery__item.is-active { border-color: var(--brand); }
    .detail-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.04); will-change: opacity, transform; transition: transform 0.55s cubic-bezier(.16,1,.3,1), opacity 0.55s cubic-bezier(.16,1,.3,1); }
    .detail-gallery__item img.is-loaded { opacity: 1; transform: scale(1); }
    .detail-gallery__item:hover img { transform: scale(1.06); }

    /* ------ Steckbrief-Spalte (rechts) wird zum Flex-Container, der den Badge nach unten schiebt ------ */
    .detail-content {
      display: flex;
      flex-direction: column;
      height: 100%; /* nimmt die volle Höhe der Grid-Zelle ein */
      justify-content: flex-start;
    }

    .detail-badge {
      flex-shrink: 0;
    }

    .spec-list {
      flex-shrink: 0;
    }

    /* Link-Badge: mit margin-top:auto ans untere Ende der Spalte */
    .detail-link {
      margin-top: auto;
      margin-bottom: 68px;
    }
    .detail-link[hidden] {
      display: none;
    }
    .detail-link__btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border-radius: 30px;
      color: #fff;
      font-weight: 400;
      text-decoration: none;
      font-size: 0.7rem;
      transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      background-color: var(--brand, #0066b3); /* immer blau */
    }
    .detail-link__btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }
    .detail-link__btn:focus-visible {
      outline: 3px solid var(--brand);
      outline-offset: 2px;
    }

    /* --- Ab Tablet-Breite: Bild und Steckbrief nebeneinander, beide Spalten gleich hoch --- */
    @media (min-width: 760px) {
      .detail-main {
        grid-template-columns: minmax(260px, 1.35fr) minmax(280px, 0.65fr);
        gap: 32px;
        align-items: stretch; /* beide Spalten erhalten die gleiche Höhe (bestimmt durch das Bild) */
      }
      .detail-media { position: sticky; top: 96px; }
    }

    .detail-sidebar { border-left: 1px solid #eef0f3; padding-left: 24px; }

    /* --- Ausführliche Infos: volle Breite der linken Hauptspalte --- */
    .detail-info { padding-top: 24px; border-top: 1px solid #eef0f3; }
    .detail-info__intro { font-size: clamp(0.92rem, 0.88rem + 0.15vw, 1.02rem); color: #333; line-height: 1.65; margin-bottom: 18px; max-width: 80ch; }
    .detail-info__intro[hidden] { display: none; }
    .detail-info .accordion[hidden] { display: none; }
    .topic-select { width: 100%; padding: 10px 14px; margin-bottom: 18px; border-radius: 10px; border: 1px solid #dfe4ea; background: #f8f9fb; font-size: 0.95rem; font-weight: 600; color: var(--ink); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%230066b3' viewBox='0 0 16 16'><path d='M8 11L2 5h12z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
    .topic-select:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
    .card-list { display: flex; flex-direction: column; gap: 16px; }
    .info-card { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1px solid #eef0f3; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; }
    .info-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,0.1); }
    .info-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
    .info-card.is-active { box-shadow: 0 0 0 2px var(--brand), 0 10px 22px rgba(0,0,0,0.1); }
    .info-card__image { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #e9edf2; overflow: hidden; pointer-events: none; }
    .info-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: 0; transform: scale(1.04); will-change: opacity, transform; transition: transform 0.6s cubic-bezier(.16,1,.3,1), opacity 0.6s cubic-bezier(.16,1,.3,1); }
    .info-card__image img.is-loaded { opacity: 1; transform: scale(1); }
    .info-card:hover .info-card__image img.is-loaded { transform: scale(1.05); }
    .info-card__body { padding: 12px 14px 14px; pointer-events: none; }
    .info-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
    .info-card__text { font-size: 0.85rem; color: #555; line-height: 1.4; }
    .info-card__footer { height: 6px; width: 100%; pointer-events: none; }

    /* Produktkarte in der Seitenleiste */
    .info-card--product {
      border-left: 4px solid var(--brand);
      background: #f0f7ff;
    }
    .info-card--product .info-card__title::before {
      content: "★ ";
      color: var(--brand);
    }

    /* Kategorie-Badge auf Produktkarten */
    .info-card__badge {
      position: absolute; top: 10px; left: 10px; z-index: 2;
      font-size: 0.68rem; font-weight: 700; color: #fff;
      padding: 3px 10px; border-radius: 20px;
      text-transform: uppercase; letter-spacing: 0.02em;
      box-shadow: 0 2px 6px rgba(0,0,0,0.18);
      pointer-events: none;
    }

    /* Merken-Button direkt auf der Produktkarte */
    .info-card__merk-btn {
      position: absolute; top: 8px; right: 8px; z-index: 2;
      width: 32px; height: 32px; border-radius: 50%;
      border: none; background: rgba(255,255,255,0.92); color: var(--brand);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.18);
      transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    }
    .info-card__merk-btn:hover { transform: scale(1.08); }
    .info-card__merk-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
    .info-card__merk-btn.is-saved { background: var(--brand); color: #fff; }

    /* --- Responsive Detail-Panel --- */
    @media (max-width: 900px) {
      .detail-body { grid-template-columns: 1fr; gap: 20px; padding: 12px 16px; }
      .detail-sidebar { border-left: none; padding-left: 0; border-top: 1px solid #eef0f3; padding-top: 20px; }
      .card-list { flex-direction: row; overflow-x: auto; gap: 12px; padding-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
      .info-card { min-width: 220px; flex-shrink: 0; scroll-snap-align: start; }
      .detail-hero { max-height: 340px; }
      .detail-header { padding: 12px 16px; }
      .detail-header h2 { font-size: 1.1rem; }
      .detail-close { width: 40px; height: 40px; font-size: 1.4rem; }
    }

    @media (max-width: 600px) {
      .detail-body { padding: 10px 12px; gap: 16px; }
      .detail-hero { max-height: 260px; border-radius: 10px; }
      .detail-media { gap: 10px; }
      .detail-badge { font-size: 0.75rem; padding: 4px 12px; margin-bottom: 10px; }
      .detail-info { padding-top: 18px; margin-top: 4px; }
      .detail-info__intro { font-size: 0.9rem; margin-bottom: 14px; }
      .spec-list { grid-template-columns: 1fr; padding: 10px 14px 4px; gap: 0; }
      .spec-list__row { padding: 5px 0; }
      .detail-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
      .detail-gallery__item { aspect-ratio: 1 / 1; border-radius: 8px; }
      .card-list { flex-direction: column; overflow-x: visible; scroll-snap-type: none; gap: 12px; }
      .info-card { min-width: 100%; flex-shrink: 1; scroll-snap-align: none; }
      .info-card__image { aspect-ratio: 16 / 9; }
      .topic-select { font-size: 0.85rem; padding: 8px 12px; margin-bottom: 14px; }
      .detail-header { padding: 10px 12px; }
      .detail-header h2 { font-size: 1rem; }
      .detail-close { width: 36px; height: 36px; font-size: 1.2rem; }
      .detail-sidebar { padding-top: 16px; }
    }

    /* ---------- Lightbox: vollständige Bildansicht ---------- */
    .lightbox { position: fixed; inset: 0; background: rgba(12, 14, 18, 0.94); z-index: 2000; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: opacity 0.25s ease, visibility 0.25s ease; }
    .lightbox.is-active { visibility: visible; opacity: 1; }
    .lightbox[hidden] { display: none; }
    .lightbox-stage { position: relative; width: min(92vw, 1200px); height: min(84vh, 850px); display: flex; align-items: center; justify-content: center; }
    .lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; opacity: 0; transform: scale(0.97); transition: opacity 0.3s ease, transform 0.3s ease; border-radius: 6px; }
    .lightbox-stage img.is-loaded { opacity: 1; transform: scale(1); }
    .lightbox-stage .spinner { background: transparent; }
    .lightbox-close, .lightbox-nav { border: none; background: rgba(255,255,255,0.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.2s ease; }
    .lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.25); }
    .lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
    .lightbox-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; font-size: 1.7rem; line-height: 1; z-index: 2; }
    .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; z-index: 2; }
    .lightbox-nav--prev { left: 14px; }
    .lightbox-nav--next { right: 14px; }
    .lightbox-nav[hidden] { display: none; }
    .lightbox-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.85rem; font-weight: 600; background: rgba(255,255,255,0.14); padding: 5px 16px; border-radius: 20px; letter-spacing: 0.02em; }
    .lightbox-counter:empty { display: none; }

    @media (max-width: 600px) {
      .lightbox-stage { width: 94vw; height: 70vh; }
      .lightbox-close { width: 40px; height: 40px; font-size: 1.4rem; top: 10px; right: 10px; }
      .lightbox-nav { width: 42px; height: 42px; font-size: 1rem; }
      .lightbox-nav--prev { left: 8px; }
      .lightbox-nav--next { right: 8px; }
    }

    /* ---------- Merkliste: Floating-Button + Modal mit 3×3-Raster ---------- */
    .merkliste-fab {
      position: fixed; right: 20px; bottom: 20px; z-index: 1500;
      width: 54px; height: 54px; border-radius: 50%;
      background: var(--brand); color: #fff; border: none;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.25); cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .merkliste-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
    .merkliste-fab:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
    .merkliste-fab__count {
      position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
      border-radius: 10px; background: #E63946; color: #fff; font-size: 0.7rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
    }
    .merkliste-fab__count[hidden] { display: none; }

    .merkliste-toast {
      position: fixed; right: 20px; bottom: 84px; z-index: 1550; max-width: 260px;
      background: #222; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 0.85rem; line-height: 1.4;
      box-shadow: 0 4px 14px rgba(0,0,0,0.3); opacity: 0; transform: translateY(6px);
      transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none;
    }
    .merkliste-toast.is-visible { opacity: 1; transform: translateY(0); }
    .merkliste-toast[hidden] { display: none; }

    .merkliste-modal {
      position: fixed; inset: 0; z-index: 1600; display: flex; align-items: center; justify-content: center;
      background: rgba(12,14,18,0.55); visibility: hidden; opacity: 0;
      transition: opacity 0.25s ease, visibility 0.25s ease; padding: 20px;
    }
    .merkliste-modal.is-active { visibility: visible; opacity: 1; }
    .merkliste-modal[hidden] { display: none; }
    .merkliste-modal__panel {
      background: #fff; border-radius: 16px; width: min(560px, 100%); max-height: 85vh; overflow-y: auto;
      padding: 22px 24px 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      transform: scale(0.96); transition: transform 0.25s ease;
    }
    .merkliste-modal.is-active .merkliste-modal__panel { transform: scale(1); }
    .merkliste-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; gap: 12px; }
    .merkliste-modal__header h2 { font-size: 1.2rem; color: var(--ink); }
    .merkliste-modal__close { width: 36px; height: 36px; border-radius: 50%; border: none; background: #f0f2f5; font-size: 1.3rem; cursor: pointer; color: #555; transition: background 0.2s; flex-shrink: 0; }
    .merkliste-modal__close:hover { background: #e2e5ea; }
    .merkliste-modal__close:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

    .merkliste-empty { color: #555; font-size: 0.92rem; line-height: 1.6; padding: 26px 6px 10px; text-align: center; }
    .merkliste-empty[hidden] { display: none; }

    .merkliste-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
    .merkliste-grid[hidden] { display: none; }
    .merkliste-cell { position: relative; aspect-ratio: 1 / 1; min-width: 0; }
    .merkliste-cell__open {
      width: 100%; height: 100%; border-radius: 10px; overflow: hidden; border: 1px solid #eef0f3;
      background: #e9edf2; cursor: pointer; padding: 0; position: relative; display: block;
    }
    .merkliste-cell__open:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
    .merkliste-cell__open img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.4s ease, transform 0.3s ease; }
    .merkliste-cell__open img.is-loaded { opacity: 1; }
    .merkliste-cell__open:hover img { transform: scale(1.06); }
    .merkliste-cell__label {
      position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px 5px;
      background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
      color: #fff; font-size: 0.68rem; font-weight: 600; text-align: left; line-height: 1.25; pointer-events: none;
    }
    .merkliste-cell__remove {
      position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
      background: #fff; border: 1px solid #ddd; color: #555; font-size: 0.95rem; line-height: 1;
      display: flex; align-items: center; justify-content: center; cursor: pointer;
      box-shadow: 0 1px 4px rgba(0,0,0,0.2); transition: background 0.2s, color 0.2s;
    }
    .merkliste-cell__remove:hover { background: #E63946; color: #fff; border-color: #E63946; }
    .merkliste-cell__remove:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

    .merkliste-hint { margin-top: 16px; font-size: 0.75rem; color: #888; text-align: center; }

    .merkliste-buttons {
      display: flex;
      gap: 12px;
      margin-top: 18px;
    }
    .merkliste-apply-btn,
    .gaeb-apply-btn {
      flex: 1;
      padding: 12px 16px;
      border: none;
      border-radius: var(--radius-sm, 10px);
      background: var(--brand, #0066b3);
      color: #fff;
      font-size: 0.7rem;
      font-weight: 400;
      cursor: pointer;
      transition: background 0.15s ease, opacity 0.15s ease;
    }
    .merkliste-apply-btn:hover:not(:disabled),
    .gaeb-apply-btn:hover:not(:disabled) {
      background: #005393;
    }
    .merkliste-apply-btn:disabled,
    .gaeb-apply-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    /* ===== Eingesetzte Produkte innerhalb einer Beispielanlage ===== */
    .detail-used-products { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef0f3; }
    .detail-used-products[hidden] { display: none; }
    .detail-used-products__title { font-size: 1rem; color: var(--ink); margin: 0; }
    .detail-used-products .merkliste-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    @media (max-width: 480px) {
      .detail-used-products .merkliste-grid { gap: 8px; }
    }

    @media (max-width: 480px) {
      .merkliste-fab { right: 14px; bottom: 14px; width: 48px; height: 48px; }
      .merkliste-toast { right: 14px; bottom: 74px; }
      .merkliste-modal__panel { padding: 18px 16px 20px; border-radius: 14px; }
      .merkliste-grid { gap: 8px; }
    }

    /* ---------- Barrierefreiheit & Performance ---------- */
    .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
      .spinner-ring {
        animation-duration: 0.8s !important;
        animation-iteration-count: infinite !important;
      }
      .tile__image-wrapper img,
      .detail-hero img,
      .detail-gallery__item img,
      .info-card__image img,
      .lightbox-stage img,
      .lightbox,
      .spinner {
        transition-duration: 0.4s !important;
      }
    }

    .tile__star {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 998;               /* unter dem Link‑Icon (z‑index: 999) */
  font-size: 58px;
  line-height: 1;
  color: #ffbb00;             /* sonnengelb */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;       /* Klicks gehen zur Kachel durch */
  user-select: none;
}

@media (max-width: 560px) {
  .tile__star {
    font-size: 20px;
    top: 6px;
    right: 6px;
  }
}