:root {
  --black:       #080807;
  --black-soft:  #111110;
  --black-panel: #161614;
  --black-edge:  #1e1d1b;
  --text:        #f0ebe0;
  --text-muted:  #7a7265;
  --text-dim:    #4a4640;
  --gold:        #c9a84c;
  --gold-light:  #e8d07a;
  --gold-pale:   rgba(201, 168, 76, 0.12);
  --gold-line:   rgba(201, 168, 76, 0.22);
  --line:        rgba(240, 235, 224, 0.07);
  --font-display: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --font-sans:    "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --container:   74rem;
  --narrow:      42rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  background: var(--black);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin: 0 auto;
}

.narrow {
  max-width: var(--narrow);
}

/* ── Shell ─────────────────────────────────────── */

.site-shell {
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.25rem 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-home {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 180ms ease;
}

.header-home:hover {
  color: var(--gold);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition:
    color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.language-switch:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ── Hero ─────────────────────────────────────── */

.hero {
  min-height: calc(72vh - 4.5rem);
  padding: 0;
}

.hero-container {
  min-height: inherit;
}

.hero-stage {
  position: relative;
  min-height: inherit;
  background: var(--black);
  overflow: hidden;
}

.hero-stage::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12%;
  background: linear-gradient(to bottom, transparent, var(--black));
  z-index: 2;
  pointer-events: none;
}

.hero-logo-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("/static/img/bivholding-gold.png");
  background-repeat: no-repeat;
  background-position: center 60%;
  background-size: 80%;
  mix-blend-mode: screen;
  filter: brightness(0.80);
  -webkit-mask-image: radial-gradient(ellipse 88% 80% at 50% 48%,
    black 28%,
    rgba(0,0,0,0.85) 50%,
    rgba(0,0,0,0.35) 70%,
    transparent 86%);
  mask-image: radial-gradient(ellipse 88% 80% at 50% 48%,
    black 28%,
    rgba(0,0,0,0.85) 50%,
    rgba(0,0,0,0.35) 70%,
    transparent 86%);
}

.hero-claim {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

/* ── Sections ─────────────────────────────────── */

.section,
.page-hero {
  padding: 0 0 5rem;
}

.statement-section {
  padding-top: 6rem;
}

.statement-inner {
  max-width: 52rem;
  margin: 0 auto;
  position: relative;
  padding-top: 0;
  text-align: center;
}

.statement-inner::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 2rem;
}

/* ── Typography ──────────────────────────────── */

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.statement-section h2,
.page-hero h1,
.imprint-shell h2,
.content-card h2,
.content-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.statement-section h2,
.page-hero h1,
.imprint-shell h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.04;
  text-wrap: balance;
  color: var(--text);
}

.lead {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 1rem;
}

.statement-text,
.imprint-intro {
  max-width: 36rem;
}

/* ── Pillars ─────────────────────────────────── */

.pillars-section {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.pillars-section .eyebrow {
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pillar-item {
  padding: 2.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--black-panel);
  transition: border-color 250ms ease;
}

.pillar-item:hover {
  border-color: rgba(201, 168, 76, 0.18);
}

.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.65;
  line-height: 1;
}

.pillar-item h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.pillar-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}

/* dritte Säule — philosophisch */
.pillar-item--accent {
  border-color: var(--gold-line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.07) 0%, transparent 60%),
    var(--black-panel);
}

.pillar-item--accent .pillar-num {
  opacity: 1;
  color: var(--gold-light);
}

.pillar-item--accent h3 {
  color: var(--gold-light);
}

/* ── Imprint ─────────────────────────────────── */

.imprint-section {
  border-top: 1px solid var(--line);
  padding-top: 4rem;
}

.imprint-shell {
  padding: 0;
}

.imprint-list,
.content-grid {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

.content-card h2,
.content-card h3,
.imprint-item h3 {
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.content-card p,
.imprint-item p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.imprint-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.imprint-item:last-child {
  border-bottom: 1px solid var(--line);
}

/* ── Inline panel switch ─────────────────────── */

#impressum-panel {
  display: none;
  padding: 4rem 0 6rem;
  text-align: center;
}

#impressum-panel:target {
  display: block;
}

body:has(#impressum-panel:target) #main-panel {
  display: none;
}

.narrow-centered {
  max-width: 42rem;
  margin: 0 auto;
}

.inline-back {
  display: inline-flex;
  margin-bottom: 3rem;
}

/* ── Legal page ───────────────────────────────── */

.legal-page {
  padding: 3rem 0 6rem;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  line-height: 1.1;
}

.legal-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 180ms ease;
}

.back-link:hover {
  color: var(--gold);
}

/* ── Imprint page ─────────────────────────────── */

.imprint-page-section {
  padding-top: 0;
}

.imprint-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  text-align: left;
  margin-top: 2rem;
}

.imprint-page-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.imprint-page-item:nth-child(odd) {
  padding-right: 2rem;
}

.imprint-page-item:nth-child(even) {
  text-align: right;
}

.imprint-page-item:nth-last-child(-n+2) {
  border-bottom: 1px solid var(--line);
}

.imprint-page-item h3 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.imprint-page-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Button ──────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-light);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.button:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ── Footer ──────────────────────────────────── */

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.footer-imprint-link {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.footer-imprint-link:hover {
  color: var(--text-muted);
}

/* ── Responsive ──────────────────────────────── */

@media (min-width: 52rem) {
  .imprint-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4rem;
  }
}

@media (min-width: 52rem) and (max-width: 71.99rem) {
  .pillars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .pillar-item {
    padding: 1.5rem 1.75rem 1.5rem 1.75rem;
  }

  .pillar-item:first-child {
    padding-left: 0;
  }
}

@media (max-width: 51.99rem) {
  .hero {
    min-height: calc(100svh - 4rem);
  }

  .hero-stage {
    padding: 3.5rem 1.25rem 4rem;
    border-radius: 1.5rem;
  }

  .hero-stage::before {
    top: 1.25rem;
    left: 1.25rem;
  }

  .hero-stage::after {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .section,
  .page-hero {
    padding-bottom: 4rem;
  }

  .statement-section {
    padding-top: 4rem;
  }

  .pillars-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.75rem;
  }

  .pillar-item {
    padding: 2rem 1.5rem;
  }
}
