/* ── Fonts ── */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-latin-ext-wght-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Custom Properties ── */
:root {
  --sand-light:   #f5f0e8;
  --sand-mid:     #c8b99a;
  --charcoal:     #2a2520;
  --text:         #1e1a16;
  --text-muted:   #6b6058;
  --white:        #fefcf9;
  --accent:       #7a6a52;
  --accent-hover: #5e5140;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --space-xs: 6px;
  --space-s:  12px;
  --space-m:  20px;
  --space-l:  36px;
  --space-xl: 60px;

  --radius: 2px;
  --nav-h:  64px;

  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ── Utility ── */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-l);
}
.container--narrow {
  max-width: 640px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover, .btn:focus-visible {
  background: var(--accent);
  color: var(--white);
  outline: none;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--space-l);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(254, 252, 249, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--sand-mid);
}
.nav.scrolled .nav__brand { color: var(--charcoal); }
.nav.scrolled .nav__links a { color: var(--text); }
.nav.scrolled .nav__burger span { background: var(--charcoal); }

.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color 0.3s;
}
.nav__brand:hover { opacity: 0.75; }

.nav__links {
  display: flex;
  gap: var(--space-l);
  align-items: center;
}
.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(254, 252, 249, 0.85);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.2s;
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { width: 100%; }
.nav__links a:focus-visible { outline: none; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s, background 0.3s;
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('assets/cover-kuerzenlange.jpg');
  background-size: cover;
  background-position: center 30%;
  text-align: center;
  color: var(--white);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 25, 20, 0.52);
}
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
  padding-inline: var(--space-m);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
}
.hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 2vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(254, 252, 249, 0.75);
  font-weight: 400;
}
.hero .btn {
  color: var(--white);
  border-color: rgba(254, 252, 249, 0.6);
  margin-top: var(--space-xs);
}
.hero .btn:hover, .hero .btn:focus-visible {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-m);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(254, 252, 249, 0.5);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections (shared) ── */
.section {
  padding-block: var(--space-xl);
}
.section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-l);
  text-align: center;
}
.section__heading--left { text-align: left; margin-bottom: var(--space-m); }

/* ── Books ── */
.books {
  background: var(--white);
}
.books__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l);
  margin-bottom: var(--space-m);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-m);
}
.book-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.book-card__cover-wrap {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(30, 25, 20, 0.14), 0 2px 8px rgba(30, 25, 20, 0.08);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.book-card__cover {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.book-card__cover-wrap:hover .book-card__cover {
  transform: scale(1.03);
}
.book-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: flex-start;
}
.book-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}
.book-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.books__note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-s);
}

/* ── Poem ── */
.poem-section {
  background: var(--sand-light);
}
.poem {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.poem__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.poem__text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
}
.poem__attribution {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: var(--space-xs);
}

/* ── Author ── */
.author-section {
  background: var(--white);
}
.author {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.author__portrait-wrap {
  flex-shrink: 0;
}
.author__portrait {
  width: 200px;
  height: auto;
  border-radius: 4px;
  display: block;
  box-shadow: 0 4px 24px rgba(30, 25, 20, 0.12);
}
.author__text {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: var(--space-m);
}

/* ── Impressum ── */
.impressum {
  background: var(--charcoal);
  color: rgba(254, 252, 249, 0.75);
  padding-block: var(--space-xl);
}
.impressum__heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-m);
}
.impressum__address {
  font-size: 0.9375rem;
  line-height: 2;
  color: rgba(254, 252, 249, 0.65);
}
.impressum__address a {
  color: var(--sand-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.impressum__address a:hover { color: var(--white); }

/* ── Legal pages ── */
.legal-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.legal-text h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: var(--space-s);
}
.legal-text p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text);
}
.legal-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-text a:hover { color: var(--accent-hover); }


@media (max-width: 768px) {
  :root {
    --space-xl: 48px;
    --space-l:  32px;
  }

  .container { padding-inline: var(--space-m); }

  .nav { padding-inline: var(--space-m); }
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: rgba(254, 252, 249, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-l);
    padding: var(--space-xl);
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    color: var(--text);
    font-size: 1.125rem;
  }

  .books__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .author {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-m);
  }
  .author__portrait-wrap { display: flex; justify-content: center; }
  .author__portrait { width: 180px; }
  .section__heading--left { text-align: center; }
  .author__bio .btn { align-self: center; }
  .author__bio { display: flex; flex-direction: column; align-items: center; }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .books__grid { gap: var(--space-m); }
  .author { gap: var(--space-l); }
}
