/* =========================================================
   FONT DEFINITIONS
   ========================================================= */

/* Eigene Schrift einbinden */
@font-face {
  font-family: 'MachSchrift';
  src: url('../fonts/machSchrift.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   ROOT + GLOBAL SETTINGS
   ========================================================= */

/* Scroll + Scrollbar Verhalten */
html {
  scroll-behavior: smooth;        /* sanftes Scrollen für Ankerlinks */
  scrollbar-gutter: stable both-edges;    /* verhindert Layout-Shift durch Scrollbar */
}


/* Erzwingt vertikale Scrollbar */
body {
  overflow-y: scroll;
}

body {
  width: 100%;
  overflow-x: hidden;
}


/* CSS Variablen */
:root {
  --border-width: 2px;
  --border-color: #000000;
  --bg: #ffffff;
  --font-family: 'MachSchrift', Bahnschrift, "Segoe UI", Roboto, Arial, sans-serif;

  /* Hero Höhen */
  --hero-header-h: 10vh;
  --hero-brand-h: 60vh;
  --hero-products-h: 20vh;
  --hero-all-h: 10vh;

  /* Schriftgrößen */
  --brand-title-size: 140px;
  --brand-claim-size: 40px;
  --product-name-size: 22px;

  /* Galerie / Pfeile */
  --arrow-size: 26px;
  --gallery-max-width: 70%;
}


/* =========================================================
   BASE LAYOUT + SNAP SYSTEM
   ========================================================= */

html, body {
  height:100%;
  margin:0;
  font-family:var(--font-family);
  background:var(--bg);
  color:var(--border-color);
  scroll-snap-type: y mandatory;
}

/* Jede Section = ein Snap-Panel */
section {
  height: calc(100vh - 4px);
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
}

/* Standard Frame-Rahmen */
.frame {
  border-left: var(--border-width) solid var(--border-color);
  border-right: var(--border-width) solid var(--border-color);
  border-top: var(--border-width) solid var(--border-color);
  border-bottom: var(--border-width) solid var(--border-color);
}


/* =========================================================
   HEADER + NAV GRID
   ========================================================= */

.site-header {
  border-bottom: var(--border-width) solid var(--border-color);
}

/* Header Grid mit 5 Spalten */
.site-header .header-grid {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  height:var(--hero-header-h);
  align-items:center;
}

/* Header Links */
.site-header .header-grid a {
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:var(--border-color);
  height:100%;
}

/* Trenner zwischen Header Links */
.site-header .header-grid a + a {
  border-left: var(--border-width) solid var(--border-color);
}

/* Spezieller Link Ersatzteile */
.site-header .header-grid a[href="#ersatzteile"] {
  text-align:center;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* Sticky Header */
.sticky {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 40;
}


/* =========================================================
   HERO BRAND BLOCK
   ========================================================= */

.brand {
  height:var(--hero-brand-h);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
}

.brand-title {
  font-size:calc(var(--brand-title-size) * 1.3);
  margin:0;
  font-weight:600;
}

.brand-claim {
  font-size:calc(var(--brand-claim-size) * 1.3);
  margin:0;
}


/* =========================================================
   HERO PRODUCTS ROW
   ========================================================= */

.products {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  height:var(--hero-products-h);
  border-top: var(--border-width) solid var(--border-color);
}

/* Produkt-Kachel */
.product-tile { 
  display:flex; 
  flex-direction:column;
  align-items:center; 
  justify-content:center; 
  padding:0.5rem; 
  text-align:center;
}

.product-tile span {
  margin-bottom:0.5rem;
}

/* Trenner zwischen Produkt-Kacheln */
.product-tile + .product-tile {
  border-left: var(--border-width) solid var(--border-color);
}

/* Icon Box mit Hintergrundgrafik */
.icon-box{
  width:48px;
  height:48px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
}


/* =========================================================
   HERO ALL ROW
   ========================================================= */

.all-row {
  height: var(--hero-all-h);
  border-top: var(--border-width) solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-size: 22px;
  letter-spacing: 4px;
}

/* Pfeile */
.all-row .arrow {
  font-size: var(--arrow-size);
  color: var(--border-color);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text zentriert */
.all-row span {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}


/* =========================================================
   PRODUCT PAGE – TITLE
   ========================================================= */

.product-title{
  height:12vh;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:40px;
}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

/* Galerie Container */
.gallery {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: var(--border-width) solid var(--border-color);
  gap: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

/* Galerie Navigation Buttons */
.gallery .gallery-prev,
.gallery .gallery-next{
  background:transparent;
  border: var(--border-width) solid var(--border-color);
  padding:8px 12px;
  cursor:pointer;
  font-size: var(--arrow-size);
  color: var(--border-color);
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  box-sizing: border-box;
}

.gallery .gallery-prev { transform: rotate(90deg); }
.gallery .gallery-next { transform: rotate(-90deg); }

/* Galerie Frame */
.gallery .gallery-frame{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  max-width: var(--gallery-max-width);
  width: 100%;
  height: auto;
  margin:auto;
  overflow: visible;
  box-sizing:border-box;
}

/* Galerie Bilder */
.gallery .gallery-frame img{
  display:none;
  width:100%;
  height:auto;
  object-fit:contain;
  border: var(--border-width) solid var(--border-color);
}

.gallery .gallery-frame img.active{
  display:block;
}

/* Galerie Desktop Größenlimit */
@media (min-width:801px){
  .gallery .gallery-frame img{
    width:auto;
    max-height: calc(62vh * 0.8);
    height:auto;
    object-fit:contain;
    border: var(--border-width) solid var(--border-color);
  }
}


/* =========================================================
   META BLOCK – DETAILS / VARIANT / PRICE / CART
   ========================================================= */

.meta{
  height:18vh;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border-top: var(--border-width) solid var(--border-color);
  align-items: stretch;
  box-sizing: border-box;
}

/* Meta Zellen Basis */
.meta > div{
  height:100%;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:var(--product-name-size);
  padding:0.6rem;
}

/* Meta Trenner */
.meta > div + div{
  border-left: var(--border-width) solid var(--border-color);
}


/* ---------- VARIANT SELECT ---------- */

.meta .variant{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  box-sizing:border-box;
}

.meta .variant-select{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.35rem 2.2em 0.35rem 0.4rem;

  font-family: var(--font-family);
  font-size: calc(var(--product-name-size) * 0.9);

  border: var(--border-width) solid var(--border-color);
  background-color: var(--bg);

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='black'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 0.7em;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  text-overflow: ellipsis;
}


/* ---------- DETAILS LIST ---------- */

.meta .details {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}

/* Links schwarz erzwingen */
.meta .details-list a,
.meta .details-list a:visited {
  color: var(--border-color);
  text-decoration: underline;
}

.meta .details-list a:hover{
  opacity: 0.7;
}

/* Liste mit Bindestrich */
.meta .details-list {
  display: block;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: calc(var(--product-name-size) * 0.7);
  text-align: left;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.meta .details-list li {
  position: relative;
  padding-left: 0.8em;
  text-indent: -0.8em;
  margin: 0.1rem 0;
}

.meta .details-list li::before {
  content: "- ";
  position: absolute;
  left: 0;
}


/* ---------- PRICE + CART ---------- */

.meta .price{
  background: var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
}

.meta .cart{
  background: #000;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Warenkorb Icon – Version A */
.meta-cart{
  width:34px;
  height:34px;
  object-fit:contain;
  display:block;
}

/* Warenkorb Icon – Version B (spätere Überschreibung aktiv) */
.meta-cart{
  background: #000;
  width:50px;
  height:50px;
  object-fit:contain;
  display:block;
}


/* =========================================================
   INTERACTION HELPERS
   ========================================================= */

/* Klickbare Pfeile */
.arrows span,
.all-row span {
  cursor: pointer;
  user-select: none;
}

/* Produktkachel als Link */
.product-tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:0.5rem;
  text-align:center;
  color:var(--border-color);
  text-decoration:none;
  cursor:pointer;
}

.product-tile:hover{
  background:rgba(0,0,0,0.05);
}


/* =========================================================
   ARROWS FOOTER ROW
   ========================================================= */

.arrows{
  height:8vh;
  border-top: var(--border-width) solid var(--border-color);
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  align-items:center;
  font-size: var(--arrow-size);
}

.arrows span{
  text-align:center;
  color:var(--border-color);
}

.end-arrows span{
  display:inline-block;
  width: var(--arrow-size);
  height: var(--arrow-size);
  background: var(--border-color);
  margin:auto;
}


/* =========================================================
   FULLSCREEN GALLERY OVERLAY
   ========================================================= */

.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: var(--border-width) solid var(--border-color);
}

.gallery-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  color: #000;
  background: #fff;
  border: var(--border-width) solid var(--border-color);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
}

/* Overlay Navigation */
.gallery-overlay .gallery-prev,
.gallery-overlay .gallery-next {
  background: rgba(255,255,255,0.8);
  border: var(--border-width) solid var(--border-color);
  color: #000;
  width: 44px;
  height: 44px;
  position: absolute;
  top: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--arrow-size);
}

.gallery-overlay .gallery-prev { left: 25px; transform: translateY(-50%) rotate(90deg); }
.gallery-overlay .gallery-next { right: 25px; transform: translateY(-50%) rotate(-90deg); }


/* =========================================================
   NEWSLETTER POPUP
   ========================================================= */

.newsletter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.newsletter-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.newsletter-popup {
  background: var(--bg);
  width: min(92vw, 420px);
  padding: 1.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #fff;
  border: var(--border-width) solid var(--border-color);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
}

.newsletter-headline {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

/* Brevo Overrides */
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.4rem;
  font-family: var(--font-family);
  font-size: 14px;
  border: var(--border-width) solid var(--border-color);
  box-sizing: border-box;
}

.newsletter-form button {
  margin-top: 0.6rem;
  padding: 0.4rem;
  width: 100%;
  background: #000;
  color: #fff;
  border: var(--border-width) solid #000;
  cursor: pointer;
}

.newsletter-form .sib-checkbox-content,
.newsletter-form .consent {
  font-size: 11px;
  line-height: 1.3;
}

.newsletter-form a {
  color: var(--border-color);
  text-decoration: underline;
}


/* =========================================================
   PROTOTYPE META BLOCK
   ========================================================= */

/* Desktop */
.product.prototype .meta-prototype {
  height: 18vh;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  border-top: var(--border-width) solid var(--border-color);
}

.product.prototype .meta-prototype > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}

.product.prototype .meta-prototype > div + div {
  border-left: var(--border-width) solid var(--border-color);
}

.proto-label {
  font-size: calc(var(--product-name-size) * 0.9);
}

.product.prototype .proto-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0.75rem;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}

.proto-newsletter {
  background: #000;
  color: #fff;
  flex-direction: column;
  gap: 0.5rem;
}

.proto-newsletter img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}


/* =========================================================
   ADMIN BAR OFFSET
   ========================================================= */

body.admin-bar .sticky{ top:32px; }
@media (max-width:782px){
  body.admin-bar .sticky{ top:46px; }
}


/* =========================================================
   MOBILE BREAK HELPER
   ========================================================= */

.mobile-break { display: none; }

@media (max-width: 800px) {
  .mobile-break { display: inline; }
}


/* =========================================================
   GLOBAL MOBILE VARIABLES
   ========================================================= */

@media (max-width:800px){
  :root{
    --brand-title-size:72px;
    --brand-claim-size:18px;
    --gallery-max-width:90%;
  }
}


/* =========================================================
   MOBILE: META BLOCK (ORIGINAL STRUKTUR BEIBEHALTEN)
   ========================================================= */

/* Alle vorhandenen Mobile-Meta-Blöcke unverändert belassen */
/* — Reihenfolge beibehalten, nur gruppiert — */

@media (max-width:800px){

  /* =========================================================
   GLOBAL MOBILE VARIABLES
   ========================================================= */

  :root{
    --brand-title-size:72px;
    --brand-claim-size:18px;
    --gallery-max-width:90%;
  }

  .meta{
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    height: 14vh;
  }

  .meta .price,
  .meta .cart{
    width: 100%;
  }

  .meta .price{
    grid-column: 3;
    grid-row: 1;
    height: 50%;
  }

  .meta .cart{
    grid-column: 3;
    grid-row: 1;
    height: 50%;
    align-self: flex-end;
  }

  .meta > div{
    padding:0.25rem;
    font-size:calc(var(--product-name-size)*0.75);
    white-space:normal;
    word-break:keep-all;
  }

  .meta .details{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:0;
    height:100%;
    box-sizing:border-box;
  }

  .meta .details-label{
    font-size:calc(var(--product-name-size)*0.8);
    margin:0 0 0.25rem 0;
    text-align:center;
  }

  .meta .details-list{
    font-size: clamp(11px, 1.3vw, 13px);
    line-height:1.25;
    text-align:left;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    word-break: break-word;
    hyphens: auto;
  }

  .meta .details-list li{
    margin:0.1rem 0;
    text-indent:-0.6em;
    padding-left:0.6em;
  }

  .meta .details-list li::before {
    content: "- ";
    margin-right: 4px;
  }

  .meta .variant{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    padding:0.25rem 0;
    height:100%;
    box-sizing:border-box;
  }

  .meta .variant .variant-select {
    width: 90%;
    font-size: 13px;
    padding: 0.3rem 2.2em 0.3rem 0.4rem;
    border: var(--border-width) solid var(--border-color);
    background-color: var(--bg);
    background-repeat: no-repeat;
    background-position: right 0.6em center;
    background-size: 0.6em;
    appearance: none;
    color: var(--border-color);
    -webkit-text-fill-color: var(--border-color);
    margin: auto;
  }

  .meta .price{
    border-bottom: var(--border-width) solid #000;
  }

  .meta .price span,
  .meta .cart img{
    transform:scale(0.85);
  }

  .meta-cart{
    width:24px;
    height:24px;
  }
  /* Mobile Bindestrich-Fix */
  .meta .details-list li::before {
    content: "- ";
    margin-right: 4px;
    display: inline;
    position: static;
  }

  .product.prototype .meta-prototype {
    height: 14vh;
    display: grid;
    grid-template-columns: 2fr 0.8fr;
    grid-template-rows: 1fr;
    border-top: var(--border-width) solid var(--border-color);
    box-sizing: border-box;
  }

  .product.prototype .proto-info {
    grid-column: 1;
    grid-row: 1;
    height: 80%;
    align-self: flex-end;
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
    font-size: 12px;
    line-height: 1.25;
    overflow: hidden;
    border: none;
  }

  .product.prototype .proto-label,
  .product.prototype .proto-info {
    grid-column: 1;
    width: 100%;
    box-sizing: border-box;
    border-left: none;
    border-right: none;
  }

  .product.prototype .proto-label {
    grid-row: 1;
    height: 20%;
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
    border-bottom: var(--border-width) solid var(--border-color);
    font-size: 11px;
  }

  .product.prototype .proto-newsletter {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    max-width: 14vh;
    border-left: var(--border-width) solid var(--border-color);
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .product.prototype .proto-newsletter img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }

  .product.prototype .meta-prototype {
    height: 14vh;
    display: grid;
    grid-template-columns: 2fr 0.8fr;
    grid-template-rows: 1fr;
    border-top: var(--border-width) solid var(--border-color);
    box-sizing: border-box;
  }

  .product.prototype .proto-label {
    grid-row: 1;
    height: 20%;
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
    border-bottom: var(--border-width) solid var(--border-color);
    font-size: 13px;
  }

  .product.prototype .proto-newsletter {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-left: var(--border-width) solid var(--border-color);
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product.prototype .proto-newsletter img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }

  .product.prototype .meta-prototype > div + div {
    border-left: none !important;
  }

}





/* =========================================================
   NEWSLETTER PAGES – ERWEITERUNG v2
   Korrekturen:
   1. Doppelrahmen entfernt (border-top/bottom bei .nl-gallery entfernt)
   2. Titelgrößen stärker differenziert
   3. Textfeld größer + Schrift responsiv per clamp()
   4. Pfeilhöhe einheitlich per flex-shrink:0
   ========================================================= */


/* ---------------------------------------------------------
   NL INTRO / COVER SEITE
   --------------------------------------------------------- */

.nl-intro-body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  border-top: var(--border-width) solid var(--border-color);
}

.nl-intro-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: var(--border-width) solid var(--border-color);
}

.nl-intro-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
}

.nl-issue {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.5;
}

.nl-intro-text {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.nl-toc {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: var(--border-width) solid var(--border-color);
  padding-top: 1rem;
}

.nl-toc a {
  color: var(--border-color);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1.8;
}

.nl-toc a:hover {
  opacity: 0.5;
}

.nl-scroll-hint {
  cursor: pointer;
}


/* ---------------------------------------------------------
   NL DOPPELTITEL
   FIX 1: Kein border-bottom hier — die Border kommt vom
           border-top der Galerie, sonst Doppelrahmen.
   FIX 2: Schriftgrößen stärker differenziert:
           Kategorie (Launch/Prototype) größer, Name kleiner.
   --------------------------------------------------------- */

.nl-title {
  height: 12vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* border-bottom ENTFERNT – Galerie bringt border-top */
  flex-shrink: 0;                         /* FIX 4: Höhe bleibt stabil */
}

.nl-title-category,
.nl-title-name {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-bottom: var(--border-width) solid var(--border-color);
}

.nl-title-category {
  font-size: 38px;                        /* FIX 2: größer */
  border-right: var(--border-width) solid var(--border-color);
  font-weight: 700;
}

.nl-title-name {
  font-size: 22px;                        /* FIX 2: kleiner */
  padding: 0 1rem;
  text-align: center;
  font-weight: 400;
}


/* ---------------------------------------------------------
   NL GALERIE
   FIX 1: border-top und border-bottom ENTFERNT.
           Die Border kommt von .nl-title border-bottom
           (oben) und .nl-text border-top (unten).
   --------------------------------------------------------- */

.nl-gallery {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-top und border-bottom ENTFERNT – kein Doppelrahmen */
  gap: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

.nl-gallery-prev,
.nl-gallery-next {
  background: transparent;
  border: var(--border-width) solid var(--border-color);
  padding: 8px 12px;
  cursor: pointer;
  font-size: var(--arrow-size);
  color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.nl-gallery-prev { transform: rotate(90deg); }
.nl-gallery-next { transform: rotate(-90deg); }

.nl-gallery-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--gallery-max-width);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.nl-gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.nl-gallery-slide.active {
  display: flex;
}

.nl-gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: var(--border-width) solid var(--border-color);
}

.nl-gallery-video {
  width: 100%;
  height: 100%;
}

.nl-gallery-video iframe {
  width: 100%;
  height: 100%;
  border: var(--border-width) solid var(--border-color);
  display: block;
}


/* ---------------------------------------------------------
   NL TEXTBLOCK
   FIX 3: Höhe von ~5vh auf 18vh erhöht (wie .meta).
           Schrift per clamp() responsiv:
           mindestens 11px, ideal 1.4vw, max 15px.
           Auf Mobile separater clamp-Wert.
   FIX 4: flex-shrink:0 damit die Höhe nicht kollabiert.
   --------------------------------------------------------- */

.nl-text {
  height: 18vh;                           /* FIX 3: größeres Feld */
  flex-shrink: 0;                         /* FIX 4: stabile Höhe */
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: var(--border-width) solid var(--border-color);
  box-sizing: border-box;
  overflow: hidden;
}

.nl-text-label {
  font-size: clamp(11px, 1.2vw, 15px);   /* FIX 3: responsiv */
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.15em;
}

.nl-text-body {
  margin: 0;
  font-size: clamp(11px, 1.2vw, 15px);   /* FIX 3: responsiv */
  line-height: 1.55;
}

.nl-text-link {
  color: var(--border-color);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: clamp(11px, 1.2vw, 15px);
  padding-top: 0.15em;
}

.nl-text-link:hover {
  opacity: 0.6;
}

/* FIX 4: Pfeil-Footer bekommt feste Höhe wie auf Hauptseite */
.nl-arrows {
  flex-shrink: 0;
  /* erbt alle anderen Eigenschaften von .arrows */
}


/* ---------------------------------------------------------
   NEWSLETTER MOBILE
   --------------------------------------------------------- */

@media (max-width: 800px) {

  /* Intro: übereinander stapeln */
  .nl-intro-body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .nl-intro-brand {
    border-right: none;
    border-bottom: var(--border-width) solid var(--border-color);
  }

  /* Doppeltitel: kleinere Schrift */
  .nl-title-category {
    font-size: 22px;
  }

  .nl-title-name {
    font-size: 14px;
  }

  /* Textblock: kompakteres Padding, kleinere Schrift */
  .nl-text {
    height: 20vh;
    padding: 0.6rem 1rem;
    flex-direction: column;
    gap: 0.2rem;
  }

  .nl-text-label,
  .nl-text-body,
  .nl-text-link {
    font-size: clamp(10px, 2.8vw, 13px);  /* FIX 3 Mobile */
  }

}
