/* Original con-ta-CI-Schriftschnitte (von dir bereitgestellt, lokal unter
   /fonts/ eingebunden - kein Google-Fonts-Ersatz mehr). Verwendung siehe
   .ct-hero/.ct-intro-section/.ct-segment weiter unten; der Rest der App
   bleibt bei --conta-font (Franklin Gothic Medium, Systemschrift). */
@font-face {
  font-family: "Franklin Gothic Demi";
  src: url("/fonts/FranklinGothicDemi.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Franklin Gothic Book";
  src: url("/fonts/FranklinGothicBook.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Minion Pro";
  src: url("/fonts/MinionProItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Denishandwritting";
  src: url("/fonts/Denishandwritting.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --conta-primary: #B61918;
  --conta-primary-dark: #991413;
  --conta-primary-light: #C61D1C;
  --conta-secondary: #232323;
  --conta-secondary-dark: #1A1A1A;
  --conta-secondary-light: #EDEDED;
  --conta-bg: #FFFFFF;
  --conta-text: #111111;
  /* Heller Kopfbalken (Vorbild www.conta-shop.de): helles Grau statt Schwarz,
     Schrift/Icons in der Rot-Marke des Logos statt Weiß. */
  --conta-header-bg: #F1EFEC;
  --conta-header-border: #E3E0DB;
  --conta-font: "Franklin Gothic Medium", "Franklin Gothic", Arial, sans-serif;
  --conta-radius: 4px;
  --conta-radius-lg: 10px;
  --conta-border: #DDDDDD;
  --conta-transition: 0.18s ease;
  /* Dezente Schattentiefen für Karten/Header - sorgen für mehr optische Tiefe,
     ohne vom reduzierten con-ta-Look abzuweichen. */
  --conta-shadow-sm: 0 1px 3px rgba(20, 20, 20, 0.08);
  --conta-shadow-md: 0 6px 18px rgba(20, 20, 20, 0.10);
  --conta-shadow-lift: 0 10px 24px rgba(20, 20, 20, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--conta-font);
  color: var(--conta-text);
  background: #F7F6F5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--conta-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

header.ct-header {
  background: var(--conta-header-bg);
  color: var(--conta-primary);
  border-bottom: 1px solid var(--conta-header-border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.06);
  transition: transform 0.25s ease, height 0.2s ease, box-shadow 0.25s ease;
}

/* Sticky-Verhalten wie auf conta-shop.de: beim Runterscrollen ausblenden,
   beim Hochscrollen wieder einblenden; ab kurzer Scroll-Distanz kompakter. */
body.ct-nav-hidden header.ct-header {
  transform: translateY(-100%);
}
body.ct-nav-small header.ct-header {
  height: 54px;
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.06);
}
body.ct-nav-small .ct-logo-img {
  height: 30px;
}

.ct-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--conta-primary);
  text-decoration: none;
}
.ct-brand:hover {
  color: var(--conta-primary-dark);
  text-decoration: none;
}

.ct-logo-img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 2px;
}

.ct-brand-title {
  letter-spacing: 0.02em;
}

nav.ct-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

nav.ct-nav a, nav.ct-nav button.ct-link {
  color: var(--conta-primary);
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

nav.ct-nav a:hover, nav.ct-nav button.ct-link:hover {
  color: var(--conta-primary-dark);
  text-decoration: none;
}

nav.ct-nav a.ct-active {
  color: var(--conta-primary-dark);
  border-bottom: 2px solid var(--conta-primary-dark);
  padding-bottom: 2px;
}

.ct-badge {
  background: var(--conta-primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
  margin-left: 0.3rem;
}

/* Header-Suche + Icon-Buttons (Konto/Warenkorb/Logout), nach Vorbild
   conta-shop.de. */
.ct-header-search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 340px;
  margin: 0 1.75rem;
  background: #fff;
  border: 1px solid var(--conta-header-border);
  border-radius: 999px;
  overflow: hidden;
  transition: box-shadow var(--conta-transition), border-color var(--conta-transition);
}
.ct-header-search:focus-within {
  border-color: var(--conta-primary-light);
  box-shadow: 0 0 0 2px rgba(182, 25, 24, 0.15);
}
.ct-header-search input[type="search"] {
  flex: 1;
  border: none;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.88rem;
  border-radius: 0;
}
.ct-header-search input[type="search"]:focus {
  outline: none;
}
.ct-header-search button.ct-icon-btn {
  color: var(--conta-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.ct-header-search button.ct-icon-btn:hover {
  color: var(--conta-primary);
  background: none;
}
.ct-header-search button.ct-icon-btn svg {
  width: 18px;
  height: 18px;
}

.ct-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--conta-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.4rem;
  border-radius: 999px;
  position: relative;
  text-decoration: none;
  line-height: 1;
  transition: background var(--conta-transition), color var(--conta-transition);
}
.ct-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}
.ct-icon-btn:hover {
  color: var(--conta-primary-dark);
  background: rgba(182, 25, 24, 0.10);
  text-decoration: none;
}
.ct-icon-btn.ct-active {
  color: var(--conta-primary-dark);
}
.ct-header-user {
  color: var(--conta-secondary);
  font-size: 0.9rem;
}
.ct-header-user-label {
  font-size: 0.85rem;
}
.ct-cart-btn {
  position: relative;
}
.ct-cart-btn .ct-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  margin-left: 0;
}
.ct-favorites-btn {
  position: relative;
}
.ct-favorites-btn .ct-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  margin-left: 0;
}

@media (max-width: 760px) {
  .ct-header-search {
    display: none;
  }
  .ct-header-user-label {
    display: none;
  }
}

/* Auf sehr schmalen Bildschirmen reicht Logo + Icons als Marke - der
   ausgeschriebene Titel und die Nav-Abstände würden sonst mit "Katalog"
   kollidieren/umbrechen. */
@media (max-width: 480px) {
  header.ct-header { padding: 0 0.85rem; }
  .ct-brand-title { display: none; }
  nav.ct-nav { gap: 0.85rem; }
}

/* ---------------------------------------------------------------------
   Katalog-Einstieg: Hero + Kategorie-Kacheln (Vorbild: Designvorschlag
   "conta-business-clean-nav.html"). Eigene Serifenschrift (Playfair
   Display) nur hier für den redaktionellen Auftakt - der Rest der App
   bleibt bei der Franklin-Gothic-Systemschrift. Bild-URLs werden per JS
   gesetzt (siehe index.html) und fallen bei fehlendem Bild automatisch
   auf einen Farbverlauf zurück (zweite background-image-Ebene).
   --------------------------------------------------------------------- */
.ct-hero {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 420px;
  background: var(--conta-secondary-light);
}
.ct-hero-copy {
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Eyebrow-Label: bewusst die Denishandwritting-Schrift ("für Überschriften
   oder kurze prägnante Darstellung") für den kurzen Auftakt-Satz - kein
   Großschreibungs-Zwang, die Schrift hat ihre eigene Groß-/Kleinbuchstaben-
   Gestaltung. */
.ct-hero-eyebrow {
  font-family: "Denishandwritting", cursive;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--conta-primary);
  margin-bottom: 0.4rem;
}
.ct-hero-copy h1 {
  font-family: "Franklin Gothic Demi", var(--conta-font);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--conta-secondary);
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}
.ct-hero-copy p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: #555;
  max-width: 420px;
  margin: 0 0 1.5rem;
}
/* Die beiden Sätze der Thermo-Kollektion-Ankündigung sollen optisch enger
   zusammengehören als der übliche Absatzabstand - nur der erste der beiden
   .ct-hero-copy-Absätze bekommt daher einen kleineren Bottom-Margin. */
.ct-hero-copy p:first-of-type { margin-bottom: 0.5rem; }
.ct-hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.ct-hero-img {
  background-image: linear-gradient(135deg, var(--conta-secondary) 0%, #3a3a3a 55%, var(--conta-primary-dark) 100%);
  background-size: cover;
  background-position: center;
}
/* Bild-Slider im Hero (siehe ctInitHeroSlider() in index.html): jede .ct-hero-slide
   liegt deckungsgleich übereinander (position:absolute, inset:0) und ist bis auf die
   gerade aktive (.ct-hero-slide-active, opacity:1) unsichtbar - der Wechsel der Klasse
   per JS erzeugt so einen weichen Crossfade statt eines harten Bildsprungs.
   background-size:contain statt cover: die Motive (Personen, Hund) sollen komplett
   sichtbar bleiben statt an den Rändern beschnitten zu werden; background-repeat:
   no-repeat verhindert dabei eine Kachelung des Fotos in den so entstehenden
   Rändern. background-color:var(--conta-secondary-light) füllt genau diese Ränder
   (und dient als Fallback, falls eine Bilddatei einmal fehlt) - bewusst derselbe
   Grauton wie der Hintergrund der Textspalte links (.ct-hero), damit das Bild
   nahtlos daran anschließt statt isoliert vor einem andersfarbigen Rand zu wirken. */
.ct-hero-slider { position: relative; overflow: hidden; }
.ct-hero-slide {
  position: absolute;
  inset: 0;
  background-color: var(--conta-secondary-light);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.ct-hero-slide-active { opacity: 1; }

/* Kleine Pfeil-Buttons für die manuelle Slider-Steuerung (siehe ctInitHeroSlider()
   in index.html) - dezent, halbtransparent-weiß, werden erst beim Hover über den
   Slider deutlicher sichtbar/dunkler, damit sie das Bild nicht dauerhaft verdecken. */
.ct-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--conta-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  box-shadow: var(--conta-shadow-md);
  transition: background 0.2s ease, color 0.2s ease;
}
.ct-hero-arrow svg { width: 18px; height: 18px; }
.ct-hero-arrow:hover { background: var(--conta-primary); color: #fff; }
.ct-hero-arrow-prev { left: 14px; }
.ct-hero-arrow-next { right: 14px; }

.ct-intro-section { padding: 3.5rem 1.5rem 0.5rem; text-align: center; max-width: 720px; margin: 0 auto; }
.ct-intro-eyebrow { font-family: "Denishandwritting", cursive; font-size: 1.2rem; font-weight: 400; letter-spacing: 0.01em; color: var(--conta-primary); margin-bottom: 0.3rem; }
.ct-intro-section h2 { font-family: "Franklin Gothic Book", var(--conta-font); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--conta-secondary); margin: 0 0 0.9rem; }
.ct-intro-section p { font-size: 0.9rem; line-height: 1.75; color: #555; }

/* Bebilderter Login-Teaser anstelle des Produktkatalogs für nicht angemeldete Besucher
   (index.html #ct-catalog-locked) - gleiches Crossfade-/Abdunklungs-Prinzip wie
   .ct-login-hero auf login.html, hier als kompakter In-Page-Abschnitt statt Vollbild-Hero.
   Bildmaterial: wwwroot/img/catalog-locked-hero(-alt).jpg. */
.ct-catalog-locked {
  position: relative;
  min-height: 480px;
  padding: 3.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.ct-catalog-locked-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Bildausschnitt (nicht der Bereich!) ca. 2 cm nach oben verschoben, damit die Gesichter
     nicht mehr am unteren Rand des sichtbaren Ausschnitts abgeschnitten werden. */
  background-position: center calc(25% - 76px);
  transition: opacity 0.7s ease;
}
.ct-catalog-locked-bg-1 { opacity: 1; }
.ct-catalog-locked-bg-2 { opacity: 0; }
.ct-catalog-locked:hover .ct-catalog-locked-bg-1 { opacity: 0; }
.ct-catalog-locked:hover .ct-catalog-locked-bg-2 { opacity: 1; }
.ct-catalog-locked::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 14, 14, 0.5) 0%, rgba(20, 14, 14, 0.68) 60%, rgba(15, 10, 10, 0.78) 100%);
}
.ct-catalog-locked-content { position: relative; z-index: 2; max-width: 560px; }
.ct-catalog-locked-eyebrow {
  font-family: var(--conta-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F0B4B0;
  margin-bottom: 1rem;
}
.ct-catalog-locked h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 0 0.9rem;
}
.ct-catalog-locked p { font-size: 0.92rem; line-height: 1.7; color: rgba(255, 255, 255, 0.88); margin: 0 0 1.5rem; }

/* ---------------------------------------------------------------------
   Bereich 4-7 aus der vom Kunden gelieferten Landingpage-Vorlage, direkt im
   Anschluss an den Login-Teaser "Komfort, der bleibt" (index.html
   #ct-catalog-locked-more) - eigene Klassen (ct-locked-*), bewusst getrennt
   von .ct-segment/.ct-segment-grid (die echte, datengetriebene Kategorie-
   Kachelliste im eingeloggten Katalog), damit beide unabhängig voneinander
   bleiben.
   --------------------------------------------------------------------- */

/* Bereich 4: Kategorie-Kacheln (gleiches Bild-Kachel-Prinzip wie .ct-segment) */
.ct-locked-tile-grid {
  max-width: 1180px; margin: 2rem auto 3rem; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem;
}
.ct-locked-tile {
  position: relative; height: 240px; border-radius: var(--conta-radius-lg); overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.4rem;
  color: #fff; cursor: pointer; text-decoration: none;
  background-size: cover; background-position: center;
  transition: transform var(--conta-transition), box-shadow var(--conta-transition);
  box-shadow: var(--conta-shadow-sm);
}
.ct-locked-tile::before {
  content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.65));
}
.ct-locked-tile:hover { transform: translateY(-4px); box-shadow: var(--conta-shadow-lift); text-decoration: none; }
.ct-locked-tile-label { position: relative; z-index: 1; }
.ct-locked-tile-label h3 { font-family: "Franklin Gothic Book", var(--conta-font); font-weight: 400; font-size: 1.35rem; margin: 0 0 0.2rem; color: #fff; }
.ct-locked-tile-label span { font-size: 0.78rem; letter-spacing: 0.04em; opacity: 0.95; color: #fff; }

/* Bereich 5: Split-Layout (Bild links, Text rechts) */
.ct-locked-split {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--conta-secondary-light);
}
.ct-locked-split-img { min-height: 460px; background-size: cover; background-position: center 25%; }
.ct-locked-split-copy { padding: 3.5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.ct-locked-split-copy h2 { font-family: "Franklin Gothic Demi", var(--conta-font); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; color: var(--conta-secondary); border: none; padding: 0; margin: 0 0 1rem; }
.ct-locked-split-copy p { font-size: 0.9rem; line-height: 1.75; color: #555; max-width: 460px; margin: 0 0 1.4rem; }

/* Bereich 6: Services (drei Karten) */
.ct-locked-services { background: #fff; }
.ct-locked-service-grid {
  max-width: 1080px; margin: 2.5rem auto 0; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem;
}
.ct-locked-service {
  border-top: 3px solid var(--conta-primary); border-radius: 0 0 var(--conta-radius) var(--conta-radius);
  background: var(--conta-secondary-light); padding: 1.6rem;
}
.ct-locked-service h3 { font-family: "Franklin Gothic Book", var(--conta-font); font-weight: 400; font-size: 1.15rem; margin: 0 0 0.5rem; color: var(--conta-secondary); }
.ct-locked-service p { font-size: 0.85rem; line-height: 1.6; color: #555; margin: 0 0 0.8rem; }
.ct-locked-service a { font-size: 0.8rem; font-weight: bold; color: var(--conta-primary); letter-spacing: 0.02em; }
.ct-locked-service a:hover { text-decoration: underline; }

/* Bereich 7: roter CTA-Block ganz unten */
.ct-locked-cta { background: var(--conta-primary); color: #fff; text-align: center; padding: 4rem 1.5rem; }
.ct-locked-cta-eyebrow { font-family: var(--conta-font); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #F0B4B0; margin-bottom: 0.8rem; }
.ct-locked-cta h2 { font-family: "Franklin Gothic Demi", var(--conta-font); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: #fff; border: none; padding: 0; margin: 0 0 0.9rem; }
.ct-locked-cta p { font-size: 0.92rem; line-height: 1.7; color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto 1.6rem; }
.ct-locked-cta-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }

/* Weiße Button-Varianten für Einsatz auf rotem Untergrund (Bereich 7). */
.ct-btn.ct-btn-white { background: #fff; color: var(--conta-primary); }
.ct-btn.ct-btn-white:hover { background: var(--conta-secondary-light); }
.ct-btn.ct-btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.7); }
.ct-btn.ct-btn-outline-white:hover { background: rgba(255,255,255,0.15); box-shadow: none; }

@media (max-width: 820px) {
  .ct-locked-split { grid-template-columns: 1fr; }
  .ct-locked-split-img { min-height: 280px; }
  .ct-locked-split-copy { padding: 2.5rem 1.5rem; }
}

.ct-segment-grid {
  max-width: 1180px; margin: 2rem auto 3rem; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem;
}
/* Auf schmaleren Bildschirmen die von renderSegmentTiles() per Inline-Style gesetzte
   exakte Spaltenzahl (siehe index.html) wieder verwerfen, damit die Kacheln nicht zu
   schmal werden - !important ist hier nötig, da !important-Regeln laut CSS-Kaskade auch
   nicht-!important Inline-Styles überstimmen. */
@media (max-width: 900px) {
  .ct-segment-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
}
@media (max-width: 560px) {
  .ct-segment-grid { grid-template-columns: 1fr !important; }
}
.ct-segment {
  position: relative; height: 240px; border-radius: var(--conta-radius-lg); overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.4rem;
  color: #fff; cursor: pointer; text-decoration: none;
  background-size: cover; background-position: center;
  transition: transform var(--conta-transition), box-shadow var(--conta-transition);
  box-shadow: var(--conta-shadow-sm);
}
.ct-segment::before {
  content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.65));
}
.ct-segment:hover { transform: translateY(-4px); box-shadow: var(--conta-shadow-lift); text-decoration: none; }
.ct-segment-label { position: relative; z-index: 1; }
.ct-segment-label h3 { font-family: "Franklin Gothic Book", var(--conta-font); font-weight: 400; font-size: 1.35rem; margin: 0 0 0.2rem; color: #fff; }
.ct-segment-label span { font-size: 0.78rem; letter-spacing: 0.04em; opacity: 0.95; color: #fff; }

@media (max-width: 900px) {
  .ct-hero { grid-template-columns: 1fr; min-height: auto; }
  .ct-hero-img { min-height: 220px; }
  .ct-hero-copy { padding: 2.5rem 1.5rem; }
  .ct-catalog-locked { min-height: 380px; }
}

main.ct-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
}

h1, h2, h3 { color: var(--conta-secondary); font-weight: bold; }
h1 { font-size: 1.6rem; border-left: 5px solid var(--conta-primary); padding-left: 0.7rem; margin-bottom: 1.4rem; }

.ct-card {
  background: var(--conta-bg);
  border: 1px solid var(--conta-border);
  border-radius: var(--conta-radius-lg);
  box-shadow: var(--conta-shadow-sm);
  padding: 1.4rem;
}

.ct-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--conta-border);
  border-radius: var(--conta-radius-lg);
  box-shadow: var(--conta-shadow-sm);
  padding: 0.85rem 1rem;
}
.ct-toolbar .ct-search-input {
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 480px;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--conta-border);
  border-radius: var(--conta-radius);
  background: #fff;
  color: var(--conta-text);
  transition: border-color var(--conta-transition), box-shadow var(--conta-transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--conta-primary-light);
  box-shadow: 0 0 0 3px rgba(198, 29, 28, 0.15);
}

/* Für ein vorbelegtes Feld, dessen Wert nur ein VORSCHLAG ist (noch keine bewusste
   Eingabe) - z.B. der vorgeschlagene nächste Werktag im Liefertermin-Feld auf
   cart.html. Grau wie ein Platzhalter, bis der Kunde das Feld anklickt/fokussiert;
   siehe cart.html renderCheckoutArea/submitOrder. */
.ct-date-suggested {
  color: #999;
}

.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--conta-primary);
  color: #fff;
  border: none;
  border-radius: var(--conta-radius);
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--conta-transition), box-shadow var(--conta-transition), transform var(--conta-transition);
}
.ct-btn:hover { background: var(--conta-primary-dark); box-shadow: var(--conta-shadow-sm); }
.ct-btn:active { transform: translateY(1px); }
.ct-btn:disabled { background: #ccc; color: #888; cursor: not-allowed; box-shadow: none; transform: none; }

.ct-btn.ct-btn-secondary {
  background: var(--conta-secondary);
}
.ct-btn.ct-btn-secondary:hover { background: var(--conta-secondary-dark); }

.ct-btn.ct-btn-outline {
  background: transparent;
  color: var(--conta-primary);
  border: 1px solid var(--conta-primary);
}
.ct-btn.ct-btn-outline:hover { background: var(--conta-secondary-light); box-shadow: none; }

.ct-btn.ct-btn-danger {
  background: #fff;
  color: var(--conta-primary);
  border: 1px solid var(--conta-primary);
}
.ct-btn.ct-btn-danger:hover { background: var(--conta-primary); color: #fff; }

/* Kompakter Entfernen-Button je Größenspalte in der Warenkorb-Größentabelle (cart.html) -
   der normale .ct-btn-Innenabstand wäre für ein einzelnes "×" unnötig breit und würde die
   Spalten der Größentabelle unnötig aufweiten. */
.ct-btn.ct-btn-icon {
  padding: 0.25rem 0.55rem;
  font-size: 1rem;
  line-height: 1;
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}

@media (max-width: 900px) {
  .ct-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .ct-grid { grid-template-columns: repeat(2, 1fr); }
}

.ct-product {
  position: relative;
  background: #fff;
  border: 1px solid var(--conta-border);
  border-radius: var(--conta-radius-lg);
  box-shadow: var(--conta-shadow-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow var(--conta-transition), transform var(--conta-transition), border-color var(--conta-transition);
}
/* Der Favoriten-Herz-Button liegt auf Katalog-Kacheln bewusst AUSSERHALB von
   .ct-product-link (sonst wäre ein <button> innerhalb eines <a> verschachtelt, was
   ungültiges HTML wäre) - Positionierung daher relativ zu .ct-product statt zu
   .ct-thumb, mit einem Offset, der .ct-product's eigenes Padding (1rem) einrechnet,
   damit der Button optisch trotzdem in der Ecke des Vorschaubilds sitzt. */
.ct-product > .ct-favorite-btn {
  top: calc(1rem + 8px);
  right: calc(1rem + 8px);
}
.ct-product:hover {
  box-shadow: var(--conta-shadow-lift);
  transform: translateY(-3px);
  border-color: #F0D5D5;
}

.ct-product .ct-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  background: var(--conta-secondary-light);
  border-radius: var(--conta-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b4b4b4;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.ct-product .ct-thumb svg { width: 34%; height: 34%; fill: currentColor; }
.ct-product .ct-thumb-img { width: 100%; height: 100%; object-fit: contain; }
/* Optionales zweites Produktbild (ProductHoverImage): liegt deckungsgleich
   über dem Hauptbild und wird beim Überfahren der Kachel per Crossfade
   eingeblendet - gleiches Prinzip wie .ct-login-hero-bg auf der Login-Seite.
   Ohne hinterlegtes Hover-Bild wird dieses Element gar nicht erst gerendert
   (siehe index.html), es entsteht also kein Effekt. */
.ct-product .ct-thumb-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ct-product:hover .ct-thumb-img-hover { opacity: 1; }

.ct-product h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.ct-product .ct-sku { color: #888; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
.ct-product .ct-desc { font-size: 0.85rem; color: #444; flex-grow: 1; line-height: 1.45; }
.ct-product .ct-price { font-size: 1.2rem; font-weight: bold; color: var(--conta-primary); margin-top: 0.15rem; }
.ct-product .ct-price small { display: block; font-weight: normal; color: #888; font-size: 0.72rem; margin-top: 0.1rem; }

.ct-qty-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}
.ct-qty-row input[type="number"] { width: 62px; flex-shrink: 0; }
.ct-qty-row .ct-add-btn { flex: 1; white-space: nowrap; }
.ct-qty-row .ct-size-select { flex: 1 1 100%; }

/* Farb-Swatches auf der Produktkachel (Katalog) und im Admin-Backend */
.ct-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.1rem 0 0.2rem;
}
.ct-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--conta-border);
  cursor: pointer;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-color: #fff;
  transition: transform var(--conta-transition), outline-color var(--conta-transition);
}
.ct-swatch:hover { transform: scale(1.1); }
.ct-swatch.ct-swatch-active {
  outline: 2px solid var(--conta-primary);
  outline-offset: 2px;
}
/* Rein dekorative Farbtafel (z.B. im Bestellungs-Kopfbereich je Farbgruppe) - gleiche
   Kreis-Optik wie .ct-swatch, aber ohne Klick-/Hover-Verhalten. */
.ct-swatch.ct-swatch-static {
  width: 20px;
  height: 20px;
  cursor: default;
  flex-shrink: 0;
}
.ct-swatch.ct-swatch-static:hover { transform: none; }

/* Herz-Button für Favoriten (Katalog-Kachel .ct-thumb sowie Artikeldetailseite
   .ct-detail-main-img, beide bereits position:relative bzw. hier ergänzt) - Herz
   zunächst nur als Umriss, im aktiven Zustand (.ct-favorite-active, per JS gesetzt
   in js/favorites.js) rot gefüllt. */
.ct-favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  color: var(--conta-secondary);
  box-shadow: var(--conta-shadow-sm);
  transition: transform var(--conta-transition), color var(--conta-transition), background var(--conta-transition);
}
.ct-favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.ct-favorite-btn:hover {
  transform: scale(1.08);
  color: var(--conta-primary);
  background: #fff;
}
.ct-favorite-btn.ct-favorite-active {
  color: var(--conta-primary);
}
.ct-favorite-btn.ct-favorite-active svg {
  fill: currentColor;
}
.ct-favorite-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.ct-swatch-label {
  font-size: 0.75rem;
  color: #777;
  align-self: center;
}
.ct-size-select {
  min-width: 90px;
}
.ct-variant-price-from::before {
  content: "Ab ";
  font-weight: normal;
  font-size: 0.75rem;
  color: #777;
}

/* Admin: Farb-/Größenverwaltung im Produktformular */
.ct-variant-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--conta-border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem 0.25rem 0.35rem;
  margin: 0 0.4rem 0.4rem 0;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
}
.ct-variant-color-chip.ct-active { border-color: var(--conta-primary); background: var(--conta-secondary-light); }
.ct-variant-color-chip .ct-swatch { width: 16px; height: 16px; cursor: default; }
.ct-variant-color-chip button {
  background: none; border: none; color: #999; cursor: pointer; font-size: 0.9rem; line-height: 1; padding: 0 0 0 0.2rem;
}
.ct-variant-color-chip button:hover { color: var(--conta-primary); }
#variant-size-rows input[type="text"],
#variant-size-rows input[type="number"] { width: 100%; box-sizing: border-box; }
#variant-size-rows td { padding: 0.35rem 0.5rem; }

table.ct-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
table.ct-table th, table.ct-table td {
  border-bottom: 1px solid var(--conta-border);
  padding: 0.55rem 0.6rem;
  text-align: left;
  font-size: 0.92rem;
}
table.ct-table th { background: var(--conta-secondary-light); color: var(--conta-secondary); }
table.ct-table tr:hover td { background: #fafafa; }

.ct-status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: bold;
  background: var(--conta-secondary-light);
  color: var(--conta-secondary);
}
.ct-status.status-neu { background: #FCE8E8; color: var(--conta-primary-dark); }
.ct-status.status-in-bearbeitung { background: #FFF3D6; color: #8a6d00; }
.ct-status.status-versandt { background: #DCEBFF; color: #205CA6; }
.ct-status.status-abgeschlossen { background: #E3F2DD; color: #3C7A2E; }
.ct-status.status-storniert { background: #EEE; color: #666; text-decoration: line-through; }

form.ct-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 420px;
}
form.ct-form label { font-size: 0.85rem; font-weight: bold; color: var(--conta-secondary); display: flex; flex-direction: column; gap: 0.3rem; }

.ct-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--conta-radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-left-width: 4px;
  border-left-style: solid;
  box-shadow: var(--conta-shadow-sm);
}
.ct-alert.ct-alert-error { background: #FCE8E8; color: var(--conta-primary-dark); border: 1px solid var(--conta-primary-light); border-left-color: var(--conta-primary); }
.ct-alert.ct-alert-success { background: #E3F2DD; color: #3C7A2E; border: 1px solid #8CC97A; border-left-color: #4C9A3A; }

/* ---------------------------------------------------------------------
   Login-Seite (login.html): dunkel abgetönter Hero mit Foto, darunter eine
   zweispaltige weiße Karte (Anmeldung / Erstregistrierung in 3 Schritten),
   die leicht in den Hero hineinragt - Vorbild: vom Kunden geliefertes
   Screenshot-Layout "Willkommen im conta B2B-Portal".
   --------------------------------------------------------------------- */
.ct-login-hero {
  position: relative;
  padding: 4rem 1.5rem 8rem;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
/* Zwei übereinanderliegende Hintergrundfotos, die beim Hovern über den
   gesamten Hero-Bereich per Opacity-Crossfade wechseln (siehe login.html:
   .ct-login-hero-bg-1/-2 mit inline background-image). Liegen unterhalb des
   Abdunklungs-Overlays (::before) und des Text-Contents. */
.ct-login-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transition: opacity 0.7s ease;
}
.ct-login-hero-bg-1 { opacity: 1; }
.ct-login-hero-bg-2 { opacity: 0; }
.ct-login-hero:hover .ct-login-hero-bg-1 { opacity: 0; }
.ct-login-hero:hover .ct-login-hero-bg-2 { opacity: 1; }
.ct-login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 14, 14, 0.55) 0%, rgba(20, 14, 14, 0.72) 55%, rgba(15, 10, 10, 0.82) 100%);
}
.ct-login-hero-content { position: relative; z-index: 2; }
.ct-login-hero-eyebrow {
  font-family: var(--conta-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F0B4B0;
  margin-bottom: 1rem;
}
/* Für die große Willkommens-Zeile gibt es unter den vier con-ta-CI-Schnitten
   keine aufrechte Serifenschrift (Minion Pro liegt nur als Italic-Schnitt
   vor) - deshalb hier bewusst ein Serifen-Systemfallback, passend zum
   redaktionellen Charakter des Vorbild-Screenshots. */
.ct-login-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 auto 0.9rem;
  max-width: 780px;
}
.ct-login-hero-sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 auto;
}

.ct-login-main {
  max-width: 1180px;
  margin: -5.5rem auto 4rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.ct-login-alert-slot:empty { display: none; }

.ct-login-panel {
  background: var(--conta-bg);
  border-radius: var(--conta-radius-lg);
  box-shadow: var(--conta-shadow-lift);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  overflow: hidden;
}
.ct-login-col { padding: 2.5rem 2.75rem; }
.ct-login-col-form { border-right: 1px solid var(--conta-header-border); }
.ct-login-col-register { background: var(--conta-secondary-light); }
.ct-login-col-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--conta-primary);
  margin-bottom: 0.5rem;
}
.ct-login-col h2 {
  font-family: "Franklin Gothic Book", var(--conta-font);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--conta-secondary);
  border: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.ct-login-submit { width: 100%; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.3rem; }
.ct-login-forgot {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--conta-primary);
}
.ct-login-forgot:hover { color: var(--conta-primary-dark); text-decoration: underline; }
.ct-login-demo-hint { font-size: 0.78rem; color: #888; margin: 1.5rem 0 0; }

.ct-login-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.ct-login-steps li { display: flex; gap: 0.9rem; align-items: flex-start; }
.ct-login-step-num {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--conta-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}
.ct-login-steps h3 { font-size: 0.98rem; color: var(--conta-secondary); margin: 0 0 0.25rem; }
.ct-login-steps p { font-size: 0.85rem; line-height: 1.6; color: #555; margin: 0; }

.ct-login-phone-box {
  margin-top: 0.7rem;
  background: #FBE3E1;
  border-radius: var(--conta-radius);
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ct-login-phone-label { font-size: 0.78rem; color: #6b4442; }
.ct-login-phone-number {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--conta-primary-dark);
}
.ct-login-phone-number svg { width: 18px; height: 18px; fill: currentColor; }
.ct-login-phone-hours { font-size: 0.78rem; color: #6b4442; }

@media (max-width: 820px) {
  .ct-login-panel { grid-template-columns: 1fr; }
  .ct-login-col-form { border-right: none; border-bottom: 1px solid var(--conta-header-border); }
  .ct-login-main { margin-top: -4rem; }
}

.ct-empty { color: #777; padding: 2rem; text-align: center; }

.ct-image-preview img {
  max-height: 90px;
  max-width: 160px;
  object-fit: contain;
  border: 1px solid var(--conta-border);
  border-radius: var(--conta-radius);
  background: var(--conta-secondary-light);
  padding: 4px;
}

footer.ct-footer {
  text-align: center;
  padding: 1.2rem;
  color: #777;
  font-size: 0.8rem;
}

/* Mehrspaltiger Footer (Kontakt/Informationen/Vorteile + Copyright-Zeile),
   nach Vorbild conta-shop.de. */
footer.ct-footer-main {
  background: var(--conta-secondary);
  color: #ccc;
  margin-top: 3rem;
}
.ct-footer-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.ct-footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.9rem;
}
.ct-footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}
.ct-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ct-footer-col li {
  font-size: 0.88rem;
  line-height: 1.9;
}
.ct-footer-col a {
  color: #ccc;
}
.ct-footer-col a:hover {
  color: var(--conta-primary-light);
}
.ct-usp-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.4;
  margin-bottom: 0.7rem;
}
.ct-usp-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--conta-primary-light);
}
.ct-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: #999;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
}

/* GOTS-Zertifizierungshinweis im Footer: das Siegel selbst hat einen
   transparenten Hintergrund mit schwarzer Ringschrift, die auf dem dunklen
   Footer (--conta-secondary) sonst kaum lesbar wäre - deshalb ein kleines
   weißes Chip als Hintergrund, wie bei Zertifizierungssiegeln auf dunklen
   Flächen üblich. */
.ct-footer-cert {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.8rem 0.4rem 0.5rem;
}
.ct-footer-cert img {
  display: block;
  flex-shrink: 0;
}
.ct-footer-cert span {
  color: #333;
  font-size: 0.72rem;
  line-height: 1.4;
}

.ct-cart-line {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--conta-border);
  transition: background var(--conta-transition);
}
.ct-cart-line[data-product-id]:hover { background: #FAFAFA; }
.ct-cart-line:last-of-type { border-bottom: none; }
.ct-cart-line .ct-cart-line-header { font-weight: bold; color: var(--conta-secondary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; padding-bottom: 0.5rem; }
.ct-line-price, .ct-line-total { font-variant-numeric: tabular-nums; }
.ct-line-total { font-weight: bold; color: var(--conta-secondary); }

.ct-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}
.ct-summary-row.ct-total { font-size: 1.25rem; font-weight: bold; color: var(--conta-primary); border-top: 2px solid var(--conta-secondary-light); margin-top: 0.5rem; padding-top: 0.8rem; }

.ct-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.ct-two-col > .ct-card:last-child {
  position: sticky;
  top: 84px;
}

@media (max-width: 760px) {
  .ct-two-col { grid-template-columns: 1fr; }
  .ct-cart-line { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------------
   Artikeldetailseite (product.html): Breadcrumb, große Bildergalerie mit
   Thumbnail-Leiste und - als Kernstück - eine horizontale Größentabelle
   (Größe je Spalte statt je Zeile mit EK-/UVP-Preis, Verfügbarkeit und
   eigenem Mengenfeld), Vorbild: vom Kunden gelieferte Referenz-Screenshots
   eines vergleichbaren B2B-Shops.
   --------------------------------------------------------------------- */
.ct-breadcrumb {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 1.1rem;
}
.ct-breadcrumb a { color: #888; }
.ct-breadcrumb a:hover { color: var(--conta-primary); }
.ct-breadcrumb-sep { margin: 0 0.35rem; color: #bbb; }

.ct-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}
@media (max-width: 820px) {
  .ct-detail-layout { grid-template-columns: 1fr; }
}

.ct-detail-gallery { display: flex; flex-direction: column; gap: 0.6rem; }
.ct-detail-main-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--conta-secondary-light);
  border-radius: var(--conta-radius-lg);
  border: 1px solid var(--conta-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ct-detail-main-img img { width: 100%; height: 100%; object-fit: contain; }
.ct-detail-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ct-detail-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--conta-border);
  border-radius: var(--conta-radius);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--conta-transition);
}
.ct-detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ct-detail-thumb:hover { border-color: var(--conta-primary-light); }
.ct-detail-thumb.ct-active { border-color: var(--conta-primary); border-width: 2px; }

.ct-detail-info { display: flex; flex-direction: column; gap: 0.5rem; }
.ct-detail-sku { color: #888; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em; }
.ct-detail-info h1 { margin: 0 0 0.2rem; }
.ct-detail-desc { color: #444; line-height: 1.55; margin: 0 0 0.4rem; }
.ct-detail-actions { margin-top: 0.6rem; }
.ct-detail-actions .ct-btn { width: auto; padding-left: 1.6rem; padding-right: 1.6rem; }
.ct-detail-hint { font-size: 0.78rem; color: #999; margin-top: 0.5rem; }

/* Ausführliche Beschreibung (DescriptionLong) - eigener Abschnitt unter der
   Galerie/Infobox, nur gerendert, wenn im Admin-Backend gepflegt. */
.ct-detail-long-desc {
  max-width: 900px;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--conta-border);
}
.ct-detail-long-desc h2 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.ct-detail-long-desc p { color: #444; line-height: 1.6; margin: 0; white-space: pre-line; }

/* Horizontale Größentabelle: eigener Scroll-Container, damit die Tabelle bei
   vielen Größen seitlich scrollt statt die ganze Seite zu verbreitern. */
.ct-sizegrid-wrap {
  overflow-x: auto;
  border: 1px solid var(--conta-border);
  border-radius: var(--conta-radius);
  margin: 0.4rem 0;
}
table.ct-sizegrid {
  border-collapse: collapse;
  width: 100%;
}
table.ct-sizegrid th,
table.ct-sizegrid td {
  border-bottom: 1px solid var(--conta-border);
  border-right: 1px solid var(--conta-border);
  padding: 0.55rem 0.7rem;
  text-align: center;
  white-space: nowrap;
  font-size: 0.88rem;
}
table.ct-sizegrid thead th {
  background: var(--conta-secondary-light);
  color: var(--conta-secondary);
  font-weight: bold;
}
table.ct-sizegrid tbody th.ct-sizegrid-label,
table.ct-sizegrid thead th.ct-sizegrid-label {
  text-align: left;
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: var(--conta-secondary-light);
  color: var(--conta-secondary);
  z-index: 1;
}
table.ct-sizegrid tbody th.ct-sizegrid-label { font-weight: normal; color: #666; }
table.ct-sizegrid tr:last-child td, table.ct-sizegrid tr:last-child th { border-bottom: none; }
table.ct-sizegrid td:last-child, table.ct-sizegrid th:last-child { border-right: none; }

.ct-stock-bar {
  display: inline-block;
  width: 30px;
  height: 8px;
  border-radius: 4px;
}
.ct-stock-bar.ct-stock-ok { background: #4C9A3A; }
.ct-stock-bar.ct-stock-empty { background: #ccc; }

.ct-sizegrid-qty-input {
  width: 56px;
  text-align: center;
  padding: 0.3rem 0.2rem;
}

/* Produktkachel im Katalog: Bild + Titel verlinken auf die Detailseite, der
   Rest der Kachel (Farbwahl, Menge, Schnell-Hinzufügen) bleibt wie gehabt
   direkt auf der Katalogseite bedienbar. */
.ct-product-link { display: block; color: inherit; text-decoration: none; }
.ct-product-link:hover h3 { color: var(--conta-primary-dark); }

/* ---------------------------------------------------------------------
   Katalog-Downloadseite im Kundenbereich (catalogs.html, nur nach Anmeldung
   sichtbar) - dunkler Splitscreen-Hero (Bild links, schwarze Fläche rechts),
   Vorbild: vom Kunden geliefertes Screenshot-Layout "Downloads / Unsere
   aktuellen Kataloge" (roter Eyebrow, kursive Serifen-Headline, schlanke
   Liste mit feinen Trennlinien statt Karten) - gleiches Grundprinzip wie
   .ct-login-hero/.ct-login-panel, nur als durchgehender Splitscreen statt
   Hero-über-Karte.
   --------------------------------------------------------------------- */
.ct-catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: 560px;
}
.ct-catalog-hero-img {
  background-size: cover;
  background-position: center 22%;
}
.ct-catalog-panel {
  background: var(--conta-secondary-dark);
  color: #fff;
  padding: 4rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ct-catalog-eyebrow {
  font-family: var(--conta-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F0B4B0;
  margin-bottom: 1rem;
}
/* Kursive Serifen-Headline wie im Vorbild - Minion Pro liegt in diesem
   Projekt nur als Italic-Schnitt vor (siehe @font-face oben), passt hier
   also genau. */
.ct-catalog-panel h1 {
  font-family: "Minion Pro", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.28;
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  max-width: 480px;
}
.ct-catalog-intro {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 420px;
  margin: 0 0 2.2rem;
}
.ct-catalog-panel .ct-alert { margin-bottom: 1rem; }
.ct-catalog-empty { color: rgba(255, 255, 255, 0.6); padding: 0; text-align: left; }

.ct-catalog-list {
  display: flex;
  flex-direction: column;
  max-width: 480px;
}
.ct-catalog-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  transition: color var(--conta-transition), padding-left var(--conta-transition);
}
.ct-catalog-list-row:first-child { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ct-catalog-list-row:hover { color: #F0B4B0; padding-left: 0.4rem; text-decoration: none; }
.ct-catalog-list-name {
  font-family: var(--conta-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ct-catalog-list-arrow {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: var(--conta-primary-light);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--conta-transition), transform var(--conta-transition);
}
.ct-catalog-list-row:hover .ct-catalog-list-arrow { opacity: 1; transform: translateX(0); }

.ct-catalog-help {
  background: var(--conta-primary);
  color: #fff;
  text-align: center;
  padding: 4.5rem 6%;
}
.ct-catalog-help-eyebrow {
  font-family: var(--conta-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F0B4B0;
  margin-bottom: 0.6rem;
}
.ct-catalog-help h2 {
  font-family: "Minion Pro", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}
.ct-catalog-help-text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #FBE3E1;
  max-width: 640px;
  margin: 0 auto;
}
.ct-catalog-help-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.6rem 0 0.7rem;
  padding: 0.85rem 2rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--conta-radius);
  color: #fff;
  font-size: 1.55rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background var(--conta-transition), transform var(--conta-transition);
}
.ct-catalog-help-phone:hover { background: rgba(0, 0, 0, 0.28); transform: translateY(-2px); text-decoration: none; }
.ct-catalog-help-phone svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.ct-catalog-help-hours {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: #FBE3E1;
  letter-spacing: 0.02em;
}
.ct-catalog-help-hours span:not(:last-child)::after { content: "·"; margin-left: 0.7rem; color: rgba(255, 255, 255, 0.55); }
.ct-catalog-help-company { color: rgba(255, 255, 255, 0.8); }

@media (max-width: 820px) {
  .ct-catalog-hero { grid-template-columns: 1fr; min-height: 0; }
  .ct-catalog-hero-img { height: 260px; }
  .ct-catalog-panel { padding: 2.5rem 1.5rem 3rem; }
  .ct-catalog-help { padding: 3rem 1.5rem; }
  .ct-catalog-help-phone { font-size: 1.25rem; padding: 0.75rem 1.4rem; }
}
