/* ============================================================
   Simon Beier — Autorenwebsite
   Design: "Literary Clean" — papiernes Weiß, Waldgrün, Gold
   ============================================================ */

:root {
  --paper:      #FBF8F2;
  --paper-2:    #F4EFE6;
  --white:      #FFFFFF;
  --ink:        #222B26;
  --ink-soft:   #4C5751;
  --green:      #2F5D50;
  --green-dark: #23463D;
  --green-soft: #E7EFEA;
  --gold:       #BE9640;
  --gold-soft:  #F3E9D2;
  --line:       #E5DECF;
  --shadow-sm:  0 1px 2px rgba(34,43,38,.06), 0 4px 14px rgba(34,43,38,.06);
  --shadow-md:  0 2px 6px rgba(34,43,38,.08), 0 14px 34px rgba(34,43,38,.10);
  --radius:     18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: min(1140px, 100% - clamp(2rem, 6vw, 4rem));
  margin-inline: auto;
}

/* ---------- Eyebrow / Kicker ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,248,242,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand span { color: var(--green); }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.6vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: .45rem .7rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--green-dark); background: var(--green-soft); }
.site-nav a[aria-current="page"] { color: var(--green-dark); background: var(--green-soft); }
.nav-cta { border: 1.5px solid var(--green); border-radius: 999px; color: var(--green) !important; }
.nav-cta:hover { background: var(--green) !important; color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(190,150,64,.10), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(47,93,80,.08), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy p.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-figure { position: relative; display: flex; justify-content: center; padding: 14px 18px 18px 14px; }
.hero-figure .frame {
  position: relative;
  width: min(340px, 80%);
}
.hero-figure .frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 30px;
  transform: translate(18px, 18px);
}
.hero-figure .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 30px;
  transform: translate(-14px, -14px);
}
.hero-figure .frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1/1.05;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}


/* ---------- Trust-Leiste ---------- */
.trustbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: 1rem 0;
}
.trustbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem 2.2rem;
  font-size: .92rem;
  color: var(--ink-soft);
}
.trustbar strong { color: var(--ink); }
.trustbar .stars { color: var(--gold); letter-spacing: .1em; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 46em; margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--ink-soft); margin: 0; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ---------- Buchkarten ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.book-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.book-cover {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1.02;
  background: var(--paper-2);
}
/* Hintergrund: Cover-Motiv füllt die Fläche weich aus */
.book-cover::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-image: var(--cover-bg);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.15) brightness(1.03);
  transform: scale(1.25);
}
.book-cover picture { display: contents; }
.book-cover img {
  position: relative;
  height: 92%;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(34,43,38,.28);
}
.book-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.book-tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  padding: .25rem .75rem;
  margin-bottom: .7rem;
}
.book-tag.fiction { color: #6B4E12; background: var(--gold-soft); }
.book-body h3 { margin-bottom: .15rem; font-size: 1.22rem; }
.book-sub { font-size: .9rem; color: var(--ink-soft); font-style: italic; margin-bottom: .6rem; }
.book-desc { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.book-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--ink-soft);
  margin: .7rem 0 1rem;
}
.book-meta .stars { color: var(--gold); letter-spacing: .08em; }
.book-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Serien-Hinweis ---------- */
.series-note {
  margin-top: 2rem;
  padding: 1.1rem 1.4rem;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* ---------- Themen-Kacheln ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.theme-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.theme-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.theme-tile .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--green-soft);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: .9rem;
}
.theme-tile h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.theme-tile p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

/* ---------- Über-mich-Teaser & Seite ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-grid .portrait {
  position: relative;
}
.about-grid .portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-soft);
  border: 2px solid var(--green);
  border-radius: 26px;
  transform: translate(14px, 14px);
}
.about-grid .portrait picture, .about-grid .portrait img {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}
.fact-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: .7rem;
}
.fact-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .98rem;
  color: var(--ink-soft);
}
.fact-list li::before {
  content: "\2726";
  color: var(--gold);
  flex: none;
}

/* ---------- Presse ---------- */
.press-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: start;
}
.press-logo {
  width: 86px; height: 86px;
  border-radius: 16px;
  background: #E31B23;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .02em;
  flex: none;
}
.press-card blockquote {
  margin: 0 0 .8rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.4;
  color: var(--ink);
}
.press-card cite { font-style: normal; font-size: .92rem; color: var(--ink-soft); }
.press-card cite a { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  margin-bottom: .8rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green);
  flex: none;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 40em; margin-inline: auto; }
.cta-band .btn-primary { background: var(--gold); }
.cta-band .btn-primary:hover { background: #a97f2f; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 2.8rem 0 1.6rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  font-size: .92rem;
}
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.55); }
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Prosa-Seiten (Impressum etc.) ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose address { font-style: normal; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1rem 0; }

/* ---------- Reveal-Animation (nur wenn JS aktiv) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-figure { order: -1; }
  .hero-figure .frame { width: min(250px, 70%); }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .portrait { max-width: 420px; margin-inline: auto; }
  .press-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header .container { flex-wrap: wrap; justify-content: center; row-gap: .2rem; padding-block: .5rem; }
  .brand { font-size: 1.15rem; }
  .brand small { display: none; }
  .site-nav ul { gap: .1rem; }
  .site-nav a { padding: .4rem .5rem; font-size: .86rem; }
  .nav-cta { display: none; }
  .trustbar .container { gap: .4rem 1.1rem; font-size: .85rem; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Fokus sichtbar ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
