/* ============================================================
   Chlebek Digital — Firmen-Website
   Design-Tokens & Basis-Styles
   Identität: kühl, technisch, professionell (Petrol/Anthrazit)
   ============================================================ */

:root {
  --ink: #0d1b2a;
  --ink-soft: #33415a;
  --muted: #5b6b7a;
  --paper: #f5f6f8;
  --paper-soft: #eef0f3;
  --paper-deep: #e8ebef;
  --surface: #ffffff;
  --accent: #0d9488;
  --accent-deep: #0f766e;
  --accent-soft: #ccfbf1;
  --border: #e3e8ed;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(13, 27, 42, 0.06), 0 8px 24px rgba(13, 27, 42, 0.06);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Lokal gehostete Schriften (self-hosted, DSGVO-konform) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }

.section-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
  text-align: center;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: var(--accent-deep); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(245, 246, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
  flex-shrink: 0;
}
.brand .brand-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--accent-deep); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(13, 148, 136, 0.12), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px 88px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  max-width: 18ch;
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-trust {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .tick { color: var(--accent); font-weight: 700; }

/* ---------- Hero-Mockup (Produkt-Vorschau) ---------- */
.hero-mockup { position: relative; }
.mockup-browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfd;
}
.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar .dot.r { background: #f26d6d; }
.mockup-bar .dot.y { background: #f2c84b; }
.mockup-bar .dot.g { background: #4caf7d; }
.mockup-url {
  margin-left: 8px;
  flex: 1;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--paper-soft);
  border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-site {
  background: #fbf7f2;
  font-family: var(--font-body);
}
.ms-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #3b2f2a;
  border-bottom: 1px solid #ece3da;
}
.ms-nav small { font-weight: 400; color: #9a8b80; font-size: 0.7rem; }
.ms-hero {
  background: linear-gradient(135deg, #b6402a, #d2563b);
  color: #fff;
  padding: 18px;
}
.ms-hero .tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ms-hero .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  margin-top: 4px;
}
.ms-menu { padding: 12px 18px 4px; }
.ms-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed #ece3da;
  font-size: 0.78rem;
  color: #3b2f2a;
}
.ms-item .price { font-weight: 600; }
.ms-review {
  margin: 10px 18px 16px;
  background: #fff;
  border: 1px solid #ece3da;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #3b2f2a;
}
.ms-review .stars { color: #f2a13b; letter-spacing: 1px; }

/* ---------- Sektionen ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--paper-soft); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 14px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- Leistungen (Liste statt Karten-Grid) ---------- */
.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-deep);
}
.service-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.service-desc {
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Preise ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: var(--accent);
}
.price-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}
.price-note {
  color: var(--ink-soft);
  margin-top: 10px;
  font-size: 0.95rem;
}
.price-footnote {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 60ch;
}

/* ---------- Ablauf ---------- */
.steps-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
  counter-reset: step;
}
.step-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-deep);
}
.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.step-desc {
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Über mich ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.about-grid p {
  color: var(--ink-soft);
  max-width: 56ch;
}
.about-facts {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 24px;
  background: var(--surface);
}
.about-facts li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}
.about-facts li:last-child { border-bottom: none; }
.about-facts strong {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Kontakt ---------- */
.contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
}
.contact-card h2 { color: #fff; margin-bottom: 12px; }
.contact-card .lead { color: #cbd5e1; max-width: 54ch; margin-bottom: 30px; }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.contact-line strong {
  font-family: var(--font-display);
  font-weight: 600;
  min-width: 84px;
  color: #94a3b8;
}
.contact-line a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.35); }
.contact-line a:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.contact-card .btn.primary { background: #fff; color: var(--ink); }
.contact-card .btn.primary:hover { background: var(--accent-soft); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-col a { color: var(--ink-soft); font-size: 0.94rem; }
.footer-col a:hover { color: var(--accent-deep); }
.footer-legal {
  max-width: 1060px;
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent-deep); }

/* ---------- Rechtliche Seiten ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.legal h1 { font-size: 2.1rem; margin-bottom: 8px; }
.legal .sub { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal p { color: var(--ink-soft); margin-bottom: 12px; max-width: 64ch; }
.legal a { color: var(--accent-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .hero-inner { padding: 64px 24px 56px; grid-template-columns: 1fr; gap: 40px; }
  .hero-mockup { max-width: 440px; }
  .section { padding: 60px 0; }
  .price-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-card { padding: 32px 24px; }
  .service-row, .step-row { grid-template-columns: 40px 1fr; gap: 14px; }
}

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