:root {
  --bg: #1a1a1a;
  --bg-raised: #212020;
  --bg-sunken: #151414;
  --text: #f5f0e8;
  --text-muted: #b8b0a4;
  --text-faint: #8a8378;
  --amber: #c8a06a;
  --amber-bright: #ddb87f;
  --gold: #e6c99b;
  --line: #332f2b;
  --line-strong: #4a443d;
  --measure: 68ch;
  --pad-page: 2rem;
  --wrap: 1120px;
  --font: "Inter", "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-logo: "Arial Nova Cond", "Arial Nova Condensed", "Arial Narrow", Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--amber-bright); text-decoration: none; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-page);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; display: block; }
.brand-word {
  font-family: var(--font-logo);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
}

/* ---------- Sektionen ---------- */

section { padding: 7rem 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.75rem;
}

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; margin-bottom: 0.875rem; }

p { margin: 0 0 1.5rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.65;
  color: var(--text);
}

.muted { color: var(--text-muted); }

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

.hero {
  position: relative;
  padding: clamp(6rem, 14vh, 10rem) 0 clamp(6rem, 12vh, 9rem);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 85% at 50% 40%,
    rgba(230, 201, 155, 0.34) 0%,
    rgba(230, 201, 155, 0.14) 45%,
    rgba(230, 201, 155, 0.04) 70%,
    transparent 88%
  );
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

body.licht-an .hero::before { opacity: 1; }

.hero .wrap { position: relative; }

.hero-logo {
  display: flex;
  align-items: center;
  gap: 1.375rem;
  margin-bottom: 2.5rem;
}
.hero-logo-mark {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}
.hero-logo-word {
  font-family: var(--font-logo);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--gold);
}

.tagline {
  font-size: clamp(0.8125rem, 1.4vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 2.25rem;
}

.hero h1 { max-width: 22ch; margin-bottom: 2rem; }
.hero .lead { max-width: 58ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9375rem 2rem;
  border: 1px solid var(--amber);
  color: var(--amber-bright);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn:hover {
  background: var(--amber);
  color: var(--bg);
}
.btn-plain {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-plain:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

/* ---------- Raster ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.section-head { max-width: var(--measure); margin-bottom: 4.5rem; }

/* ---------- Karten ---------- */

.card {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.75rem;
}
.card .num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 1.25rem;
}
.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Dreh-Kacheln ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 2rem;
  perspective: 1800px;
}

.tile {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.tiles.has-open .tile:not(.flipped) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tile-inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.25, 0.7, 0.3, 1);
  min-height: 400px;
}

.tile.flipped .tile-inner { transform: rotateY(180deg); }

.tile-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-sunken);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}

.tile-front { justify-content: space-between; }
.tile:hover .tile-face { border-color: var(--amber); }

.tile-front .tile-word {
  font-size: 2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 1.5rem;
}

.tile-front .tile-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.tile-hint {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-bright);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  width: 100%;
}
.tile-hint svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.tile:hover .tile-hint svg { transform: translateX(4px); }

.tile-back {
  position: relative;
  transform: rotateY(180deg);
  background: #2b2721;
  border-color: #55503f;
}

.tile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--amber-bright);
  transition: border-color 0.2s ease;
}
.tile:hover .tile-close { border-color: var(--amber); }

.tile-back .tile-topic {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.25rem;
}

.tile-back p {
  font-size: 0.9375rem;
  color: #d3cbbe;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.tile-front .tile-word,
.tile-front .tile-sub { display: block; }

.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;
}

.tile-aside {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% + 2rem);
  width: 100%;
  background: #2b2721;
  border: 1px solid #55503f;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.tile.flipped .tile-aside {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.4s;
}
.tile:last-child .tile-aside {
  left: auto;
  right: calc(100% + 2rem);
}
.tile-person-quote {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.tile-person-name,
.tile-person-link {
  display: block;
  align-self: flex-start;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.tile-person-name { margin: 0 0 0.5rem; }
.tile-person-name:hover,
.tile-person-link:hover { color: var(--text); }

/* ---------- Leistungsblöcke ---------- */

.phase {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}
.phase:first-of-type { border-top: 0; padding-top: 0; }
.phase-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 0.5rem;
}
.phase h3 { font-size: 1.5rem; }

.list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  max-width: var(--measure);
}
.list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 1px;
  background: var(--amber);
}

/* ---------- Platzhalterflächen ---------- */

.placeholder {
  position: relative;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 1px;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 13px,
    rgba(200, 160, 106, 0.05) 13px 14px
  );
}
.placeholder span {
  position: relative;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Personen ---------- */

.person {
  position: relative;
  display: block;
  scroll-margin-top: 110px;
  border: 1px solid var(--line-strong);
  background: var(--bg-sunken);
  padding: 2.25rem 2rem;
}

.grid-2.solo { grid-template-columns: 1fr; }
.grid-2.solo .person:not(.aktiv) { display: none; }
.grid-2.solo .person.aktiv {
  max-width: 800px;
  background: #211e1b;
  border-color: #55503f;
}

.person-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--amber-bright);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.person-close:hover { border-color: var(--amber); }
.grid-2.solo .person.aktiv .person-close { display: flex; }
.person-head {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.person-head .role { margin-bottom: 0; }
.person-photo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.grid-2.solo .person.aktiv .person-photo { width: 280px; }
@media (max-width: 520px) {
  .person-head { flex-direction: column; align-items: flex-start; }
}
.person h3 { margin-bottom: 0.375rem; }
.person .role {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.5rem;
}
.person p { font-size: 0.9375rem; color: var(--text-muted); }

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
}

.contact-block { margin-bottom: 3rem; }
.contact-block:last-child { margin-bottom: 0; }
.contact-block h3 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.contact-block p { font-size: 0.9375rem; margin-bottom: 0; }

.field { margin-bottom: 1.75rem; }
.field label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-sunken);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.875rem 1rem;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--amber);
  outline: none;
}
.field textarea { resize: vertical; min-height: 160px; }

.form-note {
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.65;
  margin-top: 1.5rem;
}

/* ---------- Rechtstexte ---------- */

.legal { padding: 5rem 0 7rem; }
.legal-body { max-width: 74ch; }
.legal-body h2 {
  font-size: 1.375rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-of-type { margin-top: 2rem; }
.legal-body h3 { font-size: 1.0625rem; margin-top: 2rem; }
.legal-body p,
.legal-body li { font-size: 0.9375rem; color: var(--text-muted); }
.legal-body ul,
.legal-body ol { padding-left: 1.25rem; max-width: var(--measure); }
.legal-body ol li::marker { color: var(--amber); }
.legal-body li { margin-bottom: 0.5rem; }

.ph {
  color: var(--amber-bright);
  background: rgba(200, 160, 106, 0.09);
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.notice {
  border: 1px solid var(--amber);
  background: rgba(200, 160, 106, 0.07);
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
  max-width: 74ch;
}
.notice p {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0;
  max-width: none;
}
.notice strong {
  font-weight: 500;
  color: var(--amber-bright);
  letter-spacing: 0.06em;
}

/* ---------- Fußzeile ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 3rem;
  background: var(--bg-sunken);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 3.5rem;
}
.footer-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0.875rem 0 0 3rem;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin: 0;
}

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
  :root { --pad-page: 1.5rem; }
  section { padding: 4.5rem 0; }
  .hero { padding: 4rem 0 4.5rem; }
  .hero-logo { gap: 1rem; margin-bottom: 2rem; }
  .hero-logo-mark { width: 58px; height: 58px; }
  .grid-2, .grid-4, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .tiles { grid-template-columns: 1fr; gap: 1.5rem; }
  .tile-inner { min-height: 320px; }
  .tiles.has-open .tile:not(.flipped) { display: none; }
  .tile-aside {
    position: static;
    margin-top: 1rem;
    transform: none;
  }
  .phase {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2.75rem 0;
  }
  .phase-label { padding-top: 0; }
  .section-head { margin-bottom: 3rem; }
  .footer-tag { margin-left: 0; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad-page) 1.5rem;
  }
  .nav.open { display: flex; }
  .nav a {
    width: 100%;
    padding: 0.875rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--amber); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
