* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0A0A0A;
  --bg-elevated: #111111;
  --text-primary: #E0E0E0;
  --text-bright: #FFFFFF;
  --mint: #A8E6CF;
  --mint-soft: #7FD8BE;
  --forest-dark: #1A4D3A;
  --shadow-color: rgba(0, 0, 0, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --font-heading: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1400px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

#scroll-indicator {
  position: fixed;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #2a2a2a;
  z-index: 10000;
  pointer-events: none;
}

#scroll-indicator .progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--mint);
  transition: height 0.1s linear;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #bbb;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.25s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--mint);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mint);
  transition: width 0.25s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem 2rem;
  position: relative;
  z-index: 10;
}

h2, h3, .section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.mint-text { color: var(--mint); }

.separator {
  width: 80px;
  height: 2px;
  background: var(--mint);
  margin: 1.5rem 0 2rem;
  opacity: 0.7;
}

blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  border-left: 2px solid var(--forest-dark);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: #cccccc;
  font-size: 1.2rem;
}

.quote-mint {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: normal;
  color: var(--mint);
  font-size: 1.3rem;
  margin: 1.8rem 0 1rem;
  letter-spacing: -0.01em;
}

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.hero { padding: 1rem 0 2rem; }

.hero .prolog-quote {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: var(--text-bright);
  border: none;
  padding-left: 0;
}

/* Hintergrundbild für alle Textcontainer */
.about-author,
.about-block,
.reader-container,
.panel {
  background-color: rgba(17, 17, 17, 0.7);
  background-image: url('Hintergrund.png');
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
}

.about-author {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.author-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mint);
}

.author-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.9;
}

.about-block {
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 20px 30px -15px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.about-block:hover {
  border-color: var(--forest-dark);
}

.about-block p { font-size: 1.2rem; line-height: 1.8; }

.reader-section { margin: 3rem 0; }

.book-container {
  perspective: 2000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book {
  width: 100%;
  max-width: 900px;
  height: 520px;
  position: relative;
  display: flex;
  background: rgba(17, 17, 17, 0.9);
  border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.page-left,
.page-right {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
  background: #2a3a34;
  color: #ffffff;
}

.page-left {
  border-right: 1px solid rgba(0,0,0,0.1);
}

.page-content {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.8;
  color: #ffffff;
  text-align: justify;
  hyphens: auto;
}

.page-number {
  position: absolute;
  bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #999;
}

.page-left .page-number { left: 1rem; }
.page-right .page-number { right: 1rem; }

.page-flip {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
  pointer-events: none;
  z-index: 20;
  display: none;
}

.page-flip.flipping,
.page-flip.flipping-reverse {
  display: block;
}

.page-flip-front,
.page-flip-back {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  padding: 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.8;
  overflow-y: auto;
  background: #2a3a34;
  color: #ffffff;
}

.page-flip-back {
  background: #2a3a34;
  transform: rotateY(180deg);
}

.book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 30px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
  z-index: 5;
  pointer-events: none;
}

.reader-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ddd;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 1.2rem;
}

.nav-btn:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(168, 230, 207, 0.08);
}

.page-indicator {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #aaa;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 8000;
  background: rgba(10,10,10,0.7);
  border: 1px solid var(--mint);
  color: var(--mint);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--mint);
  color: #000;
}

.voices { margin: 3rem 0; }

.voice-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size: 1.2rem;
  color: #ccc;
}

.voice-item i { color: var(--mint); font-size: 1.8rem; opacity: 0.8; }

.download-shop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 2rem 0 3rem;
}

.panel {
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(5px);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  color: var(--text-bright);
}

.panel:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: #000;
}

.panel:hover h3,
.panel:hover .small-note,
.panel:hover a { color: #000; }

.panel:hover .download-links a,
.panel:hover .shop-links a {
  color: #000;
  border-bottom-color: #000;
}

.panel h3 { font-size: 1.6rem; margin-bottom: 1rem; font-weight: 600; }

.download-links a, .shop-links a {
  display: inline-block;
  margin-right: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-bright);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}

.download-links a i, .shop-links a i { margin-right: 0.4rem; }

.download-links a:hover, .shop-links a:hover {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

.small-note { font-size: 0.9rem; color: #aaa; margin-top: 1rem; }

.social-section { text-align: center; margin: 3rem 0 2rem; }

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.social-icons a {
  color: #ddd;
  font-size: 2rem;
  transition: color 0.25s, transform 0.2s;
}

.social-icons a:hover { color: var(--mint); transform: translateY(-3px); }

.contact-note { font-size: 1rem; color: #999; font-style: italic; }

.footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 2rem;
}

.footer .closing {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.footer .mint-whisper {
  color: var(--mint);
  opacity: 0.65;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer .copyright { font-size: 0.85rem; color: #777; }

.growth-element {
  position: fixed;
  bottom: 20px;
  right: 25px;
  width: 80px;
  height: 160px;
  z-index: 5;
  opacity: 0.25;
  pointer-events: none;
}

.growth-element svg {
  width: 100%;
  height: 100%;
}

.tree-path {
  stroke: var(--mint);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  transition: stroke-dashoffset 2.5s ease-out;
}

@media (max-width: 800px) {
  .download-shop { grid-template-columns: 1fr; gap: 2rem; }
  .page { padding: 1rem 1rem 1.5rem; }
  .hero-banner { margin-bottom: 1rem; }
  .nav-inner { gap: 0.8rem; }
  .nav-link { font-size: 0.8rem; }
  .book { height: 400px; }
  .page-left, .page-right { padding: 1rem; }
  .page-content { font-size: 0.75rem; }
  .about-author { flex-direction: column; text-align: center; }
  .author-img { margin: 0 auto; }
}

@media (min-width: 1800px) {
  .page { max-width: 1500px; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
