/* niburhe.de — ein Stylesheet für alle Seiten.
   Keine externen Ressourcen: Systemschriften, keine Web-Fonts, kein JavaScript.
   Damit ist die CSP aus infra/site strikt einhaltbar. */

:root {
  --bg: #ffffff;
  --bg-2: #f6f8fb;
  --ink: #0b1220;
  --ink-2: #16233a;
  --text: #1d2735;
  --muted: #5b6675;
  --line: #e2e8f0;
  --accent: #0e7490;
  --accent-strong: #155e75;
  --accent-soft: #ecfeff;
  --on-dark: #eef3fa;
  --on-dark-muted: #9fb0c6;
  --on-dark-accent: #67e8f9;
  --radius: 12px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-2: #111c2e;
    --text: #e6ecf5;
    --muted: #9fb0c6;
    --line: #22304a;
    --accent: #22d3ee;
    --accent-strong: #67e8f9;
    --accent-soft: #10283a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
@media (prefers-color-scheme: dark) { h1, h2, h3 { color: var(--text); } }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
img, svg { max-width: 100%; height: auto; }
ul { padding-left: 1.2em; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.prose { max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 0.8em;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Kopfzeile ---------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 66px; flex-wrap: wrap;
}
.brand {
  font-weight: 700; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; letter-spacing: -0.01em;
}
@media (prefers-color-scheme: dark) { .brand { color: var(--text); } }
.brand svg { width: 26px; height: 26px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
/* :not(.btn), sonst gewinnt diese Regel (0,1,1) gegen .btn (0,1,0) und der
   CTA in der Kopfzeile bekommt graue statt weißer Schrift. */
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600;
  text-decoration: none; border: 1px solid var(--accent);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn { color: #06202b; }
  .btn:hover { color: #06202b; }
}
.btn-ghost {
  background: transparent; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.32);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.site-nav .btn { padding: 9px 16px; font-size: 0.95rem; }

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

.hero {
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(34, 211, 238, 0.18), transparent 62%),
    radial-gradient(700px 380px at 8% 108%, rgba(14, 116, 144, 0.22), transparent 60%),
    var(--ink);
  color: var(--on-dark);
  border-bottom: 1px solid var(--ink-2);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(760px 420px at 72% 12%, #000, transparent 72%);
}
/* Rechtsbündiges Grafikelement. screen-Blend, damit der dunkle Bildhintergrund
   verschwindet und nur die hellen Leiterbahnen stehen bleiben; die Maske hält die
   linke Hälfte frei, wo die Schrift steht. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("hero-circuit.webp") no-repeat right center / auto 112%;
  mix-blend-mode: screen;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 72%);
          mask-image: linear-gradient(90deg, transparent 38%, #000 72%);
}
@media (max-width: 900px) {
  .hero::before { display: none; }
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 108px); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: var(--on-dark-muted); max-width: 58ch; font-size: 1.2rem; }
.hero .eyebrow { color: var(--on-dark-accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.hero-note { color: var(--on-dark-muted); font-size: 0.92rem; margin: 18px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(103, 232, 249, 0.35); background: rgba(103, 232, 249, 0.08);
  color: var(--on-dark-accent); border-radius: 999px; padding: 6px 14px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }

/* ---------- Abschnitte ---------- */

section { padding-block: clamp(56px, 7vw, 88px); }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 42px; }

.grid { display: grid; gap: 20px; }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card dl { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.card dt { color: var(--muted); font-weight: 600; float: left; margin-right: 6px; }
.card dd { margin: 0 0 4px; }
/* Einstiegsprodukt: volle Breite über dem 3×2-Raster, damit sieben Pakete
   nicht als 3+3+1 mit klaffender Lücke stehen. */
.card-feature {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 36px;
  margin-bottom: 20px;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.card-feature h3 { margin-bottom: 0.35em; }
.card-feature p { margin: 0; }
.card-feature .price {
  font-size: 1.75rem; font-weight: 700; color: var(--accent);
  white-space: nowrap; line-height: 1.15; text-align: right;
}
.card-feature .price small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
@media (max-width: 700px) {
  .card-feature { grid-template-columns: 1fr; }
  .card-feature .price { text-align: left; }
}

.card-icon {
  width: 38px; height: 38px; border-radius: 9px; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}

.note {
  margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--accent);
  background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted);
}
section.alt .note { background: var(--bg); }
.note strong { color: var(--text); }

/* ---------- Ablauf ---------- */

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; padding-left: 52px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}
@media (prefers-color-scheme: dark) { .steps li::before { color: #06202b; } }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 0.95rem; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { padding-left: 26px; position: relative; color: var(--muted); }
.facts li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.facts strong { color: var(--text); }

/* ---------- Referenz ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 32px 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.stat b { display: block; font-size: 1.9rem; line-height: 1.15; color: var(--accent); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.9rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 34px; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line); border-radius: var(--radius); display: block; width: 100%; background: var(--bg-2); }
.shots figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

/* ---------- Über mich ---------- */

#ueber-mich .grid-2 { grid-template-columns: minmax(220px, 300px) minmax(320px, 1fr); }
@media (max-width: 700px) { #ueber-mich .grid-2 { grid-template-columns: 1fr; } }
.portrait { border-radius: var(--radius); border: 1px solid var(--line); display: block; width: 100%; }
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.tags li {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
  font-size: 0.86rem; color: var(--muted); background: var(--bg);
}

/* ---------- FAQ ---------- */

.faq { max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
@media (prefers-color-scheme: dark) { .faq summary { color: var(--text); } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { color: var(--muted); margin: 0 0 16px; max-width: 68ch; }

/* ---------- Kontakt ---------- */

.contact {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
    var(--ink);
  color: var(--on-dark);
}
.contact h2 { color: #fff; }
.contact p { color: var(--on-dark-muted); }
.contact .wrap { max-width: 780px; text-align: center; }
.mail-line {
  display: inline-block; margin: 6px 0 26px; font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 600; color: var(--on-dark-accent); word-break: break-word;
}

/* ---------- Fußzeile ---------- */

.site-foot { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 34px; font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.site-foot .spacer { margin-left: auto; color: var(--muted); }

/* ---------- Rechtsseiten ---------- */

.legal { padding-block: clamp(48px, 6vw, 76px); }
.legal .prose h2 { margin-top: 1.9em; font-size: 1.35rem; }
.legal .prose h3 { margin-top: 1.6em; font-size: 1.05rem; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .prose > p:first-of-type { color: var(--muted); }
.updated { color: var(--muted); font-size: 0.9rem; margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--line); }
