/* Schriften, selbst gehostet (kein Google-Fonts-Abruf) */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/anton-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }

/* rhinodigits – Brand-Tokens
   Claim: "Wir stellen Ihr Softwareprojekt auf solide Füße."
   ink   = Nashornhaut, schwer, Basis
   bone  = Horn/Knochen, warmes Weiß für Text
   rhino = Grauhaut, gedämpfte Zweitfarbe
   horn  = Signalfarbe, Bernstein: Akzent für Hover, CTA, Marke
*/
:root {
  --ink: #0B0B0C;
  --ink-2: #151517;
  --bone: #F3F0E9;
  --rhino: #8E949C;
  --rhino-2: #3A3D42;
  --horn: #F2B135;
  --horn-2: #FFD071;

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--horn); color: var(--ink); }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rhino-2);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.02em; }
.brand svg { height: 24px; width: auto; color: var(--horn); }
.brand span { text-transform: uppercase; letter-spacing: 0.1em; }
.brand span b { color: var(--horn); font-weight: 600; }
.topnav { display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rhino); }
.topnav a:hover, .topnav a:focus-visible { color: var(--bone); }
@media (max-width: 720px) { .topnav { display: none; } }

/* ---------- Hero / typografische Navigation (Referenz-Prinzip) ---------- */
.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-block: clamp(32px, 6vh, 80px) 32px;
}
.bignav { display: flex; flex-direction: column; align-self: center; }
.bignav a {
  font-size: clamp(48px, 12vw, 160px);
  color: var(--bone);
  transition: color .25s ease, transform .25s ease;
  width: max-content;
  max-width: 100%;
}
.bignav a:hover { color: var(--horn); transform: translateX(0.04em); }
.bignav:has(a:hover) a:not(:hover) { color: var(--rhino-2); }

.hero-meta {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rhino-2);
}
.hero-meta .claim { font-size: clamp(18px, 2.2vw, 26px); max-width: 32ch; margin: 0; line-height: 1.3; }
.hero-meta .claim em { font-style: normal; color: var(--horn); }
.hero-meta .loc { color: var(--rhino); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; text-align: right; }
@media (max-width: 720px) { .hero-meta { grid-template-columns: 1fr; } .hero-meta .loc { text-align: left; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 12vh, 150px); border-top: 1px solid var(--rhino-2); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(28px, 5vh, 56px); }
.kicker { color: var(--horn); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.section-head .num { font-family: var(--font-display); font-size: 48px; color: var(--rhino-2); line-height: 1; }

/* Wortliste – wie beim Vorbild: Leistungen/Projekte als riesige Wörter */
.wordlist { list-style: none; margin: 0; padding: 0; }
.wordlist li { border-top: 1px solid var(--rhino-2); }
.wordlist li:last-child { border-bottom: 1px solid var(--rhino-2); }
.wordlist > li > a, .wordlist > li > .row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36ch);
  gap: 24px; align-items: center;
  padding: clamp(14px, 2.4vh, 26px) 0;
  transition: color .2s ease, padding-left .25s ease;
}
.wordlist .word { font-size: clamp(36px, 7vw, 104px); overflow-wrap: anywhere; }
.wordlist .accent-dot { color: var(--horn); }
.wordlist .desc { color: var(--rhino); font-size: 15px; max-width: 36ch; }
.wordlist .meta { display: block; margin-top: 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rhino); opacity: 0.75; }
.wordlist li:hover .meta { color: var(--horn); }
.wordlist > li:hover > a, .wordlist > li:hover > .row { color: var(--horn); padding-left: 0.3em; }
.wordlist li:hover .desc { color: var(--bone); }
@media (max-width: 860px) { .wordlist > li > a, .wordlist > li > .row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Über / Nashorn ---------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about h2.display { font-size: clamp(44px, 7vw, 120px); }
.about h2 .accent { color: var(--horn); }
.values { list-style: none; margin: 0; padding: 0; counter-reset: v; max-width: 56ch; }
.values li { counter-increment: v; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--rhino-2); color: var(--rhino); }
.values li:last-child { border-bottom: 1px solid var(--rhino-2); }
.values li::before { content: "0" counter(v); position: absolute; left: 0; top: 16px; font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--horn); }
.values li strong { color: var(--bone); font-weight: 600; }
.person { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.portrait { width: clamp(120px, 14vw, 168px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid var(--rhino-2); box-shadow: 0 0 0 6px var(--ink); flex-shrink: 0; }
.person-text { display: grid; gap: 4px; }
.person-text strong { font-size: 20px; font-weight: 600; color: var(--bone); }
.person-text span { color: var(--rhino); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.about .mark { color: var(--horn); width: 110px; height: auto; margin-top: 12px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact h2.display { font-size: clamp(56px, 13vw, 200px); }
.contact h2 a { color: var(--bone); transition: color .2s; }
.contact h2 a:hover { color: var(--horn); }
.contact .sub { color: var(--rhino); max-width: 48ch; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px; padding: 14px 22px;
  background: var(--horn); color: var(--ink);
  font-weight: 600; letter-spacing: 0.04em;
  border-radius: 999px; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--horn-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--bone); border: 1px solid var(--rhino-2); margin-left: 8px; }
.btn.ghost:hover { border-color: var(--bone); }

/* ---------- Blog ---------- */
.blog { padding-block: clamp(48px, 8vh, 96px) 120px; }
.blog-head { margin-bottom: clamp(40px, 7vh, 80px); }
.blog-head h1 { font-size: clamp(56px, 10vw, 150px); margin-top: 12px; }
.blog-head .sub, .post .sub { color: var(--rhino); max-width: 60ch; margin-top: 20px; }
.year { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding-block: 32px; border-top: 1px solid var(--rhino-2); }
.year-label { font-size: 48px; color: var(--rhino-2); line-height: 1; }
.postlist { list-style: none; margin: 0; padding: 0; }
.postlist li { border-bottom: 1px solid var(--rhino-2); }
.postlist a { display: grid; grid-template-columns: 150px 1fr; gap: 6px 24px; padding: 18px 0; align-items: baseline; transition: color .2s, padding-left .25s; }
.postlist a:hover { color: var(--horn); padding-left: 0.4em; }
.post-date { color: var(--rhino); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.post-title { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; line-height: 1.3; }
.post-cats { grid-column: 2; color: var(--rhino); font-size: 13px; }
@media (max-width: 720px) { .year { grid-template-columns: 1fr; gap: 8px; } .postlist a { grid-template-columns: 1fr; gap: 4px; } .post-cats { grid-column: 1; } }

.post { max-width: 76ch; }
.post-head { margin-bottom: 40px; }
.post-head h1 { font-size: clamp(40px, 6.5vw, 88px); margin-top: 12px; }
.backlink { display: inline-block; margin-bottom: 28px; color: var(--rhino); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.backlink:hover { color: var(--horn); }
.prose { color: var(--rhino); font-size: 17px; line-height: 1.7; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--bone); font-family: var(--font-body); font-weight: 600; line-height: 1.25; margin: 2em 0 0.6em; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; } .prose h4 { font-size: 18px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose pre { margin: 0 0 1.2em; }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { color: var(--horn); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--horn) 40%, transparent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: var(--horn); }
.prose img, .prose iframe { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--rhino-2); margin: 8px 0; }
.prose iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.prose pre { background: var(--ink-2); border: 1px solid var(--rhino-2); border-radius: 8px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.55; color: var(--bone); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.prose :not(pre) > code { background: var(--ink-2); border: 1px solid var(--rhino-2); border-radius: 4px; padding: 1px 6px; color: var(--bone); }
.prose blockquote { border-left: 3px solid var(--horn); padding-left: 18px; color: var(--bone); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rhino-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { color: var(--bone); }
.prose hr { border: 0; border-top: 1px solid var(--rhino-2); margin: 2em 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; }
.tags li { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rhino); border: 1px solid var(--rhino-2); border-radius: 999px; padding: 6px 12px; }
.post-nav { margin-top: 40px; }
.post-nav .btn.ghost { margin-left: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - 72px - 64px); display: grid; align-content: center; padding-block: 64px; position: relative; }
.notfound h1 { font-size: clamp(56px, 12vw, 180px); margin-top: 12px; }
.notfound h1 .accent { color: var(--horn); }
.notfound .sub { color: var(--rhino); max-width: 48ch; margin-top: 24px; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notfound .actions .btn.ghost { margin-left: 0; }
.notfound .mark { position: absolute; right: 0; bottom: 48px; width: clamp(160px, 28vw, 420px); color: var(--rhino-2); z-index: -1; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--rhino-2);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rhino);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--bone); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal { padding-block: 64px 120px; max-width: 72ch; }
.legal h1 { font-size: clamp(44px, 8vw, 110px); margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin-top: 40px; }
.legal p, .legal li { color: var(--rhino); }
.legal strong { color: var(--bone); }
.legal h3 { font-size: 16px; margin: 24px 0 6px; color: var(--bone); }
.legal ul { color: var(--rhino); padding-left: 20px; }
.legal a { color: var(--horn); }
.legal .stand { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: -16px; margin-bottom: 32px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
