/* wucherpfennig.org
   Portiert aus dem Design-Handoff. Werte (Farben, Typografie, Abstaende) 1:1 aus dem Prototyp. */

:root {
  --bg: #050505;
  --paper: #EDE8DB;
  --read: #b9b4a8;
  --sec: #8a8a80;
  --ter: #4a4a42;
  --line: #232320;
  --line-soft: #1a1a17;
  --flaeche: #0b0b09;
  --heat: #00f9fb; /* Fallback ohne Live-Daten: kalt */
  --mono: 'IBM Plex Mono', Menlo, monospace;
  --display: 'Philipp Restless', 'Arial Narrow', sans-serif;
  --pad-x: clamp(18px, 2.5vw, 36px);
}

@font-face {
  font-family: 'Philipp Restless';
  src: url('../assets/philipp-restless.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); }

body {
  color: var(--paper);
  font-family: var(--mono);
}

@keyframes pwBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

.sq { animation: pwBlink 1.4s steps(1) infinite; }

.app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* ---------- Kopfzeile ---------- */

.topbar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  background: var(--bg);
}

.topbar__tab {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  color: var(--sec);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.topbar__tab.is-active { color: var(--paper); }

.topbar__tab:hover {
  background: var(--heat);
  color: var(--bg);
}

.topbar__spacer { flex: 1; }

.topbar__status {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-left: 1px solid var(--line);
  color: var(--heat);
  flex-shrink: 0;
}

.topbar__lang {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-left: 1px solid var(--line);
  color: var(--ter);
  flex-shrink: 0;
}

/* ---------- Seitenstapel / Blattwechsel ---------- */

.stack {
  flex: 1;
  position: relative;
  min-height: 0;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: var(--bg);
  display: none;
}

.page.is-current { display: block; z-index: 1; }

.page.is-incoming,
.page.is-leaving {
  display: block;
  z-index: 3;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.1, 1);
}

.page.is-incoming { transform: translateY(100%); }
.page.is-incoming.is-slid { transform: translateY(0); }

.page.is-leaving { transform: translateY(0); }
.page.is-leaving.is-slid { transform: translateY(100%); }

.page-inner {
  min-height: calc(100dvh - 42px);
  display: flex;
  flex-direction: column;
}

/* ---------- Bausteine ---------- */

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0 18px;
  width: 64px;
}

.rule--flat { margin: 0; }
.rule--bottom { margin: 8px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  background: none;
}

.btn--primary {
  border: 2px solid var(--paper);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--heat);
  border-color: var(--heat);
  color: var(--bg);
}

.btn--ghost {
  border: 2px solid var(--line);
  color: var(--sec);
}

.btn--ghost:hover {
  border-color: var(--heat);
  color: var(--heat);
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.placard {
  position: absolute;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(5, 5, 5, .72);
  border: 1px solid rgba(237, 232, 219, .3);
  padding: 5px 9px;
}

.placard--left { left: 14px; bottom: 12px; }
.placard--right { right: 14px; bottom: 12px; }

.text-link {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sec);
  cursor: pointer;
  text-decoration: none;
}

.text-link:hover { color: var(--heat); }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px var(--pad-x);
}

.sec-head span {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ter);
}

.sec-intro { padding: 0 var(--pad-x) clamp(16px, 2vw, 28px); }

.sec-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.98;
  color: var(--heat);
}

.sec-sub {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100dvh - 42px);
  display: grid;
  grid-template-columns: minmax(400px, 38%) 1fr;
  background: var(--bg);
}

.hero__text {
  order: 1;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 40px) var(--pad-x) clamp(18px, 2vw, 26px);
}

.hero__topline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ter);
}

.sq--hero { color: var(--heat); font-size: 7px; }

.hero__block { margin-top: auto; padding-top: 28px; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 2.1;
}

.hero__title {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 84px);
  line-height: 1.04;
  color: var(--heat);
  text-wrap: balance;
}

.hero__copy {
  margin: 0 0 22px;
  font-size: clamp(13.5px, 1.05vw, 16px);
  line-height: 1.65;
  color: var(--sec);
  max-width: 44ch;
  text-wrap: pretty;
}

.hero__img {
  order: 2;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.hero__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 20%;
}

#hero-blick { opacity: 0; transition: opacity 0.18s ease; }
#hero-blinzeln { opacity: 0; }

/* ---------- Dienste ---------- */

.dienst-grid {
  padding: clamp(8px, 1.5vw, 20px) var(--pad-x) clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.karte {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.karte:hover { border-color: var(--heat); }

.karte__bild {
  position: relative;
  overflow: hidden;
  height: clamp(200px, 26vh, 320px);
}

.karte__bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.karte__inhalt {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  border-top: 1px solid var(--line);
}

.karte__kopf {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.karte__nr { font-size: 10px; color: var(--ter); }

.karte__rolle {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sec);
}

.karte__titel {
  font-family: var(--display);
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.04;
  color: var(--heat);
  text-wrap: balance;
}

.karte__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--sec);
  text-wrap: pretty;
}

.karte__unterzeile {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ter);
}

.karte__mehr {
  margin-top: auto;
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--heat);
  border-bottom: 1px solid var(--heat);
  padding-bottom: 2px;
}

/* ---------- Schriften ---------- */

.schriften-hero {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(420px, 72vh, 780px);
  cursor: pointer;
  text-decoration: none;
}

.schriften-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.schriften-hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 40%;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.55) 100%);
  pointer-events: none;
}

.schriften-hero__caption {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(22px, 3vw, 40px);
  border-left: 2px solid var(--heat);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schriften-hero__meta {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sec);
}

.schriften-hero__titel {
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--paper);
  max-width: 40ch;
}

.schriften-hero__cta {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--heat);
  border-bottom: 1px solid var(--heat);
  padding-bottom: 3px;
}

.art-grid {
  padding: clamp(20px, 2.5vw, 32px) var(--pad-x) clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.art-karte {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.art-karte:hover { border-color: var(--heat); }

.art-karte__bild {
  position: relative;
  overflow: hidden;
  height: clamp(150px, 20vh, 220px);
}

.art-karte__bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-karte__inhalt {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.art-karte__meta {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ter);
}

.art-karte__titel {
  font-size: 13px;
  line-height: 1.55;
  color: var(--paper);
}

/* ---------- Vita ---------- */

.vita { padding: 0 var(--pad-x) clamp(24px, 3vw, 40px); }

.vita__grid {
  max-width: 900px;
  display: grid;
  grid-template-columns: 84px 20px 1fr;
  gap: 0 clamp(14px, 2vw, 24px);
  font-size: 12.5px;
  line-height: 1.5;
}

.v-jahr {
  padding: 12px 0;
  color: var(--ter);
  text-align: right;
  white-space: nowrap;
}

.v-jahr.v-jetzt { color: var(--heat); }

.v-spur {
  position: relative;
  display: flex;
  justify-content: center;
}

.v-spur .linie {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.v-spur.v-first .linie { top: 17px; }
.v-spur.v-last .linie { bottom: calc(100% - 17px); }
.v-spur.hot-linie .linie { background: var(--heat); }

.v-spur .punkt {
  position: relative;
  width: 7px;
  height: 7px;
  background: var(--sec);
  margin-top: 17px;
}

.v-spur.hot-punkt .punkt { background: var(--heat); }
.v-spur.v-blink .punkt { animation: pwBlink 1.4s steps(1) infinite; }

.v-text {
  padding: 12px 0;
  color: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.v-text.v-jetzt-text { color: var(--heat); }

.mr-link {
  cursor: pointer;
  border-bottom: 1px solid var(--heat);
  padding-bottom: 1px;
}

/* ---------- Audienz ---------- */

.audienz {
  padding: 0 var(--pad-x) clamp(34px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.audienz__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-end;
}

.audienz__titel {
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1;
  color: var(--heat);
}

.audienz__copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--sec);
  max-width: 52ch;
  text-wrap: pretty;
}

.bild-karte {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.bild-karte__bild {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 34vh, 380px);
}

.bild-karte__bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.bild-karte__caption {
  padding: 8px 20px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ter);
}

/* ---------- Fusszeile ---------- */

.footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
  border-top: 1px solid var(--line);
  padding: 9px 16px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ter);
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--heat);
}

.footer__status .sq { font-size: 8px; }

/* ---------- Detailseiten: Bildband ---------- */

.band {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.band--dienst { height: clamp(280px, 52vh, 620px); }
.band--artikel { height: clamp(240px, 42vh, 460px); }

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band--dienst img { object-position: center 30%; }

.band__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 45%;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.6) 100%);
  pointer-events: none;
}

.placard-btn {
  position: absolute;
  left: var(--pad-x);
  top: clamp(16px, 2vw, 28px);
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(5, 5, 5, .72);
  border: 1px solid rgba(237, 232, 219, .3);
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  z-index: 2;
}

.placard-btn:hover {
  background: var(--heat);
  color: var(--bg);
  border-color: var(--heat);
}

.band__caption {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(20px, 2.5vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.band__rubrik {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sec);
}

.band__titel {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 84px);
  line-height: 1;
  color: var(--heat);
}

.platzhalter {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--flaeche);
  color: var(--ter);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Dienst-Detail: Inhalt ---------- */

.detail-body {
  border-top: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px) var(--pad-x) clamp(34px, 4vw, 56px);
}

.detail-col {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
}

.detail-intro {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.7;
  color: var(--read);
  max-width: 62ch;
  text-wrap: pretty;
}

.leistungen {
  display: flex;
  flex-direction: column;
}

.leistung {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.leistung__nr { font-size: 10px; color: var(--ter); }

.leistung__inhalt {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leistung__name {
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.leistung__text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--sec);
  max-width: 66ch;
  text-wrap: pretty;
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

/* ---------- Artikelseite ---------- */

.art-body {
  border-top: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px) var(--pad-x) clamp(34px, 4vw, 56px);
}

.art-col {
  max-width: 72ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.art-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.art-meta__rubrik {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sec);
}

.art-meta__datum {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ter);
}

.art-titel {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.06;
  color: var(--heat);
  text-transform: uppercase;
  text-wrap: balance;
}

.art-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--read);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.art-text p {
  margin: 0;
  text-wrap: pretty;
}

.art-zwischen {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--heat);
  margin-top: 10px;
}

.art-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.weitere {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.weitere__head {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ter);
  padding-bottom: 6px;
}

.weitere__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  cursor: pointer;
  text-decoration: none;
}

.weitere__titel {
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper);
}

.weitere__meta {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ter);
  white-space: nowrap;
}

.weitere__row:hover .weitere__titel,
.weitere__row:hover .weitere__meta { color: var(--heat); }

/* ---------- Responsive (Breakpoint 760px) ---------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero__text { order: 2; border-right: none; }
  .hero__img { order: 1; min-height: 46dvh; }
  .dienst-grid { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .audienz { grid-template-columns: 1fr; }
  .vita__grid { grid-template-columns: 64px 16px 1fr; }
}
