/* azentrius.de: Projektseite nach dem Azentrius Design System (Themen „Azentrius dunkel“ und „Azentrius hell“) */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-serif-display.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-serif-display-italic.woff2") format("woff2");
}

/* Azentrius dunkel: Vorgabe */
:root {
  color-scheme: dark light;
  --bg-page: #0a0a0f;
  --bg-card: #14141c;
  --line: #26262f;
  --text: #e8e6e0;
  --text-subtle: #8d8a82;
  --link: #c8a96e;
  --link-hover: #e3cc9a;
  --primary: #c8a96e;
  --primary-hover: #d9be86;
  --primary-text: #c8a96e;
  --on-primary: #0a0a0f;
  --focus: #c8a96e;
  --signature: #c8a96e;
  --tint-neutral: #26262f;
  --on-tint-neutral: #e8e6e0;
  --font-app: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "DM Serif Display", Georgia, "Times New Roman", serif;
  --radius-large: 24px;
  --radius-pill: 999px;
}

/* Azentrius hell: wenn das System hell eingestellt ist */
@media (prefers-color-scheme: light) {
  :root {
    --bg-page: #f2f1ee;
    --bg-card: #ffffff;
    --line: #e2dfd8;
    --text: #0a0a0f;
    --text-subtle: #57544d;
    --link: #7d5f22;
    --link-hover: #5e4718;
    --primary: #0a0a0f;
    --primary-hover: #2b2b33;
    --primary-text: #0a0a0f;
    --on-primary: #ffffff;
    --focus: #7d5f22;
    --signature: #7d5f22;
    --tint-neutral: #e7e4dd;
    --on-tint-neutral: #0a0a0f;
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-app);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin: 0; }

/* Sprache: Deutsch ist Vorgabe, „EN“ schaltet um */
html[lang="en"] .l-de, html:not([lang="en"]) .l-en { display: none !important; }

/* ---------- Bausteine aus dem Designsystem ---------- */
.az-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-block-size: 37px; padding: 7px 24px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: transparent; color: var(--text);
  font: inherit; font-size: 14px; line-height: 1.5; white-space: nowrap;
  cursor: pointer; text-decoration: none;
}
.az-btn--primary { background: var(--primary); color: var(--on-primary); }
.az-btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.az-btn--secondary { border-color: var(--primary); color: var(--primary-text); }
.az-btn--secondary:hover { border-color: var(--primary-hover); color: var(--primary-text); box-shadow: inset 0 0 0 1px var(--primary-hover); }
.az-btn--sm { min-block-size: 29px; padding: 3px 16px; }
.az-btn--lg { min-block-size: 48px; padding-inline: 28px; font-size: 16px; }
.az-label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--tint-neutral); color: var(--on-tint-neutral);
  font-size: 12px; line-height: 1.5; white-space: nowrap;
}

/* ---------- Seitengerüst ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.wrap--narrow { max-width: 760px; }
.section { padding-block: 112px; }
.rule-top { border-top: 1px solid var(--line); }

.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.wordmark { font-family: var(--font-brand); font-size: 26px; line-height: 1; letter-spacing: 0.01em; color: var(--text); text-decoration: none; }
.wordmark:hover { color: var(--text); }
.wordmark--sm { font-size: 22px; }
.dot { color: var(--signature); }
.suffix { font-style: italic; color: var(--signature); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.site-nav a, .quiet-link { color: var(--text-subtle); text-decoration: none; }
.site-nav a:hover, .quiet-link:hover { color: var(--text); }

.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signature); }
.display { font-family: var(--font-brand); font-weight: 400; }
.h2 { font-family: var(--font-brand); font-weight: 400; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.08; }
.subtle { color: var(--text-subtle); }

/* Hero */
.hero { padding-block: 112px 88px; display: flex; flex-direction: column; gap: 24px; }
.hero__title { max-width: 12ch; font-size: clamp(48px, 7.4vw, 96px); line-height: 1.0; letter-spacing: -0.005em; text-wrap: balance; }
.hero__lead { max-width: 56ch; font-size: 19px; color: var(--text-subtle); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 24px 0; display: flex; flex-direction: column; gap: 8px; }
.fact__value { font-family: var(--font-brand); font-size: 44px; line-height: 1; }
.fact__label { font-size: 15px; color: var(--text-subtle); }

/* Über uns */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px 80px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.values { list-style: none; padding: 0; min-width: 0; }
.values li { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values strong { font-weight: 600; }
.values li > span { font-size: 16px; color: var(--text-subtle); }

/* Projekte */
.projects { display: flex; flex-direction: column; gap: 40px; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-large); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 32px; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.card__title { font-size: 40px; line-height: 1; }
.card__desc { max-width: 62ch; color: var(--text-subtle); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.features { list-style: none; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 32px; }
.features li { display: flex; align-items: center; gap: 8px; }
.features li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--signature); }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { padding-block: 48px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 24px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.site-footer__copy { width: 100%; font-size: 13px; color: var(--text-subtle); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { padding-block: 88px 112px; overflow-wrap: break-word; }
.legal .page-tag { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signature); margin-bottom: 16px; }
.legal h1 { font-family: var(--font-brand); font-weight: 400; font-size: clamp(32px, 5.6vw, 64px); line-height: 1.05; margin-bottom: 8px; }
.legal .subtitle { color: var(--text-subtle); font-size: 15px; margin-bottom: 48px; }
.legal .section { padding-block: 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal .section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal h2 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.legal h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal ul, .legal ol { color: var(--text-subtle); font-size: 16px; }
.legal p + p { margin-top: 8px; }
.legal p strong, .legal li strong { color: var(--text); font-weight: 600; }
.legal ul, .legal ol { padding-left: 1.25em; margin-block: 8px 16px; }
.legal li + li { margin-top: 4px; }
.legal .highlight { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 24px; color: var(--text-subtle); font-size: 16px; }
.legal .highlight strong { color: var(--text); }
.legal .toc { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 48px; }
.legal .toc-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.legal .toc a { color: var(--text-subtle); text-decoration: none; }
.legal .toc a:hover { color: var(--link); }
.legal .note { font-size: 14px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .section { padding-block: 72px; }
  .hero { padding-block: 56px 64px; }
  .hero__lead { font-size: 17px; }
  .hero__cta .az-btn { flex: 1 1 100%; }
  .nav-section { display: none; }
  .az-btn { min-block-size: 44px; }
  .site-header .az-btn { min-inline-size: 44px; }
  .facts { grid-template-columns: 1fr; }
  .fact { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 16px 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .fact__value { font-size: 32px; }
  .legal { padding-block: 56px 72px; }
}
