:root {
  --ink: #17211c;
  --muted: #59645e;
  --paper: #f6f4ec;
  --white: #fffdf8;
  --green: #1f6b49;
  --green-dark: #12452f;
  --amber: #f0b84a;
  --red: #c84f3a;
  --line: rgba(23, 33, 28, 0.14);
  --shadow: 0 18px 60px rgba(23, 33, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 244, 236, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1.48fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(36px, 7vw, 82px) clamp(18px, 4vw, 56px) 96px;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #1a1a1b;
  background-image: 
    linear-gradient(110deg, rgba(18, 24, 22, 0.96) 0%, rgba(18, 24, 22, 0.75) 46%, rgba(18, 24, 22, 0.2) 100%),
    url("https://styles.redditmedia.com/t5_35m5e/styles/bannerBackgroundImage_hv53azm0xpw91.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(26, 26, 27, 0), var(--paper));
  z-index: -1;
}

.hero-copy {
  max-width: 840px;
  min-width: 0;
}

.eyebrow,
.guest-kicker {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  font-size: clamp(2.35rem, 10.5vw, 5.8rem);
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

h3 {
  font-size: 1.12rem;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.74);
  border-color: var(--line);
  color: var(--ink);
}

.hero-media {
  justify-self: end;
  width: min(420px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 253, 248, 0.58);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(2deg);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-stats {
  position: absolute;
  left: clamp(18px, 4vw, 56px);
  bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 10;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(18, 24, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-badge strong {
  font-weight: 800;
  color: var(--white);
}

.stat-badge.online .pulse {
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(74, 222, 128, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.intro,
.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.section-copy p:not(.eyebrow),
.api-panel p,
.guest-card p,
.episode-card p,
.footer p {
  color: var(--muted);
}

.listen-panel {
  min-height: 232px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.listen-panel iframe {
  display: block;
  border: 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.episodes-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  max-width: 100%;
  margin-bottom: 28px;
}

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

.episodes-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.arrow-btn {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.arrow-btn:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(31, 107, 73, 0.25);
}

.arrow-btn:active {
  transform: scale(0.95);
}

.episode-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin: 0 -18px;
  padding: 16px 18px 28px;
}

.episode-list::-webkit-scrollbar {
  display: none;
}

.episode-card,
.guest-card,
.stat-card,
.api-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.episode-card {
  flex: 0 0 clamp(290px, 30vw, 340px);
  scroll-snap-align: start;
  min-height: 240px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--green);
}

.episode-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.episode-number {
  display: inline-flex;
  min-width: 54px;
  height: 28px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  border-radius: 999px;
  background: #e9f0dd;
  color: var(--green-dark);
  font-weight: 850;
  font-size: 0.82rem;
}

.episode-duration {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
}

.episode-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.2s ease;
}

.episode-card:hover h3 {
  color: var(--green-dark);
}

.episode-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  flex: 1;
}

.episode-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--green-dark);
  transition: color 0.2s ease;
}

.episode-card:hover .episode-listen-btn {
  color: #16a34a;
}

.guests {
  background: #edf0e6;
}

.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.guest-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 220px;
}

.guest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--green);
}

.guest-image-container {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: auto !important;
  background: #18221e;
  position: relative;
  overflow: hidden;
  flex-shrink: 0 !important;
}

.guest-image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  transition: transform 0.35s ease;
}

.guest-card:hover .guest-image-container img {
  transform: scale(1.06);
}

.guest-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.guest-content h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.guest-bio {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.guest-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.guest-link:hover {
  color: #16a34a;
  text-decoration: underline;
  transform: translateX(3px);
}

.stats-section {
  background: var(--green-dark);
  color: var(--white);
}

.stats-section .eyebrow,
.stats-section .section-copy p,
.stats-section .section-heading p {
  color: #cbdcb9;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.api-panel {
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
}

.stat-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.stat-value {
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.95;
  font-weight: 900;
}

.stat-label {
  color: var(--muted);
  font-weight: 750;
}

.api-panel {
  padding: 26px;
}

.api-panel a {
  color: var(--green);
  font-weight: 850;
}

.disclaimer {
  padding-top: 30px;
  padding-bottom: 30px;
  background: var(--amber);
}

.disclaimer p {
  max-width: 1120px;
  margin: 0 auto;
  color: #352513;
  font-weight: 800;
  text-align: center;
}

.footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: clamp(44px, 7vw, 72px) clamp(18px, 4vw, 56px);
  background: #121816;
  color: var(--white);
}

.footer h2 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.footer a {
  color: #dcebbf;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .stats-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-self: start;
    width: min(280px, 72vw);
  }

  .episode-card {
    flex: 0 0 calc(50% - 7px);
  }

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-bottom: 36px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.4rem);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .community-stats,
  .stat-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .community-stats {
    position: static;
    margin-top: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .guest-card {
    flex-direction: row;
  }

  .guest-image-container {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    min-height: 180px;
  }

  .guest-content {
    padding: 16px;
  }
}

/* Kontaktformular Styles */
#contact-form {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(17,22,20,0.06);
}

#contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  padding: 10px 12px;
  border: 1px solid rgba(23,33,28,0.09);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  outline: none;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 6px 20px rgba(31,107,73,0.08);
}

#contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

#contact-form .form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

#form-status {
  font-weight: 700;
}

#form-status.ok {
  color: var(--green-dark);
}

#form-status.err {
  color: var(--red);
}

/* Sponsors grid tweaks */
.sponsors-grid .sponsor-card .guest-visual img {
  border-radius: 6px;
}

/* Nav styling: enhance hit area and active state */
.nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

.nav a.active,
.nav a[aria-current="page"] {
  background: rgba(31,107,73,0.08);
  color: var(--green-dark);
  font-weight: 800;
}
