/* Valeska Night – Stylesheet
   Farben und Schriften nach dem bisherigen Auftritt. Kein JavaScript, keine externen Ressourcen. */

@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/prata-400.woff2") format("woff2");
}

:root {
  --text: #4a4e58;
  --heading: #181937;
  --seite: #e9e3e3;
  --rand: #e6e2e2;
  --nacht: #13072b;
  --navy: #060d2a;
  --wein: #701e3f;
  --grau: #8b8d8e;
  --linie: #d6cfcf;
  --serif: Georgia, "Times New Roman", Times, serif;
  --display: "Prata", Georgia, serif;
  --verlauf-dunkel: linear-gradient(155deg, #010206 0, #060d2a 50%, #3a0324 100%);
  --wrap: 1200px;
}

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

html {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--rand);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body { margin: 0; }

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

a { color: var(--wein); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.3;
  margin: 0 0 20px;
}

p { margin: 0 0 20px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.center { text-align: center; }

/* ---------- Seitenrahmen: auf großen Bildschirmen eine Box vor dem Hintergrundbild ---------- */

.seite { background: var(--seite); }

@media (min-width: 1200px) {
  body {
    background: var(--rand) url("/logo/hintergrund.jpg") center / cover fixed no-repeat;
    padding: 70px 0;
  }
  .seite {
    max-width: var(--wrap);
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(6, 13, 42, .25);
  }
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 639px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Kopfbereich ---------- */

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--heading);
  padding: 8px 16px;
  z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 25px 40px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo img { width: 200px; height: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 10px;
}

.site-header ul { list-style: none; margin: 0; padding: 0; }

.nav-desktop > ul { display: flex; gap: 40px; }

.site-header nav a {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .35px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .75);
  display: inline-block;
  padding: 18px 0;
  transition: color .1s ease-in-out;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a[aria-current="page"] { color: #fff; }

.nav-desktop > ul > li > a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--wein);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Aufklappmenü „Bücher“ */
.hat-unter { position: relative; }

.unter {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 260px;
  margin-left: -130px !important;
  padding: 20px 25px !important;
  background: #010206;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .15), 4px 10px 15px rgba(0, 0, 0, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 20;
}

.hat-unter:hover .unter,
.hat-unter:focus-within .unter {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-header .unter a { font-size: 16px; padding: 6px 0; }

.header-icons { display: flex; gap: 10px; align-items: center; }

.icon-link {
  color: inherit;
  display: inline-flex;
  text-decoration: none;
}

.site-header .icon-link { color: #fff; }

.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* Mobiles Menü */
.nav-mobile { display: none; }

@media (max-width: 959px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px;
  }
  .logo img { width: 140px; }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile summary {
    list-style: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
  }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary span {
    display: block;
    height: 2px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-mobile[open] summary span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-mobile[open] summary span:nth-child(2) { opacity: 0; }
  .nav-mobile[open] summary span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-mobile nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--nacht);
    padding: 10px 20px 25px;
    z-index: 30;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
  }
  .nav-mobile nav a { padding: 10px 0; }
  .nav-mobile .unter {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: auto;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    background: none;
    box-shadow: none;
  }
  .nav-mobile .header-icons { margin-top: 10px; }
}

/* ---------- Abschnitte ---------- */

.sektion { padding: 70px 0; }
.sektion-eng { padding: 0 0 40px; }
.sektion-oben-eng { padding-top: 0; }
.sektion-grau { background: var(--grau); }
.sektion-grau .text,
.sektion-grau .zusatz,
.sektion-grau .untertitel { color: #2a2b33; }

@media (max-width: 639px) {
  .sektion { padding: 40px 0; }
}

.zwei-spalten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.bild-links .spalte-bild { order: 0; }
.bild-rechts .spalte-bild { order: 2; }
.spalte-bild img { margin: 0 auto; }

@media (max-width: 959px) {
  .zwei-spalten { grid-template-columns: 1fr; gap: 30px; }
  .bild-rechts .spalte-bild { order: 0; }
}

.buch-titel {
  font-size: 35.7px;
  letter-spacing: .75px;
  text-transform: uppercase;
}

@media (max-width: 639px) {
  .buch-titel { font-size: 28px; }
}

.untertitel {
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--heading);
}

.text p { margin-bottom: 16px; }
.text h3 {
  font-family: var(--serif);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  margin: 30px 0 10px;
}
.text h3:first-child { margin-top: 0; }

.klein { font-size: 14px; line-height: 1.85; }

.zusatz {
  font-size: 11px;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  margin: 30px 0 20px;
}

.motto {
  font-family: var(--serif);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--heading);
  margin-bottom: 30px;
}
.motto p { margin: 0; }
.motto-kursiv { font-size: 11px; line-height: 1.6; }

.titelbild img { margin: 0 auto 30px; }

.einleitung { max-width: 760px; margin: 0 auto; }

.sektion-titel {
  text-align: center;
  font-size: 35.7px;
  text-transform: uppercase;
  letter-spacing: .75px;
  margin-bottom: 30px;
}

.trenner {
  border: 0;
  border-top: 1px solid var(--linie);
  margin: 0 0 40px;
}

/* Bilder über einem Buchtext: eins volle Breite, zwei nebeneinander */
.bilder-oben {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}
.bilder-oben img { width: 100%; box-shadow: 0 10px 30px rgba(6, 13, 42, .15); }
.bilder-2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 639px) {
  .bilder-2 { grid-template-columns: 1fr; }
}

/* ---------- Cover-Raster ---------- */

.cover-raster,
.buch-raster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cover-raster { grid-template-columns: repeat(5, 1fr); }
.buch-raster { grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }

.cover { width: 100%; }
.buch-raster .buttons { justify-content: center; margin-top: 20px; }

@media (max-width: 959px) {
  .cover-raster { grid-template-columns: repeat(3, 1fr); }
  .buch-raster { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 639px) {
  .cover-raster { grid-template-columns: repeat(2, 1fr); }
  .buch-raster { grid-template-columns: 1fr; }
  .buch-raster li { max-width: 320px; margin: 0 auto; }
}

/* ---------- Buttons ---------- */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin: 20px 0 0;
}

.center .buttons,
.buttons-folgen { justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  line-height: 38px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position .25s ease-in-out;
}

.button:hover,
.button:focus-visible { background-position: 0 0; color: #fff; }

.button-primaer {
  background-color: var(--wein);
  background-image: linear-gradient(90deg, #701e3f 0, #340e27 50%, #481328 100%);
  box-shadow: 1px 3px 15px rgba(112, 30, 63, .2);
}

.button-sekundaer {
  background-color: var(--navy);
  background-image: linear-gradient(90deg, #540535 0, #091440 50%, #060d2a 100%);
  box-shadow: 1px 3px 15px rgba(6, 13, 42, .15);
}

.buttons-folgen { margin: 30px 0 0; gap: 20px; }
.buttons-folgen .button { min-width: 250px; justify-content: center; }

/* ---------- Newsletter ---------- */

.newsletter-box {
  background: var(--navy);
  background-image: var(--verlauf-dunkel);
  color: rgba(255, 255, 255, .7);
  text-align: center;
  padding: 40px;
  box-shadow: 2px 26px 56px rgba(6, 13, 42, .12);
  font-size: 14px;
}

.newsletter-titel {
  font-family: var(--serif);
  color: #fff;
  font-size: 26px;
  margin-bottom: 15px;
}

.newsletter-box p { max-width: 900px; margin-left: auto; margin-right: auto; }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 25px auto 20px;
}

.newsletter-form input[type="email"] {
  font: inherit;
  width: min(100%, 320px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: #fff;
  color: var(--heading);
}

.newsletter-form button {
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 20px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible { background: #fff; color: var(--heading); }

.newsletter-folgt { font-style: italic; margin: 20px auto; }
.newsletter-hinweis { margin-bottom: 0 !important; }

.ueber + .wrap,
.ueber ~ .wrap { margin-top: 50px; }

/* ---------- Über mich ---------- */

.rund {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  width: 300px;
}

.ueber { grid-template-columns: 1fr 2fr; align-items: start; }
.ueber-icons { margin-top: 40px; display: flex; justify-content: center; gap: 15px; }
.ueber-icons .icon-link { color: var(--heading); }

.motto-gross {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--heading);
  margin-top: 30px;
}

@media (max-width: 959px) {
  .ueber { grid-template-columns: 1fr; }
}

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */

.text-seite { max-width: 900px; }
.text-seite h1 { font-size: 35.7px; text-transform: uppercase; }
.text-seite h2 { font-size: 24px; margin-top: 40px; }
.text-seite h3 { font-size: 20px; margin-top: 30px; }
.text-seite { overflow-wrap: anywhere; }

/* ---------- Fußbereich ---------- */

.site-footer {
  background: var(--navy);
  background-image: var(--verlauf-dunkel);
  color: #fff;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 55px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  font-size: 12px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }

.site-footer nav a {
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] { color: #fff; }

.footer-copy { margin: 0; text-align: center; font-weight: bold; }

.footer-icons { display: flex; gap: 10px; justify-content: flex-end; }
.footer-icons .icon-link { color: #fff; }

@media (max-width: 639px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; }
  .site-footer ul,
  .footer-icons { justify-content: center; }
}

/* ---------- Sanftes Einblenden beim Scrollen (nur wenn der Browser es kann und gewünscht ist) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sektion .wrap > *,
    .cover-raster li,
    .buch-raster li {
      animation: einblenden linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes einblenden {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Linkseite (/links/) ---------- */

.links-seite h1 { text-align: center; margin: 0 0 30px; }
.links-social { display: flex; justify-content: center; gap: 10px; margin: 0 0 20px; }
.links-social .icon-link { color: var(--heading); }
.links-oben { display: flex; flex-wrap: wrap; gap: 15px 40px; margin: 0; }
.links-seite hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .1); margin: 40px 0; }
.links-liste { list-style: none; margin: 0; padding: 0; display: grid; justify-items: start; gap: 20px; }
.links-seite .button { line-height: 1.3; padding: 10px 20px; min-height: 40px; }

@media (max-width: 640px) {
  .links-oben, .links-liste { justify-items: stretch; }
  .links-oben .button, .links-liste .button { width: 100%; justify-content: center; text-align: center; }
}
