/* Danny Alexander Blackhall – Autorenwebseite
   Farben und Schrift sind von den Buchcovern abgenommen:
   Nachthimmel (Cecil-Cover), roter True-Crime-Balken, Titelgold, Georgia-artige Serifenschrift. */

@font-face {
  font-family: "Gelasio";
  src: url("../fonts/gelasio-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("../fonts/gelasio-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("../fonts/gelasio-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("../fonts/gelasio-latin-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #050d18;      /* Himmel auf dem Cecil-Cover */
  --night-raised: #0a1625;
  --line: #1b293b;
  --band: #850101;       /* roter True-Crime-Balken */
  --band-hover: #a00d0d;
  --gold: #c8930a;       /* Titelgold */
  --bone: #e9e3d5;       /* Fließtext */
  --mist: #9ea7b5;       /* Nebentext */
  --font: "Gelasio", Georgia, "Times New Roman", serif;
  --header-h: 4rem;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gold);
}

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

p {
  margin: 0 0 1.1em;
}

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(100% - 4rem, 72rem);
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 20;
  background: var(--bone);
  color: var(--night);
  padding: 0.5rem 1rem;
}

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

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 13, 24, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  min-height: var(--header-h);
  padding-block: 0.6rem;
}

.brand {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-block: 0.2rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--bone);
  border-bottom-color: var(--gold);
}

.site-nav .lang {
  color: var(--gold);
  padding-left: 1.75rem;
  border-left: 1px solid var(--line);
}

@media (max-width: 599px) {
  .header-inner {
    justify-content: flex-start;
  }

  .site-nav {
    width: 100%;
    gap: 1.25rem;
  }

  .site-nav .lang {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- Gemeinsame Bausteine ---------- */

.section {
  padding-block: clamp(4rem, 10vw, 7.5rem);
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}

/* Untertitelzeile wie auf den Covern: gesperrte Versalien */
.kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.6;
  margin: 0;
}

.btn {
  display: inline-block;
  background: var(--band);
  color: var(--bone);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--band-hover);
  color: var(--bone);
}

.cover {
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.9);
}

/* ---------- Startbereich: aktuelles Buch mit Trailer ---------- */

.hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 9vw, 6.5rem);
}

/* Der rote Balken von den Covern */
.genre-band {
  background: var(--band);
  color: var(--gold);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0.5rem 0 0.45rem 0.32em;
  margin: 0 0 clamp(2rem, 5vw, 3.25rem);
}

.hero-grid {
  display: grid;
  /* Cover (2:3) und Trailer (16:9) bekommen so dieselbe Höhe */
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.65fr);
  grid-template-areas:
    "title title"
    "cover video"
    ".     copy";
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
}

.hero-title {
  grid-area: title;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.display {
  font-size: clamp(3rem, 10.5vw, 8.25rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero-cover {
  grid-area: cover;
  width: 100%;
}

.trailer {
  grid-area: video;
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #000;
}

.trailer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trailer-controls {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.trailer-controls[hidden] {
  display: none;
}

.trailer-btn {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--bone);
  background: rgba(5, 13, 24, 0.78);
  border: 1px solid rgba(233, 227, 213, 0.28);
  border-radius: 2px;
  padding: 0.4em 0.9em;
  cursor: pointer;
}

.trailer-btn:hover {
  border-color: var(--gold);
}

.trailer-btn[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-copy {
  grid-area: copy;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-top: 1.75rem;
}

.hero-copy .lede {
  max-width: 44ch;
  font-size: 1.1875rem;
  line-height: 1.6;
  margin: 0;
}

.hero-buy .status {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--mist);
  margin: 0.75rem 0 0;
}

@media (max-width: 719px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
    grid-template-areas:
      "title title"
      "video video"
      "cover copy";
  }

  .hero-cover {
    margin-top: 1.5rem;
  }

  .hero-copy {
    flex-direction: column;
    padding-top: 1.5rem;
  }

  .hero-copy .lede {
    font-size: 1.0625rem;
  }
}

/* ---------- Bücher ---------- */

.book {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: start;
}

.book + .book {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.book-body {
  max-width: 62ch;
}

.book-title {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.book .kicker {
  color: var(--mist);
  margin-bottom: 1.75rem;
}

.book-hook {
  font-size: 1.3125rem;
  font-style: italic;
  line-height: 1.5;
}

.book-status {
  font-style: italic;
  color: var(--mist);
  margin: 1.75rem 0 1.25rem;
}

@media (max-width: 719px) {
  .book {
    grid-template-columns: minmax(0, 1fr);
  }

  .book .cover {
    width: min(62%, 16rem);
  }
}

/* ---------- Autor ---------- */

.author {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.author-photo {
  margin: 0;
}

.author-photo img {
  width: 100%;
}

.author-body {
  max-width: 60ch;
}

.author-lede {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  margin-bottom: 1.5em;
}

@media (max-width: 719px) {
  .author {
    grid-template-columns: minmax(0, 1fr);
  }

  .author-photo {
    max-width: 26rem;
  }
}

/* ---------- Kontakt ---------- */

.contact-text {
  max-width: 52ch;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.contact-mail {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold);
}

.contact-form {
  max-width: 36rem;
  margin: 2rem 0 2.5rem;
}

.field {
  margin: 0 0 1.25rem;
}

.field label {
  display: block;
  font-size: 0.9375rem;
  color: var(--mist);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  font: inherit;
  line-height: 1.4;
  color: var(--bone);
  background: var(--night-raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7em 0.85em;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
}

/* Köderfeld gegen Spam-Roboter: für Menschen unsichtbar */
.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.875rem;
  color: var(--mist);
  max-width: 52ch;
  margin: 0 0 1.25rem;
}

button.btn {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

button.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.contact-alt {
  color: var(--mist);
  margin-bottom: 0.25rem;
}

.todo {
  color: var(--mist);
  font-style: italic;
}

/* ---------- Fußzeile ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  font-size: 0.875rem;
  color: var(--mist);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner p {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Rechtstexte ---------- */

.legal {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.legal .wrap {
  max-width: 46rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--gold);
  margin: 2.5rem 0 0.75rem;
}

.legal address {
  font-style: normal;
  margin-bottom: 1.1em;
}

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

  .btn {
    transition: none;
  }
}
