@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/courier-prime-v11-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/courier-prime-v11-latin-700.woff2") format("woff2");
}

:root {
  --ink: #17212b;
  --muted: #5d6872;
  --paper: #f7f5ef;
  --white: #fffdfa;
  --line: rgba(23, 33, 43, 0.14);
  --blackbox: #eaf3f4;
  --blackbox-deep: #225a64;
  --captain: #092f42;
  --captain-accent: #ffb24a;
  --comedy: #f5dfcb;
  --comedy-deep: #8a3d2c;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(29, 38, 48, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 250, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a,
.footer-links a {
  text-decoration: none;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(23, 33, 43, 0.07);
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(9, 47, 66, 0.78), rgba(138, 61, 44, 0.38)),
    url("../img/Hintergrund.webp") right center / cover no-repeat;
  color: white;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 42px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
.display {
  font-family: "Courier Prime", monospace;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
}

.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.16rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}

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

.button.light {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 74px 0;
}

.section.tight {
  padding: 48px 0;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-head p,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.world {
  min-height: 430px;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.world::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}

.world > * {
  position: relative;
  z-index: 1;
}

.world.blackbox {
  background: linear-gradient(180deg, rgba(234, 243, 244, 0.94), rgba(255, 253, 250, 0.94)), url("../img/digitaler_selbstschutz.webp") right bottom / 46% auto no-repeat;
  color: var(--ink);
}

.world.captain {
  background: linear-gradient(180deg, rgba(9, 47, 66, 0.92), rgba(8, 24, 34, 0.92)), url("../img/bauchspeck3.webp") right bottom / 48% auto no-repeat;
  color: white;
}

.world.comedy {
  background: linear-gradient(180deg, rgba(245, 223, 203, 0.92), rgba(255, 253, 250, 0.9)), url("../img/hosenrunter.webp") right bottom / 45% auto no-repeat;
  color: var(--ink);
}

.world h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.world p {
  max-width: 85%;
  margin: 18px 0 0;
}

.world .tagline {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.72;
}

.page-hero {
  color: white;
  background: var(--ink);
}

.page-hero.blackbox {
  color: var(--ink);
  background: linear-gradient(135deg, #f3fbfb, #dbecef);
}

.page-hero.captain {
  background: linear-gradient(135deg, #082a3d, #0d5a67 62%, #e4963b);
}

.page-hero.comedy {
  color: var(--ink);
  background: linear-gradient(135deg, #fff5e7, #eab897);
}

.page-hero.legal {
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff, #ece7db);
}

.page-hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 40px;
  align-items: center;
  padding: 56px 0;
}

.page-hero-inner > *,
.split > *,
.world-grid > *,
.book-grid > *,
.project-grid > *,
.quote-grid > * {
  min-width: 0;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.page-hero p {
  max-width: 780px;
  font-size: 1.12rem;
}

.hero-cover-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.hero-cover-row img,
.feature-image img,
.book-cover {
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.hero-cover-row img {
  width: min(31%, 150px);
}

.hero-cover-row img:nth-child(2) {
  width: min(38%, 180px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
}

.feature-image img {
  width: 100%;
}

.book-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.book-card,
.project-card,
.quote-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(23, 33, 43, 0.07);
  overflow-wrap: anywhere;
}

.book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.book-cover {
  width: auto;
  max-height: 260px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: rgba(23, 33, 43, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.isbn,
.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.quote-card p {
  margin: 0;
  font-style: italic;
}

.quote-card cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.band.blackbox-band {
  background: var(--blackbox);
}

.band.captain-band {
  background: var(--captain);
  color: white;
}

.band.captain-band .lead,
.band.captain-band .meta,
.band.captain-band .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.band.comedy-band {
  background: var(--comedy);
}

.legal-text {
  max-width: 820px;
}

.legal-text p {
  margin: 0 0 18px;
}

.site-footer {
  background: #111820;
  color: rgba(255, 255, 255, 0.78);
  padding: 34px 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 920px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

  .hero {
    min-height: 680px;
  }

  .world-grid,
  .book-grid,
  .project-grid,
  .quote-grid,
  .split,
  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .world {
    min-height: 360px;
  }

  .page-hero-inner {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .main-nav a {
    padding: 7px 8px;
  }

  .hero-inner,
  .section,
  .page-hero-inner {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .world {
    padding: 22px;
  }

  .world p {
    max-width: 100%;
  }

  .hero-cover-row {
    justify-content: flex-start;
  }
}
