/* buypreneur Werkzeuge – Design 1:1 von buypreneur.de (Lovable, src/styles.css + /wissen), Stand 2026-11-14 */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600 700; font-display: swap; src: url("fonts/Inter-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/PlusJakartaSans-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/PlusJakartaSans-800-latin.woff2") format("woff2"); }

:root {
  /* Tokens der Website */
  --background: oklch(1 0 0);
  --foreground: oklch(0.22 0.047 258);
  --primary: oklch(0.52 0.22 265);
  --muted-foreground: oklch(0.52 0.045 255);
  --border: oklch(0.93 0.015 255);
  --surface: oklch(0.97 0.012 255);
  --deep: oklch(0.25 0.075 258);
  --deep-foreground: oklch(1 0 0);
  --accent-orange: oklch(0.66 0.21 35);
  --accent-lime: oklch(0.91 0.19 119);
  --success: oklch(0.55 0.13 150);
  --card-shadow: 0 1px 4px color-mix(in oklab, var(--foreground) 5%, transparent);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 16px/1.65 var(--font-sans);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-lime); color: var(--foreground); }
a { color: var(--primary); }
img { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 5vw, 2.25rem); }
h3 { font-size: 1.25rem; line-height: 1.375; }
.mark { background: var(--accent-lime); color: var(--foreground); padding-inline: .25rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.shell { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 48rem; }
@media (min-width: 640px) { .shell { padding-inline: 2rem; } }
@media (min-width: 1024px) { .shell { padding-inline: 3rem; } }

.eyebrow { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); }
.muted { color: var(--muted-foreground); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--background) 95%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent); padding-block: 1rem; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header img { height: 28px; width: auto; display: block; }
.site-nav { display: none; gap: 1.75rem; }
.site-nav a { font-size: 14px; color: color-mix(in oklab, var(--foreground) 75%, transparent); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 4px; }
.site-nav a:hover { color: var(--foreground); border-color: var(--primary); }
.back { font-size: 14px; color: color-mix(in oklab, var(--foreground) 75%, transparent); text-decoration: none; }
@media (min-width: 640px) { .site-header img { height: 32px; } }
@media (min-width: 1024px) { .site-nav { display: flex; } .back { display: none; } }

/* Hero */
.hero { background: var(--surface); padding-block: 4rem 3.5rem; }
.hero h1 { margin-top: 1.25rem; max-width: 56rem; }
.hero .lead { margin: 1.5rem 0 0; max-width: 68ch; color: var(--muted-foreground); font-size: 1rem; line-height: 1.75rem; }
@media (min-width: 640px) { .hero { padding-block: 6rem 5rem; } .hero .lead { font-size: 1.125rem; } }

section.block { padding-block: 3.5rem; }
section.block + section.block { padding-top: 0; }
section.block h2 { margin-top: 1rem; }
@media (min-width: 640px) { section.block { padding-block: 4.5rem; } }

.card { margin-top: 2rem; background: var(--background); border: 1px solid var(--border); border-radius: .375rem; box-shadow: var(--card-shadow); padding: 1.5rem; }
@media (min-width: 640px) { .card { padding: 2rem; } }
.card > :first-child { margin-top: 0; }
.card p { margin: 1rem 0 0; }

/* Werkzeug-Karte (Check) überlappt den Hero leicht */
.tool { margin-top: -1.75rem; position: relative; }
.tool .card { margin-top: 0; }

/* Eingabe */
label.field { display: block; font-weight: 600; font-size: 14px; margin-bottom: .5rem; }
.search input {
  width: 100%; height: 3rem; font: 400 16px/1.3 var(--font-sans); color: var(--foreground);
  padding: 0 1rem; border: 1px solid var(--border); border-radius: .375rem; background: var(--background); outline: none;
}
.search input:focus-visible { box-shadow: 0 0 0 2px var(--primary); border-color: transparent; }
.suggest { list-style: none; margin: .5rem 0 0; padding: .375rem; background: var(--background); border: 1px solid var(--border); border-radius: .375rem; box-shadow: var(--card-shadow); max-height: 300px; overflow: auto; }
.suggest:empty { display: none; }
.suggest li { padding: .625rem .75rem; border-radius: .25rem; cursor: pointer; display: flex; justify-content: space-between; gap: .75rem; font-size: 15px; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--surface); }
.suggest small { color: var(--muted-foreground); white-space: nowrap; font-size: 12px; }
.quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.quick button { font: 400 13px/1 var(--font-sans); color: var(--foreground); background: var(--background); border: 1px solid var(--border); border-radius: 999px; padding: .5rem .75rem; cursor: pointer; transition: border-color .15s, color .15s; }
.quick button:hover { border-color: var(--primary); color: var(--primary); }

/* Ergebnis */
.result { margin-top: 1.5rem; scroll-margin-top: 84px; }
.result[hidden] { display: none; }
.verdict { display: flex; gap: .875rem; align-items: flex-start; padding: 1.125rem; border-radius: .375rem; background: var(--surface); border: 1px solid var(--border); }
.verdict .badge { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 15px/1 var(--font-display); background: var(--muted-foreground); }
.verdict.yes .badge { background: var(--accent-orange); }
.verdict.no .badge { background: var(--success); }
.verdict p { margin: .375rem 0 0; font-size: 15px; }
.result h3.sub { margin-top: 1.75rem; font-size: 1.125rem; }
.meta { color: var(--muted-foreground); font-size: 14px; margin: 1rem 0 0; }

/* Wege */
.ways { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: w; display: grid; gap: .75rem; }
.ways li { counter-increment: w; position: relative; padding: 1rem 1rem 1rem 3.25rem; border: 1px solid var(--border); border-radius: .375rem; font-size: 15px; }
.ways li::before { content: counter(w); position: absolute; left: 1rem; top: 1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--primary); color: #fff; font: 700 13px/1.5rem var(--font-display); text-align: center; }
.ways li.off { color: var(--muted-foreground); background: var(--surface); }
.ways li.off::before { background: var(--muted-foreground); }
.ways p { margin: .25rem 0 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--primary); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }

/* Checkliste */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.checks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .875rem; }
.checks li::before { content: ""; width: 1.25rem; height: 1.25rem; margin-top: 3px; border-radius: 50%; background: var(--primary) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks b { display: block; font-weight: 600; }
.checks span { font-size: 15px; }
.checks span b + * , .checks span { color: var(--foreground); }

.questions { margin: 0; padding-left: 1.25rem; display: grid; gap: .625rem; font-size: 15px; }
.questions li::marker { color: var(--primary); font-weight: 600; }

/* Buttons wie auf der Website */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 3rem; padding: 0 1.75rem; border-radius: .375rem; font: 600 14px/1 var(--font-sans); text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, background .15s, border-color .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.outline { background: var(--background); color: var(--foreground); border: 1.5px solid color-mix(in oklab, var(--foreground) 20%, transparent); }
.btn.outline:hover { border-color: var(--primary); color: var(--primary); }
.btn.ondark { background: var(--background); color: var(--deep); }
.btn svg { width: 16px; height: 16px; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Dunkler CTA wie „Ressourcen“ auf /wissen */
.cta { background: var(--deep); color: var(--deep-foreground); padding-block: 4rem; }
.cta .eyebrow { color: color-mix(in oklab, var(--deep-foreground) 70%, transparent); }
.cta h2 { margin-top: 1rem; max-width: 40rem; }
.cta p { color: color-mix(in oklab, var(--deep-foreground) 75%, transparent); margin: 1.25rem 0 0; max-width: 40rem; }
@media (min-width: 640px) { .cta { padding-block: 5rem; } }

.legal { padding-block: 2.5rem; font-size: 13px; color: var(--muted-foreground); }
.legal p { margin: .375rem 0; }
.legal a { color: var(--muted-foreground); }

/* Übersicht */
.grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; background: var(--background); border: 1px solid var(--border); border-radius: .375rem; box-shadow: var(--card-shadow); padding: 1.5rem; text-decoration: none; color: var(--foreground); transition: transform .2s; }
.tile:hover { transform: translateY(-4px); }
.tile h3 { margin-top: 1rem; color: var(--primary); }
.tile:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.tile p { margin: .75rem 0 0; font-size: 14px; line-height: 1.75rem; color: var(--muted-foreground); }
.tile .go { margin-top: auto; padding-top: 1.5rem; display: flex; justify-content: flex-end; color: var(--primary); }

/* Footer wie auf der Website */
.site-footer { background: var(--deep); color: var(--deep-foreground); padding-block: 3.5rem 2rem; }
.site-footer .brand { font: 700 1.5rem/1.2 var(--font-display); letter-spacing: -.02em; margin: 0; }
.site-footer .claim { margin: .75rem 0 0; font-size: 14px; color: color-mix(in oklab, var(--deep-foreground) 65%, transparent); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; font-size: 14px; }
.site-footer a { color: var(--deep-foreground); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .copy { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in oklab, var(--deep-foreground) 15%, transparent); font-size: 12px; color: color-mix(in oklab, var(--deep-foreground) 55%, transparent); }

@media (prefers-reduced-motion: no-preference) {
  .result:not([hidden]) { animation: rise .5s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .btn:hover, .tile:hover { transform: none; } }
