/* ============================================================
   M-powered Solutions – Stylesheet (Anthrazit-Theme)
   Anthrazit-Töne als Basis · Logofarben als Akzente:
   Navy #0F2547 · Hellblau #45B6E8 · Rot #D8232A
   Fonts lokal eingebunden (DSGVO-konform, keine externen Server)
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Anthrazit-Basis */
  --bg: #24282E;          /* Grundfläche */
  --bg-alt: #1D2126;      /* abgesetzte Sektionen */
  --bg-deep: #16191D;     /* Footer */
  --card: #2C3138;        /* Karten & Eingabefelder */
  --card-hover: #323841;
  --line: rgba(255,255,255,0.10);

  /* Logofarben als Akzente */
  --navy: #0F2547;
  --blue: #45B6E8;
  --blue-dim: rgba(69,182,232,0.14);
  --red: #D8232A;
  --red-hover: #B51D23;

  /* Text */
  --text: #E9EDF2;
  --muted: #A6B0BC;

  --radius: 14px;
  --display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29, 33, 38, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span {
  font-family: var(--display); font-weight: 700; color: var(--text);
  font-size: 1.05rem; letter-spacing: 0.02em;
}
.brand span em { font-style: normal; color: var(--red); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  padding: 0.4rem 0.15rem; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--blue); border-color: var(--blue); }
.nav-cta {
  background: var(--red); color: #fff !important; padding: 0.55rem 1.2rem !important;
  border-radius: 999px; border: none !important; transition: background 0.2s;
}
.nav-cta:hover { background: var(--red-hover); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(155deg, #2A2F36 0%, var(--bg) 55%, #1F242B 100%);
  color: var(--text);
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 7.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5.5rem), 50% 100%, 0 calc(100% - 5.5rem));
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.2rem;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.hero h1 {
  font-family: var(--display); font-weight: 700; color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 1.3rem;
}
.hero h1 .hl { color: var(--blue); }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-family: var(--display); font-size: 1rem;
  padding: 0.85rem 1.8rem; border-radius: 999px; transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { border: 2px solid var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #16191D; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(320px, 70%); filter: drop-shadow(0 16px 34px rgba(0,0,0,0.4)); }

/* Leiterbahn-Deko (Signature-Element aus dem Logo) */
.circuit { position: absolute; pointer-events: none; }
.circuit line, .circuit path { stroke: var(--blue); stroke-width: 2; fill: none; }
.circuit circle.dot { fill: var(--blue); }
.circuit circle.ring { fill: none; stroke: var(--blue); stroke-width: 2; }
.circuit--hero { right: -40px; top: 30px; width: 340px; opacity: 0.12; }
.circuit--footer { left: -30px; bottom: 10px; width: 280px; opacity: 0.10; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.eyebrow {
  font-family: var(--display); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
h2 {
  font-family: var(--display); font-weight: 700; color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; margin-bottom: 0.8rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.service::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(var(--blue), var(--red));
  transform: scaleY(0); transform-origin: top; transition: transform 0.25s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,0.35); border-color: rgba(69,182,232,0.55); background: var(--card-hover); }
.service:hover::before { transform: scaleY(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-dim); margin-bottom: 1.1rem;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.service h3 { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.15rem; margin-bottom: 0.5rem; }
.service p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; }
.about-visual {
  background: linear-gradient(150deg, #2A2F36 0%, #22262C 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 3rem; display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.about-visual img { width: min(230px, 65%); filter: drop-shadow(0 12px 26px rgba(0,0,0,0.35)); }
.about h2 { margin-bottom: 1.1rem; }
.about p { color: var(--muted); margin-bottom: 1rem; }
.about-points { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.about-points li { display: flex; gap: 0.8rem; align-items: baseline; font-weight: 600; color: var(--text); }
.about-points li::before { content: "▸"; color: var(--red); font-size: 1.1rem; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--blue);
  display: block; margin-bottom: 0.6rem;
}
.step h3 { font-family: var(--display); color: #fff; font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.6rem; }
.contact-card {
  background: linear-gradient(150deg, var(--navy) 0%, #16345F 100%);
  color: #fff; border: 1px solid rgba(69,182,232,0.35); border-radius: var(--radius);
  padding: 1.6rem 1.7rem; display: grid; gap: 0.9rem;
}
.contact-card a { color: var(--blue); text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9FB4CD; }

form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { font-weight: 600; font-size: 0.92rem; color: var(--text); display: block; margin-bottom: 0.35rem; }
input, textarea {
  width: 100%; font: inherit; color: var(--text); padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--card);
  transition: border-color 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(69,182,232,0.18); }
textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { width: auto; margin-top: 0.25rem; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); }
button.btn { border: none; cursor: pointer; justify-self: start; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep); color: var(--muted); position: relative; overflow: hidden;
  padding: 3.5rem 0 2rem;
  clip-path: polygon(0 3.2rem, 50% 0, 100% 3.2rem, 100% 100%, 0 100%);
  padding-top: 6rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; position: relative; z-index: 2; }
.site-footer img { height: 54px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { font-family: var(--display); color: #fff; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.85rem; position: relative; z-index: 2;
}

/* ---------- Rechtsseiten ---------- */
.legal { padding: 4rem 0 5rem; max-width: 780px; }
.legal h1 { font-family: var(--display); color: #fff; font-size: 2.2rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
.legal h3 { font-family: var(--display); color: #fff; font-size: 1.08rem; margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { color: var(--text); margin-bottom: 0.7rem; }
.legal strong { color: #fff; }
.legal ul { padding-left: 1.3rem; margin-bottom: 0.8rem; }
.legal .muted { color: var(--muted); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container, .about, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 6rem; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 180px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); flex-direction: column; padding: 1.2rem 5%;
    align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
}
