/* ===========================================================
   haukeolf.de — Redesign "Blau / klar"
   Space Grotesk + Space Mono · ruhiges Blau als Akzent
   Fonts lokal selbst gehostet in assets/fonts/ (DSGVO-konform,
   keine externen Requests). Eingebunden via assets/fonts/fonts.css.
   =========================================================== */

:root {
  --paper:        #F4F5F6;
  --surface:      #FFFFFF;
  --surface-2:    #F6F7F8;
  --ink:          #16191D;
  --muted:        #5A626B;
  --faint:        #99A1A9;
  --border:       #E3E5E8;
  --border-2:     #E8EAED;
  --border-strong:#D0D4D8;
  --accent:       #2F5FA8;   /* Flächen, Buttons, Punkte */
  --accent-ink:   #274F8C;   /* Text auf hellem Grund */
  --accent-soft:  #E7EEF7;   /* zarte Akzentflächen */
  --dark:         #16191D;   /* dunkle Sektionen */

  --font-sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1120px;
  --pad: clamp(1.25rem, 5vw, 2.25rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-ink);
}
.mono { font-family: var(--font-mono); }

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Status bar ---- */
.statusbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 12.5px;
}
.statusbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 1rem; }
.statusbar .brand-s { font-weight: 500; }
.statusbar .brand-s .dim { color: var(--faint); }
.statusbar .status { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---- Header ---- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand .sq { width: 17px; height: 17px; border-radius: 5px; background: var(--accent); }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
nav.main a:hover, nav.main a.here { color: var(--accent-ink); }
.header-tools { display: flex; align-items: center; gap: 0.9rem; }

/* ---- Sections ---- */
section { padding-block: clamp(3.25rem, 7vw, 4.5rem); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.15rem); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 0.7rem; }
.bg-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---- Hero ---- */
.hero .wrap { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--accent-ink); background: var(--accent-soft); padding: 7px 13px; border-radius: 30px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-top: 24px; font-size: 1.18rem; color: color-mix(in srgb, var(--muted) 88%, var(--ink)); max-width: 42ch; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .proof { display: flex; gap: 32px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero .proof .item { max-width: 16ch; }
.hero .proof .n { font-size: 17px; font-weight: 700; }
.hero .proof .l { font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* Hero card "Das baue ich für Sie" */
.buildcard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 50px -30px rgba(0,0,0,.35); overflow: hidden; }
.buildcard .top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-2); }
.buildcard .top .t { font-weight: 600; font-size: 15px; }
.buildcard .top .pill { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 20px; }
.buildcard .rows { padding: 8px 20px 16px; }
.buildcard .row { display: flex; gap: 13px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--surface-2); }
.buildcard .row:last-child { border-bottom: 0; }
.buildcard .row .ic { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.buildcard .row .h { font-weight: 600; font-size: 15px; }
.buildcard .row .s { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ---- Industries ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ind { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 14px; padding: 22px; }
.bg-surface .ind { background: var(--surface-2); }
.ind .k { font-size: 13px; font-weight: 600; color: var(--accent); }
.ind h3 { font-size: 18px; font-weight: 600; margin-top: 6px; }
.ind p { font-size: 14.5px; color: var(--muted); margin-top: 3px; }

/* ---- Leistungen ---- */
.service { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px; transition: border-color .15s, transform .15s; }
.service:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.service .tag { font-weight: 600; font-size: 13px; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 12px; border-radius: 20px; }
.service h3 { font-size: 21px; font-weight: 600; margin: 14px 0 8px; }
.service p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.service ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.service li { font-size: 14px; color: color-mix(in srgb, var(--ink) 80%, var(--muted)); }
.service li::before { content: "→"; color: var(--accent); font-weight: 700; margin-right: 8px; }

/* ---- So arbeite ich ---- */
.valcard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.valcard h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.valcard p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---- Dunkle Über-mich / Portrait ---- */
.aboutdark { background: var(--dark); color: var(--paper); }
.aboutdark .wrap { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 5vw, 2.75rem); align-items: center; }
.portrait { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; background: #24262b; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.aboutdark .eyebrow { color: #7EA6DE; margin-bottom: 14px; }
.aboutdark h2 { font-size: clamp(1.7rem, 3.4vw, 2.15rem); font-weight: 700; color: var(--paper); margin-bottom: 18px; }
.aboutdark p { font-size: 16.5px; line-height: 1.65; color: #BCC1C8; margin-bottom: 14px; }
.aboutdark p:last-of-type { margin-bottom: 0; }
.aboutdark .sig { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: #7EA6DE; margin-top: 22px; }
.aboutdark .btn-light { background: var(--paper); color: var(--ink); margin-top: 24px; }

/* ---- Preise-Verweis ---- */
.priceband { background: var(--surface); border-top: 1px solid var(--border); }
.priceband .inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 16px; padding: 28px 32px; }
.priceband h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.priceband p { font-size: 15.5px; color: var(--muted); max-width: 64ch; }
.priceband .btn-dark { background: var(--dark); color: var(--paper); }

/* ---- CTA ---- */
.cta .band { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 18px; padding: clamp(2rem, 5vw, 2.75rem); display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; }
.cta .band .eyebrow { margin-bottom: 12px; }
.cta .band h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 700; }
.cta .band p { margin-top: 14px; font-size: 16.5px; line-height: 1.55; color: color-mix(in srgb, var(--muted) 85%, var(--ink)); }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-list a { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); padding: 15px 18px; border-radius: 11px; font-size: 15px; font-weight: 500; transition: border-color .15s; }
.contact-list a:hover { border-color: var(--accent); }
.contact-list a.mail { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact-list .k { font-size: 13px; color: var(--muted); }
.contact-list a.mail .k { color: rgba(255,255,255,.85); }

/* ---- Mission (Über-mich) ---- */
.mission { background: var(--surface-2); border-block: 1px solid var(--border); }
.mission .narrow { max-width: 760px; }
.mission h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; margin: 12px 0 1.4rem; }
.mission p { font-size: 1.12rem; color: var(--ink); margin-bottom: 1.1rem; }
.mission p.dim { color: var(--muted); }
.mission .pull { font-size: clamp(1.3rem, 2.8vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; border-left: 3px solid var(--accent); padding-left: 1.2rem; margin-top: 1.8rem; }

/* ---- Timeline (Werdegang) ---- */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid var(--border); }
.tl-item:first-child { border-top: 0; }
.tl-when { font-family: var(--font-mono); font-size: 0.82rem; color: var(--faint); padding-top: 0.2rem; }
.tl-body h3 { font-size: 1.12rem; font-weight: 700; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.tl-body .org { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border)); border-radius: 4px; padding: 2px 7px; text-transform: uppercase; letter-spacing: 0.05em; }
.tl-body p { color: var(--muted); font-size: 0.96rem; margin-top: 0.35rem; }
.tl-item.now .tl-when, .tl-item.now .tl-body h3 { color: var(--accent-ink); }

/* ---- Über-mich Hero ---- */
.abouthero .wrap { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
.abouthero .meta { margin-top: 1.6rem; display: flex; gap: 1.4rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.abouthero .meta b { color: var(--ink); font-weight: 700; }
.abouthero .portrait { aspect-ratio: 4/5; background: var(--surface-2); border: 1px solid var(--border-strong); }
.abouthero .portrait img { object-position: center top; }

/* ---- Footer ---- */
footer.site { border-top: 1px solid var(--border); padding-block: 2.2rem; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
footer.site .brand { font-size: 15px; }
footer.site nav { display: flex; gap: 1.3rem; }
footer.site nav a, footer.site .copy { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
footer.site nav a:hover { color: var(--ink); }

/* ---- Mobile-Navigation ---- */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 44px; height: 44px; padding: 0;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  color: var(--ink); cursor: pointer;
}
.nav-toggle i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 40; background: var(--paper);
  flex-direction: column; padding: clamp(88px, 14vh, 120px) var(--pad) 40px; gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a:not(.btn) {
  font-size: 1.45rem; font-weight: 600; color: var(--ink);
  padding: 15px 0; border-bottom: 1px solid var(--border);
}
.mobile-nav .m-cta { margin-top: 26px; padding: 14px 22px; font-size: 1rem; justify-content: center; }
.mobile-nav .close {
  position: absolute; top: 20px; right: var(--pad);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  font-size: 18px; color: var(--ink); cursor: pointer;
}

/* ---- Rechtstexte (Impressum / Datenschutz) ---- */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; }
.legal .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint); margin-top: 0.6rem; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 2.2rem 0 0.6rem; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.4rem; }
.legal p, .legal li { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.legal p { margin-bottom: 0.8rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.legal a { color: var(--accent-ink); text-decoration: underline; }
.legal .ph { background: var(--accent-soft); color: var(--accent-ink); padding: 1px 7px; border-radius: 5px; font-family: var(--font-mono); font-size: 0.85em; }
.legal .note { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 1rem 1.2rem; margin: 1.6rem 0; }
.legal .note p { color: var(--ink); margin: 0; font-size: 0.95rem; }
.legal .back { display: inline-block; margin-top: 2.5rem; font-family: var(--font-mono); font-size: 0.85rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero .wrap, .aboutdark .wrap, .abouthero .wrap, .cta .band, .grid-3 { grid-template-columns: 1fr; }
  .grid-3 { gap: 12px; }
  nav.main { display: none; }
  .nav-toggle { display: flex; }
  .abouthero .portrait { max-width: 340px; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .tl-item { grid-template-columns: 1fr; gap: 0.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
