/* 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 {
  --bg: #fafaf8;
  --bg2: #f2f0eb;
  --text: #1a1a18;
  --muted: #6b6b67;
  --border: #e0ded8;
  --accent: #c85a1e;
  --accent2: #1a6b4a;
  --radius: 10px;
  --font: 'Inter', system-ui, sans-serif;
}

* { 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: #fff; }
.nav-links a.btn:hover { color: #fff; }
/* „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; }

/* 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); }

.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: #fff; }
.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: #fff; }
.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: #fdeee6;
  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;
  height: 6px;
  margin: 0 2rem;
  border-radius: 3px;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto 60px;
}
.palette-strip div { flex: 1; }

/* 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: #fff;
  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: #fdeee6;
  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: #e8f5ee;
  padding: 3px 9px;
  border-radius: 20px;
}

/* PRODUCT CARD */
.product-card {
  background: #fff;
  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: #e8f5ee;
  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: #fff;
  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 {
  background: var(--text);
  color: #fff;
  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: #fff;
  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: #fff; }
.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: #fff;
  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: #e8f5ee; color: #1a6b4a; }
.fail { background: #fdeee6; color: #c85a1e; }

/* 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: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}
.harmony-btn.active, .harmony-btn:hover {
  background: var(--text);
  color: #fff;
  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; }
}

/* 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; }
}
