/* ===== Tokens ===== */
:root {
  --paper: #F4F6F7;
  --panel: #FFFFFF;
  --tint: #E7EDEF;
  --ink: #182229;
  --muted: #5C6B74;
  --line: #D3DBDE;
  --accent: #E23D2E;
  --accent-dark: #C22F22;
  --radius: 14px;
  --maxw: 1060px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; }
a { color: var(--ink); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  text-decoration: none; letter-spacing: -0.02em;
}
.wordmark span { color: var(--accent); }
.site-nav { display: flex; gap: 1.4rem; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 0.5rem 1rem; border-radius: 999px;
}
.nav-cta:hover { background: var(--accent); }

/* ===== Hero ===== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px; padding: 0.3rem 0.9rem; margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 800; letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede {
  max-width: 620px; margin: 1.4rem auto 0;
  color: var(--muted); font-size: 1.125rem;
}

/* Geräte-Wähler (Signature) */
.device-picker { margin-top: 3rem; }
.picker-label { font-weight: 700; margin-bottom: 1rem; }
.picker-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; max-width: 640px; margin: 0 auto;
}
.device-card {
  font-family: var(--font-body);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 0.8rem 1.2rem;
  cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.device-card svg {
  width: 44px; height: 44px;
  fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round;
}
.device-card:hover, .device-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(24, 34, 41, 0.10);
}
.device-card:hover svg, .device-card:focus-visible svg { stroke: var(--accent); }

/* ===== Sections ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}
.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.section-tint {
  max-width: none;
  background: var(--tint);
}
.section-tint > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-tint h2 { margin-bottom: 2rem; }
.section-lede { color: var(--muted); max-width: 560px; margin: -1rem 0 2rem; }

/* Leistungen */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.service {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.service h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.service p { color: var(--muted); font-size: 0.98rem; }

/* Ablauf */
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.steps li { counter-increment: step; padding-top: 0.4rem; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.1rem;
  margin-bottom: 0.8rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }

/* Preise */
.pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.price-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
.price-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem;
}
.price-value {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.8rem; margin-bottom: 0.7rem; letter-spacing: -0.02em;
}
.price-value span { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.price-card > p:last-child { color: var(--muted); font-size: 0.95rem; }
.price-note { margin-top: 1.4rem; font-weight: 600; }

/* Über mich */
.about { max-width: 700px; }
.about p + p { margin-top: 1rem; }

/* ===== Formular ===== */
#contact-form { max-width: 700px; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.consent label {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-weight: 400; font-size: 0.92rem; color: var(--muted);
}
.consent input { margin-top: 0.25rem; accent-color: var(--accent); }
.submit-btn {
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
  background: var(--accent); color: #fff;
  border: none; border-radius: 999px;
  padding: 0.9rem 2.2rem; cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.submit-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-status { margin-top: 0.9rem; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1B7A3D; }
.form-status.error { color: var(--accent-dark); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  color: var(--muted); font-size: 0.95rem;
}
.site-footer .wordmark { font-size: 1.1rem; display: inline-block; margin-bottom: 0.4rem; }
.footer-links a { color: var(--muted); }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .picker-cards { grid-template-columns: 1fr; }
  .device-card { flex-direction: row; justify-content: flex-start; padding: 1rem 1.2rem; }
  .device-card br { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Rechtliche Unterseite */
.legal { max-width: 760px; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 2.5rem); }
.legal h1 { font-size: 2rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.legal h2 { font-size: 1.25rem; margin: 1.8rem 0 0.6rem; }
.legal p, .legal ul { color: var(--muted); margin-bottom: 0.8rem; }
.legal ul { padding-left: 1.3rem; }

/* Systeme-Zeile im Hero */
.systems-line {
  margin-top: 1.2rem;
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted);
}

/* FAQ */
.faq-list { max-width: 760px; }
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.3rem;
  margin-bottom: 0.8rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 0.2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; color: var(--accent);
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { color: var(--muted); padding-bottom: 1.2rem; }

.field-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
input[type="file"] { padding: 0.55rem 0.9rem; }
input[type="file"]::file-selector-button {
  font-family: var(--font-body); font-weight: 600;
  background: var(--tint); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.45rem 0.9rem; margin-right: 0.8rem; cursor: pointer;
}

.cf-turnstile { margin-bottom: 1.1rem; }
