/* ============================================================
   Golf ist ein sehr erotisches Spiel – Static Site CSS
   Design: Dark Academia Gentleman's Golf Club Satire
   Colors: Forest green #1B3A2D · Gold #C9A84C · Ivory #F2ECD8
   Fonts: Cormorant Garamond (headings) · Lora (body)
   ============================================================ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: #F2ECD8; color: #2a1f14; font-family: 'Lora', Georgia, serif; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --green: #1B3A2D;
  --gold: #C9A84C;
  --ivory: #F2ECD8;
  --text: #2a1f14;
  --max-w: 780px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ─── Reading Progress Bar ──────────────────────────────────── */
#reading-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  z-index: 200; transition: width 0.1s linear;
}

/* ─── Scroll-to-top Button ──────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 150;
  width: 2.5rem; height: 2.5rem; border-radius: 2px;
  background: var(--green); border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.15s var(--ease-out);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { transform: scale(1.08); }
#scroll-top:active { transform: scale(0.95); }

/* ─── Desktop Share Bar ─────────────────────────────────────── */
#desktop-share-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 140;
  align-items: center; justify-content: center; gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(27,58,45,0.97); border-top: 1px solid rgba(201,168,76,0.25);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  transform: translateY(100%);
}
#desktop-share-bar.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (min-width: 768px) { #desktop-share-bar { display: flex; } }
.share-label {
  font-family: 'Lora', Georgia, serif; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242,236,216,0.6);
  white-space: nowrap;
}
.share-buttons-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ─── Share Buttons (shared style) ─────────────────────────── */
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem; border-radius: 2px; border: none; cursor: pointer;
  font-family: 'Lora', Georgia, serif; font-size: 0.78rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  background: rgba(242,236,216,0.08); color: rgba(242,236,216,0.75);
  border: 1px solid rgba(201,168,76,0.2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.share-btn:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.share-btn.facebook:hover { background: #1877F2; border-color: #1877F2; }
.share-btn.x:hover { background: #000; border-color: #555; }
.share-btn.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.share-btn.whatsapp:hover { background: #25D366; border-color: #25D366; }
.share-btn.pinterest:hover { background: #E60023; border-color: #E60023; }
.share-btn.email:hover { background: #6B7280; border-color: #6B7280; }
.share-btn.copy:hover { background: var(--green); border-color: var(--gold); color: var(--gold); }

/* Main share section (light bg) */
.social-sharing .share-btn {
  background: rgba(27,58,45,0.06); color: var(--text);
  border-color: rgba(201,168,76,0.25);
}
.social-sharing .share-btn:hover { color: #fff; }

/* ─── TOC ───────────────────────────────────────────────────── */
#toc-toggle-wrap {
  position: fixed; top: 1.25rem; right: 1.25rem; z-index: 130;
}
#toc-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; border-radius: 2px; cursor: pointer;
  background: rgba(27,58,45,0.92); border: 1px solid rgba(201,168,76,0.3);
  color: rgba(242,236,216,0.85); font-family: 'Lora', Georgia, serif;
  font-size: 0.8rem; letter-spacing: 0.08em;
  backdrop-filter: blur(6px); transition: border-color 0.2s;
}
#toc-toggle:hover { border-color: rgba(201,168,76,0.6); }

#toc-drawer {
  position: fixed; top: 0; right: -340px; width: 320px; max-width: 90vw;
  height: 100vh; z-index: 160; overflow-y: auto;
  background: var(--green); border-left: 1px solid rgba(201,168,76,0.2);
  transition: right 0.4s var(--ease-out);
}
#toc-drawer.open { right: 0; }
#toc-inner { padding: 2rem 1.5rem; }
.toc-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-family: 'Lora', Georgia, serif; margin-bottom: 1.5rem;
}
#toc-nav a {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.5rem 0.5rem; border-radius: 2px; text-decoration: none;
  transition: background 0.15s;
}
#toc-nav a:hover { background: rgba(201,168,76,0.1); }
#toc-nav .toc-num {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 0.75rem;
  color: var(--gold); min-width: 2rem; flex-shrink: 0;
}
#toc-nav .toc-title {
  font-family: 'Lora', Georgia, serif; font-size: 0.85rem;
  color: rgba(242,236,216,0.7); line-height: 1.4;
}
#toc-nav a.active .toc-title { color: var(--gold); }

#toc-backdrop {
  display: none; position: fixed; inset: 0; z-index: 155;
  background: rgba(0,0,0,0.4);
}
#toc-backdrop.open { display: block; }

/* ─── Lightbox ──────────────────────────────────────────────── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(6px);
}
#lightbox.open { display: flex; }
#lightbox-inner {
  position: relative; max-width: 900px; width: 100%;
  animation: lb-in 0.3s var(--ease-out);
}
@keyframes lb-in { from { opacity:0; transform: scale(0.92); } to { opacity:1; transform: scale(1); } }
#lightbox-img {
  width: 100%; border-radius: 2px; max-height: 85vh; object-fit: contain;
  border: 1px solid rgba(201,168,76,0.3); box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
#lightbox-caption {
  text-align: center; margin-top: 0.75rem; font-size: 0.85rem; font-style: italic;
  color: rgba(242,236,216,0.55); font-family: 'Lora', Georgia, serif;
}
#lightbox-close {
  position: absolute; top: -1rem; right: -1rem; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--green); border: 1px solid rgba(201,168,76,0.5); color: var(--gold);
  cursor: pointer; transition: transform 0.15s;
}
#lightbox-close:hover { transform: scale(1.1); }

/* ─── Hero ──────────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh; display: flex;
  flex-direction: column; justify-content: flex-end;
  background: var(--green);
}
#hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  opacity: 0.45;
}
#hero-content {
  position: relative; z-index: 2;
  padding: 3rem 2rem 4rem; max-width: 900px;
}
.hero-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-family: 'Lora', Georgia, serif; margin-bottom: 1.5rem;
}
#hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 300; line-height: 1.05;
  color: var(--ivory); margin-bottom: 1.5rem;
}
#hero-title em { color: var(--gold); font-style: italic; }
#hero-subtitle {
  font-family: 'Lora', Georgia, serif; font-size: 1.1rem; line-height: 1.7;
  color: rgba(242,236,216,0.7); max-width: 520px; margin-bottom: 2rem;
}
#hero-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: 'Lora', Georgia, serif; font-size: 0.8rem;
  color: rgba(242,236,216,0.5);
}
.hero-divider {
  display: inline-block; width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
}
#hero-read-link {
  color: var(--gold); text-decoration: none; letter-spacing: 0.08em;
  transition: opacity 0.2s;
}
#hero-read-link:hover { opacity: 0.75; }

/* ─── Main Content ──────────────────────────────────────────── */
#main-content {
  max-width: var(--max-w); margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

/* ─── Chapter ───────────────────────────────────────────────── */
.chapter { margin-bottom: 5rem; }
.chapter-header { margin-bottom: 1.5rem; }
.chapter-number {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-family: 'Lora', Georgia, serif; margin-bottom: 0.5rem;
}
.chapter h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; line-height: 1.15;
  color: var(--green); margin-bottom: 1rem;
}
.chapter-rule {
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.7s 0.3s var(--ease-out);
}
.chapter.visible .chapter-rule { width: 4rem; }

/* Chapter body layouts */
.chapter-body { }
.chapter-body.side-image {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 640px) {
  .chapter-body.side-image { grid-template-columns: 3fr 2fr; align-items: start; }
}
.chapter-body.wide-image .chapter-text { margin-bottom: 1.5rem; }
.chapter-body.wide-image { display: flex; flex-direction: column; }
@media (min-width: 640px) {
  .chapter-body.wide-image { flex-direction: column; }
}

/* Paragraphs */
.chapter-body p, .chapter-body .chapter-text p {
  font-family: 'Lora', Georgia, serif; font-size: 1.05rem; line-height: 1.85;
  color: var(--text); margin-bottom: 1.25rem;
}
.chapter-body > p { font-family: 'Lora', Georgia, serif; font-size: 1.05rem; line-height: 1.85; color: var(--text); margin-bottom: 1.25rem; }

/* Drop cap */
.drop-cap::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.5rem; font-weight: 300; line-height: 0.75;
  float: left; margin-right: 0.1em; margin-top: 0.1em;
  color: var(--green);
}

/* Illustrations */
.chapter-illustration {
  position: relative; border-radius: 2px; overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.chapter-illustration.wide img { width: 100%; max-height: 480px; object-fit: cover; }
.chapter-illustration.side img { width: 100%; object-fit: cover; }
.chapter-illustration.clickable-img { cursor: zoom-in; }
.img-zoom-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0); opacity: 0;
  transition: opacity 0.3s, background 0.3s;
}
.chapter-illustration:hover .img-zoom-hint { opacity: 1; background: rgba(0,0,0,0.25); }

/* Pull quotes */
.pull-quote {
  margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 2px solid var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 300; font-style: italic;
  line-height: 1.35; color: var(--green);
}

/* Gold ornament */
.gold-ornament {
  display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0;
}
.gold-ornament span {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Finis */
.finis {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-family: 'Lora', Georgia, serif;
  margin-top: 2rem; text-align: center;
}

/* ─── Text links (in-content) ───────────────────────────────── */
.text-link {
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.6);
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--gold); border-color: var(--gold); }

/* ─── Fade-in animation ─────────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Social Sharing ────────────────────────────────────────── */
.social-sharing {
  margin-bottom: 4rem; padding-top: 1rem;
}
.section-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(201,168,76,0.7); font-family: 'Lora', Georgia, serif;
  margin-bottom: 1.25rem; text-align: center;
}
.share-buttons {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}

/* ─── Partner Links ─────────────────────────────────────────── */
.partner-links { margin-bottom: 4rem; }
.section-divider {
  height: 1px; margin-bottom: 2.5rem;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.partner-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 560px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
.partner-card {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.25rem; border-radius: 2px; text-decoration: none;
  background: rgba(27,58,45,0.04); border: 1px solid rgba(201,168,76,0.15);
  transition: border-color 0.2s, background 0.2s;
}
.partner-card:hover { border-color: rgba(201,168,76,0.45); background: rgba(27,58,45,0.08); }
.partner-card-header {
  display: flex; align-items: center; gap: 0.75rem;
}
.partner-card-header svg { color: var(--gold); flex-shrink: 0; }
.partner-card-header span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem; color: var(--green);
}
.partner-card p {
  font-family: 'Lora', Georgia, serif; font-size: 0.82rem;
  line-height: 1.65; color: rgba(42,31,20,0.65);
}
.partner-more {
  font-family: 'Lora', Georgia, serif; font-size: 0.75rem;
  color: rgba(201,168,76,0.6); margin-top: auto;
}

/* ─── Newsletter ────────────────────────────────────────────── */
.newsletter {
  margin-bottom: 4rem; padding: 2.5rem 2rem 3rem;
  background: var(--green); border-radius: 2px;
  border: 1px solid rgba(201,168,76,0.25); text-align: center;
}
.newsletter-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-family: 'Lora', Georgia, serif; margin-bottom: 0.75rem;
}
.newsletter h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem; font-weight: 300; color: var(--ivory); margin-bottom: 0.75rem;
}
.newsletter-desc {
  font-family: 'Lora', Georgia, serif; font-size: 0.9rem;
  color: rgba(242,236,216,0.55); max-width: 420px; margin: 0 auto 2rem; line-height: 1.7;
}
#newsletter-form {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 420px; margin: 0 auto;
}
#newsletter-form input {
  width: 100%; padding: 0.85rem 1rem; border-radius: 2px;
  background: rgba(242,236,216,0.07); border: 1px solid rgba(201,168,76,0.25);
  color: var(--ivory); font-family: 'Lora', Georgia, serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
#newsletter-form input::placeholder { color: rgba(242,236,216,0.35); }
#newsletter-form input:focus { border-color: rgba(201,168,76,0.55); }
#newsletter-form button {
  padding: 0.85rem 1rem; border-radius: 2px; cursor: pointer;
  background: var(--gold); border: none; color: var(--green);
  font-family: 'Lora', Georgia, serif; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.06em; transition: opacity 0.2s, transform 0.15s;
}
#newsletter-form button:hover { opacity: 0.9; }
#newsletter-form button:active { transform: scale(0.97); }
#newsletter-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.nl-message { margin-top: 1rem; font-family: 'Lora', Georgia, serif; font-size: 0.85rem; min-height: 1.2em; }
.nl-message.success { color: #6ee7b7; }
.nl-message.error { color: #fca5a5; }

/* ─── Author ────────────────────────────────────────────────── */
.author-section { margin-bottom: 4rem; }
.author-card {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 2rem; border-radius: 2px;
  background: rgba(27,58,45,0.04); border: 1px solid rgba(201,168,76,0.15);
}
@media (min-width: 480px) { .author-card { flex-direction: row; align-items: flex-start; } }
.author-portrait {
  width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(201,168,76,0.4); box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.author-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-family: 'Lora', Georgia, serif; margin-bottom: 0.4rem;
}
.author-card h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem; font-weight: 300; color: var(--green); margin-bottom: 0.5rem;
}
.author-card p {
  font-family: 'Lora', Georgia, serif; font-size: 0.9rem;
  line-height: 1.75; color: var(--text); margin-bottom: 1rem;
}
.author-link {
  font-family: 'Lora', Georgia, serif; font-size: 0.85rem;
  color: var(--green); text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.5); padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.author-link:hover { color: var(--gold); border-color: var(--gold); }

/* ─── Footer ────────────────────────────────────────────────── */
#site-footer {
  padding: 3rem 1.5rem; text-align: center;
  background: var(--green); border-top: 1px solid rgba(201,168,76,0.2);
}
.footer-tagline {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(201,168,76,0.5); font-family: 'Lora', Georgia, serif; margin-bottom: 0.4rem;
}
.footer-sub {
  font-size: 0.75rem; color: rgba(242,236,216,0.3);
  font-family: 'Lora', Georgia, serif; margin-bottom: 1.5rem;
}
.footer-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.footer-nav a {
  font-family: 'Lora', Georgia, serif; font-size: 0.78rem; letter-spacing: 0.08em;
  color: rgba(242,236,216,0.5); text-decoration: none; transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-dot { color: rgba(201,168,76,0.3); }
.footer-copy { font-family: 'Lora', Georgia, serif; font-size: 0.72rem; color: rgba(242,236,216,0.2); }

/* ─── Impressum / Datenschutz pages ────────────────────────── */
.legal-header {
  padding: 2rem 1.5rem;
  background: var(--green); border-bottom: 1px solid rgba(201,168,76,0.2);
}
.legal-header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.legal-back {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); font-family: 'Lora', Georgia, serif; text-decoration: none;
  transition: opacity 0.2s;
}
.legal-back:hover { opacity: 0.75; }
.legal-site-name {
  font-size: 0.7rem; letter-spacing: 0.08em;
  color: rgba(242,236,216,0.4); font-family: 'Lora', Georgia, serif;
}
.legal-main { max-width: var(--max-w); margin: 0 auto; padding: 4rem 1.5rem 2rem; }
.legal-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-family: 'Lora', Georgia, serif; margin-bottom: 0.75rem;
}
.legal-main h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 300; color: var(--green);
  margin-bottom: 1rem;
}
.legal-rule { width: 4rem; height: 1px; background: var(--gold); margin-bottom: 3rem; }
.legal-card {
  padding: 2rem; border-radius: 2px;
  background: rgba(27,58,45,0.04); border: 1px solid rgba(201,168,76,0.2);
}
.legal-section { margin-bottom: 2rem; }
.legal-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem; font-weight: 300; color: var(--green); margin-bottom: 1rem;
}
.legal-section p, .legal-section li {
  font-family: 'Lora', Georgia, serif; font-size: 0.95rem;
  line-height: 1.8; color: var(--text); margin-bottom: 0.75rem;
}
.legal-section ul { padding-left: 1.5rem; }
.legal-section a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(201,168,76,0.5); }
.legal-divider {
  height: 1px; margin: 2rem 0;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}

/* ─── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 480px) {
  #hero-content { padding: 2rem 1.25rem 3rem; }
  #main-content { padding: 2.5rem 1rem 1rem; }
  .newsletter { padding: 2rem 1.25rem; }
  .legal-main { padding: 2.5rem 1rem 1rem; }
}

/* ─── prefers-reduced-motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; }
  .chapter-rule { transition: none; }
  #reading-progress { transition: none; }
}
