/* Software Butze – Stylesheet
   Freundlich, hell, ein bisschen Pixel-Art.
   Farben & Schriften siehe docs/02-design.md */

:root {
  --bg:        #FFF8EE;  /* Creme */
  --surface:   #FFFFFF;  /* Karten */
  --primary:   #FF8A3D;  /* Warmes Orange */
  --primary-d: #FF6F1F;
  --secondary: #3DBE7A;  /* Grün */
  --accent:    #4FB8E8;  /* Blau */
  --text:      #2E2A26;  /* Tiefbraun */
  --muted:     #7A6F66;  /* Graubraun */
  --radius:    14px;
  --shadow:    4px 4px 0 var(--text);       /* harter Pixel-Schatten */
  --shadow-sm: 3px 3px 0 var(--text);
  --pixel: 'Press Start 2P', monospace;
  --body:  'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background-color: var(--bg);
  /* dezentes Pixel-Karo im Hintergrund */
  background-image:
    linear-gradient(rgba(255,138,61,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,138,61,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  font-size: 18px;
}

.wrap { width: min(1080px, 92%); margin-inline: auto; }

/* ---------- Pixel-Schrift-Helfer ---------- */
.pixel {
  font-family: var(--pixel);
  line-height: 1.5;
  letter-spacing: .5px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--primary);
  padding: 14px 20px;
  border: 3px solid var(--text);
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover  { transform: translate(2px,2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translate(4px,4px); box-shadow: 0 0 0 var(--text); }
.btn--ghost { background: var(--surface); }
.btn--green { background: var(--secondary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 3px solid var(--text);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 46px; height: 46px; image-rendering: pixelated; }
.brand .name { font-family: var(--pixel); font-size: 14px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 700; }
.nav a:hover { color: var(--primary-d); }
.nav .btn { font-size: 10px; padding: 10px 14px; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--pixel); font-size: 30px; line-height: 1.6; margin: 0 0 22px; }
.hero h1 .hl { color: var(--primary-d); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 48ch; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Pixel-Illustration im Hero */
.hero-art {
  background: var(--surface);
  border: 3px solid var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}
.hero-art img { width: 180px; height: 180px; image-rendering: pixelated; }
.hero-art .tag {
  display: inline-block; margin-top: 14px;
  font-family: var(--pixel); font-size: 10px; color: var(--secondary);
}

/* ---------- Sektionen ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-family: var(--pixel); font-size: 20px; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Karten / Leistungen ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 3px solid var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card .ico { font-size: 30px; line-height: 1; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- So arbeiten wir ---------- */
.work { background: linear-gradient(180deg, transparent, rgba(61,190,122,.08)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.step {
  background: var(--surface);
  border: 3px solid var(--text); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; text-align: center;
}
.step .num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 12px;
  font-family: var(--pixel); font-size: 14px;
  background: var(--accent); color: var(--text);
  border: 3px solid var(--text); border-radius: 8px;
}
.why { max-width: 60ch; margin: 0 auto 30px; text-align: center; color: var(--muted); }

/* ---------- Über uns ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 3px solid var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.avatar {
  width: 72px; height: 72px; flex: none;
  display: grid; place-items: center;
  font-family: var(--pixel); font-size: 22px; color: var(--text);
  border: 3px solid var(--text); border-radius: 12px;
  image-rendering: pixelated;
}
.avatar.a { background: var(--primary); }
.avatar.b { background: var(--secondary); }
.person h3 { margin: 0 0 4px; }
.person p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Kontakt ---------- */
.contact { background: linear-gradient(180deg, transparent, rgba(79,184,232,.08)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.form {
  background: var(--surface); border: 3px solid var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 3px solid var(--text); border-radius: 10px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; box-shadow: var(--shadow-sm);
}
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.contact-aside h3 { font-family: var(--pixel); font-size: 14px; }
.contact-aside a { color: var(--primary-d); font-weight: 700; }
.note { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 3px solid var(--text);
  background: var(--surface);
  padding: 28px 0; margin-top: 20px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--text); }
.site-footer .muted { color: var(--muted); font-size: 15px; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 3px solid var(--text);
    padding: 10px 6%; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
  .nav .btn { margin-top: 10px; text-align: center; }
  .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; background: var(--surface);
    border: 3px solid var(--text); border-radius: 10px; cursor: pointer;
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 22px; }
  .cards { grid-template-columns: 1fr; }
}
