/* Hofmann und Finner Unternehmensberatung – Stylesheet
   Schrift: SAP „72“ (Apache License 2.0, siehe fonts/LICENSE-72-Font.txt), lokal eingebunden.
   Kein JavaScript, keine externen Ressourcen. */

@font-face { font-family: "72"; src: url("../fonts/72-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "72"; src: url("../fonts/72-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "72"; src: url("../fonts/72-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "72"; src: url("../fonts/72-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --brand: #ff6600;         /* Logofarbe (Orange) – für Linien und Akzente */
  --brand-text: #b84800;    /* abgedunkeltes Logo-Orange für gut lesbare Texte und Links */
  --brand-tint: #fff2ea;
  --ink: #32363a;
  --heading: #1d2d3e;
  --muted: #6a6d70;
  --line: #e5e5e5;
  --soft: #f7f7f7;
  --bg: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "72", "72full", Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--heading); }

h1, h2, h3 { color: var(--heading); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 300; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h3, .h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow > * { max-width: 780px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* ---------- Header & Navigation ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 0 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); }
.brand:hover { color: var(--heading); }
.logo { display: block; height: 48px; width: auto; }
@media (min-width: 820px) { .logo { height: 60px; } }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-button { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px;
  color: var(--ink); text-decoration: none; font-size: .98rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--heading); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--heading); font-weight: 600; border-bottom-color: var(--brand); }

@media (max-width: 819px) {
  .nav-button {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; cursor: pointer; border-radius: 8px;
  }
  .nav-button span, .nav-button span::before, .nav-button span::after {
    display: block; width: 22px; height: 2px; background: var(--heading); position: relative; content: "";
  }
  .nav-button span::before { position: absolute; top: -7px; }
  .nav-button span::after { position: absolute; top: 7px; }
  .nav-toggle:focus-visible + .nav-button { outline: 2px solid var(--brand); }
  .site-nav { display: none; width: 100%; padding: 4px 0 12px; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--brand-text); }
}

/* ---------- Bereiche ---------- */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 64px 0 60px; }
.hero h1 { max-width: 820px; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--brand-text); letter-spacing: .04em; margin-bottom: .8em; }
.lead { font-size: 1.2rem; font-weight: 300; max-width: 740px; color: var(--ink); }
.hero .lead { margin-bottom: 0; }

.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 44px 0 32px; }
.page-head h1 { margin-bottom: .2em; }
.page-head .lead { color: var(--muted); margin-bottom: 0; }

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-soft { background: var(--soft); }
.section + .section-soft, .section-soft + .section { border-top: 0; }
.more { margin: 24px 0 0; font-weight: 600; }
.note { margin-top: 1.6em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

.two-col { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; } }
.prose p:last-child { margin-bottom: 0; }

.stat-box { background: var(--soft); border-radius: var(--radius); padding: 28px; border-left: 3px solid var(--brand); }
.section-soft .stat-box { background: #fff; }
.stat-number { font-size: 3rem; font-weight: 300; color: var(--heading); line-height: 1; margin-bottom: .3em; }
.stat-label { color: var(--muted); }
.stat-box p:last-child { margin-bottom: 0; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; border-top: 3px solid var(--brand);
}
.card-plain { border-top-color: var(--line); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* Listen */
.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.card .checklist li { font-size: .97rem; }
@media (min-width: 800px) { .two-col-list { columns: 2; column-gap: 48px; } .two-col-list li { break-inside: avoid; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 14px; font-size: .92rem; color: var(--heading);
}
.section .wrap > .chips { margin-top: 8px; }

/* Projektliste */
.clients { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.clients li { padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line); position: relative; }
.clients li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--brand); }

/* ---------- Buttons (nur 404-Seite) ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  background: #fff; color: var(--heading); text-decoration: none; font-weight: 600;
  border: 1px solid var(--line);
}
.btn:hover { border-color: var(--brand); color: var(--heading); }

/* ---------- Fließtext (Impressum, Datenschutz) ---------- */
.prose h2 { font-size: 1.2rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.two-col .prose h2:first-child, .narrow > .prose h2:first-child { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.meta { color: var(--muted); font-size: .9rem; margin-top: 2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); padding: 36px 0 20px; font-size: .95rem; }
.site-footer strong { color: var(--heading); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-inner p { overflow-wrap: anywhere; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.copyright { border-top: 1px solid var(--line); padding-top: 14px; margin: 16px 0 0; font-size: .85rem; }

@media print {
  .site-header, .site-footer { display: none; }
}
