/* reiserpartner — shared styles: fonts, tokens, base, header, footer, legal pages.
   Linked from every page as /assets/site.css?v=1. nginx caches CSS for 1 day,
   so bump ?v= on ALL pages whenever this file changes. Page-specific CSS stays inline. */

/* Clan Pro Narrow — reiserpartner brand typeface (self-hosted) */
@font-face {
  font-family: 'Clan Narrow';
  src: url('/assets/fonts/5476852/06b5ad61-757c-4e02-8130-27b64c7114ec.woff2') format('woff2'),
       url('/assets/fonts/5476852/c0697af6-9573-4a24-bf5b-ce454b86c872.woff') format('woff');
  font-weight: 200 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clan Narrow';
  src: url('/assets/fonts/5477009/594979db-53e7-4c57-9c7b-92679df6a0cc.woff2') format('woff2'),
       url('/assets/fonts/5477009/d1210108-735a-4da5-8eea-d931464e3842.woff') format('woff');
  font-weight: 400 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clan Narrow';
  src: url('/assets/fonts/5477023/1a9cf0ae-2575-4c77-9aa4-27882906726c.woff2') format('woff2'),
       url('/assets/fonts/5477023/c6b2b95f-ef17-4b4d-95be-265d3fd1d24b.woff') format('woff');
  font-weight: 600 700; font-style: normal; font-display: swap;
}

/* Light-page tokens. Case-study pages override some of them (--line, --muted …) inline,
   so header/footer rules below use literal colours instead of those tokens. */
:root {
  --paper: #f4f2ee;
  --paper-2: #efece6;
  --ink: #141414;
  --ink-2: #2a2825;
  --muted: #55524e;
  --muted-2: #6b6863;
  --faint: #8a8781;
  --line: #d8d5d0;
  --red: #d2232a;
  --red-dark: #9e1a1f;
  --coral: #ff5a5f;
  --night: #0d0d0c;
  --night-line: rgba(246,244,240,0.14);
  --cream: #f6f4f0;
  --mono: 'Clan Narrow', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Clan Narrow', 'Arial Narrow', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
::selection { background: var(--red); color: #fff; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* Anchor targets clear the fixed header (also when arriving from another page via /#id) */
[id] { scroll-margin-top: 72px; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(20px, 5vw, 72px); border-bottom: 1px solid transparent; transition: background-color 0.35s, border-color 0.35s; }
.site-header .brand { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; color: #141414; }
.site-header .brand .r { color: var(--red); }
.site-header .brand .p { font-weight: 400; color: #141414; transition: color 0.35s; }
.site-header .hnav { display: flex; align-items: baseline; gap: 26px; }
.site-header .hnav a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: #55524e; transition: color 0.3s; }
.site-header .hnav a:hover,
.site-header .hnav a[aria-current="page"] { color: var(--red) !important; }
/* Static light bar (legal pages, 404) */
.site-header--solid { background: color-mix(in srgb, #f4f2ee 88%, transparent); border-bottom-color: #d8d5d0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* On dark heroes (case studies) */
.site-header--dark .brand,
.site-header--dark .brand .p { color: #f6f4f0; }
.site-header--dark .brand { text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
.site-header--dark .brand:hover .p { color: var(--coral); }
.site-header--dark .hnav a { color: rgba(246,244,240,0.72); text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
.site-header--dark .hnav a:hover { color: var(--coral) !important; }
@media (max-width: 760px) { .site-header .hnav a:not(.nav-kontakt) { display: none; } }
@media (max-width: 420px) {
  .site-header .brand { font-size: 19px; }
  .site-header .hnav a { font-size: 10.5px; letter-spacing: 0.1em; }
}

/* ---------- Footer (dark on every page) ---------- */
.site-footer { position: relative; background: #0d0d0c; color: #f6f4f0; border-top: 1px solid rgba(246,244,240,0.14); padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px) clamp(26px, 4vw, 44px); overflow: hidden; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 5vw, 90px); }
.site-footer .footer-label,
.site-footer .footer-index-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246,244,240,0.5); }
.site-footer .footer-index-label { margin-bottom: 18px; }
.site-footer .footer-mail { display: inline-flex; align-items: baseline; gap: 14px; margin-top: 18px; font-size: clamp(24px, 3.4vw, 52px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; color: #f6f4f0; overflow-wrap: anywhere; transition: color 0.35s; }
.site-footer .footer-mail .arrow { color: var(--red); font-weight: 400; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.site-footer .footer-mail:hover { color: var(--coral); }
@media (hover: hover) { .site-footer .footer-mail:hover .arrow { transform: translate(8px, -8px); } }
.site-footer .footer-contact { margin-top: clamp(22px, 2.6vw, 32px); display: grid; grid-template-columns: repeat(2, max-content); gap: 18px clamp(28px, 4vw, 64px); font-style: normal; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; color: rgba(246,244,240,0.72); }
.site-footer .footer-contact a { color: rgba(246,244,240,0.9); transition: color 0.3s; }
.site-footer .footer-contact a:hover { color: var(--coral); }
.site-footer .footer-social { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer .footer-social a { color: rgba(246,244,240,0.65); transition: color 0.3s; }
.site-footer .footer-social a:hover { color: var(--coral); }
.site-footer .footer-index ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.site-footer .footer-index a { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(246,244,240,0.14); font-size: clamp(16px, 1.5vw, 18px); font-weight: 600; color: rgba(246,244,240,0.82); text-transform: uppercase; letter-spacing: -0.005em; transition: color 0.3s, padding-left 0.3s; }
.site-footer .footer-index a:hover { color: var(--coral); padding-left: 8px; }
.site-footer .footer-index a span { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--red); letter-spacing: 0.05em; }
.site-footer .footer-rule { height: 1px; background: rgba(246,244,240,0.14); margin-top: clamp(48px, 7vw, 90px); }
.site-footer .footer-bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-top: 20px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246,244,240,0.55); }
.site-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer .footer-bottom a { color: rgba(246,244,240,0.65); transition: color 0.3s; }
.site-footer .footer-bottom a:hover { color: var(--coral); }
@media (max-width: 720px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-contact { grid-template-columns: 1fr; }
}

/* ---------- Legal / info pages (Kontakt, Impressum, Datenschutz, AGB) ---------- */
body.legal-page { background: var(--paper); color: var(--ink); }
.legal { max-width: 820px; margin: 0 auto; padding: clamp(120px, 16vh, 190px) clamp(20px, 5vw, 40px) clamp(60px, 8vw, 100px); }
.legal .eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.legal .eyebrow .rule { width: 34px; height: 1px; background: var(--red); }
.legal h1 { margin: clamp(20px, 3vw, 34px) 0 clamp(28px, 4vw, 48px); font-size: clamp(34px, 6vw, 68px); line-height: 1.0; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.legal h1 .red { color: var(--red); }
.legal .legal-intro { max-width: 620px; margin: 0 0 clamp(28px, 4vw, 48px); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.62; color: var(--muted); }
.legal section { border-top: 1px solid var(--line); padding: clamp(26px, 3.4vw, 40px) 0; display: grid; grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr); gap: clamp(10px, 3vw, 48px); }
.legal section:last-of-type { border-bottom: 1px solid var(--line); }
.legal h2 { overflow-wrap: anywhere; font-family: var(--mono); font-size: clamp(13px, 1.2vw, 15px); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.legal .body { display: flex; flex-direction: column; gap: 14px; font-size: clamp(15px, 1.25vw, 16.5px); line-height: 1.66; color: var(--muted-2); -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 6 3 3; overflow-wrap: break-word; }
.legal .body strong { color: var(--ink-2); font-weight: 600; }
.legal .body ul { margin: 4px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.legal .body .note { font-size: 14px; color: var(--muted-2); }
@media (max-width: 720px) { .legal section { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
