/* kauf.cc Consulting — statisches Stylesheet, keine externen Ressourcen */

:root {
  /* Logo-Farben (Variante C · Verlauf) – gleiche Werte wie LOGO_* in build.py */
  --dot-from: #14b8a6;  /* links: Türkis */
  --dot-to: #4f46e5;    /* rechts: Indigo */
  --dot-c: #f59e0b;     /* der eine besondere Punkt: Bernstein */

  --bg: #fbfaf7;
  --bg-alt: #f3f2ee;
  --surface: #ffffff;
  --text: #121826;
  --muted: #5a6273;
  --line: #e5e3dc;
  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-soft: #eef0fd;
  --teal: #0d9488;
  --teal-soft: #e3f6f3;
  --on-brand: #ffffff;
  --gold-soft: #fdf3dc;
  --shadow: 0 1px 2px rgba(18, 24, 38, .04), 0 8px 24px rgba(18, 24, 38, .06);

  --radius: 18px;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --dot-from: #2dd4bf;
    --dot-to: #818cf8;
    --dot-c: #fbbf24;

    --bg: #0e131c;
    --bg-alt: #121926;
    --surface: #161e2c;
    --text: #e9edf4;
    --muted: #9aa4b5;
    --line: #253043;
    --brand: #8b93f8;
    --brand-strong: #a5acfa;
    --brand-soft: #1e2244;
    --teal: #2dd4bf;
    --teal-soft: #11302e;
    --on-brand: #0b1020;
    --gold-soft: #2a2414;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
  .text-img { filter: invert(1) hue-rotate(180deg) brightness(1.1); }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--on-brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); }
.brand .logo { width: 36px; height: auto; }
.wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.brand .wordmark { font-size: 1.12rem; line-height: 1; }
@media (max-width: 380px) { .brand .wordmark { font-size: 1rem; } }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 10px;
}
.main-nav a:hover { background: var(--bg-alt); }
@media (max-width: 640px) { .main-nav { display: none; } }

/* Sprachwahl */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 600; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; opacity: .7; }
.lang summary .chev { width: 10px; height: 10px; transition: transform .2s; }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang li a {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 9px;
  color: var(--text); text-decoration: none; font-size: .95rem;
}
.lang li a span { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; }
.lang li a:hover { background: var(--bg-alt); }
.lang li a[aria-current="true"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, var(--line) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 10%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .accent {
    background: linear-gradient(90deg, var(--teal), var(--brand));
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
}
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 36em; margin-bottom: 32px; }
.hero-logo { width: 100%; max-width: 420px; justify-self: end; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; max-width: 200px; justify-self: start; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot-c); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

/* Logo-Animation */
.logo-anim circle { transform-box: fill-box; transform-origin: center; animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * 18ms + 120ms); }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .logo-anim circle { animation: none; } }

/* Verlauf: jeder Punkt trägt seine Position --t (0…1); Fallback ist das fill-Attribut */
@supports (fill: color-mix(in srgb, red, blue 50%)) {
  .logo circle { fill: color-mix(in srgb, var(--dot-from), var(--dot-to) calc(var(--t, 0) * 100%)); }
}
.logo circle.c { fill: var(--dot-c); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head .eyebrow { margin-bottom: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card-icon {
  width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.card li { display: flex; gap: 12px; align-items: baseline; font-weight: 550; font-size: .98rem; line-height: 1.4; }
.card li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); transform: translateY(-2px); }
.card:nth-child(1) .card-icon { background: var(--teal-soft); color: var(--teal); }
.card:nth-child(1) li::before { background: var(--teal); }
.card:nth-child(2) li::before { background: color-mix(in srgb, var(--teal), var(--brand)); }

.values { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.values li {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 1.05rem;
}
.values li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.values li:nth-child(2)::before { background: color-mix(in srgb, var(--teal), var(--brand) 25%); }
.values li:nth-child(3)::before { background: color-mix(in srgb, var(--teal), var(--brand) 50%); }
.values li:nth-child(4)::before { background: color-mix(in srgb, var(--teal), var(--brand) 75%); }
.values li:nth-child(5)::before { background: var(--brand); }
.values-note { color: var(--muted); font-style: italic; margin: 0; }

.contact-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
}
.contact-card p { color: var(--muted); font-size: 1.1rem; }
.contact-card .contact-side { justify-self: end; display: grid; gap: 16px; justify-items: end; text-align: right; }
.contact-email { font-weight: 600; font-size: 1.05rem; color: var(--text); word-break: break-all; }
.lang-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lang-badges span {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; padding: 5px 10px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-strong);
}
.lang-badges-label { font-size: .9rem; color: var(--muted); margin: 18px 0 0; }
@media (max-width: 760px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-card .contact-side { justify-self: start; justify-items: start; text-align: left; }
}

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 112px); }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.8em; }
.legal p, .legal li { color: var(--text); }
.legal .muted { color: var(--muted); }
.legal .note {
  background: var(--gold-soft); border-radius: 12px; padding: 14px 18px; font-size: .95rem; margin-bottom: 28px;
}
.facts { display: grid; grid-template-columns: minmax(8rem, 15rem) 1fr; gap: 12px 28px; margin: 24px 0 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts dt { color: var(--muted); font-size: .95rem; }
.facts dd { margin: 0; font-weight: 550; }
.facts .text-img { height: 1.35em; width: auto; }
.facts .text-img.lines-2 { height: 3.2em; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .92rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .logo { width: 34px; }
.footer-brand .wordmark { font-size: .98rem; }
.footer-brand p { margin: 0; line-height: 1.4; }

/* WOL-Policy: Sprungmarken DE/EN */
.doc-langs { display: flex; gap: 8px; margin: 0 0 8px; }
.doc-langs a {
  font-size: .85rem; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 99px;
  background: var(--brand-soft); color: var(--brand-strong);
}
.legal section + section { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.legal ul li { margin-bottom: .5em; }
.legal code { font-size: .9em; background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; padding: 48px 0; text-align: center; }
.notfound-logo { width: 140px; margin: 0 auto 8px; }
.notfound-code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 16px 0 24px;
  background: linear-gradient(90deg, var(--teal), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notfound li span { color: var(--muted); }
.notfound li a { font-weight: 600; }

/* Einblenden beim Scrollen (nur mit JS aktiv) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
