/* ============================================================
   Robert Geller — Autorenwebsite
   Farb- und Formsprache abgeleitet aus dem echten Logo
   (Senfgold-Brille, blaugrauer Schriftzug) und dem Cover
   von „Das Land“ (dunkles Petrol/Teal, Berlin-Silhouette).
   ============================================================ */

:root {
  --bg: #f2f4f2;
  --bg-alt: #e3e9e7;
  --paper: #fdfefe;
  --ink: #1c211f;
  --ink-soft: #57615d;
  --gold: #b3922f;
  --gold-dark: #8a6f21;
  --teal: #2f5b64;
  --teal-dark: #1f3d44;
  --line: rgba(28, 33, 31, 0.15);
  --shadow: 0 20px 45px -25px rgba(20, 30, 30, 0.45);

  --font-serif: Charter, "Iowan Old Style", "STIX Two Text", Georgia, "Noto Serif", serif;
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --maxw: 1140px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h2.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 0.3em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-dark);
  display: inline-block;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 62ch;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 244, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 46px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  font-size: 0.93rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
nav.main-nav a[aria-current="page"] { color: var(--teal-dark); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--gold);
  color: #26200f;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--gold-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--ink); color: var(--bg); }
.btn-small { padding: 9px 18px; font-size: 0.82rem; }

/* ---------- Order dropdown ---------- */
.order-dropdown { position: relative; display: inline-block; }
.order-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  min-width: 230px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 20;
}
.order-menu.open { display: block; }
.order-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  border-radius: 2px;
}
.order-menu a:hover { background: var(--bg-alt); }
.order-menu .shop-name { font-weight: 600; }
.order-menu .shop-arrow { color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.85rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 56px 0 20px; }
.back-link {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--teal-dark);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Home hero (about the person) ---------- */
.home-hero { padding: 72px 0 88px; }
.home-hero .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.home-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  line-height: 1.08;
}
.portrait-frame {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--teal-dark);
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 26px;
  margin: 26px 0;
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}
.facts li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.facts li strong { color: var(--ink); min-width: 130px; }

/* ---------- Werke teaser (home) & overview (werke.html) ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.werke-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 44px;
}
.werke-grid.teaser { margin-top: 40px; }

.book-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.book-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.book-tile .tile-cover {
  aspect-ratio: 947 / 1500;
  overflow: hidden;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
}
.book-tile .tile-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-tile .tile-body { padding: 24px 26px 28px; }
.book-tile .tile-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.book-tile h3 { margin: 8px 0 10px; font-size: 1.5rem; }
.book-tile p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.book-tile .tile-link {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
}

/* Placeholder cover block (used when no real cover supplied yet) */
.cover-mock {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #f2ede0;
}
.cover-mock .cm-eyebrow { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.cover-mock .cm-title { font-family: var(--font-serif); font-size: 1.7rem; line-height: 1.1; }

/* ---------- Book detail page ---------- */
.book-detail .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.book-detail-cover {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.book-detail-cover img { width: 100%; display: block; }

.formats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border-radius: 2px;
  padding: 10px 16px;
  margin-top: 20px;
  display: inline-block;
}

/* ---------- Leseprobe / Reingelesen ---------- */
.dedication {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--teal-dark);
  text-align: center;
  padding: 34px 0;
  position: relative;
}
.dedication .sub {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

.excerpt-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 44px;
  box-shadow: var(--shadow);
}
.excerpt-card p { margin: 0 0 1.2em; }
.excerpt-card p:last-child { margin-bottom: 0; }
.excerpt-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Gedichte ---------- */
.poem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.poem-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.poem-card:nth-child(even) { border-left-color: var(--teal); }
.poem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.poem-card h4 { margin-bottom: 4px; }
.poem-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.poem-fragment {
  font-family: var(--font-serif);
  white-space: pre-line;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Kalender ---------- */
.calendar-widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 28px;
  margin-top: 12px;
  max-width: 420px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.calendar-nav a {
  text-decoration: none;
  color: var(--teal-dark);
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 4px 10px;
}
.calendar-nav a:hover { background: var(--bg-alt); border-radius: 4px; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-weekday {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding-bottom: 6px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 3px;
  color: var(--ink);
}
.calendar-day.is-empty { visibility: hidden; }
.calendar-day.is-today { border: 1px solid var(--gold-dark); font-weight: 700; }
.calendar-day.has-event {
  background: var(--teal);
  color: #f2f7f6;
  font-weight: 700;
  cursor: default;
}

/* ---------- Termine ---------- */
.timeline {
  margin-top: 40px;
  border-left: 2px solid var(--line);
  padding-left: 30px;
  display: grid;
  gap: 28px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-alt);
}
.timeline-item.upcoming::before { background: var(--teal); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}
.timeline-item.upcoming .timeline-date { color: var(--teal-dark); }
.timeline-item h4 { margin: 4px 0 2px; font-size: 1.15rem; }
.timeline-item p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.event-address { margin: 2px 0 8px; font-size: 0.88rem; }
.event-address a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-dark);
  text-decoration: none;
}
.event-address a:hover { text-decoration: underline; }
.event-address a svg { width: 14px; height: 14px; flex: none; fill: currentColor; }
.event-address-plain { color: var(--ink-soft); }
.tag-upcoming, .tag-past {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
.tag-past { background: var(--line); color: var(--ink-soft); }
.tag-upcoming { background: var(--teal); color: #eef3ea; }

/* ---------- Kontakt ---------- */
.contact-box {
  background: var(--teal-dark);
  color: #f2ede0;
  border-radius: 3px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.contact-box h2 { color: #f2ede0; }
.contact-box .lede { color: rgba(242,237,224,0.75); }
.contact-links { display: grid; gap: 14px; }
.contact-links a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  border-bottom: 1px solid rgba(242,237,224,0.25);
  padding-bottom: 10px;
}
.contact-links span.k {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  display: block;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: rgba(242,244,242,0.7);
  padding: 40px 0;
  font-size: 0.85rem;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site-footer a { text-decoration: none; color: rgba(242,244,242,0.85); }
footer.site-footer .legal-links { display: flex; gap: 20px; }
footer.site-footer .legal-links a:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-page main {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 28px 100px;
}
.legal-page h1 { font-size: 2.1rem; margin-bottom: 0.2em; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-page p, .legal-page li { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .home-hero .wrap { grid-template-columns: 1fr; }
  .home-hero .portrait-frame { max-width: 340px; margin: 0 auto; }
  .werke-grid { grid-template-columns: 1fr; }
  .book-detail .wrap { grid-template-columns: 1fr; }
  .book-detail-cover { max-width: 320px; }
  .poem-grid { grid-template-columns: 1fr 1fr; }
  .contact-box { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 680px) {
  nav.main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--bg);
    padding: 30px 28px;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--line);
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav ul { flex-direction: column; gap: 22px; font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .poem-grid { grid-template-columns: 1fr; }
  .excerpt-card { padding: 26px; }
  section { padding: 56px 0; }
}
