
/* ========================================================
   ✨ Typografie-Setup für W3.CSS mit REM-Grid
   ======================================================== */

/* Font-Set-Up, Schriften werden lokal gehostet */
/*        oder beim Laden von Google            */

/* Google Fonts: Roboto Regular, Italic, Bold, Bold Italic */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');


/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
/*  src: url('/assets/roboto-v48-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
/*  src: url('/assets/roboto-v48-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
/*  src: url('/assets/roboto-v48-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
/*  src: url('/assets/roboto-v48-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* später mal
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  src: url('/roboto-variable.woff2') format('woff2-variations');
  font-display: swap;
}

oder

<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">

*/ 
   

/* 🌱 Basiswerte & Skalierung
   Standard-Root-Font: 1rem = 16px
   Alle Größen basieren auf `rem` für Responsive & Lesbarkeit
*/
:root {
  /* 🧢 Headline-Größen */
  --h1-size: 2.75rem;     /* ~40px */
  --h2-size: 2rem;       /* ~32px */
  --h3-size: 1.75rem;    /* ~28px */
  --h4-size: 1.25rem;    /* ~20px */
  --h5-size: 1.05rem;    /* ~16.8px */
  --h6-size: 1rem;       /* ~16px */

  /* 🎨 Headline-Styling */
  --headline-weight: 400;
  --headline-color: #D20000;
  --headline-font: "Roboto", sans-serif;
  --headline-spacing: 0.01em;
  --headline-lineheight: 1.2;
  --headline-transform: none;
  
  /* 🎨 Copytext-Styling */
  --body-font: "Roboto", sans-serif;
}

/* 🏷️ Headline-Klassenbindung – volle Kontrolle, W3-kompatibel */
.h1Palnet { font-size: var(--h1-size); }
.h2Palnet { font-size: var(--h2-size); }
.h3Palnet { font-size: var(--h3-size); }
.h4Palnet { font-size: var(--h4-size); }
.h5Palnet { font-size: var(--h5-size); }
.h6Palnet { font-size: var(--h6-size); }


@media screen and (max-width: 768px) {
.h1Palnet { font-size: var(--h3-size); }
.h2Palnet { font-size: var(--h3-size); }
.h3Palnet { font-size: var(--h3-size); }
.h4Palnet { font-size: var(--h4-size); }
.h5Palnet { font-size: var(--h5-size); }
.h6Palnet { font-size: var(--h6-size); }
}






.h1Palnet,
.h2Palnet,
.h3Palnet,
.h4Palnet,
.h5Palnet,
.h6Palnet {
  font-weight: var(--headline-weight);
  color: var(--headline-color);
  font-family: var(--headline-font);
  letter-spacing: var(--headline-spacing);
  line-height: var(--headline-lineheight);
  text-transform: var(--headline-transform);
  margin-bottom: 1rem;
}

/* h4 und h5 in Produktcard */
.listingPalnet { color: black !important; text-decoration: none !important;}


/* 🧭 Accessible Link-Styling */
.linkPalnet {
  color: #3344dd;                 /* dunkelblau, hoher Kontrast zu weiß (#fff) */
  text-decoration: underline;     /* klare Link-Kennung */
  font-weight: 400;
  transition: color 0.2s ease;
}

.linkPalnet:hover,
.linkPalnet:focus {
  color: #1122aa;                 /* noch dunkler für Hover & Fokus */
  outline: none;
}

.linkPalnet:visited {
  color: #551A8B;                 /* klassisch violett – erkenntlich, aber lesbar */
}

/* 📦 Reset für Basis-Elemente – alles in REM */

html, body {  /* font-size: 1rem !important;    16px */
              line-height: 1.2;
              font-family: var(--body-font);
              color: #333 !important;
              font-weight: 400;
              margin-bottom: 1rem;}





/* ========================================
   🧱 Layout: Produktkarten & Container
   ========================================
   Zweck:
   - Flex-Ausgleich zwischen Bild, Text & Preis
   - gleichmäßige Abstände
   - zentrierte Darstellung auf kleinen Viewports
*/

/* 📦 Produktkarte als flexibles Container-Modul */


.product-card-flexPalnet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;     /* → Preisbereich wird nach unten gedrückt */
  gap: 0.75rem;                        /* → etwas mehr Luft zwischen Inhaltsebenen */
  padding: 1rem;
  background-color: white;

  /* 📏 Größe & Zentrierung */
  width: 100%;
  max-width: 280px;                   /* → gleiche Breite wie Image-Wrapper (250px + Padding) */
  margin: 0 auto;                     /* → zentriert auf Mobil & kleinen Desktops */

}

/* 📱 Mobile-Abstand zwischen Karten */
@media screen and (max-width: 768px) {
  .product-card-flexPalnet {
    margin-bottom: 1.25rem;           /* → Abstand zur nächsten Karte */
  }
}




/* 📦 Textblock mit fixer Höhe – egal ob Vendor aktiv oder nicht */
.product-textWrapperPalnet {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* min-height: 7.8em !important; bei Vendor optional 7.8 em, sonst 6.4em */
  min-height: 10rem !important;
}

/* 🧢 Vendor-Stil – klein & unaufdringlich */
.vendorPalnet {
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 🧠 Titel & Subtitle: Clamping wie gehabt */
.product-titlePalnet,
.product-subtitlePalnet {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  -webkit-line-clamp: 2 !important;
}

.product-titlePalnet {
  -webkit-line-clamp: 2 !important;
  line-height: 1.2em !important; /* bedingt durch h4-size: 1.25rem !important; */
  max-height: calc(1.2em * 2) !important;
}

.product-subtitlePalnet {
  -webkit-line-clamp: 2 !important;
  line-height: 1.304em !important;   /* bedingt durch h5-size: 1.15rem !important; */
   max-height: calc(1.304em * 2) !important;
}

/* 📐 Typografische Höhenangleichung per Formel
   Ziel: gleiche absolute Zeilenhöhe bei unterschiedlich großen Fontgrößen

   Gegeben:
     A_fontSize × A_lineHeight = B_fontSize × B_lineHeight

   Daraus folgt:
     B_lineHeight = (A_fontSize × A_lineHeight) / B_fontSize

   Anwendung:
     Wenn z. B. A (Titel) größer ist als B (Untertitel),
     kannst du B_lineHeight so justieren, dass die visuelle Zeilenhöhe gleich bleibt.
     → Ideal für Rasterabgleich von h4/h5, Überschrift/Text oder Produktkarten
*/



/* 📱 Mobile: Volltext statt Clamp */
@media screen and (max-width: 768px) {
  .product-titlePalnet,
  .product-subtitlePalnet {
    -webkit-line-clamp: unset !important;
    max-height: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
}


/* ========================================
   💰 Preisbereich
   ======================================== */

/* 💰 Preiscontainer unten fixieren */
.product-pricePalnet {
  margin-top: auto;
  text-align: center;  
  }

.price-containerPalnet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 0.5em;
}

.price-standard,
.price-reduced,
.price-range {
  font-size: 1rem;
  font-weight: bold;
  color: #000;
}

.price-strike {
  font-size: 1rem;
  color: #D20000;
  text-decoration: line-through;
}

.price-base {
  font-size: 0.75rem;
  color: #000;
  margin-left: 6px;
  white-space: nowrap;
  align-self: center;
}



/* ========================================
   🔥 SVG-Flammen-Indikator
   ======================================== */

.flame-top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  width: 45px;
  height: 45px;
}


/* ========================================
   🎛️ Container-Overrides
   ======================================== */

//.w3-container {
// padding-left: 0 !important;
//  padding-right: 0 !important;
//  max-width: 100% !important;
/}


.customCardSubmitStyle {height:515px; /* übernommen vom Coupon-Container */
                  display:flex; 
                  flex-direction:column; 
                  justify-content:space-between;
}
                  
                  
@media screen and (max-width: 600px) {
.customCardSubmitStyle {height:auto; 
                  display:inline-block;
} 
}


/*
//.gridlockhack {
//  margin-left: 0 !important;
//  margin-right: 0 !important;
//  padding-left: 0 !important;
//  padding-right: 0 !important;
//  max-width: none !important;
// }
*/



/* ========================================
   🎛️ Custom Buttons & Kontrast
   ======================================== */

.buttonPalnet {
  background-color: var(--btn-bg);
  color: #fff !important; /* Temporär 'fff um Gridlock zu überschreiben var(--btn-hover-text) Settings.buttonhover_text */
  text-decoration: none !important;
}

.buttonPalnet:hover {
  background-color: var(--btn-hover);
  color: #fff !important; /* Temporär 'fff um Gridlock zu überschreiben var(--btn-hover-text) Settings.buttonhover_text */
  text-decoration: none !important;
}

.buttonPalnet:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

@media screen and (max-width: 600px) {
  .buttonPalnet {
    min-height: 48px;
    font-size: 1rem;
    width: 100%;
    display: inline-block;     /* Kein Flex mehr – Button bleibt klassisch */
    line-height: 48px;         /* Vertikale Zentrierung durch Textzeile */
    text-align: center;
    margin-bottom: 8px;
  }
}



/* ========================================
   🎞️ Slider / Slides
   ======================================== */

.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;
  height: auto;
  display: block;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}


/* ========================================
   📱 Mobile Overrides
   ======================================== */

@media (max-width: 768px) {
  .custom-button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 20px;
  }

/*.w3-display-bottomleft {
    font-size: 14px;
    padding: 4px 8px;
  }
  */
}

/* 🖼️ image-coverPalnet: Vereinheitlichte Bilddarstellung für Produktkacheln
   Features:
   - Fixes Seitenverhältnis via aspect-ratio → CLS-Schutz bei lazy loading
   - object-fit: cover → Bild füllt Box visuell gleichmäßig (leichter Beschnitt möglich)
   - optionaler Transition-Effekt → sanftes Einblenden beim Laden
*/


.image-wrapperPalnet {
  aspect-ratio: 1 / 1;
  max-width: 100%;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.image-coverPalnet {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s ease-out;
}

/* @media screen and (max-width: 480px) {
  .image-wrapperPalnet {
    width: 100%;
    max-width: 200px;
  }
}
*/








/* ========================================
   Select für Formulare
   ======================================== */
/*
label {width:100px; background-color: yellow; display: inline-block}
*/


	
	select {
		border: 1px solid;
		padding: 6px 4px;
		outline: none;
		font: 13px;
  	/*	color: green;*/
		margin: 0;
		width: 50%;
		max-width: 100%;
		display: inline-block;
		margin-bottom: 20px;
		background-color: white;
	 }

		
	select,option {
	  height: 40px;
	  background-color: white;
	}


.add-and-select label {width:100px; display: inline-block;}
/* .add-and-select select {width:100px !important; display: inline-block} */
.add-and-select #quantity {width:100px; }	


/* ========================================
   🧢 Farben / Signalpalette
   ======================================== */

.w3-signal-yellow  { color:#fff; background-color:#f7ba0b!important; }
.w3-signal-orange  { color:#fff; background-color:#d4652f!important; }
.w3-signal-red     { color:#fff; background-color:#a02128!important; }
.w3-signal-violet  { color:#fff; background-color:#904684!important; }
.w3-signal-blue    { color:#fff; background-color:#154889!important; }
.w3-signal-green   { color:#fff; background-color:#317f43!important; }
.w3-signal-grey    { color:#fff; background-color:#9b9b9b!important; }
.w3-signal-brown   { color:#fff; background-color:#7b5141!important; }
.w3-signal-white   { color:#000; background-color:#f4f4f4!important; }
.w3-signal-black   { color:#fff; background-color:#282828!important; }

.w3-highway-brown
{color:#fff!important;background-color:#633517!important}

.w3-highway-red
{color:#fff!important;background-color:#a6001a!important}

.w3-highway-orange
{color:#fff!important;background-color:#e06000!important}

.w3-highway-schoolbus
{color:#fff!important;background-color:#ee9600!important}

.w3-highway-yellow
{color:#fff!important;background-color:#ffab00!important}

.w3-highway-green
{color:#fff!important;background-color:#004d33!important}

.w3-highway-blue
{color:#fff!important;background-color:#00477e!important}


.w3-safety-red
{color:#fff!important;background-color:#bd1e24!important}

.w3-safety-orange
{color:#fff!important;background-color:#e97600!important}

.w3-safety-yellow
{color:#fff!important;background-color:#f6c700!important}

.w3-safety-green
{color:#fff!important;background-color:#007256!important}

.w3-safety-blue
{color:#fff!important;background-color:#0067a7!important}

.w3-safety-purple
{color:#fff!important;background-color:#964f8e!important}

/* ========================================
   Debug
   ======================================== */


body.debug .product-card-flexPalnet {
  outline: 1px dashed magenta;
}
body.debug .product-textWrapperPalnet {
  background-color: rgba(255, 0, 0, 0.08);
}

body.debug .product-pricePalnet {
  background-color: green !important;
  }

body.debug .price-containerPalnet {
  background-color: yellow !important;
}

body.debug .product-textWrapperPalnet {
  background-color: rgba(255, 0, 0, 0.05); /* Debug-Farbe */
}





