/* Inter - selbst gehostet (DSGVO: keine Verbindung zu Google Fonts) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Helle Werte (Standard) */
  --bg: #fafaf8;
  --bg2: #f2f0eb;
  --surface: #ffffff;        /* Karten-/Box-Hintergrund */
  --text: #1a1a18;
  --muted: #6b6b67;
  --border: #e0ded8;
  --accent: #c0531a;
  --accent2: #1a6b4a;
  --accent-soft: #fdeee6;    /* helle Akzent-Tönung (war #fdeee6) */
  --accent2-soft: #e8f5ee;   /* helle Grün-Tönung (war #e8f5ee) */
  --on-accent: #ffffff;      /* Text auf Akzent-Button */
  --on-accent-soft: #b34d15; /* Text auf --accent-soft (AA) */
  --on-accent2-soft: #1a6b4a;/* Text auf --accent2-soft */
  --radius: 10px;
  --font: 'Inter', system-ui, sans-serif;
  color-scheme: light;
}

/* ── Dark Mode ──────────────────────────────────────────────────────────────
   Dunkle Token-Werte. Greifen automatisch per System-Einstellung
   (prefers-color-scheme), sofern der Nutzer nicht manuell „hell" erzwungen hat,
   ODER wenn manuell „dunkel" gewählt wurde (data-theme="dark"). Der Umschalter
   in partials/nav.php setzt das data-theme-Attribut + merkt es in localStorage. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16140f;
    --bg2: #211e18;
    --surface: #221f19;
    --text: #f1ede4;
    --muted: #a8a294;
    --border: #36322a;
    --accent: #e8703a;
    --accent2: #4cae86;
    --accent-soft: #2c1c12;
    --accent2-soft: #14241d;
    --on-accent: #1a140f;
    --on-accent-soft: #f0a878;
    --on-accent2-soft: #6cc79e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16140f;
  --bg2: #211e18;
  --surface: #221f19;
  --text: #f1ede4;
  --muted: #a8a294;
  --border: #36322a;
  --accent: #e8703a;
  --accent2: #4cae86;
  --accent-soft: #2c1c12;
  --accent2-soft: #14241d;
  --on-accent: #1a140f;
  --on-accent-soft: #f0a878;
  --on-accent2-soft: #6cc79e;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* Keyboard-focus styling (accessibility) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 2rem;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-right: auto;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.btn { color: var(--bg); }
.nav-links a.btn:hover { color: var(--bg); }
/* „PDF kaufen“ als Eintrag im aufgeklappten Menü — nur auf schmalen Handys sichtbar */
.cta-in-menu { display: none; }
.cta-in-menu a { color: var(--accent); font-weight: 600; }

/* Tools-Dropdown */
.has-dropdown { position: relative; display: flex; align-items: center; gap: 2px; }
.dd-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center;
}
.dd-caret { display: inline-block; transition: transform .15s; }
/* Drehung über den echten Zustand (per JS gesetzt) – funktioniert auf Touch in
   beide Richtungen; Hover/Fokus-Drehung nur auf Desktop (siehe min-width unten) */
.dd-toggle[aria-expanded="true"] .dd-caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  min-width: 224px; padding: 6px;
  list-style: none; display: none; flex-direction: column; gap: 2px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 14px 30px rgba(26, 26, 24, .12);
  z-index: 200;
}
/* unsichtbare „Brücke“, damit der Hover beim Weg zur Liste nicht abreißt */
.dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
/* Hover/Fokus öffnet das Dropdown nur auf echten Desktop-Breiten – auf Touch
   übernimmt der Caret-Toggle (.open), sonst würde sticky :hover/:focus stören */
@media (min-width: 701px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: flex; }
  .has-dropdown:hover .dd-caret,
  .has-dropdown:focus-within .dd-caret { transform: rotate(180deg); }
}
.dropdown li { width: 100%; }
.dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; white-space: nowrap; color: var(--muted);
}
.dropdown a:hover { background: var(--bg2); color: var(--text); }
.dropdown a.active { color: var(--text); font-weight: 600; background: var(--bg2); }
.dd-icon { font-size: 15px; }
.dd-all { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 4px; }
.dropdown .dd-all a { color: var(--accent); font-weight: 600; }

/* Sandwich-/Hamburger-Button (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--bg2); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Theme-Umschalter (Hell/Dunkel/Auto) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.theme-toggle:hover { background: var(--bg2); border-color: var(--muted); }

.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  border: none;
}
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: 0.85; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg2); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { opacity: 0.88; }

/* HERO */
.hero {
  padding: 80px 2rem 60px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* PALETTE STRIP */
.palette-strip {
  display: flex;
  align-items: center;
  height: 14px;
  margin: 0 2rem;
  border-radius: 4px;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto 60px;
}
.palette-strip div { flex: 1 1 0; height: 100%; animation: stripPulse 4s ease-in-out infinite; }

/* Farbwechsel des gesamten Streifens (langsamer Durchlauf durch den Farbkreis) */
.palette-strip { animation: stripHue 16s linear infinite; }
@keyframes stripHue {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}
/* Einzelne Farben werden breiter & höher und wieder kleiner – versetzt = durchlaufende Welle */
@keyframes stripPulse {
  0%, 100% { flex-grow: 1; height: 55%; }
  50%      { flex-grow: 3; height: 100%; }
}
.palette-strip div:nth-child(1) { animation-delay: 0s; }
.palette-strip div:nth-child(2) { animation-delay: -.5s; }
.palette-strip div:nth-child(3) { animation-delay: -1s; }
.palette-strip div:nth-child(4) { animation-delay: -1.5s; }
.palette-strip div:nth-child(5) { animation-delay: -2s; }
.palette-strip div:nth-child(6) { animation-delay: -2.5s; }
.palette-strip div:nth-child(7) { animation-delay: -3s; }
.palette-strip div:nth-child(8) { animation-delay: -3.5s; }

/* Barrierefreiheit: keine Bewegung, wenn der Nutzer sie reduzieren möchte */
@media (prefers-reduced-motion: reduce) {
  .palette-strip, .palette-strip div { animation: none; }
}

/* SECTION */
.section {
  padding: 64px 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* TOOLS GRID */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s, transform .15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 90, 30, 0.10);
}
.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.tool-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.tool-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tool-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent2);
  background: var(--accent2-soft);
  padding: 3px 9px;
  border-radius: 20px;
}

/* PRODUCT CARD */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 10px 36px rgba(26, 26, 24, 0.06);
}
@media (max-width: 640px) {
  .product-card { grid-template-columns: 1fr; }
}
.product-preview {
  background: var(--bg2);
  border-radius: 12px;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}
.preview-palettes { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.preview-row { display: flex; gap: 4px; height: 28px; }
.preview-row div { flex: 1; border-radius: 4px; }
.product-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent2);
  background: var(--accent2-soft);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.product-title { font-size: 26px; font-weight: 700; letter-spacing: -0.8px; margin-bottom: 12px; }
.product-desc { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.feature-list { list-style: none; margin-bottom: 28px; }
.feature-list li {
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; color: var(--accent2); font-weight: 700; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.price-big { font-size: 36px; font-weight: 700; letter-spacing: -1px; }
.price-note { font-size: 13px; color: var(--muted); }

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.article-card:hover { border-color: var(--muted); }
.article-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
}
.article-thumb.has-img { padding: 0; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { padding: 16px 18px 20px; }
.article-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.article-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; color: var(--text); }
.article-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.article-meta-row { display: flex; align-items: center; justify-content: space-between; }
.article-date { font-size: 11px; color: var(--muted); }
.article-link { font-size: 12px; color: var(--accent); font-weight: 600; }

/* NEWSLETTER */
/* Newsletter ist in beiden Modi eine feste dunkle Bande (CTA-Optik). */
.newsletter {
  background: #1c1a14;
  color: #f1ede4;
  padding: 64px 2rem;
  text-align: center;
}
.newsletter h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; margin-bottom: 10px; }
.newsletter p { font-size: 15px; color: #aaa; margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--accent); }

/* FOOTER */
footer {
  padding: 28px 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links { display: flex; gap: 16px; }

/* TOOL PAGE */
.tool-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 2rem 80px;
}
.tool-page h1 { font-size: 32px; font-weight: 700; letter-spacing: -1px; margin-bottom: 8px; }
.tool-page .lead { font-size: 16px; color: var(--muted); margin-bottom: 40px; }
.tool-ui {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}

/* COLOR PICKER TOOL */
.color-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.color-picker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.color-picker-wrap input[type=color] {
  width: 64px;
  height: 64px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 2px;
  background: none;
}
.color-picker-wrap label { font-size: 12px; color: var(--muted); font-weight: 500; }
.hex-input {
  width: 110px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: monospace;
  background: var(--bg);
  color: var(--text);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.result-swatch {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s;
}
.result-swatch:hover { transform: scale(1.03); }
.swatch-color { height: 80px; }
.swatch-info { padding: 8px 10px; background: var(--surface); }
.swatch-hex { font-size: 12px; font-family: monospace; font-weight: 600; }
.swatch-name { font-size: 11px; color: var(--muted); }
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  transition: transform .25s;
  z-index: 999;
  pointer-events: none;
  max-width: min(92vw, 460px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-toast.show { transform: translateX(-50%) translateY(0); }

/* CONTRAST CHECKER */
.contrast-display {
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 24px 0;
  transition: background .2s;
}
.contrast-display .sample-text { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.contrast-display .sample-small { font-size: 14px; }
.contrast-score {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.score-card {
  flex: 1;
  min-width: 120px;
  background: var(--bg2);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.score-num { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.score-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.score-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.pass { background: var(--accent2-soft); color: var(--on-accent2-soft); }
.fail { background: var(--accent-soft); color: var(--on-accent-soft); }

/* PALETTE GENERATOR */
.palette-output {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  height: 120px;
  margin: 24px 0;
  border: 1px solid var(--border);
}
.palette-swatch {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  cursor: pointer;
  transition: flex .3s;
  position: relative;
}
.palette-swatch:hover { flex: 2; }
.palette-swatch .swatch-hex {
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.palette-swatch:hover .swatch-hex { opacity: 1; }
.palette-row-hex {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hex-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-family: monospace;
  cursor: pointer;
  transition: background .15s;
}
.hex-chip:hover { background: var(--border); }
.hex-dot { width: 12px; height: 12px; border-radius: 3px; }
.harmony-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.harmony-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}
.harmony-btn.active, .harmony-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

@media (max-width: 700px) {
  nav { padding: 0 1rem; gap: 12px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(26, 26, 24, .07);
    padding: 4px 1rem 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 13px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta { padding: 7px 14px; font-size: 13px; }

  /* Tools-Dropdown mobil: statisch, eingerückt, per Caret aufklappbar */
  .has-dropdown { flex-wrap: wrap; }
  .has-dropdown > a { flex: 1; }
  .dd-toggle { display: inline-flex; margin: 0 8px 0 auto; padding: 12px 12px; color: var(--text); font-size: 20px; }
  .dropdown {
    position: static; margin-top: 0; width: 100%;
    min-width: 0; padding: 0; border: none; border-radius: 0;
    box-shadow: none; background: transparent;
  }
  .dropdown.open { display: flex; }
  .dropdown a { padding: 12px 4px 12px 22px; font-size: 14px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .dropdown a:hover { background: transparent; }
  .dd-all { margin-top: 0; border-top: none; padding-top: 0; }
}

/* Sehr schmale Handys: PDF-Button verlässt den Balken und wandert ins Menü */
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .cta-in-menu { display: block; }
}

@media (max-width: 600px) {
  .section { padding: 48px 1rem; }
  .hero { padding: 48px 1rem 40px; }
  .tool-page { padding: 32px 1rem 60px; }
  .tool-ui { padding: 20px; }
}
