:root {
  --pi-bg: #ffffff;
  --pi-text: #1c1c1e;
  --pi-muted: #6b7280;
  --pi-accent: #2563eb;
  --pi-accent-dark: #1d4ed8;
  --pi-border: #e5e7eb;
  --pi-surface: #f8f9fb;
}

* {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--pi-text);
  background-color: var(--pi-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--pi-text);
  text-decoration: none;
}

a:hover {
  color: var(--pi-text);
  text-decoration: underline;
}

/* Navbar */
.navbar {
  background-color: var(--pi-bg);
  border-bottom: 1px solid var(--pi-border);
  padding-top: .75rem;
  padding-bottom: .75rem;
  transition: box-shadow .15s ease;
}

.navbar.is-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pi-text);
}

.nav-link {
  color: var(--pi-text);
  font-weight: 500;
  padding: .5rem 1rem;
}

.nav-link.active {
  color: var(--pi-accent);
}

/* Hero */
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--pi-accent);
  margin-bottom: .5rem;
}

.hero-eyebrow-light {
  color: rgba(255, 255, 255, .85);
}

.hero-banner h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-lead {
  color: var(--pi-muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.hero-lead-light {
  color: rgba(255, 255, 255, .85);
}

.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-pill {
  border-radius: 50rem;
  padding: .6rem 1.5rem;
}

.btn-outline-primary,
.btn-outline-secondary {
  --bs-btn-color: var(--pi-text);
  --bs-btn-border-color: var(--pi-text);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--pi-text);
  --bs-btn-hover-border-color: var(--pi-text);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--pi-text);
  --bs-btn-active-border-color: var(--pi-text);
}

a.btn:hover {
  text-decoration: none;
}

/* Hero banner (großes Bild mit Overlay) */
.hero-banner {
  position: relative;
  padding: 4rem 1.5rem;
  text-align: center;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: #14141a;
  background-image: linear-gradient(180deg, rgba(10, 10, 14, .35), rgba(10, 10, 14, .8)), url("/static/img/hero-bg.png");
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .hero-banner {
    padding: 6rem 2rem;
  }

  .hero-banner h1 {
    font-size: 2.75rem;
  }
}

/* Sections */
.section {
  padding: 3rem 0;
}

.page-header {
  padding-bottom: 1.5rem;
}

.page-header h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-weight: 700;
  margin: 0;
}

.section-link {
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Cards */
.card {
  border: 1px solid var(--pi-border);
  border-radius: .75rem;
  background-color: var(--pi-surface);
}

.card-footer {
  background-color: transparent;
  border-top: 1px solid var(--pi-border);
}

.news-card .card-footer {
  padding: 1rem;
}

.item-icon {
  width: 56px;
  height: 56px;
  border-radius: .75rem;
  object-fit: cover;
  margin-bottom: .75rem;
}

.item-platform {
  font-size: .8rem;
  font-weight: 600;
  color: var(--pi-accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

.news-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: .75rem .75rem 0 0;
  margin-bottom: 1rem;
}

.news-entry .news-image {
  border-radius: .75rem;
}

.news-date {
  font-size: .8rem;
  color: var(--pi-muted);
  margin-bottom: .25rem;
}

/* News list (Neuigkeiten-Seite) */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-entry {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--pi-border);
}

.news-entry:last-child {
  border-bottom: none;
}

.news-entry a {
  text-decoration: underline;
}

.news-toggle {
  margin-top: .5rem;
}

.news-toggle .news-toggle-less {
  display: none;
}

.news-toggle[aria-expanded="true"] .news-toggle-more {
  display: none;
}

.news-toggle[aria-expanded="true"] .news-toggle-less {
  display: inline;
}

/* Legal pages */
.legal h2 {
  margin-top: 1.75rem;
  font-weight: 700;
}

.legal {
  max-width: 42rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--pi-border);
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.site-footer-links a {
  color: var(--pi-text);
  font-size: .9rem;
  font-weight: 500;
}

.site-footer-links a:hover {
  color: var(--pi-text);
  text-decoration: underline;
}

.site-footer-links .dot {
  margin: 0 .5rem;
  color: var(--pi-border);
}

.site-footer-copy {
  margin: .75rem 0 0;
  font-size: .8rem;
  color: var(--pi-muted);
}
