/* ==========================================================
   SF itconsulting – Stylesheet
   Farben und Abstände zentral anpassbar über die Variablen unten.
   ========================================================== */

/* ---------- Schriften (lokal gehostet, DSGVO-konform) ----------
   Die .woff2-Dateien gehören in assets/fonts/ (siehe README.md).
   Fehlen sie, wird automatisch eine Systemschrift verwendet. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

/* ---------- Design-Variablen ---------- */
:root {
  --accent: #C2410C;        /* Buttons, Akzente auf hellem Grund */
  --accent-light: #FDBA74;  /* Akzente auf dunklem Grund */
  --ink: #13202E;           /* Haupttextfarbe */
  --muted: #4A5563;         /* Sekundärtext */
  --line: #E3E7EC;          /* Linien, Rahmen */
  --soft: #F4F6F8;          /* helle Flächen */
  --dark: #0E1A27;          /* Hero-Hintergrund */
  --dark-2: #13202E;        /* Kontakt-Bereich */
  --on-dark: #C9D0D8;       /* Sekundärtext auf dunklem Grund */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }

.eyebrow { font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-head h2, .about h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }
.lead-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 15px 27px; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9A3412; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-small { padding: 11px 20px; font-size: 15px; }

/* ---------- Hero (dunkel) ---------- */
.hero-bg {
  background-color: var(--dark);
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff;
}
.site-header { border-bottom: 1px solid rgba(255,255,255,.12); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 22px; text-decoration: none; color: #fff; }
.logo span { font-weight: 500; color: var(--on-dark); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn) { color: #E3E7EC; text-decoration: none; padding: 10px 0; }
.main-nav a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 72px; }
.hero-text { flex: 999 1 580px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 14px; font-weight: 500; color: #E3E7EC; background: rgba(255,255,255,.04); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--accent-light); }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero-sub { font-size: 21px; color: var(--on-dark); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.flow { list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.flow li { display: flex; align-items: center; gap: 8px; }
.flow span { padding: 8px 14px; border-radius: 8px; background: rgba(255,255,255,.08); color: #E3E7EC; }
.flow li:last-child span { background: var(--accent-light); color: var(--dark); font-weight: 600; }
.flow svg { flex: none; }

.hero-visual { flex: 1 1 340px; min-width: 0; position: relative; }
.portrait { height: 460px; border-radius: 20px; background: #1C2B3B; border: 1px solid rgba(255,255,255,.12); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--on-dark); font-size: 15px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.name-tag { position: absolute; top: 16px; right: 16px; padding: 8px 14px; border-radius: 999px; background: var(--dark); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 600; }
.fact-card { position: absolute; left: 16px; right: 16px; bottom: 16px; background: #fff; color: var(--ink); border-radius: 14px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.4; }
.fact-card .num { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; color: var(--accent); }
.fact-card strong { display: block; font-size: 15px; }

.stats { border-top: 1px solid rgba(255,255,255,.12); }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--font-head); font-size: 32px; color: var(--accent-light); }
.stat span { font-size: 15px; color: var(--on-dark); }

/* ---------- Branchenleiste ---------- */
.industries { background: var(--soft); border-bottom: 1px solid var(--line); }
.industries .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; color: var(--muted); }
.industries strong { color: var(--ink); }
.industries ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }

/* ---------- Leistungen ---------- */
.services { display: flex; flex-direction: column; gap: 48px; padding-top: 104px; padding-bottom: 96px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: #C9D0D8; box-shadow: 0 8px 24px rgba(19,32,46,.06); }
.card .no { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--accent); }
.card h3 { font-size: 22px; line-height: 1.2; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- Vorgehen ---------- */
.process { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process .container { display: flex; flex-direction: column; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- Über mich ---------- */
.about { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 104px; padding-bottom: 104px; }
.about-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text > p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding-top: 8px; }
.values div { display: flex; flex-direction: column; gap: 4px; }
.values strong { font-family: var(--font-head); font-size: 17px; }
.values span { color: var(--muted); font-size: 15px; }
.quotes { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.quote { margin: 0; background: var(--dark-2); color: #fff; border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.quote figcaption { font-size: 15px; color: var(--on-dark); }
.quote figcaption strong { color: #fff; }

/* ---------- Kontakt ---------- */
.contact { background: var(--dark-2); color: #fff; }
.contact .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; padding-top: 96px; padding-bottom: 96px; }
.contact-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.contact-text p { color: var(--on-dark); font-size: 19px; max-width: 600px; }
.contact-text .actions { padding-top: 8px; }
.contact address { flex: 1 1 280px; min-width: 0; font-style: normal; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.contact address a { color: #fff; text-decoration: none; padding: 4px 0; }
.contact address a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #0B1520; color: var(--on-dark); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: #fff; padding: 10px 0; }

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */
.legal { padding-top: 72px; padding-bottom: 96px; max-width: 800px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal .back { display: inline-block; margin-bottom: 32px; color: var(--accent); font-weight: 600; text-decoration: none; }
.legal .back:hover { text-decoration: underline; }
.note { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 8px; padding: 16px 20px; color: var(--ink) !important; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .main-nav a:not(.btn) { display: none; }   /* auf dem Handy nur der Kontakt-Button */
  .hero { padding-top: 56px; padding-bottom: 48px; gap: 40px; }
  .hero-sub { font-size: 18px; }
  .portrait { height: 380px; }
  .services, .about { padding-top: 72px; padding-bottom: 72px; }
  .process .container, .contact .container { padding-top: 72px; padding-bottom: 72px; }
}
