:root {
  color-scheme: dark;
  --bg: #141414;
  --surface: #1d1d1d;
  --surface-light: #272522;
  --text: #f6f2eb;
  --muted: #beb8ae;
  --line: rgba(255, 255, 255, 0.14);
  --orange: #f28a24;
  --orange-light: #ffb15f;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(calc(100% - 3rem), var(--max-width));
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--orange);
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand strong {
  color: #fff;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--orange-light);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #111 url("../img/abendtreff-aussen.webp") center 45% / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.55) 48%, rgba(8, 8, 8, 0.15) 75%),
    linear-gradient(0deg, rgba(8, 8, 8, 0.82) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
  padding: 10.5rem 0 6rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--orange-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(3.8rem, 10vw, 7.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-claim {
  margin: 0.85rem 0 1rem;
  color: var(--orange-light);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: #17120d;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: transparent;
  color: var(--orange-light);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--orange-light);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.vision-label {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.section {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-copy {
  align-self: end;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-copy p:last-child,
.vision-copy p:last-child,
.running-content > p:last-of-type {
  margin-bottom: 0;
}

.journal {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.post-card-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  color: #9d978e;
  font-size: 0.8rem;
}

.post-card-category {
  color: var(--orange-light);
  font-weight: 750;
}

.post-card h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.15;
}

.post-card p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.post-card .text-link {
  margin-top: auto;
}

.post-card-featured {
  grid-column: span 2;
  background: var(--surface-light);
}

.section-action {
  margin-top: 2rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.page-header {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
  padding: 10rem 0 clamp(4rem, 8vw, 7rem);
}

.page-header h1 {
  max-width: 920px;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.page-header > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.subpage .site-header {
  position: relative;
}

.subpage .page-header {
  padding-top: clamp(5rem, 10vw, 8rem);
}

.post-archive {
  padding-top: 0;
}

.post-detail {
  width: min(calc(100% - 3rem), 780px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.post-detail h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
}

.post-lead {
  margin-bottom: 2.5rem;
  color: var(--orange-light);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 650;
}

.post-body {
  color: var(--muted);
  font-size: 1.08rem;
}

.post-body p {
  margin-bottom: 1.4rem;
}

.post-section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 3rem 0 1.1rem;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.post-section-title::before {
  width: 2.5rem;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
  flex: 0 0 auto;
}

.post-body .post-section-title:first-child {
  margin-top: 0;
}

.media-list {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.media-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-light);
}

.media-card strong,
.media-card span {
  display: block;
}

.media-card span {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}

.media-consent {
  width: 100%;
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 2rem;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: center;
}

.media-consent:hover,
.media-consent:focus-visible {
  color: var(--orange-light);
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
}

.back-link {
  margin-bottom: 2rem;
}

.vision {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

.vision-image {
  margin: 0;
}

.vision-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.vision-image figcaption {
  margin-top: 0.75rem;
  color: #8f8a82;
  font-size: 0.78rem;
}

.vision-copy p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.running {
  display: grid;
  grid-template-columns: 140px minmax(0, 620px) minmax(200px, 240px);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-light);
  padding-inline: clamp(1.5rem, 6vw, 5rem);
}

.running-mark {
  color: var(--orange);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.85;
}

.running-content h2 {
  margin-bottom: 0.45rem;
}

.running-lead {
  margin-bottom: 1.15rem;
  color: var(--orange-light);
  font-size: 1.25rem;
  font-weight: 750;
}

.running-content > p:last-of-type {
  max-width: 650px;
  color: var(--muted);
}

.project-status {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.65rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.project-status span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0.35rem rgba(242, 138, 36, 0.15);
}

.project-status small {
  justify-self: end;
  color: #9d978e;
}

.running-preview {
  width: min(100%, 240px);
  margin: 0;
  justify-self: end;
}

.running-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}

.running-preview figcaption {
  margin-top: 0.65rem;
  color: #9d978e;
  font-size: 0.78rem;
}

.closing {
  text-align: center;
}

.closing h2 {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.closing p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.brand-small {
  font-size: 1rem;
}

footer p {
  margin: 0;
  color: #8f8a82;
  font-size: 0.82rem;
}

.footer-meta {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
  text-align: right;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a,
.legal-content a {
  color: var(--orange-light);
  text-underline-offset: 0.2rem;
}

.legal-header {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.legal-content {
  width: min(calc(100% - 3rem), 820px);
  margin: 0 auto;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: var(--muted);
  font-style: normal;
}

.legal-content li + li {
  margin-top: 0.45rem;
}

.legal-note {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-light);
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.legal-updated {
  color: #8f8a82;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .site-header {
    width: min(calc(100% - 2rem), var(--max-width));
    height: 72px;
  }

  nav {
    gap: 1rem;
  }

  nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 88vh;
    background-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.6) 62%, rgba(8, 8, 8, 0.36) 100%);
  }

  .hero-content,
  .section,
  footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .hero-content {
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14.2vw, 4.25rem);
  }

  .vision-label {
    display: none;
  }

  .intro,
  .vision,
  .running,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card-featured {
    grid-column: auto;
  }

  .running {
    width: 100%;
    border-radius: 0;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .running-mark {
    font-size: 5rem;
  }

  .running-preview {
    width: min(65vw, 240px);
    justify-self: center;
  }

  .project-status {
    grid-template-columns: auto 1fr;
  }

  .project-status small {
    grid-column: 2;
    justify-self: start;
  }

  .legal-content {
    width: min(calc(100% - 2rem), 820px);
  }

  .footer-meta {
    gap: 0.65rem;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 0.7rem;
  }

  nav a {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
