/* =========================================================
   Senfkorn Digital – Stylesheet
   Farben zentral über CSS-Variablen anpassbar
   ========================================================= */

:root {
  /* Farben */
  --bg:            #0f0f0f;
  --bg-alt:        #141414;
  --surface:       #1a1a1a;
  --surface-hover: #202020;
  --border:        #2a2a2a;
  --text:          #f0ede8;
  --text-muted:    #9a9690;
  --accent:        #e8c547;   /* Gelb – Hauptakzent */
  --accent-hover:  #f0d265;
  --accent-soft:   rgba(232, 197, 71, 0.12);
  --on-accent:     #141414;   /* Schrift auf gelben Flächen */
  --error:         #ff7a6b;
  --success:       #8fd18a;

  /* Layout */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --container: 1180px;
  --nav-h:     72px;

  /* Typografie: Serif-Überschriften lokal gehostet (DSGVO-konform), Fließtext Systemschrift */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Schriften (lokal, kein Google-Server) ---------- */
@font-face { font-family: "Playfair Display"; font-weight: 600; font-display: swap; src: url("fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
h1, h2 { font-family: var(--font-display); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h4 { font-size: 1.15rem; margin-bottom: .5rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.accent { color: var(--accent); }

.gradient-text { color: var(--accent); }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1rem var(--font);
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-hover); }

.btn--small { padding: .6rem 1.2rem; font-size: .9rem; }
.btn--full  { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(15, 15, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.nav__logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; }
.nav__logo-mark {
  height: 30px;
  width: auto;
  aspect-ratio: 521 / 600;
  fill: var(--accent);               /* für das Original in Weiß: fill: #fff; */
  flex-shrink: 0;
}

.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__link { color: var(--text-muted); font-weight: 500; position: relative; transition: color .2s; }
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav__toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute;
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(232, 197, 71, .10), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 860px; }

.badge {
  display: inline-block;
  padding: .4rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: .85rem;
  color: var(--text-muted);
}
.hero__title { font-size: clamp(2.5rem, 7vw, 4.8rem); margin-bottom: 1.5rem; }
.hero__text  { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 620px; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font: 700 2.2rem/1 var(--font-display); color: var(--accent); }
.hero__stats span { font-size: .85rem; color: var(--text-muted); margin-top: .35rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: 3.5rem; }
.section__head p:last-child { color: var(--text-muted); }

.group-title {
  display: flex; align-items: center; gap: .7rem;
  font-size: 1.1rem; font-weight: 600;
  margin: 0 0 1.25rem;
}
.cards + .group-title { margin-top: 3.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--blue   { background: var(--accent); }
.dot--violet { background: var(--text); }

/* ---------- Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  --mx: 50%; --my: 50%;
  --card-accent: var(--accent);
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.card--ai { --card-accent: var(--text); }
.card::before {               /* Lichtspot folgt der Maus (per JS) */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), color-mix(in srgb, var(--card-accent) 16%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--card-accent) 40%, transparent); }
.card:hover::before { opacity: 1; }
.card p { color: var(--text-muted); font-size: .97rem; }

.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
}
.card__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--card-accent);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; counter-reset: none; }
.step {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.step__num {
  display: inline-block;
  font: 700 2.6rem/1 var(--font-display);
  margin-bottom: 1rem;
  color: var(--accent);
}
.step p { color: var(--text-muted); }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.about__text > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.5 17.2-5-5 1.8-1.8 3.2 3.2 6.7-6.7 1.8 1.8-8.5 8.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.5 17.2-5-5 1.8-1.8 3.2 3.2 6.7-6.7 1.8 1.8-8.5 8.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.about__visual { display: grid; place-items: center; aspect-ratio: 1; }
.about__logo {
  width: 62%;
  aspect-ratio: 521 / 600;
  fill: var(--accent);
  filter: drop-shadow(0 0 60px rgba(232, 197, 71, .18));
  animation: float 6s ease-in-out infinite alternate;
}
@keyframes float { to { translate: 0 -14px; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact__info > p { color: var(--text-muted); margin-bottom: 2rem; }
.contact__list li { display: flex; flex-direction: column; padding: 1rem 0; border-top: 1px solid var(--border); }
.contact__list span { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }
.contact__list a:hover { color: var(--accent); }

.form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 1.25rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: var(--bg-alt); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.has-error input, .field.has-error textarea { border-color: var(--error); }

.checkbox { display: flex; gap: .75rem; font-size: .88rem; color: var(--text-muted); cursor: pointer; }
.checkbox input { margin-top: .3rem; accent-color: var(--accent); flex-shrink: 0; }
.checkbox a { color: var(--accent); text-decoration: underline; }
.checkbox.has-error { color: var(--error); }

.form__status { font-size: .9rem; min-height: 1.4em; }
.form__status.is-error   { color: var(--error); }
.form__status.is-success { color: var(--success); }

/* ---------- Footer ---------- */
.footer { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer__copy { color: var(--text-muted); font-size: .9rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */
.legal { padding: calc(var(--nav-h) + 4rem) 0 6rem; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 8vw, 3.2rem); margin-bottom: 3rem; hyphens: auto; overflow-wrap: break-word; }
.legal section {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.legal h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.legal p { color: var(--text-muted); }
.legal p + p { margin-top: 1rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .btn, .legal .nav__logo { text-decoration: none; }
.legal__source { margin-top: 2rem; font-size: .85rem; }

/* ---------- Nach-oben-Button ---------- */
.to-top {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Scroll-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual { max-width: 320px; margin-inline: auto; width: 100%; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(15, 15, 15, .97);
    backdrop-filter: blur(16px);
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.75rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* Barrierefreiheit: weniger Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Platzhalter, die noch ausgefüllt werden müssen */
.legal mark { background: var(--accent-soft); color: var(--accent); padding: 0 .3em; border-radius: 4px; }
.legal strong { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nav__wordmark { white-space: nowrap; }
