/* ProC Association – Grundlayout (Variante A: Weiß, Schwarz, Gold) */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink-soft: #3a3a38;
  --paper: #ffffff;
  --stone: #f5f4f0;
  --line: #dad9d4;
  --gold: #e0a615;        /* nur für Grafik und auf Schwarz */
  --gold-bright: #f0bc3a; /* Text auf Schwarz */
  --gold-text: #7a5800;   /* Text auf Weiß (Kontrast 6:1) */
  --on-ink-soft: #d6d6d2;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 16px;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, blockquote, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }
.section--ink :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-bright); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Typografie */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-text);
}
h1, h2, .display { font-family: var(--display); font-weight: 700; }
h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }
.c { color: var(--gold-text); }
.on-ink .c, .site-footer .c { color: var(--gold-bright); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { background: #2b2b29; border-color: #2b2b29; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.link-arrow { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; padding: 10px 0; text-underline-offset: 4px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 24px; text-decoration: none; white-space: nowrap; }
.brand span { font-weight: 500; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; padding: 12px 0; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer;
  border-radius: 8px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s, background-color .25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px; font-size: 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 20px; }
}

/* Einstieg */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .coin-scene { order: -1; }
}

/* 3D-Siegel */
.coin-scene {
  position: relative; display: flex; justify-content: center; align-items: center;
  perspective: 1400px; padding: 24px 0 64px; touch-action: pan-y;
}
.coin {
  --rx: 14deg; --ry: -24deg;
  position: relative; width: min(400px, 68vw); aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(-4deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.coin.is-tracking { transition: transform .08s linear; }
.coin-face, .coin-layer, .coin-back { position: absolute; inset: 0; border-radius: 50%; }
.coin-face { background: #fff; transform: translateZ(0.5px); overflow: hidden; }
.coin-face svg { width: 100%; height: 100%; }
.coin-face::after { /* Lichtreflex */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 62%);
  background-size: 250% 100%; background-position: var(--shine, 120%) 0; mix-blend-mode: screen; opacity: .9;
}
.coin-back { background: #111; transform: translateZ(-21px) rotateY(180deg); }
.coin-shadow {
  position: absolute; left: 50%; bottom: 8px; width: min(320px, 56vw); height: 36px;
  transform: translateX(-42%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(17,17,17,.28), rgba(17,17,17,0));
  filter: blur(6px);
}
/* Ohne JavaScript: Kante als gestapelter Schatten */
.coin:not(.is-3d) .coin-face {
  box-shadow: 1px 1px 0 #c9960f, 3px 3px 0 #bf8e0d, 5px 5px 0 #b5860b, 7px 7px 0 #ab7e09,
    9px 9px 0 #a17607, 11px 11px 0 #976e05, 13px 13px 0 #8d6603;
}
@media (prefers-reduced-motion: no-preference) {
  .coin.is-idle { animation: coin-float 7s ease-in-out infinite; }
}
@keyframes coin-float {
  0%, 100% { transform: rotateX(14deg) rotateY(-24deg) rotateZ(-4deg) translateY(0); }
  50% { transform: rotateX(10deg) rotateY(-14deg) rotateZ(-3deg) translateY(-10px); }
}

/* Leiste „Auf einen Blick“ */
.section--ink { background: var(--ink); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 48px; padding-block: 36px; }
.facts dt { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--gold-bright); }
.facts dd { margin: 0; font-size: 15px; color: var(--on-ink-soft); }
.facts div { display: flex; flex-direction: column; gap: 2px; }

/* Abschnitte */
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }

/* Kriterien */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 6px 0 var(--gold); }
.card .num { font-family: var(--display); font-weight: 700; color: var(--gold-text); }
.card p { font-size: 16px; color: var(--ink-soft); }
.todo { background: #fff3cd; color: #5c4400; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--ink); padding-top: 20px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }
.steps li:last-child { border-top-color: var(--gold); }
.steps li:last-child::before { color: var(--gold-text); }
.steps span { font-size: 16px; color: var(--ink-soft); }

/* Haltung */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.split > div { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.quote { width: 100%; padding: 28px 32px; border-radius: var(--radius); font-family: var(--display); font-size: clamp(20px, 2vw, 24px); line-height: 1.3; border: 2px solid var(--ink); }
.quote--ink { background: var(--ink); color: #fff; }

/* Verzeichnis */
#verzeichnis-liste { gap: 20px; }
.entry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.entry-top { font-size: 14px; }
.entry-top strong { color: var(--gold-text); }
.entry h3 { font-family: var(--display); font-size: 26px; line-height: 1.2; }

/* Textseiten (Impressum, Datenschutz) */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.prose h1 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 12px; }
.prose h2 { font-size: 24px; margin-top: 20px; }
.prose address { font-style: normal; }
.site-footer address a { color: #fff; text-underline-offset: 4px; }

/* Abschluss */
.closing { text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing p { color: var(--on-ink-soft); max-width: 34em; }
.btn--gold { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.btn--gold:hover { background: #ffd05a; border-color: #ffd05a; }

/* Fußzeile */
.site-footer { background: var(--ink); color: var(--on-ink-soft); border-top: 1px solid #2e2e2c; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-block: 48px; }
.site-footer .brand { color: #fff; font-size: 22px; }
.site-footer address { font-style: normal; display: flex; flex-direction: column; gap: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.site-footer nav a { color: #fff; padding: 12px 0; text-underline-offset: 4px; }

/* Unterseiten */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 24px; }
.page-hero h1 { max-width: 16em; font-size: clamp(38px, 4.8vw, 68px); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.more { margin-top: 32px; }
.prose p, .prose li { max-width: 40em; }
.split .prose { gap: 20px; }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.checklist { display: flex; flex-direction: column; width: 100%; }
.checklist li { position: relative; padding: 16px 0 16px 40px; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 16px; height: 9px;
  border-left: 3px solid var(--gold-text); border-bottom: 3px solid var(--gold-text); transform: rotate(-45deg);
}
.checklist strong { font-weight: 600; }
.split .checklist { align-self: stretch; }
.wording { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.wording li { padding: 14px 18px; background: var(--stone); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; font-style: italic; }
.prose h3 { font-family: var(--display); font-size: 22px; margin-top: 12px; }
.timeline { display: flex; flex-direction: column; width: 100%; border-left: 3px solid var(--ink); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 36px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.timeline strong { font-family: var(--display); font-size: 22px; }
.timeline span { color: var(--ink-soft); }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-grid h3 { font-size: clamp(18px, 1.6vw, 22px); overflow-wrap: anywhere; }
.entry .checked { font-size: 15px; }

/* Einblenden beim Scrollen */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
