/* ==========================================================
   BugFix Solutions – Stylesheet
   Farben und Abstände zentral hier ändern (:root).
   ========================================================== */

:root {
  --navy: #1f3a56;
  --navy-dark: #162b41;
  --accent: #c8451c;
  --accent-dark: #a93813;
  --text: #24313d;
  --muted: #5b6875;
  --line: #e2e6ea;
  --soft: #f5f6f8;
  --white: #ffffff;
  --radius: 10px;
  --width: 1080px;
  --header-height: 81px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

main { flex: 1; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }

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

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

.container { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

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

#include-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.logo { display: block; line-height: 0; }
.logo img { height: 48px; width: auto; }

.menu { display: flex; align-items: center; gap: 8px; }

.menu a {
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.menu a:hover { background: var(--soft); color: var(--navy); }
.menu a[aria-current="page"] { color: var(--accent); }

.menu-toggle {
  display: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 680px) {
  .logo img { height: 40px; }
  .menu-toggle { display: block; }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .menu.show { display: flex; }
  .menu a { padding: 12px; }
}

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

.button {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }

.button-ghost { background: transparent; border-color: var(--line); color: var(--navy); }
.button-ghost:hover { background: var(--soft); border-color: var(--line); color: var(--navy); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

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

.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-title { margin-bottom: 36px; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead { color: var(--muted); font-size: 1.2rem; }

/* ---------- Startseite: Hero ---------- */

.hero { padding: 88px 0 80px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
}

.hero .lead { max-width: 560px; margin: 22px 0 32px; }
.hero-mark { width: 170px; height: auto; }

@media (max-width: 820px) {
  .hero { padding: 56px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}

/* ---------- Startseite: Leistungskarten ---------- */

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

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.card p { margin: 8px 0 18px; color: var(--muted); }

.card-link { margin-top: auto; color: var(--accent); font-weight: 600; }

.icon { display: block; width: 88px; height: 88px; margin-bottom: 18px; object-fit: contain; object-position: left center; }

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Startseite: BugFixFire ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  align-items: center;
  gap: 64px;
}

.feature-image { display: block; width: 100%; height: auto; }
.feature-text { max-width: 520px; margin: 14px 0 26px; }

.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature-image { max-width: 320px; }
}

/* ---------- Startseite: Ablauf ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--navy); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 600;
}
.steps p { margin-top: 6px; color: var(--muted); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Abschluss-Band ---------- */

.cta { padding: 60px 0; background: var(--navy); color: var(--white); }

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 { color: var(--white); }
.cta p { margin-top: 6px; color: #cdd6df; }

/* ---------- Unterseiten ---------- */

.page-head { padding: 64px 0 8px; }
.page-head .lead { max-width: 620px; margin-top: 14px; }

.service {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.service:last-child { border-bottom: 0; }
.service .icon { margin: 4px 0 0; width: 96px; height: 96px; }
.service h2 { font-size: 1.5rem; }
.service-text { margin: 10px 0 14px; color: var(--muted); }

.service ul { margin: 0 0 18px; padding-left: 20px; }
.service li { margin-bottom: 4px; }
.service li::marker { color: var(--accent); }
.service-link { font-weight: 600; text-decoration: none; }
.service-link:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; gap: 12px; }
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  padding: 48px 0 80px;
}

.contact-info h2 { margin-bottom: 10px; font-size: 1.2rem; }
.contact-info p { color: var(--muted); }
.contact-info a { font-weight: 600; }

form { display: flex; flex-direction: column; gap: 6px; }

label { margin-top: 14px; color: var(--navy); font-weight: 600; font-size: 0.95rem; }
label:first-child { margin-top: 0; }
.optional { color: var(--muted); font-weight: 400; }

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 58, 86, 0.15);
}

textarea { resize: vertical; }

.hint { color: var(--muted); font-size: 0.875rem; }
.error { color: #b00020; font-size: 0.875rem; }
.error:empty { display: none; }

form .button { align-self: flex-start; margin-top: 20px; }

.form-alert { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #fbe9e6; color: #8c1d08; }
.form-alert[hidden] { display: none; }

/* Spam-Schutzfeld aus dem sichtbaren Bereich schieben */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; }
}

/* ---------- Textseiten (Impressum) ---------- */

.prose { padding: 32px 0 80px; }
.prose h2 { margin: 32px 0 6px; font-size: 1.15rem; }
.prose p { color: var(--text); }
.prose h2:first-child { margin-top: 0; }

/* ---------- Bestätigung ---------- */

.message { padding: 96px 0; text-align: center; }
.message .lead { margin: 18px auto 32px; max-width: 560px; }

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

#include-footer { min-height: 73px; border-top: 1px solid var(--line); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--navy); }

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