/* /css/style.css
 * PIGMENTUM -- Zentrale Stylesheets (Frontend + Admin)
 * Version: 52 (CSS) | Bundle 4.1.16
 * "Vibrant Explorer" Theme | Light + Dark via prefers-color-scheme
 *
 * v24 Changelog:
 *  - .home-intro + .home-intro-headline + .home-intro-body (Startseite Einleitungstext)
 *  - table: word-break:break-word (Cookie-Seite Mobile-Fix)
 *  - Cookie-Tabellen: overflow-x:auto Wrapper (scrollbar statt Abschneiden)
 *
 * v23 Changelog:
 *  - Variants .vs auf Handy gleiche Höhe wie Similar .ss (56px !important)
 *
 * v21 KRITISCHER FIX:
 *  - Mobile-Overrides (@media max-width:600px für .fr, .fR, .fl, .fv, .fc, .ci)
 *    von Section 19 ans Ende der Datei (Section 24) verschoben.
 *    URSACHE: CSS-Kaskade — meine Mobile-Regeln standen VOR den Basis-.fr-
 *    und .ci-Definitionen → wurden überschrieben. Jetzt am Datei-Ende
 *    gewinnen sie durch Position bei gleicher Spezifität.
 *  - Effekt: Stack-Layout und Linksbündigkeit auf Handy greifen endlich.
 *
 * v20 Changelog:
 *  - .fr/.fR linksbündig statt rechts (Stack-Layout korrekt)
 *  - .ci 1-Spalt auf Handy
 *
 * v19 Changelog:
 *  - .fr Stack-Versuch (greift wegen Kaskade nicht — siehe v21)
 *
 * v18 Changelog:
 *  - Body-Split (.cb) ab <1024px auf 1-Spalt
 *
 * v17 Changelog:
 *  - Site-Header full-bleed
 *
 * v16 Changelog:
 *  - Hero (.hn) auf Tablet/Handy kompakter
 */

/* =========================================================================
   1. CSS-Variablen (Light)
   ========================================================================= */
:root {
  /* Farben */
  --bg-primary:        #ffffff;
  --bg-secondary:      #f8f8f8;
  --bg-tertiary:       #f0f0f0;
  --text-primary:      #000000;
  --text-secondary:    #555555;
  --text-tertiary:     #888888;
  --accent-color:      #ff9800;
  --accent-hover:      #f57c00;
  --border-color:      #e0e0e0;
  --border-color-light:#eeeeee;

  --success-color:     #4caf50;
  --warning-color:     #ff9800;
  --error-color:       #f44336;
  --info-color:        #2196f3;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);

  /* Typografie */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
}

/* =========================================================================
   2. Dark Mode (Auto via System + Manueller Override via .theme-* Klassen)
   ========================================================================= */

/* Dark via System (nur wenn nicht manuell auf light gezwungen) */
@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) {
    --bg-primary:        #121212;
    --bg-secondary:      #1e1e1e;
    --bg-tertiary:       #2a2a2a;
    --text-primary:      #ffffff;
    --text-secondary:    #b0b0b0;
    --text-tertiary:     #808080;
    --accent-color:      #ffb74d;
    --accent-hover:      #ffa726;
    --border-color:      #333333;
    --border-color-light:#2a2a2a;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.6);
  }
}

/* Dark via manuellen Toggle (überschreibt System) */
:root.theme-dark {
  --bg-primary:        #121212;
  --bg-secondary:      #1e1e1e;
  --bg-tertiary:       #2a2a2a;
  --text-primary:      #ffffff;
  --text-secondary:    #b0b0b0;
  --text-tertiary:     #808080;
  --accent-color:      #ffb74d;
  --accent-hover:      #ffa726;
  --border-color:      #333333;
  --border-color-light:#2a2a2a;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.6);
}

/* =========================================================================
   3. Reset & Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================================
   4. Typografie
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { margin: 0 0 var(--space-md); }

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--accent-hover); text-decoration: none; }

code, pre {
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: .9em;
}
pre {
  padding: var(--space-md);
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: var(--space-lg) 0;
}

/* =========================================================================
   5. Forms
   ========================================================================= */
input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255,152,0,.15);
}

textarea { resize: vertical; min-height: 100px; font-family: inherit; }

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--space-xs);
}

/* =========================================================================
   6. Buttons
   ========================================================================= */
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-color);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .2s, transform .1s;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
}

.button:hover { background: var(--accent-hover); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .5; cursor: not-allowed; }

.button-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.button-secondary:hover { background: var(--border-color); }

.button-danger {
  background: var(--error-color);
  color: #ffffff;
}
.button-danger:hover { background: #d32f2f; }

/* =========================================================================
   7. Cards
   ========================================================================= */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.card-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color-light);
}

/* =========================================================================
   8. Tables
   ========================================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  word-break: break-word;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color-light);
  font-size: 14px;
}

th {
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .5px;
  background: var(--bg-tertiary);
}

tr:hover td { background: var(--bg-tertiary); }

/* =========================================================================
   9. Badges
   ========================================================================= */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-success { background: rgba(76,175,80,.15);  color: var(--success-color); }
.badge-warning { background: rgba(255,152,0,.15);  color: var(--warning-color); }
.badge-error   { background: rgba(244,67,54,.15);  color: var(--error-color); }
.badge-info    { background: rgba(33,150,243,.15); color: var(--info-color); }

/* =========================================================================
   10. Utilities
   ========================================================================= */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-small   { font-size: 12px; }
.text-muted   { color: var(--text-tertiary); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

/* =========================================================================
   11. Site Header (alle Frontend-Seiten)
   ========================================================================= */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-md) 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) {
  .site-header { padding: var(--space-md) 32px; }
}
@media (max-width: 640px) {
  .site-header { padding: 10px 16px; }
}
.site-header-inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  letter-spacing: -.5px;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; opacity: .85; }
.site-nav {
  display: flex;
  gap: var(--space-sm);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all .2s;
}
.site-nav a:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  text-decoration: none;
}
/* Mobile: Nav-Labels ausblenden, Buttons kompakter */
@media (max-width: 600px) {
  .nav-label { display: none; }
  .site-nav a { padding: 7px 10px; gap: 0; font-size: 18px; }
  .site-nav { gap: 6px; }
  .site-slogan { display: none !important; }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all .2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* =========================================================================
   12. Page Wrapper + Section Titles
   ========================================================================= */
.page-color {
  margin: 0 auto;
  padding: 0;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
}

/* =========================================================================
   13. Hero (Swatch + Info Side-by-Side)
   ========================================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.hero-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.hero-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  word-break: break-word;
}

.hero-hex {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  align-self: flex-start;
  font-weight: 600;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  align-self: flex-start;
  color: var(--text-secondary);
  font-weight: 600;
}

/* =========================================================================
   14. Color Format Cards (2-col Grid)
   ========================================================================= */
.formats-section { margin-bottom: var(--space-xl); }

.formats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.fmt-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md);
  min-width: 0;
}

.fmt-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 50px;
}

.fmt-value {
  font-family: var(--font-mono);
  font-size: 12px;
  flex: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  padding: 0;
}

.fmt-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  opacity: .6;
  transition: opacity .2s, background .2s;
  min-height: auto;
  min-width: auto;
}
.fmt-copy:hover { opacity: 1; background: var(--bg-tertiary); }
.fmt-copy.copied { opacity: 1; color: var(--success-color); }

/* =========================================================================
   15. AdSense
   ========================================================================= */
.ad-container {
  display: flex;
  justify-content: center;
  margin: var(--space-xl) 0;
  min-height: 250px;
}

/* =========================================================================
   16. Similar / Variants Grid
   ========================================================================= */
.thumbs-section { margin-bottom: var(--space-xl); }

.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}

.thumb-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s;
}
.thumb-item:hover { transform: translateY(-2px); text-decoration: none; }

.thumb-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-light);
}

.thumb-name {
  font-size: 11px;
  margin-top: 6px;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.thumb-item--current .thumb-swatch {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* =========================================================================
   17. Share + Color Navigation
   ========================================================================= */
.share-section {
  text-align: center;
  margin: var(--space-xl) 0;
}

.color-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.color-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all .2s;
}
.color-nav a:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  text-decoration: none;
}

.nav-prev  { justify-self: start; }
.nav-next  { justify-self: end; }
.nav-random { justify-self: center; }

/* =========================================================================
   18. Site Footer
   ========================================================================= */
.site-footer {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}
.footer-links a { color: var(--text-secondary); }
.footer-disclaimer {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
  font-style: italic;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.footer-meta { font-size: 11px; color: var(--text-tertiary); }

/* =========================================================================
   19. Responsive
   ========================================================================= */
@media (max-width: 600px) {
  .thumbs-grid  { grid-template-columns: repeat(3, 1fr); }
  .hero-name { font-size: 18px; }
  .nav-label { display: none; }
  .color-nav a { padding: 10px 8px; font-size: 12px; }
  .fmt-row { padding: 8px 10px; }
  .fmt-label { min-width: 42px; font-size: 10px; }
  .fmt-value { font-size: 11px; }
}

@media (max-width: 480px) {
  .formats-grid { grid-template-columns: 1fr; }
  .thumbs-grid { grid-template-columns: repeat(2, 1fr); }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-swatch { max-width: 100%; aspect-ratio: 16/9; margin: 0 auto; }
  .hero-info { align-items: center; }
  .hero-hex { align-self: center; }
}

@media (max-width: 380px) {
  .hero-swatch { aspect-ratio: 4/3; }
}

/* =========================================================================
   20. Legal Pages
   ========================================================================= */
.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.legal-wrap h1 { font-size: 28px; margin-bottom: var(--space-lg); }
.legal-wrap h2 { font-size: 18px; margin-top: var(--space-xl); }
.legal-wrap h3 { font-size: 15px; margin-top: var(--space-lg); color: var(--text-secondary); }
.legal-wrap p, .legal-wrap li { line-height: 1.7; }
.legal-wrap ul { padding-left: 20px; }

.lang-toggle-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.legal-notice {
  background: rgba(255,152,0,.08);
  border-left: 4px solid var(--accent-color);
  padding: 12px 16px;
  margin-bottom: var(--space-xl);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px;
}

.legal-success {
  background: rgba(76,175,80,.08);
  border-left: 4px solid var(--success-color);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px;
}

.legal-date {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: var(--space-xl);
}

/* =========================================================================
   21. Cookie-Banner
   ========================================================================= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 2px solid var(--accent-color);
  padding: 16px 20px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
#cookie-banner[hidden] { display: none !important; }

.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
}

.cookie-banner-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.cookie-banner-text a { color: var(--accent-color); }

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-banner-actions .button {
  padding: 10px 16px;
  font-size: 13px;
  min-height: 40px;
}

/* =========================================================================
   22. New Design v3.1.5 – Immersive Hero + 50/50 Split Layout
   ========================================================================= */

/* ── Slogan ── */
.site-slogan {
  font-size: 11px;
  color: var(--text-tertiary);
  font-style: italic;
  display: none;
}
@media (min-width: 600px) { .site-slogan { display: block; } }

/* ── New Hero (Immersive Fullwidth) ── */
.hn {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--bg-secondary);
}
@media (min-width: 640px)  { .hn { height: 180px; } }
@media (min-width: 1024px) { .hn { height: 240px; } }

.hn-swatch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ho {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.15) 100%);
}
@media (min-width: 1024px) {
  .ho { background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%); }
}
.hc {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  padding: 0 48px;
  box-sizing: border-box;
}
@media (max-width: 1023px) {
  .hc { padding: 0 16px; }
}
@media (min-width: 1024px) {
  .hc {
    top: auto;
    bottom: 0;
    align-items: flex-end;
    padding: 0 48px;
  }
}
.hl { min-width: 0; }
.hN {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
@media (max-width: 900px) { .hN { font-size: 26px; } }
@media (max-width: 480px) { .hN { font-size: 20px; } }

.hd {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.hk {
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.15);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.hv {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.hv a {
  font-size: 11px;
  background: rgba(255,255,255,.15);
  border: 0.5px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.hv a:hover { background: rgba(255,255,255,.28); }


/* ── Page Container — zentraler Wrapper unter dem Hero ── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
/* ── Split Body: ab 1024px 2-Spalt, darunter 1-Spalt ── */
.cb {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 1023px) {
  .cb { grid-template-columns: 1fr; }
}

.cbl {
  border-right: 0.5px solid var(--border-color-light);
}

.cbr {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── New Format List ── */
.fL {
  border: 0.5px solid var(--border-color-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.fr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 0.5px solid var(--border-color-light);
}
.fr:last-child { border-bottom: none; }
.fl {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.fR {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fv {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}
.fc {
  font-size: 9px;
  color: var(--text-tertiary);
  border: 0.5px solid var(--border-color-light);
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
  background: none;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.fc:hover { color: var(--accent-color); border-color: var(--accent-color); }
.fc.copied { color: var(--success-color); }

/* ── Color Info Cards ── */
.ci {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cc {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}
.cil {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.civ {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ── Similar + Variants (neue Version) ── */
.sg { display: flex; gap: 8px; }
.si { flex: 1; cursor: pointer; min-width: 0; }
.ss {
  height: 48px;
  border-radius: 6px;
  margin-bottom: 5px;
  transition: transform .15s;
}
.si:hover .ss { transform: scale(1.05); }
.sn {
  font-size: 9px;
  color: var(--text-tertiary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vg { display: flex; gap: 8px; }
.vi { flex: 1; cursor: pointer; min-width: 0; }
.vs {
  border-radius: 6px;
  margin-bottom: 4px;
  transition: transform .15s;
}
.vi:hover .vs { transform: scale(1.05); }
.vi.active .vs {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}
.vn {
  font-size: 8px;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Share Row ── */
.sr {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.sb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 0.5px solid var(--border-color-light);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  line-height: 1.2;
}
.sb:hover { background: var(--bg-tertiary); color: var(--accent-color); }

/* ── Footer Nav (neue Version) ── */
.cn {
  border-top: 0.5px solid var(--border-color-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}
.cn a {
  font-size: 12px;
  color: var(--text-secondary);
  border: 0.5px solid var(--border-color);
  border-radius: 20px;
  padding: 7px 16px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.cn a:hover { color: var(--accent-color); border-color: var(--accent-color); }

/* ── Startseite: Slogan unter Titel ── */
.home-slogan {
  font-size: 14px;
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 6px;
}

.home-intro {
  margin: 24px auto 28px;
  max-width: 600px;
  text-align: left;
}

.home-intro-headline {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  line-height: 1.4;
}

.home-intro-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 10px;
}

@media (max-width: 600px) {
  .home-intro { text-align: left; padding: 0 4px; }
  .home-intro-headline { font-size: 16px; }
  .home-intro-body { font-size: 14px; }
}


@media (max-width: 600px) {
  .home-intro { text-align: left; padding: 0 4px; }
  .home-intro-headline { font-size: 16px; }
  .home-intro-body { font-size: 14px; }
}


/* ── Color Page Intro — Variante C ─────────────────────────────────────── */
.pg-intro {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 0 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 48px 16px;
  border-bottom: 1px solid var(--border-color-light);
}

.pg-intro-bar {
  background: var(--accent-color);
  border-radius: 2px;
  min-height: 100%;
}

.pg-intro-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pg-intro-name {
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent-color);
  line-height: 1.3;
  margin: 0;
}

.pg-intro-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.pg-intro-sub {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-tertiary);
  margin: 0;
}

.pg-intro a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.pg-intro a:hover { text-decoration: none; }

@media (max-width: 900px) {
  .pg-intro { padding: 16px 32px 14px; }
}

@media (max-width: 640px) {
  .pg-intro { padding: 14px 16px 12px; gap: 0 10px; }
  .pg-intro-name { font-size: 14px; }
  .pg-intro-text { font-size: 13px; }
  .pg-intro-sub  { font-size: 12px; }
}


/* ── Ext-Sections Skeleton + on-demand ─────────────────────────────────── */
#color-ext { padding: 0; }
.ext-skeleton { padding: 24px 48px; }
.ext-sk-bar {
  height: 14px;
  background: var(--border-color-light);
  border-radius: 4px;
  margin-bottom: 12px;
  animation: sk-pulse 1.5s ease-in-out infinite;
}
.ext-sk-short { width: 60%; }
@keyframes sk-pulse { 0%,100%{opacity:.5} 50%{opacity:1} }
@media (max-width: 900px) { .ext-skeleton { padding: 16px 32px; } }
@media (max-width: 640px) { .ext-skeleton { padding: 14px 16px; } }


/* ── Color Info Bars + Temp + Contrast ─────────────────────────────────── */
.ci-bar-wrap {
  height: 8px; background: var(--border-color-light);
  border-radius: 4px; overflow: hidden; margin: 6px 0 4px;
}
.ci-bar {
  height: 100%; border-radius: 4px; transition: width .4s;
  min-width: 4px;
}
.ci-temp {
  margin-top: 16px;
}
.ci-temp-bar {
  position: relative; height: 12px; border-radius: 6px; margin: 6px 0 4px;
  background: linear-gradient(to right, #ff6b35, #ff9800, #fff, #87ceeb, #4169e1);
}
.ci-temp-marker {
  position: absolute; top: -3px; width: 18px; height: 18px;
  background: #fff; border: 2px solid var(--text-primary);
  border-radius: 50%; transform: translateX(-50%);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.ci-temp-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-tertiary);
}
.ci-contrast {
  margin-top: 16px;
}
.ci-contrast-box {
  padding: 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.ci-contrast-text {
  font-size: 14px; line-height: 1.6;
}

/* ── Pantone ────────────────────────────────────────────────────────────── */
/* ── Pantone Split-View ── */
.pantone-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 14px;
}
.pantone-side { display: flex; flex-direction: column; gap: 6px; }
.pantone-side-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-tertiary); text-align: center;
}
.pantone-side-swatch {
  height: 90px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; padding: 8px;
}
.pantone-name     { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.3; }
.pantone-side-hex { font-size: 10px; font-family: monospace; opacity: .85; }
.pantone-bridge {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 0 10px;
}
.pantone-delta {
  font-size: 22px; font-weight: 700; font-family: monospace;
  line-height: 1;
}
.pantone-delta-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .3px; text-align: center; line-height: 1.3;
  white-space: nowrap;
}
.pantone-bridge-line {
  width: 2px; height: 30px; border-radius: 1px; margin-top: 4px;
}
.pantone-quality {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  margin: 0 0 6px;
}
.pantone-explain {
  font-size: 12px; color: var(--text-tertiary); margin: 0; line-height: 1.5;
}

/* ── Metamer ────────────────────────────────────────────────────────────── */
.metamer-risk-wrap { margin-bottom: 14px; }
.metamer-risk-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-secondary); border-radius: var(--radius-md);
  padding: 14px 16px; border: 1px solid var(--border-color-light);
}
.metamer-risk-icon { font-size: 24px; flex-shrink: 0; }
.metamer-risk-info { display: flex; flex-direction: column; gap: 3px; }
.metamer-risk-label { font-size: 15px; font-weight: 700; }
.metamer-risk-sub   { font-size: 12px; color: var(--text-tertiary); }
.metamer-desc {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  margin: 0 0 16px;
}
.metamer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.metamer-item { display: flex; flex-direction: column; gap: 6px; }
.metamer-swatch {
  height: 70px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: monospace; font-weight: 700;
}
.metamer-label {
  font-size: 10px; color: var(--text-secondary); text-align: center;
  line-height: 1.3;
}
@media (max-width: 480px) {
  .metamer-grid { grid-template-columns: 1fr; }
}



/* ── Color Science erweitert ───────────────────────────────────────────── */
.cd-intro { font-size:13px; color:var(--text-secondary); margin-bottom:16px; line-height:1.5; }
.cd-desc  { font-size:11px; color:var(--text-tertiary); margin-bottom:6px; line-height:1.4; }
.cd-badge { display:inline-block; background:var(--bg-tertiary); border:1px solid var(--border-color);
            border-radius:10px; padding:1px 7px; font-size:10px; font-weight:600;
            color:var(--text-secondary); margin-left:6px; vertical-align:middle; }
.cd-bar-wrap { height:6px; background:var(--border-color); border-radius:3px; margin:6px 0 4px; overflow:hidden; }
.cd-bar-fill { height:100%; background:var(--accent-color); border-radius:3px; transition:width .4s; }

/* ── CSS Tokens erweitert ───────────────────────────────────────────────── */
.css-label-wrap { display:flex; flex-direction:column; min-width:110px; flex-shrink:0; }
.css-desc  { font-size:10px; color:var(--text-tertiary); margin-top:2px; }

/* ── Color Variants Extended (Pastell/Neon/Dark) ───────────────────────── */
.ve-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ve-item { display: flex; flex-direction: column; gap: 6px; }
.ve-swatch {
  height: 80px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.ve-icon  { font-size: 20px; }
.ve-hex   { font-size: 10px; font-family: monospace; font-weight: 700; }
.ve-label { font-size: 11px; font-weight: 700; text-transform: uppercase;
            letter-spacing: .5px; color: var(--text-secondary); text-align: center; }

/* ── Color Science (XYZ, YUV etc.) ─────────────────────────────────────── */
.cd-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cd-item  { background: var(--bg-secondary); border: 1px solid var(--border-color-light);
            border-radius: var(--radius-md); padding: 10px 12px; }
.cd-item.cd-wide { grid-column: span 3; }
.cd-label { font-size: 10px; font-weight: 700; text-transform: uppercase;
            letter-spacing: .5px; color: var(--text-tertiary); margin-bottom: 6px; }
.cd-big   { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.cd-val   { font-size: 12px; color: var(--text-secondary); }
.cd-swatch {
  height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color); margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: monospace; font-weight: 700;
}
@media (max-width: 480px) {
  .cd-grid { grid-template-columns: 1fr 1fr; }
  .cd-item.cd-wide { grid-column: span 2; }
  .ve-grid { grid-template-columns: 1fr; }
}

/* ── CSS & Design Tokens ────────────────────────────────────────────────── */
.css-grid  { display: flex; flex-direction: column; gap: 8px; }
.css-item  { display: flex; align-items: center; gap: 10px;
             background: var(--bg-secondary); border: 1px solid var(--border-color-light);
             border-radius: var(--radius-md); padding: 8px 12px; }
.css-label { font-size: 11px; font-weight: 700; color: var(--text-tertiary);
             min-width: 90px; flex-shrink: 0; }
.css-val   { flex: 1; overflow: hidden; }
.css-val code { font-size: 12px; color: var(--text-secondary); white-space: nowrap;
                overflow: hidden; text-overflow: ellipsis; display: block; }
.css-copy  { flex-shrink: 0; padding: 3px 10px; font-size: 11px;
             background: var(--bg-tertiary); border: 1px solid var(--border-color);
             border-radius: var(--radius-sm); cursor: pointer; color: var(--text-secondary); }
.css-copy:hover { background: var(--accent-color); color: #000; border-color: var(--accent-color); }

/* ── Gradients ──────────────────────────────────────────────────────────── */
.grad-grid   { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.grad-item   { display: flex; flex-direction: column; gap: 8px; }
.grad-preview { height: 70px; border-radius: var(--radius-md);
                border: 1px solid var(--border-color); }
.grad-label  { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.grad-copy   { padding: 5px 12px; font-size: 11px; cursor: pointer;
               background: var(--bg-secondary); border: 1px solid var(--border-color);
               border-radius: var(--radius-sm); color: var(--text-secondary); }
.grad-copy:hover { background: var(--accent-color); color: #000; border-color: var(--accent-color); }
@media (max-width: 480px) { .grad-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   23. AdSense Responsive Slots + Mehr Seitenabstand
   ========================================================================= */

/* Mehr Platz links/rechts auf Farb-Seiten */
.cbl  { padding: 24px 48px; }
.cbr { padding: 24px 48px; }
.hc { padding: 20px 48px; }
.cn    { padding: 14px 48px; }

@media (max-width: 900px) {
  .cbl  { padding: 20px 32px; }
  .cbr { padding: 20px 32px; }
  .hc { padding: 20px 32px; }
  .cn    { padding: 14px 32px; }
}
/* Im 1-Spalt-Layout (<1024px) wird Border-right zu Border-bottom */
@media (max-width: 1023px) {
  .cbl { border-right: none; border-bottom: 0.5px solid var(--border-color-light); }
}
@media (max-width: 640px) {
  .cbl  { padding: 16px; }
  .cbr { padding: 16px; }
  .hc { padding: 16px; }
  .cn    { padding: 12px 16px; }
}

/* Slot 1: Zwischen Hero + Body (volle Breite) */
.a1 {
  padding: 8px 48px;
  border-bottom: 0.5px solid var(--border-color-light);
  background: var(--bg-secondary);
  text-align: center;
  min-height: 60px;
}
@media (max-width: 900px) { .a1 { padding: 8px 24px; } }
@media (max-width: 640px) { .a1 { padding: 8px 12px; } }
/* Kein Leerraum solange AdSense nicht aktiv */
.a1 { display: none; }
.a1.ad-active { display: block; }

/* Slot 2: Rechte Spalte (inline) */
.a2 {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  min-height: 80px;
  text-align: center;
}
.a2 { display: none; }
.a2.ad-active { display: block; }

/* Rückwärts-Kompatibilität für alte HTML-Dateien (vor v3.3.7) */
.variant-new-item { flex: 1; cursor: pointer; min-width: 0; }
.variant-new-item:hover .variant-new-swatch { transform: scale(1.05); }
.variant-new-item.active .variant-new-swatch { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.variant-new-swatch { border-radius: 6px; margin-bottom: 4px; transition: transform .15s; }
.variant-new-name { font-size: 8px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variants-new { display: flex; gap: 8px; width: 100%; }

/* =========================================================================
   24. Mobile Final Overrides (Spezifität durch Position am Datei-Ende)
   Diese Regeln MÜSSEN nach allen Basis-Regeln stehen, sonst überschreiben
   spätere Basis-Definitionen (.fr / .ci) sie wieder.
   ========================================================================= */
@media (max-width: 600px) {
  /* Format-Reihen: Stack-Layout, alles linksbündig */
  .fr {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
  }
  .fl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
  }
  .fR {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  .fv {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
  }
  .fc {
    font-size: 10px;
    padding: 4px 10px;
    flex-shrink: 0;
  }

  /* Color Info: 1-Spalt statt 2 */
  .ci {
    grid-template-columns: 1fr;
  }

  /* Similar Colors + Variants: Grid 3-spaltig statt flex (wrappt bei >3 Items in 2. Reihe) */
  .sg, .vg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 8px;
  }
  .si, .vi {
    min-width: 0;
  }
  .ss, .vs {
    height: 56px !important;        /* überschreibt inline style="height:Xpx" der Variants */
    margin-top: 0 !important;       /* überschreibt inline style="margin-top:Xpx" der Variants */
  }
  .sn, .vn {
    font-size: 10px;
    line-height: 1.3;
  }
}

/* =========================================================================
   28. Erweiterte Farb-Sektionen (WCAG, Paletten, Charakter, UI-Palette)
   ========================================================================= */

.ext-section {
  border-top: 1px solid var(--border-color-light);
  padding: 28px 0;
}

.ext-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 900px) { .ext-inner { padding: 0 32px; } }
@media (max-width: 640px) { .ext-inner { padding: 0 16px; } }

/* ── Komplementär ── */
.comp-wrap { display: block; }
.comp-swatch {
  width: 100%; height: 100px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-family: monospace; font-size: 13px; font-weight: 700;
  border: 1px solid var(--border-color); flex-shrink: 0;
  text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.comp-hex { font-family: monospace; font-size: 13px; }

/* ── Paletten ── */
.palette-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) { .palette-grid { grid-template-columns: 1fr; } }
.palette-row  { display: flex; align-items: center; gap: 12px; }
.palette-label { font-size: 12px; color: var(--text-secondary); min-width: 140px; }
.palette-swatches { display: flex; gap: 4px; }
a.pal-sw, .pal-sw {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color); cursor: pointer;
  transition: transform .15s;
}
a.pal-sw:hover, .pal-sw:hover { transform: scale(1.15); }

@media (max-width: 640px) {
  .palette-row { flex-wrap: wrap; }
  .palette-label { min-width: 120px; font-size: 11px; }
  .pal-sw { width: 28px; height: 28px; }
}

/* ── WCAG ── */
.wcag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.wcag-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wcag-preview {
  height: 60px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.wcag-info {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.wcag-label { font-size: 11px; color: var(--text-secondary); }
.wcag-ratio { font-size: 15px; font-weight: 700; color: var(--text-primary); font-family: monospace; }
.wcag-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 700; width: fit-content;
}
.wcag-aaa  { background: rgba(76,175,80,.15);  color: #2e7d32; }
.wcag-aa   { background: rgba(33,150,243,.15);  color: #1565c0; }
.wcag-aal  { background: rgba(255,152,0,.15);   color: #e65100; }
.wcag-fail { background: rgba(244,67,54,.15);   color: #b71c1c; }
.wcag-ok   { background: rgba(76,175,80,.15);  color: #2e7d32; }

@media (max-width: 640px) {
  .wcag-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Delta-E ── */
.delta-row { display: flex; gap: 16px; }
.delta-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-secondary); border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md); padding: 12px 16px; flex: 1; text-align: center;
}
.delta-swatch {
  width: 40px; height: 40px; border-radius: var(--radius-md);
}
.delta-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; }
.delta-desc  { font-size: 11px; color: var(--text-tertiary); font-style: italic; }
.delta-explain { font-size: 12px; color: var(--text-tertiary); margin: 10px 0 0; line-height: 1.5; }
.delta-val { font-size: 26px; font-weight: 700; color: var(--text-primary); font-family: monospace; }

/* ── Farbblindheit ── */
.cb-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 480px) { .cb-sim-grid { grid-template-columns: 1fr; } }
.cb-sim-row  { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.cb-sim-swatch {
  width: 100%; height: 80px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; font-family: monospace; font-weight: 700;
  flex-shrink: 0; text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.cb-sim-label { font-size: 13px; color: var(--text-secondary); }

/* ── Charakter ── */
.char-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 4px;
}
.char-item {
  background: var(--bg-secondary); border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.char-label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-secondary); }
.char-val   { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.tag-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.color-tag {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  background: var(--bg-tertiary); border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.mood-tag  { border-color: var(--accent-color); color: var(--accent-color); }
.style-tag { border-color: var(--border-color); color: var(--text-secondary); }

/* ── Pairs ── */
.pairs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 480px) { .pairs-grid { grid-template-columns: 1fr 1fr; } }
.pair-item, a.pair-item  { display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; }
.pair-swatch {
  width: 100%; height: 80px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; font-family: monospace; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.pair-label { font-size: 11px; color: var(--text-secondary); text-align: center; }

/* ── UI-Palette ── */
.ui-palette {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 12px;
}
.ui-pal-item  { display: flex; flex-direction: column; gap: 6px; }
.ui-pal-swatch {
  height: 80px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
}
.ui-pal-label { font-size: 11px; font-weight: 700; }
.ui-pal-hex   { font-size: 10px; font-family: monospace; opacity: .85; }
.ui-copy {
  font-size: 11px; padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--bg-tertiary); border: 1px solid var(--border-color);
  color: var(--text-secondary); cursor: pointer; width: 100%;
  transition: all .15s;
}
.ui-copy:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

@media (max-width: 900px) { .ui-palette { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) {
  .ui-palette { grid-template-columns: repeat(2,1fr); }
  .char-grid  { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   COLOR CATEGORIES v3.9.0
   ════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb-nav {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 4px; flex-wrap: wrap;
}
.breadcrumb-nav a { color: var(--accent-color); text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: none; }
.breadcrumb-nav span { color: var(--text-tertiary); }

/* ── Category Grid (Übersichtsseite) ────────────────────────── */
.cat-section { margin-bottom: 40px; }
.cat-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 16px; gap: 8px;
}
.cat-dim-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.cat-dim-title a { color: var(--text-primary); text-decoration: none; }
.cat-dim-title a:hover { color: var(--accent-color); }
.cat-dim-desc { font-size: 13px; color: var(--text-secondary); margin: 0; }
.cat-dim-link { font-size: 13px; color: var(--accent-color); white-space: nowrap; text-decoration: none; }
.cat-dim-link:hover { text-decoration: none; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.cat-grid-dim {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.cat-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 16px 12px; text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text-primary);
  transition: all .2s; cursor: pointer;
}
.cat-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 16px rgba(255,152,0,.15);
  transform: translateY(-2px);
}
.cat-card-lg {
  flex-direction: row; text-align: left; align-items: center;
  gap: 14px; padding: 18px 16px;
}
.cat-icon { font-size: 28px; line-height: 1; }
.cat-card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.cat-name { font-size: 14px; font-weight: 700; }
.cat-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.cat-count { font-size: 12px; color: var(--text-tertiary); }

/* ── Category Color Grid ─────────────────────────────────────── */
.cat-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.cat-color-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text-primary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md); overflow: hidden;
  transition: all .2s;
}
.cat-color-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.cat-color-swatch { width: 100%; aspect-ratio: 1; }
.cat-color-info {
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-secondary);
}
.cat-color-name { font-size: 11px; font-weight: 600; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-color-hex { font-size: 10px; font-family: 'Courier New', monospace;
  color: var(--text-secondary); }

/* ── Pagination ──────────────────────────────────────────────── */
.cat-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; flex-wrap: wrap; margin: 24px 0;
}
.cat-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--text-secondary); background: var(--bg-secondary);
  transition: all .15s;
}
.cat-page-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.cat-page-active {
  background: var(--accent-color); border-color: var(--accent-color);
  color: #fff !important;
}
.cat-page-gap { color: var(--text-tertiary); font-size: 13px; }

/* ── Related Categories ──────────────────────────────────────── */
.cat-related { margin-top: 32px; }
.cat-related h3 { font-size: 16px; margin-bottom: 12px; }
.cat-related-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-related-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border-color);
  font-size: 13px; text-decoration: none;
  color: var(--text-secondary); background: var(--bg-secondary);
  transition: all .15s;
}
.cat-related-link:hover { border-color: var(--accent-color); color: var(--accent-color); }
.cat-related-link span { color: var(--text-tertiary); font-size: 11px; }

/* ── Category Badges auf Color-Seiten ───────────────────────── */
.color-cats-section {
  margin: 20px 0 0;
  padding: 0 20px;
  max-width: 1200px;
  box-sizing: border-box;
}
.color-cats-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-secondary); margin-bottom: 8px;
}
.color-cats-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.color-cat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 16px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  background: var(--bg-tertiary); border: 1px solid var(--border-color);
  color: var(--text-secondary); transition: all .15s;
}
.color-cat-badge:hover { border-color: var(--accent-color); color: var(--accent-color); background: rgba(255,152,0,.07); }
.color-cat-badge-family   { border-color: rgba(255,152,0,.4); color: var(--accent-color); }
.color-cat-badge-material { border-color: rgba(33,150,243,.4); color: #2196f3; }
.color-cat-badge-mood     { border-color: rgba(76,175,80,.4);  color: #4caf50; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .cat-color-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .cat-grid-dim { grid-template-columns: 1fr; }
  .cat-section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .cat-color-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── AdSense: kein Leerraum solange nicht aktiv ── */
.adsbygoogle:not([data-ad-status]) { display: none !important; }
.tool-ad-slot { display: none; }
#home-ad-slot { display: none; }
