/* ============================================================
   content.css — TOB Inline-Grafiken
   1. Design-Tokens
   2. Distribution Chain  (.chain)
   3. Organigramm         (.org)
   4. Tabak Blends        (.blends)
   5. Zigarrengrößen      (.cigars)
   ============================================================ */

/* --- 1. Tokens ---------------------------------------------- */
:root {
  /* shared */
  --text:         #1a1a1a;
  --text-muted:   #333333;
  --bg:           #ececec;
  --border:       #cfcfcf;

  /* chain */
  --industrie:    #a8d4dd;
  --grosshandel:  #ffffff;
  --einzelhandel: #b3b3b3;
  --tob-accent:   #1a8a9e;

  /* organigramm */
  --gm-bg:        #ffffff;
  --pa-bg:        #a8d4dd;
  --dept-bg:      #9e9e9e;
  --tob-teal:     #197278;
  --tob-green:    #00bb31;
  --line:         #8a8a8a;

  /* blends (Tabaksorten + SVG-Outline) */
  --virginia:     #c79a3a;
  --burley:       #6b4f1d;
  --orient:       #f0d9a8;
  --fire:         #9e3b2a;
  --darkair:      #3f1a14;
  --ink:          #3a3a3a;

  /* cigars */
  --cigar-body:   #ffffff;
  --cigar-band:   #5b9ca0;

  --pipe-body:   #d3e8ea;  /* Holz-Korpus (Kopf + Holm) */
  --pipe-mouth:  #7fb4b8;  /* Mundstück (dunkler = anderes Material) */
  --pipe-cavity: #ffffff;  /* Hohlräume: = Seitenhintergrund */
  --pipe-ink:    #164a4f;  /* Konturen + Beschriftung */

  --hookah-body:    #d3e8ea;  /* helle Flächen (Kopf, Teller, Säule, Downstem) */
  --hookah-accent:  #7fb4b8;  /* Mundstück (gefüllt) */
  --hookah-cavity:  #ffffff;  /* Hohlräume / Glas = Seitenhintergrund */
  --hookah-ink:     #164a4f;  /* Konturen + Beschriftung */
}

/* --- 2. Distribution Chain ---------------------------------- */
.chain {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
.chain * { box-sizing: border-box; }
.chain h1 { margin-top: 0; padding-top: 0; }

.chain__caption {
  margin: 0 0 2rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Listen-Resets — !important kontert CMS-Content-Defaults (square bullets) */
.chain ul,
.chain li {
  list-style: none !important;
  list-style-image: none !important;
  margin: 0;
  padding: 0;
}

.stages { counter-reset: stage; }

.chain li.stage {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.stage__label {
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  background: var(--stage-color, #ccc);
}
.stage--industrie   .stage__label { --stage-color: var(--industrie); }
.stage--grosshandel .stage__label { --stage-color: var(--grosshandel); border: 1px solid var(--border); }
.stage--einzelhandel .stage__label { --stage-color: var(--einzelhandel); }

.stage__body  { align-self: center; }
.stage__brand {
  margin: 0 0 0.25rem;
  color: var(--tob-accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.stage__detail { margin: 0; color: var(--text-muted); font-size: 1rem; }

.facts,
.brands {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 1rem;
}
.brands li { display: inline; }
.brands li:not(:last-child)::after { content: " · "; color: #888; }

.customers {
  max-width: 280px;
  text-align: center;
  margin: 1.25rem 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chain__footer {
  text-align: right;
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .chain li.stage { grid-template-columns: 1fr; gap: 0.75rem; text-align: center; }
  .stage__label { min-height: 100px; }
  .stage__body  { text-align: left; }
}

/* --- 3. Organigramm ----------------------------------------- */
.org {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  color: var(--text);
  line-height: 1.4;
}
.org * { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.org__title {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Listen-Resets — !important kontert CMS-Bullets/Marker */
#content .org ul,
#content .org li {
  list-style: none !important;
  list-style-image: none !important;
  margin: 0;
  padding: 0;
}

.org__top { display: block; }

.node-gm {
  width: calc(2 / 6 * 100%);
  margin-inline: auto;
  background: var(--gm-bg);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.node-gm__logo { display: block; width: 160px; height: auto; margin: 0 auto 1rem; }
.node-gm__role { font-weight: 700; font-size: 1.1rem; }

/* Logo-Farben hier dupliziert — falls das CMS das interne <style> im SVG strippt */
.node-gm__logo .cls-1 { fill: var(--tob-teal); }
.node-gm__logo .cls-2 { fill: var(--tob-green); }
.node-gm__logo .cls-3 { fill: #ffffff; }

.node-pa {
  width: calc(2 / 6 * 100%);
  margin-top: 0.5rem;
  margin-inline: auto;
  background: var(--pa-bg);
  padding: 1.5rem 1.5rem 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}

.org__connector {
  width: 3px;
  height: 2.5rem;
  background: var(--line);
  margin: 0 auto;
}

.org .depts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 1.5rem;
}
.node-dept {
  background: var(--dept-bg);
  color: var(--text);
  min-height: 130px;
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
}

.org__footer {
  text-align: right;
  margin: 2.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
}

.org :focus-visible { outline: 3px solid var(--tob-teal); outline-offset: 2px; }

@media (max-width: 820px) {
  .org .depts { grid-template-columns: repeat(3, 1fr); }
  .node-gm, .node-pa { width: calc(2 / 3 * 100%); }
}
@media (max-width: 520px) {
  .org .depts { grid-template-columns: repeat(2, 1fr); }
  .node-gm, .node-pa { width: 100%; }
  .node-dept { min-height: 90px; }
}
@media (forced-colors: active) {
  .node-gm, .node-pa { clip-path: none; border: 1px solid; }
}

/* --- 4. Tabak Blends ---------------------------------------- */
.blends {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  color: var(--text);
  line-height: 1.4;
}
.blends * { box-sizing: border-box; }

.blends__title {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Listen-Resets — !important kontert CMS-Bullets/Marker */
#content .blends ul,
#content .blends li {
  list-style: none !important;
  list-style-image: none !important;
  margin: 0;
  padding: 0;
}

/* Zwei Produktgruppen nebeneinander (Desktop) */
.blends__groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.blend-group { min-width: 0; }
.blend-group__head {
  margin: 0 0 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tob-accent);
}
.blend-group__list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Karte: Grafik links (fixe Breite), Text rechts */
.blend {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 1.5rem;
}
.blend__text { min-width: 0; }
.blend__name {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.blend__art {
  width: 150px;
  height: auto;
  justify-self: start;
}
.blend__art svg { display: block; width: 100%; height: auto; margin: 0; }

/* Legende */
.legend {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legend__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.legend__item {
  text-align: center;
  font-size: 0.85rem;
  padding: 0 0.25rem;
}
.legend__swatch { height: 10px; margin-bottom: 0.5rem; }

.blends__footer {
  text-align: right;
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text);
}

.blends :focus-visible { outline: 3px solid var(--tob-accent); outline-offset: 2px; }

@media (max-width: 560px) {
  .blends__groups { grid-template-columns: 1fr; gap: 2.5rem; }
  .blend-group__list { gap: 2rem; }
  .blend { grid-template-columns: 120px 1fr; gap: 1.25rem; }
  .blend__art { width: 120px; }
  .legend__list { grid-template-columns: repeat(2, 1fr); gap: 0.75rem 0; }
}
/* --- 5. Zigarrengrößen -------------------------------------- */
/* ul/li wie .blends/.chain — vom CKEditor zuverlässig erhalten.
   (dl wurde zerlegt, table waere fuer 2 Datenspalten + Deko das
   schwaechere a11y-Muster.) Alles via #content .cigars gescoped. */
#content .cigars {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  color: var(--text);
  line-height: 1.4;
}
#content .cigars * { box-sizing: border-box; }

#content .cigars .cigars__title {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

/* Listen-Reset — !important kontert CMS-Bullets/Marker */
#content .cigars ul,
#content .cigars li {
  list-style: none !important;
  list-style-image: none !important;
  margin: 0;
  padding: 0;
}

#content .cigars .cigars__list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Zeile: Name | Maße | Grafik */
#content .cigars .cigar {
  display: grid;
  grid-template-columns: 130px 190px 1fr;
  align-items: center;
  gap: 1rem 1.5rem;
}
#content .cigars .cigar__name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tob-teal);
}
#content .cigars .cigar__size {
  font-size: 0.85rem;
  color: var(--text-muted);
}
#content .cigars .cigar__art { min-width: 0; }
#content .cigars .cigar__art svg {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

#content .cigars .cigars__footer {
  text-align: right;
  margin: 2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  #content .cigars .cigar { grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem; }
  #content .cigars .cigar__art { grid-column: 1 / -1; }
  #content .cigars .cigar__art svg { max-width: none; }
}



/* --- 6. Aufbau einer Pfeife --------------------------------- */
/* Zwei Schnittzeichnungen (ohne/mit Filter). Beschriftung liegt als
   <text> im SVG; jedes SVG ist role="img" mit <title>/<desc> → EIN
   sauberes Bild pro Diagramm für Screenreader. Alles via #content
   .pipe gescoped. Kein Hintergrund (Hohlräume = Seitenfarbe). */
#content .pipe {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  color: var(--text);
  line-height: 1.4;
}
#content .pipe * { box-sizing: border-box; }
 
#content .pipe .pipe__title {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
 
#content .pipe .pipe__item { margin-bottom: 2.5rem; }
#content .pipe .pipe__item:last-of-type { margin-bottom: 0; }
 
#content .pipe .pipe__subtitle {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pipe-ink);
}
 
/* overflow-x: hält die SVG-Labels auf schmalen Screens lesbar
   (unter min-width wird gescrollt statt Text unleserlich zu skalieren) */
#content .pipe .pipe__figure {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#content .pipe .pipe__art {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 600px;   /* einzige Stellschraube für die Größe */
  height: auto;
  margin: 1.25rem auto;
}
 
#content .pipe .pipe__footer {
  text-align: right;
  margin: 2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
 
#content .pipe :focus-visible {
  outline: 3px solid var(--pipe-ink);
  outline-offset: 2px;
}
 
/* High-Contrast: Farbflächen fallen weg → Konturen tragen die Info */
@media (forced-colors: active) {
  #content .pipe .pipe__art path,
  #content .pipe .pipe__art rect { forced-color-adjust: none; }
}


/* --- 7. Aufbau einer Wasserpfeife --------------------------- */
/* Eine Schnitt-/Linienzeichnung. Beschriftung liegt als <text> im
   SVG; das SVG ist role="img" mit <title>/<desc> → ein sauberes Bild
   für Screenreader. Größe hart inline am SVG gecappt (max-width:600px),
   damit sie unabhängig vom CSS-Scope / CKEditor greift. Kein
   Hintergrund (Hohlräume = Seitenfarbe). */
#content .hookah {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  color: var(--text);
  line-height: 1.4;
}
#content .hookah * { box-sizing: border-box; }
 
#content .hookah .hookah__title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
 
#content .hookah .hookah__figure {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#content .hookah .hookah__art {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 600px;   /* einzige Stellschraube für die Größe */
  height: auto;
  margin: 1.25rem auto;
}
 
#content .hookah .hookah__footer {
  text-align: right;
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
 
#content .hookah :focus-visible {
  outline: 3px solid var(--hookah-ink);
  outline-offset: 2px;
}
 
/* High-Contrast: Farbflächen fallen weg → Konturen tragen die Info */
@media (forced-colors: active) {
  #content .hookah .hookah__art path,
  #content .hookah .hookah__art rect,
  #content .hookah .hookah__art ellipse { forced-color-adjust: none; }
}