@font-face {
  font-family: "Futura";
  src: url("https://cdn.mdmw.de/fonts/Nunito_Sans/NunitoSans-VariableFont_YTLC%2Copsz%2Cwdth%2Cwght.ttf");
  font-weight: normal;
  font-style: normal;
}

 .container {
  max-width: fit-content !important;
 }

@media (max-width:900px){
.container {
  width: auto !important;
  background: #ffffff !important;
}
}

html { background: #ffffff !important;}
body { background: #ffffff !important;}
html[data-theme="dark"] { background: #ffffff !important;}

/* Ebay darkmode */
@media (prefers-color-scheme: dark) {
.container {
  width: auto !important;
  background: #ffffff !important;
}
.mdmw-gallery-inner {
  background: #ffffff;
}
.mdmw-thumb img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: unset !important;
}
}


:root{

    --h1-line-height:0.9;
    --h2-line-height:0.9;
    --h3-line-height:1.2;
    --h4-line-height:1.2;
    --h5-line-height:1.2;
    --h6-line-height:1.2;

    --h1-font-weight:900;
    --h2-font-weight:900;

    --h1-font-size:clamp(34px, 5vw, 58px);;
    --h2-font-size:38px;
    --h3-font-size:28px;
    --h4-font-size:22px;
    --h5-font-size:18px;
    --h6-font-size:16px;

    --brand-color:#D9000C;

}

body {
    padding: 0;
    margin: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
}

.z-n1 { z-index: -1;}
.z-0 { z-index: 0;}
.z-1 { z-index: 1;}

.min-h-300 {
  min-height: 300px;
}

.bg-brand {
    background: var(--brand-color);
}

h1,h2,h3,h4,h5,h6 {
margin-top: 0;
margin-bottom: 2rem;
font-family: "Nunito Sans", sans-serif;
font-optical-sizing: auto;
  font-weight:bold;
  font-style: normal;
  font-variation-settings:
    "wdth" 100,
    "YTLC" 500;
}

ul {
    margin: 0;
    padding: 0;
}
ul li {
    list-style: none;
    margin-bottom: 1rem;
}

.service ul li {
    display: flex;
    flex-wrap: nowrap;
    justify-content:start;
    align-items:center;
    padding-left: 30px;
    position: relative;
}
.service ul li::before {
    content: "";
  background: url("https://cdn.mdmw.de/vendor/bootstrap/font/icons/check-lg.svg");
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
  height: 20px;
  width: 20px;
  left: 0;
  top: 0;
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: invert(1);
}




.selling-points {
  position: relative;
  height: auto;
}

.selling-points h1,
.selling-points h2,
.selling-points h3,
.selling-points h4,
.selling-points h5 {
  font-size: var(--h4-font-size);
  line-height: var(--h4-line-height);
  margin-bottom: 1rem;
}

/* Textcontainer */
.selling-points .content {
  max-height: 220px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.selling-points .content::after {
    content: "";
    position: absolute; 
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    height: 1.5rem;
    background: linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Toggle aktiv → voller Inhalt */
#toggle-selling-points:checked ~ .content {
  max-height: none;
}


/* Button Styling */
.selling-points .read-more {
  display: block;
  margin-top: 5px;
  color: #666666;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  height: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Checkbox ausblenden */
#toggle-selling-points {
  display: none;
}


#toggle-selling-points:checked ~ .read-more .read-more-text {
    text-indent: -120vw;
  width: 100%;
  position: relative;
  display: block;
  height: 0;
}

/* Text des Buttons ändern */
#toggle-selling-points:checked ~ .read-more::after {
  content: "Weniger anzeigen";
  text-indent: unset !important;
}



/* MARKEN TOGGLE */

/* Textcontainer */
.marken-body {
  position: relative;
}
.marken-body .content-marke {
  max-height: 150px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative; /* wichtig, damit ::after sich korrekt positioniert */
}

.marken-body .content-marke::after {
    content: "";
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5rem;
    background: linear-gradient(0deg, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0) 100%);
}

/* Toggle aktiv → voller Inhalt */
#marke-1:checked ~ .content-marke,
#marke-2:checked ~ .content-marke {
  max-height: none;
}

#marke-1:checked ~ .content-marke::after,
#marke-2:checked ~ .content-marke::after {
  display: none;
}

/* Button Styling */
.marken-body .read-more {
  display: block;
  margin-top: 5px;
  color: #666666;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  height: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Checkbox ausblenden */
#marke-1,
#marke-2 {
  display: none;
}

/* Button-Text "Mehr anzeigen" → "Weniger anzeigen" */
#marke-1:checked ~ .read-more .read-more-text,
#marke-2:checked ~ .read-more .read-more-text {
  text-indent: -120vw;
  width: 100%;
  position: relative;
  display: block;
  height: 0;
}

#marke-1:checked ~ .read-more::after,
#marke-2:checked ~ .read-more::after {
  content: "Weniger anzeigen";
  text-indent: unset !important;
}








.service ul li img {
    width: 24px;
    height: auto;
    filter: invert(1);
    margin-right: 0.5rem;
}

.selling-points ul {
margin-top: 0;
font-weight: normal;
}
.selling-points ul li {
    list-style: circle;
}

h1 {
    font-size: var(--h1-font-size);
    line-height: var(--h1-line-height);
    font-weight: var(--h1-font-weight);
}

h2 {
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
    font-weight: var(--h2-font-weight);
}

h3 {
    line-height: var(--h3-line-height);
    font-size: var(--h3-font-size);
}

h4 {
    line-height: var(--h4-line-height);
}

h5 {
    line-height: var(--h5-line-height);
}

h6 {
    line-height: var(--h6-line-height);
}

.navbar-brand {
    width: 80px;
    height: auto
}

.header-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: top;
}

#artikelbeschreibung img {
    height: auto;
    padding: 0;
    margin: 0;
    display: block;
    border-radius:7px;
}



/* Artikel Beschreibung */

#artikelbeschreibung {
  background: #f2f2f2;
  padding-top: calc(var(--bs-gutter-x) * .5);
  padding-bottom: calc(var(--bs-gutter-x) * .5);
  border-radius: 7px;
}

#artikelbeschreibung h1,
#artikelbeschreibung h2,
#artikelbeschreibung h3 {
  font-size: var(--h3-font-size);
  line-height: 1.2;
}
#artikelbeschreibung .col {
  margin-bottom: 1rem;
  margin-top: 1rem;
}
#artikelbeschreibung .col-md-4 > *,
#artikelbeschreibung .col-lg-4 > *,
#artikelbeschreibung .col-xl-4 > *,
#artikelbeschreibung .col-md-3 > *,
#artikelbeschreibung .col-lg-3 > *,
#artikelbeschreibung .col-xl-3 > * {
background: #FFFFFF;
padding: 1rem;
margin: 0 !important;
border-radius:0;
}
#artikelbeschreibung .col > *:first-child,
#artikelbeschreibung .col > *:first-child {
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}
#artikelbeschreibung .col > *:last-child,
#artikelbeschreibung .col > *:last-child{
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
}

#artikelbeschreibung .col-lg-3 h2,
#artikelbeschreibung .col-lg-3 h3,
#artikelbeschreibung .col-lg-3 h4 {
  font-size: var(--h6-font-size);
  line-height: var(--h4-line-height);
  margin-bottom: 0;

}

#artikelbeschreibung .col-xl-3 h2,
#artikelbeschreibung .col-xl-3 h3,
#artikelbeschreibung .col-xl-3 h4 {
  font-size: var(--h6-font-size);
  line-height: var(--h4-line-height);
  margin-bottom: 0;

}

/* ------- GALLERIE --------- */







/* ===== Grundlayout ===== */
.mdmw-gallery {
    aspect-ratio: 1/0.85;
}
.mdmw-gallery-inner{
  display:flex;
  align-items:flex-start;
  height:100%;
}

/* ===== Bühne rechts ===== */
.mdmw-stage{
  width:100%;
}

/* Bilder in der Bühne: 100% breit, height auto */
.mdmw-item{ display:none; }
.mdmw-item img{
  display:block;
  width:100%;
  height:auto;              /* <- wie gewünscht */
  object-fit:contain;       /* schadet nicht, falls später begrenzt wird */
  border-radius:14px;
}



.mdmw-thumbs{
   max-height: 100%;
   overflow-x: auto;
   position: relative;
   padding-right: 10px;
}
.mdmw-thumbs-wrapper{
height: 100%;
position: relative;
}
.mdmw-thumbs-wrapper::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3rem;
    background: #FFFFFF;
    background: linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    bottom: 0;
    left: 0;
    z-index: 1;
}

.mdmw-thumbs::-webkit-scrollbar{ width:6px; }
.mdmw-thumbs::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.22);
  border-radius:3px;
}

/* Einzel-Thumb */
.mdmw-thumb{
  display:block;
  background: #f2f2f2;
  margin-bottom: 0.5rem;
  cursor:pointer;
  background:#f2f2f2;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 1px 1px rgba(0,0,0,.03);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.mdmw-thumb:hover{ transform:translateY(-1px); box-shadow:0 2px 8px rgba(0,0,0,.08); }
.mdmw-thumb img{ width:100%; height:auto; display:block;}

/* Radios (Fallback) */
.mdmw-gallery>input[type="radio"]{ position:absolute; left:-9999px; }

.mdmw-item {
    background: #f2f2f2;
}
.mdmw-item img {mix-blend-mode: darken;}

/* Sichtbarkeit Bühne für bis zu 10 Bilder */
#id1:checked  ~ .mdmw-gallery-inner .mdmw-stage .mdmw-item[data-i="1"]{ display:block; }
#id2:checked  ~ .mdmw-gallery-inner .mdmw-stage .mdmw-item[data-i="2"]{ display:block; }
#id3:checked  ~ .mdmw-gallery-inner .mdmw-stage .mdmw-item[data-i="3"]{ display:block; }
#id4:checked  ~ .mdmw-gallery-inner .mdmw-stage .mdmw-item[data-i="4"]{ display:block; }
#id5:checked  ~ .mdmw-gallery-inner .mdmw-stage .mdmw-item[data-i="5"]{ display:block; }
#id6:checked  ~ .mdmw-gallery-inner .mdmw-stage .mdmw-item[data-i="6"]{ display:block; }
#id7:checked  ~ .mdmw-gallery-inner .mdmw-stage .mdmw-item[data-i="7"]{ display:block; }
#id8:checked  ~ .mdmw-gallery-inner .mdmw-stage .mdmw-item[data-i="8"]{ display:block; }
#id9:checked  ~ .mdmw-gallery-inner .mdmw-stage .mdmw-item[data-i="9"]{ display:block; }
#id10:checked ~ .mdmw-gallery-inner .mdmw-stage .mdmw-item[data-i="10"]{ display:block; }

/* aktives Thumbnail hervorheben */
#id1:checked  ~ .mdmw-gallery-inner .mdmw-thumbs label[for="id1"],
#id2:checked  ~ .mdmw-gallery-inner .mdmw-thumbs label[for="id2"],
#id3:checked  ~ .mdmw-gallery-inner .mdmw-thumbs label[for="id3"],
#id4:checked  ~ .mdmw-gallery-inner .mdmw-thumbs label[for="id4"],
#id5:checked  ~ .mdmw-gallery-inner .mdmw-thumbs label[for="id5"],
#id6:checked  ~ .mdmw-gallery-inner .mdmw-thumbs label[for="id6"],
#id7:checked  ~ .mdmw-gallery-inner .mdmw-thumbs label[for="id7"],
#id8:checked  ~ .mdmw-gallery-inner .mdmw-thumbs label[for="id8"],
#id9:checked  ~ .mdmw-gallery-inner .mdmw-thumbs label[for="id9"],
#id10:checked ~ .mdmw-gallery-inner .mdmw-thumbs label[for="id10"]{
  border-color:var(--brand-color);
}

/* Mobil: */
@media (max-width:900px){
.mdmw-gallery {
  aspect-ratio: unset;
}
.mdmw-stage{
  width:100%;
  order: 0;
}
.mdmw-thumbs-wrapper {
  order: 1;
  order: 1 !important;
    width: 100%;
    display: block;              /* verhindert horizontales "Schieben" rechts */
    position: relative;
}
.mdmw-thumbs-wrapper::after {
  content: "";
  position: absolute;
  width: 3rem;
  height: 100%;
  background: #FFFFFF;
  background: linear-gradient(-90deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  bottom: 0;
  right: 0;
  left: unset;
  z-index: 1;
}
.mdmw-gallery-inner{ 
  display: flex;               /* <— sicherstellen, dass Flex aktiv ist */
    flex-direction: column !important; /* <— erzwingt senkrechte Reihenfolge */
    align-items: stretch;
}
.mdmw-thumbs{
  display: flex;
  flex-wrap: unset;
  flex:0 0 auto;
  width:100%;
  max-height:none;
  overflow-x:auto;
  overflow-y:hidden;
  flex-direction:row;
  margin-top: 1rem;
}
.mdmw-thumb{ 
  flex:0 0 84px; 
  height:84px;
  margin-right: 1rem;
}
.mdmw-stage{ 
  min-height:40vh; 
  order: 0 !important;
    width: 100%;
}

} /* Mobile end*/


@supports (-webkit-touch-callout: none) {
  @media (max-width: 900px) {
    .mdmw-thumbs-wrapper {
      flex: 0 0 auto;
      width: 100%;
      float: none;
      clear: both;
    }
  }
}


/* Gallerie der Artikel */
.gallery-section {
  position: relative;
  display: block;
  background: #f2f2f2;
  padding: 1rem;
  border-radius: 7px;

}
.gallery-section .gallery-title {
  padding: 0;
}

.gallery-section{
  margin-top:2rem;
  margin-bottom:3rem
}
.gallery-title{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-bottom:1rem
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:16px
}
.gallery-card{
  color: unset;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  height:100%;
  display:flex;
  flex-direction:column;
}
.gallery-card .img-wrap{aspect-ratio:1/1;display:block;overflow:hidden}
.gallery-card img{width:100%;height:100%;object-fit:contain;background:#fff}
.gallery-card .body{padding:10px;display:flex;flex-direction:column;gap:6px}
.gallery-card .title{font-size:.95rem;line-height:1.25rem;height:2.5rem;overflow:hidden}
.gallery-card .price{font-weight:700;white-space:nowrap}
.gallery-card .type{font-size:.8rem;opacity:.75}