/* StartAutomation – Stylesheet
   Farben aus dem Logo. Bewusst nur vier Schriftgrößen (h1, h2, Text, klein). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111827;          /* Logo: Dunkel */
  --text: #374151;
  --muted: #4B5563;        /* Logo: Unterzeile */
  --accent: #2563EB;       /* etwas dunkler als Logo-Blau, damit Text/Buttons genug Kontrast haben */
  --accent-dark: #1D4ED8;
  --accent-logo: #3B82F6;  /* Logo: Punkt, nur dekorativ */
  --bg: #FFFFFF;
  --bg-muted: #F8FAFC;
  --line: #E5E7EB;
  --error: #B91C1C;
  --success: #15803D;

  --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.4rem + 1vw, 2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  --radius: 12px;
  --space-section: clamp(3rem, 2.25rem + 3.5vw, 5rem);
  --container: 72rem;
}

*, *::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;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  /* Footer bleibt auch auf kurzen Seiten (Impressum) am unteren Rand */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 2rem; }
h3 { font-size: var(--fs-body); font-weight: 700; margin-bottom: 0.5rem; letter-spacing: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent-logo); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand img { height: 44px; width: auto; }
.nav-list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list a { color: var(--ink); text-decoration: none; font-size: var(--fs-small); font-weight: 600; }
.nav-list a:hover { color: var(--accent); }
.nav-list .nav-cta { color: var(--accent); }
@media (max-width: 760px) {
  .nav-list li:not(:last-child) { display: none; }
  .brand img { height: 36px; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--accent-dark); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Hero ---------- */
/* unten knapp: die folgende Section bringt ihren eigenen Abstand mit */
.hero { padding: clamp(3.5rem, 2.5rem + 5vw, 6rem) 0 clamp(1rem, 0.5rem + 2vw, 2rem); }
.hero-inner { max-width: 50rem; margin-left: auto; margin-right: auto; text-align: center; }
.hero h1 { margin-bottom: 1.5rem; }
.lead { color: var(--muted); max-width: 40rem; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.hero-person { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section-muted { background: var(--bg-muted); }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: var(--bg); }
.card p { color: var(--muted); }
/* Icons: Lucide (ISC-Lizenz), inline als SVG */
.card-icon { width: 2.75rem; height: 2.75rem; padding: 0.625rem; margin-bottom: 1rem; border-radius: 10px; background: #EFF6FF; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Vorgehen ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps li::before { content: "0" counter(step); display: block; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.steps p { color: var(--muted); }

/* ---------- Referenz ---------- */
.reference { margin: 0; }
.reference blockquote { margin: 0 0 1rem; color: var(--ink); }
.reference figcaption { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Über mich ---------- */
.about { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: 18rem 1fr; gap: 3.5rem; } }
.portrait { border-radius: var(--radius); width: 100%; max-width: 18rem; }
.about h2 { margin-bottom: 1rem; }
.principles { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.principles li { padding-left: 1.5rem; position: relative; }
.principles li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent-logo); }
.principles strong { color: var(--ink); }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-intro h2 { margin-bottom: 1.5rem; }
.contact-person { margin-top: 2rem; }
.contact-person strong { color: var(--ink); }

.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--ink); margin-bottom: 0.375rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.75rem 0.875rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #fff;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(59, 130, 246, 0.35); border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-check { display: flex; gap: 0.75rem; align-items: flex-start; }
.field-check input { width: 1.125rem; height: 1.125rem; margin-top: 0.25rem; flex-shrink: 0; accent-color: var(--accent); }
.field-check label { font-weight: 400; color: var(--muted); margin: 0; }

.form-status { margin: 1rem 0 0; font-size: var(--fs-small); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); }

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: var(--fs-small); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--muted); }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 3rem 0 var(--space-section); }
.legal h2 { font-size: var(--fs-body); margin: 2rem 0 0.5rem; }
.legal h1 { font-size: var(--fs-h2); }
.placeholder { border: 2px dashed var(--accent-logo); border-radius: var(--radius); padding: 1.5rem; background: var(--bg-muted); }
