/* PrototypING – Stylesheet
   Systemschriften statt Google Fonts: keine Datenübertragung an Dritte (DSGVO). */

:root {
  --bg: #f3f7f8;
  --surface: #ffffff;
  --text: #0d1f26;
  --muted: #4d6670;
  --line: #d6e2e5;
  --accent: #0b6e7a;
  --accent-ink: #ffffff;
  --accent-soft: #e0f0f2;
  --grid: rgba(11, 110, 122, 0.07);
  --radius: 14px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1619;
    --surface: #112226;
    --text: #e4eff1;
    --muted: #93abb1;
    --line: #21393f;
    --accent: #3fb8c4;
    --accent-ink: #0a1619;
    --accent-soft: #15333a;
    --grid: rgba(63, 184, 196, 0.07);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

/* ---------- Hintergrund: verstreute Maschinenelemente ---------- */

.bg-parts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.3;
}

.bg-parts .part {
  position: absolute;
  width: calc(var(--s) * 1px);
  height: calc(var(--s) * 1px);
  transform: rotate(var(--r, 0deg));
  fill: none;
  stroke: currentColor;
  /* gleich dicke Linien (~1.4px) unabhängig von der Teilgröße */
  stroke-width: calc(140 / var(--s));
  stroke-linejoin: round;
}

@media (prefers-color-scheme: dark) {
  .bg-parts { opacity: 0.22; }
}

@media (max-width: 600px) {
  .bg-parts .part {
    width: calc(var(--s) * 0.55px);
    height: calc(var(--s) * 0.55px);
    stroke-width: calc(230 / var(--s));
  }
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

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

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--text); }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.btn:hover { filter: brightness(1.08); }

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

.nav .btn { padding: 8px 16px; color: var(--accent-ink); }

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 16ch;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.facts li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Sections ---------- */

section { padding: 80px 0; }

section + section { border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 40px;
}

.section-intro a { white-space: nowrap; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.card p { margin: 0; color: var(--muted); }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Ablauf */

.step-no {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Projekte */

.project-img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  margin: -6px -6px 18px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--accent-soft);
  background-size: 18px 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  object-fit: cover;
  width: calc(100% + 12px);
}

/* Preise */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-table th, .price-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table tr:last-child td { border-bottom: 0; }

.price-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.price-table td:last-child {
  white-space: nowrap;
  font-weight: 650;
}

.price-table .sub { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 400; }

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
}

.example {
  margin-top: 28px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.example h3 { margin: 0 0 6px; font-size: 1.05rem; }
.example p { margin: 0; }

/* Nicht im Angebot */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

.no-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.no-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.no-list li::before {
  content: "✕ ";
  color: var(--muted);
  font-weight: 700;
}

/* FAQ */

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 650;
}

details p { margin: 10px 0 0; color: var(--muted); }

/* Formular */

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.form .full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; padding: 22px; }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

label .opt { font-weight: 400; color: var(--muted); }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

textarea { min-height: 140px; resize: vertical; }

.hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.check input { width: auto; margin-top: 5px; }

.hidden { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a { color: var(--muted); margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }

/* ---------- Rechtstexte ---------- */

.legal { padding: 60px 0 80px; }
.legal h1 { font-size: 2rem; letter-spacing: -0.02em; }
.legal h2 { font-size: 1.25rem; margin-top: 36px; }
.legal .wrap { max-width: 760px; }
.placeholder {
  background: #fff3b0;
  color: #3d3300;
  padding: 0 4px;
  border-radius: 3px;
}
