/* MaGuBa-softwaresolutions – Stylesheet
   Ruhig, großzügig, typografisch: viel Weißraum, große Headlines, Kacheln.
   Keine externen Ressourcen: System-Schrift (SF Pro auf Apple-Geräten), kein CDN, kein JS. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --hair: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --dark-bg: #000000;
  --dark-tile: #1d1d1f;
  --dark-text: #f5f5f7;
  --dark-muted: #a1a1a6;
  --radius-l: 28px;
  --radius-m: 18px;
  --max: 1024px;
  --wide: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --tile: #1d1d1f;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --hair: #424245;
    --link: #2997ff;
    --dark-bg: #0b0b0c;
    --dark-tile: #1d1d1f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 22px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 20; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--hair) 55%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 48px; }
.brand { display: flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; }
.brand span { font-weight: 400; color: var(--muted); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text); opacity: .8; font-size: 12px; letter-spacing: -0.01em; }
.nav a:hover { opacity: 1; text-decoration: none; }

/* ---------- Buttons & Links ---------- */
.actions { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 980px;
  font-size: 17px; font-weight: 400; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--link); border: 1px solid var(--link); }
.btn-ghost:hover { background: var(--link); color: #fff; }
.more { font-size: 19px; color: var(--link); }
.more::after { content: " ›"; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 96px 0 0; background: var(--bg); overflow: hidden; }
.eyebrow { display: block; font-size: 21px; font-weight: 600; color: var(--muted); margin: 0 0 6px; letter-spacing: .004em; }
.hero h1 {
  font-size: clamp(44px, 8vw, 80px); line-height: 1.05; font-weight: 600;
  letter-spacing: -0.035em; margin: 0 auto 18px; max-width: 14ch;
}
.gradient {
  background: linear-gradient(90deg, #0071e3 0%, #5e5ce6 45%, #bf5af2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.25; color: var(--muted); max-width: 30ch; margin: 0 auto 32px; letter-spacing: -0.015em; }
.hero-visual { margin: 64px auto 0; max-width: 980px; padding: 0 22px; }
.hero-visual svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.18)); }

/* Fallback-Hero für einfache Seiten (404) */
.hero.simple { padding-bottom: 120px; }

/* ---------- Abschnitte ---------- */
section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.section-head .kicker { display: block; font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
h2 { font-size: clamp(36px, 5.5vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 16px; }
.lead { font-size: clamp(19px, 2vw, 21px); color: var(--muted); line-height: 1.38; margin: 0 auto; max-width: 40ch; }

/* ---------- Kacheln (Bento) ---------- */
.bento { display: grid; gap: 20px; grid-template-columns: repeat(6, 1fr); }
.tile {
  background: var(--tile); border-radius: var(--radius-l);
  padding: 44px 40px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  overflow: hidden;
}
.tile.span-4 { grid-column: span 4; }
.tile.span-3 { grid-column: span 3; }
.tile.span-2 { grid-column: span 2; }
.tile h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 10px; }
.tile p { margin: 0; color: var(--muted); font-size: 17px; }
.tile .label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; display: block; }
.tile .glyph { width: 64px; height: 64px; }
.tile .glyph svg { width: 100%; height: 100%; }
.tile.feature .big {
  font-size: clamp(56px, 9vw, 96px); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
}

/* ---------- Dunkler Projektbereich ---------- */
.dark { background: var(--dark-bg); color: var(--dark-text); }
.dark .section-head .kicker, .dark .lead { color: var(--dark-muted); }
.projects { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.project {
  background: var(--dark-tile); border-radius: var(--radius-l); padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.project .pic { border-radius: var(--radius-m); background: #2c2c2e; aspect-ratio: 16 / 10; display: grid; place-items: center; margin-bottom: 8px; overflow: hidden; }
.project .pic svg { width: 100%; height: 100%; }
.project h3 { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.project p { margin: 0; color: var(--dark-muted); font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 8px 0 0; list-style: none; }
.tags li { font-size: 12px; color: var(--dark-muted); border: 1px solid #424245; border-radius: 980px; padding: 3px 10px; letter-spacing: 0; }

/* ---------- Ablauf ---------- */
.steps { display: grid; gap: 48px 40px; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--hair); padding-top: 24px; }
.steps li::before {
  content: counter(step); display: block; font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 18px;
  background: linear-gradient(180deg, var(--text), var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps strong { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.steps span { color: var(--muted); }

/* ---------- Kontakt ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.cta .lead { margin-bottom: 36px; }
.cta .mail { display: block; margin-top: 22px; font-size: 19px; }
.cta .who { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: 80px 0 100px; }
.legal .wrap { max-width: 692px; }
.legal h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 48px; }
.legal h2 { font-size: 24px; line-height: 1.17; letter-spacing: -0.02em; margin: 44px 0 10px; }
.legal h3 { font-size: 19px; margin: 28px 0 6px; }
.legal p, .legal li, .legal address { color: var(--text); }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2em; }
.note { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); color: var(--muted); font-size: 12px; letter-spacing: -0.01em; padding: 22px 0; border-top: 1px solid color-mix(in srgb, var(--hair) 55%, transparent); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 0; }
.site-footer nav a { color: var(--muted); padding: 0 10px; border-left: 1px solid var(--hair); }
.site-footer nav a:first-child { border-left: 0; padding-left: 0; }
.site-footer a:hover { color: var(--text); }

/* ---------- Dezente Einblend-Animation (nur wo unterstützt) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(40px) scale(.98); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.span-4, .tile.span-3 { grid-column: span 2; }
  .tile.span-2 { grid-column: span 1; }
  .projects { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding-top: 64px; }
  .nav { gap: 18px; }
  .nav a.opt { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile.span-4, .tile.span-3, .tile.span-2 { grid-column: span 1; }
  .tile { min-height: 0; padding: 36px 28px; }
  .steps { grid-template-columns: 1fr; }
}

/* Markenname als ein Wort (ohne Flex-Lücke) */
.brand b { font-weight: 600; }
.brand b span { font-weight: 400; color: var(--muted); }

/* ---------- Projekte aus der beruflichen Praxis (anonymisiert) ---------- */
.sub-head { margin-top: 96px; margin-bottom: 40px; }
.sub-title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.028em; margin: 0 0 12px; }
.projects.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .projects.two { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sub-head { margin-top: 72px; } }
.projects.two .pic { aspect-ratio: 2 / 1; }

/* ---------- Oberer Teil (Hero + Leistungen) im dunklen Projekt-Stil ---------- */
.site-header {
  background: rgba(22, 22, 23, .8);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.site-header .brand, .site-header .nav a { color: #f5f5f7; }
.site-header .brand b span { color: #a1a1a6; }

.hero.dark { background: var(--dark-bg); color: var(--dark-text); padding-bottom: 40px; }
.hero.dark .eyebrow, .hero.dark p.sub { color: var(--dark-muted); }
.hero.dark .more { color: #2997ff; }
.hero.dark .hero-visual svg { filter: drop-shadow(0 30px 80px rgba(41, 151, 255, .18)); }
.hero.dark .gradient, .dark .gradient {
  background-image: linear-gradient(90deg, #2997ff 0%, #7d7aff 45%, #da8fff 100%);
}

#leistungen.dark { padding-top: 140px; }
.dark .tile { background: var(--dark-tile); }
.dark .tile p, .dark .tile .label { color: var(--dark-muted); }
.dark .tile h3 { color: var(--dark-text); }
/* Dunkler Seitengrund, damit die halbtransparente Navigation ganz oben nicht grau wirkt;
   helle Bereiche bekommen ihren Hintergrund selbst. */
body { background: var(--dark-bg); }
#ablauf, .hero.simple { background: var(--bg); }
.legal { background: var(--bg); min-height: calc(100vh - 48px - 66px); }
/* Hero ohne Dashboard-Bild direkt vor den Projekten */
.hero.dark { padding-bottom: 24px; }

/* ---------- Ablauf & Kontakt ebenfalls dunkel ---------- */
#ablauf.dark { background: var(--dark-bg); }
.dark .steps li { border-top-color: #424245; }
.dark .steps li::before { background-image: linear-gradient(180deg, #2997ff, #bf5af2); }
.dark .steps strong { color: var(--dark-text); }
.dark .steps span { color: var(--dark-muted); }
.dark.cta { padding-bottom: 140px; }
.dark.cta .mail { color: #2997ff; }
.dark.cta .who { color: var(--dark-muted); }
/* Abschnitte gleicher Farbe: dezente Trennlinie statt hartem Kontrast */
section.dark + section.dark { border-top: 1px solid #1d1d1f; }
/* Footer passend dunkel */
.site-footer { background: #0b0b0c; color: #86868b; border-top-color: #1d1d1f; }
.site-footer nav a { color: #86868b; border-left-color: #424245; }
.site-footer a:hover { color: #f5f5f7; }

/* ---------- Rechtliche Seiten & 404 im dunklen Stil ---------- */
.legal.dark, .hero.simple.dark { background: var(--dark-bg); color: var(--dark-text); }
.legal.dark p, .legal.dark li, .legal.dark address { color: #d2d2d7; }
.legal.dark h1, .legal.dark h2, .legal.dark h3 { color: var(--dark-text); }
.legal.dark a { color: #2997ff; }
.legal.dark .note { color: var(--dark-muted); }
.hero.simple.dark .eyebrow, .hero.simple.dark p.sub { color: var(--dark-muted); }
