/* ==========================================================================
   Aus dem Rucksack Podcast – statisches Stylesheet
   Farben und Typografie orientieren sich am früheren WordPress-Theme
   (Twenty Twenty) der Seite ausdemrucksack.de.
   ========================================================================== */

:root {
  --bg: #f2f2f2;
  --surface: #ffffff;
  --text: #000000;
  --muted: #666666;
  --line: #d1d1d1;
  --accent: #db0f45;
  --accent-dark: #b00c37;
  --header: #434e52;
  --header-deep: #353f43;
  --header-muted: #c4c8c9;
  --nav: #edaabc;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Hoefler Text", Garamond, "Times New Roman", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrapper: 112rem;
  --text-width: 72rem;
}

/* --------------------------------------------------------------------------
   Grundlagen
   -------------------------------------------------------------------------- */

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

p {
  margin: 0 0 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1.5rem;
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

hr {
  height: 1px;
  margin: 4rem 0;
  border: 0;
  background-color: var(--line);
}

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

::selection {
  background-color: var(--accent);
  color: #fff;
}

.wrapper {
  width: 100%;
  max-width: var(--wrapper);
  margin: 0 auto;
  padding-right: clamp(2rem, 5vw, 5rem);
  padding-left: clamp(2rem, 5vw, 5rem);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 2rem;
  z-index: 1000;
  padding: 1.2rem 2rem;
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.5rem;
}

.skip-link:focus {
  top: 1.5rem;
}

.nowrap {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background-color: var(--header);
  color: #fff;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
}

.brand {
  display: block;
  color: inherit;
  text-decoration: none;
}

.site-title {
  display: block;
  font-family: var(--sans);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-description {
  display: block;
  margin-top: 0.7rem;
  color: var(--header-muted);
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.4rem;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
}

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

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.nav-cta,
.nav a.nav-cta {
  padding: 1rem 1.9rem;
  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
}

.nav a.nav-cta:hover,
.nav a.nav-cta:focus-visible {
  background-color: var(--accent-dark);
  text-decoration: none;
}

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

.hero {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.hero-cover {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.2);
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(4.4rem, 9vw, 7.4rem);
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 62rem;
  margin: 0 0 2rem;
  font-family: var(--sans);
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-intro {
  max-width: 64rem;
  font-size: 1.8rem;
}

.hero-intro em {
  font-style: italic;
}

.archive-note {
  max-width: 64rem;
  margin-top: 3.5rem;
  padding-left: 1.6rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1.55;
}

.archive-note p {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 3.2rem;
}

.button {
  display: inline-block;
  padding: 1.4rem 2.4rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background-color: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-ghost {
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.3);
  color: var(--text);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background-color: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Abschnittsüberschriften
   -------------------------------------------------------------------------- */

.section {
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(3rem, 4.5vw, 4.2rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1.5rem;
}

.section-head a {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.section-head a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Episoden
   -------------------------------------------------------------------------- */

.episode {
  max-width: 86rem;
  margin: 0 auto;
}

.episode + .episode {
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: clamp(4rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.episode-header {
  margin-bottom: 3rem;
  text-align: center;
}

.episode-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.episode-meta > * + *::before {
  content: "·";
  margin-right: 1.4rem;
  color: var(--line);
}

.episode-number {
  color: var(--accent);
}

.episode h2 {
  margin: 0;
  font-size: clamp(3rem, 4.8vw, 4.8rem);
}

.episode h2 a {
  color: inherit;
  text-decoration: none;
}

.episode h2 a:hover {
  color: var(--accent);
}

.episode-body {
  max-width: var(--text-width);
  margin: 0 auto;
}

.player {
  display: block;
  width: 100%;
  margin: 0 0 2.6rem;
  accent-color: var(--accent);
}

.episode-summary {
  font-size: 1.9rem;
  line-height: 1.55;
}

.episode-summary:last-child {
  margin-bottom: 0;
}

.people {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 2.4rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1.4rem;
}

.people-label {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person {
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--text);
}

.shownotes {
  margin-top: 3rem;
  padding: clamp(2.2rem, 4vw, 3.6rem);
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  background-color: var(--surface);
}

.shownotes h3 {
  margin-top: 0;
  margin-bottom: 2.2rem;
  font-size: 2.2rem;
}

.shownotes h4 {
  margin: 2.6rem 0 1rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shownotes h4:first-of-type {
  margin-top: 0;
}

.shownotes ul {
  margin: 0 0 1rem;
  padding-left: 2.2rem;
}

.shownotes li {
  margin-bottom: 0.7rem;
}

.shownotes li::marker {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Abonnieren
   -------------------------------------------------------------------------- */

.subscribe {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background-color: var(--header);
  color: #fff;
}

.subscribe-inner {
  max-width: 86rem;
}

.subscribe h2 {
  margin-bottom: 1.8rem;
  color: #fff;
  font-size: clamp(3.2rem, 5vw, 4.6rem);
}

.subscribe p {
  max-width: 62rem;
  color: var(--header-muted);
}

.feed-box {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.2rem;
  margin-top: 3rem;
}

.feed-url {
  display: flex;
  align-items: center;
  flex: 1 1 34rem;
  padding: 1.4rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--mono);
  font-size: 1.5rem;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.feed-url:hover,
.feed-url:focus-visible {
  border-color: var(--nav);
  background-color: rgba(255, 255, 255, 0.14);
  text-decoration: underline;
}

.subscribe-footnote {
  margin-top: 2.2rem;
  font-size: 1.4rem;
}

.subscribe-footnote a {
  color: var(--nav);
}

.subscribe-footnote a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Seitenkopf (Episoden-Übersicht)
   -------------------------------------------------------------------------- */

.page-header {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background-color: var(--header);
  color: #fff;
}

.page-header h1 {
  margin-bottom: 1.6rem;
  color: #fff;
  font-size: clamp(3.6rem, 6vw, 6.4rem);
}

.page-header p {
  max-width: 64rem;
  margin: 0;
  color: var(--header-muted);
  font-size: 1.8rem;
}

/* --------------------------------------------------------------------------
   Episoden-Tabelle
   -------------------------------------------------------------------------- */

.table-section {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.table-card {
  overflow-x: auto;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  background-color: var(--surface);
}

.episodes-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 1.6rem;
}

.episodes-table th {
  padding: 1.7rem 2.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.episodes-table td {
  padding: 1.9rem 2.2rem;
  border-bottom: 1px solid #ededed;
  vertical-align: middle;
}

.episodes-table tbody tr:last-child td {
  border-bottom: 0;
}

.episodes-table tbody tr:hover {
  background-color: #fbf7f8;
}

.episodes-table .date {
  width: 1%;
  color: var(--muted);
  white-space: nowrap;
}

.episodes-table .title a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.episodes-table .title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.episodes-table .title span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.episodes-table .duration {
  width: 1%;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.table-note {
  max-width: var(--text-width);
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 5.5rem 0 2.5rem;
  background-color: var(--header-deep);
  color: var(--header-muted);
  font-family: var(--sans);
  font-size: 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand .footer-title {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--sans);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-grid h2 {
  margin: 0 0 1.6rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.8rem;
}

.footer-grid a {
  color: var(--nav);
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem 3rem;
  padding-top: 2.5rem;
}

.footer-bottom p {
  margin: 0;
}

.to-the-top {
  color: var(--header-muted);
  text-decoration: none;
}

.to-the-top:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-cover {
    width: min(24rem, 60vw);
    margin: 0 auto;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2.4rem;
  }

  .nav {
    width: 100%;
    gap: 1.4rem 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-cta,
  .nav a.nav-cta {
    padding: 0.8rem 1.4rem;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .episode-meta {
    font-size: 1.2rem;
  }

  .episodes-table th,
  .episodes-table td {
    padding: 1.5rem 1.4rem;
  }

  .episodes-table {
    font-size: 1.5rem;
  }

  .episodes-table .date {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .episodes-table th:first-child,
  .episodes-table td:first-child {
    display: none;
  }

  .episodes-table .title a {
    font-size: 1.6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Druck
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .subscribe,
  .actions,
  .player {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .episode + .episode {
    page-break-before: always;
  }
}
