/* ============================================================
   Risale-i Nur — risale.sumsatec.com
   Stil: osmanische Buchbinde-Ästhetik (Cilt): tiefes Nachtgrün,
   Gold-Ornament, Pergament — Leitmotiv „Nur" (Licht).
   ============================================================ */

/* ---------- Fonts (selbst gehostet, kein Google-CDN) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/cormorant-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/cormorant-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/cormorant-var-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/cormorant-var-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/amiri-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/amiri-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF;
}

/* ---------- Palette ---------- */
:root {
  --green-deep: #0b241f;
  --green: #103029;
  --green-soft: #17423a;
  --gold: #c9a227;
  --gold-bright: #e6c76a;
  --gold-dim: #8f742d;
  --parchment: #f3ecd9;
  --parchment-deep: #eaddbf;
  --ink: #2b2416;
  --ink-soft: #5c5033;
  --gutter: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px), 16px);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body-font: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
}

/* ---------- Reset / Grundlagen ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--green-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%23c9a227' stroke-opacity='.07'%3E%3Crect x='20' y='20' width='56' height='56'/%3E%3Crect x='20' y='20' width='56' height='56' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--parchment);
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--green-deep); }
img { max-width: 100%; }
section { scroll-margin-top: 84px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 10px;
  background: rgba(11, 36, 31, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--parchment);
}
.wordmark-nur {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-bright);
  transform: translateY(-2px);
}
.wordmark-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}
.topnav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { opacity: 1; border-bottom-color: var(--gold); }
#hard-refresh-btn {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 8px;
  background: transparent;
  color: var(--gold-bright);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
#hard-refresh-btn:hover { background: rgba(201, 162, 39, 0.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88vh;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 55% 45% at 50% 42%,
    rgba(230, 199, 106, 0.16), rgba(201, 162, 39, 0.05) 45%, transparent 70%);
  pointer-events: none;
}
.hero-frame {
  position: relative;
  max-width: 780px;
  padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgba(201, 162, 39, 0.55);
  outline: 1px solid rgba(201, 162, 39, 0.25);
  outline-offset: 7px;
  background: rgba(11, 36, 31, 0.35);
}
.corner {
  position: absolute;
  color: var(--gold);
  font-size: 0.8rem;
  line-height: 1;
}
.c-tl { top: -13px; left: -13px; }
.c-tr { top: -13px; right: -13px; }
.c-bl { bottom: -13px; left: -13px; }
.c-br { bottom: -13px; right: -13px; }
.hero-nur {
  font-family: 'Amiri', serif;
  font-size: clamp(4.5rem, 13vw, 7.5rem);
  line-height: 1.1;
  color: var(--gold-bright);
  text-shadow: 0 0 60px rgba(230, 199, 106, 0.45), 0 0 18px rgba(230, 199, 106, 0.25);
  margin-bottom: 0.5rem;
}
.kicker {
  font-family: var(--body-font);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.9rem, 10vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--parchment);
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  color: var(--gold-bright);
  margin-top: 0.5rem;
}
.hero-lead {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
  opacity: 0.92;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 2.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  font-family: var(--body-font);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 3px;
}
.btn-gold {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  color: var(--green-deep);
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(201, 162, 39, 0.35);
}
.btn-gold:hover { filter: brightness(1.07); }
.btn-line {
  border: 1px solid rgba(201, 162, 39, 0.6);
  color: var(--parchment);
}
.btn-line:hover { background: rgba(201, 162, 39, 0.12); }
.hero-note {
  position: relative;
  margin-top: 2rem;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.6;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}
.stat { text-align: center; padding: 1rem 0.5rem; }
.stat-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--gold-bright);
  line-height: 1.1;
}
.stat-plus { font-size: 0.6em; vertical-align: 0.35em; color: var(--gold); }
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.35rem;
}

/* ---------- Quote bands ---------- */
.quoteband {
  padding: clamp(3.5rem, 9vh, 6rem) var(--gutter);
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(23, 66, 58, 0.9), transparent 75%);
  text-align: center;
}
.quote-inner { max-width: 720px; margin: 0 auto; }
.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: '';
  height: 1px;
  width: min(120px, 22vw);
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.divider::after { background: linear-gradient(270deg, transparent, var(--gold-dim)); }
.divider span { font-family: 'Amiri', serif; font-size: 1.6rem; line-height: 1; }
blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  line-height: 1.35;
  color: var(--parchment);
}
.quote-de {
  margin-top: 1.25rem;
  font-size: 1.02rem;
  opacity: 0.85;
}
.quote-src {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 10vh, 7rem) var(--gutter); }
.section-inner { max-width: 1020px; margin: 0 auto; }
.section .kicker { margin-bottom: 0.5rem; }
.section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}
.parchment {
  background-color: var(--parchment);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%232b2416' stroke-opacity='.045'%3E%3Crect x='20' y='20' width='56' height='56'/%3E%3Crect x='20' y='20' width='56' height='56' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
}
.parchment .kicker { color: var(--gold-dim); }
.parchment h2 { color: var(--ink); }
.dark { color: var(--parchment); }
.prose p + p { margin-top: 1em; }
.prose strong { color: inherit; }
.two-col { columns: 2; column-gap: 3rem; }
.two-col p { break-inside: avoid; }

/* ---------- Cards (Bücher) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: linear-gradient(175deg, var(--parchment), var(--parchment-deep));
  color: var(--ink);
  border: 1px solid var(--gold-dim);
  outline: 1px solid rgba(143, 116, 45, 0.4);
  outline-offset: 4px;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.card-orn {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.1;
}
.card-de {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-dim);
  margin: 0.15rem 0 0.9rem;
}
.card-body { font-size: 0.93rem; line-height: 1.6; color: var(--ink-soft); }
.card-meta {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(143, 116, 45, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.card-link { text-decoration: none; color: var(--ink); }
.cards-narrow {
  grid-template-columns: repeat(auto-fit, minmax(260px, 480px));
  justify-content: center;
}
.minor-works { margin-top: 3rem; text-align: center; }
.minor-title {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.minor-works ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  font-size: 0.95rem;
  opacity: 0.88;
}
.minor-works span[lang="tr"] { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }

/* ---------- Autor ---------- */
.author-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.timeline {
  list-style: none;
  border-left: 2px solid var(--gold-dim);
  padding-left: 1.5rem;
  display: grid;
  gap: 1.1rem;
}
.timeline li { position: relative; font-size: 0.98rem; line-height: 1.5; }
.timeline li::before {
  content: '';
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.tl-year {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold-dim);
  line-height: 1.2;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 3.5rem var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  font-size: 0.95rem;
  opacity: 0.85;
}
.footer .divider { margin-bottom: 1.25rem; }
.footer-fine { margin-top: 0.4rem; font-size: 0.78rem; letter-spacing: 0.12em; opacity: 0.6; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .two-col { columns: 1; }
  .author-grid { grid-template-columns: 1fr; gap: 2rem; }
  .topnav a { padding: 0 8px; font-size: 0.88rem; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: 0.5rem; padding-bottom: 3rem; }
  .topnav { display: none; }
  .hero { min-height: 80vh; }
}
