/* ===================================================================
   tc-klein.de — Stylesheet
   Design: Dark mystisch, inspiriert vom Cover "Der Anker"
   WCAG 2.1 AA, Mobile-first, Responsive
   =================================================================== */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --bg:           #07080d;
  --surface:      #0e1018;
  --surface-2:    #141720;
  --accent:       #00e676;
  --accent-dim:   #00994e;
  --accent-glow:  rgba(0, 230, 118, 0.12);
  --text:         #f0f0f0;
  --text-muted:   #8899aa;
  --border:       #1a2030;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:        64px;
  --max-w:        1080px;
  --r:            4px;
  --transition:   0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Skip Link ─────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0 0 var(--r) var(--r);
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

/* ── Focus ─────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-mono);
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { max-width: 68ch; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: #fff; }

/* ── Layout ────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ── Navigation ────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--nav-h);
  background: rgba(7, 8, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}

.nav-inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-lang {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.22rem 0.6rem;
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  letter-spacing: 0.06em;
}
.nav-lang:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--r);
  width: 38px;
  height: 38px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a { font-size: 1rem; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 8, 13, 0.70) 0%,
    rgba(7, 8, 13, 0.50) 35%,
    rgba(7, 8, 13, 0.80) 75%,
    rgba(7, 8, 13, 1.00) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0;
  width: 100%;
}

.hero-book {
  flex-shrink: 0;
  width: clamp(150px, 18vw, 240px);
}

.hero-book img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow:
    0 0 50px rgba(0, 230, 118, 0.18),
    0 25px 70px rgba(0, 0, 0, 0.85);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

.hero-text { max-width: 600px; }

.hero-genre {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.hero-book-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.hero-author {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  letter-spacing: 0.06em;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(240, 240, 240, 0.80);
  margin-bottom: 2rem;
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

@media (max-width: 700px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 2rem 0 3rem;
  }
  .hero-book { width: clamp(130px, 38vw, 190px); }
  .hero-ctas { justify-content: center; }
  .hero-description { margin-inline: auto; }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform 0.1s;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #1fffa0;
  color: var(--bg);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

/* ── Section: Buch ─────────────────────────────────────────────── */
.buch {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.buch-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.buch-meta { display: flex; flex-direction: column; }

.meta-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
}
.meta-row:first-of-type { border-top: 1px solid var(--border); }

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  min-width: 6rem;
  flex-shrink: 0;
}

.meta-value {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.buch-description {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}
.buch-description p + p { margin-top: 1rem; }

.buch-motto {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-dim);
  border-left: 2px solid var(--accent-dim);
  padding-left: 1rem;
  margin-top: 2rem;
  font-style: italic;
}

@media (max-width: 700px) {
  .buch-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Section: Leseprobe ────────────────────────────────────────── */
.chapter-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.chapter-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.chapter-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.chapter-intro {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.chapter-text { font-size: 1rem; line-height: 1.9; color: var(--text-muted); }
.chapter-text p { margin-bottom: 1.1rem; max-width: 68ch; }
.chapter-text p:last-child { margin-bottom: 0; }

.scene-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dim);
  margin: 2.25rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.chapter-text p:first-child + .scene-label,
.chapter-text .scene-label:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.chapter-text blockquote {
  border-left: 3px solid var(--accent-dim);
  padding: 0.875rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(0, 153, 78, 0.07);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--text-muted);
}
.chapter-text blockquote p { margin-bottom: 0; font-style: italic; max-width: 100%; }

/* ── Lead Magnet Form ──────────────────────────────────────────── */
.lead-magnet {
  background: linear-gradient(140deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--accent-dim);
  border-radius: var(--r);
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
}

.lead-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.lead-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  max-width: 60ch;
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 200px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  border-radius: var(--r);
  font-size: 1rem;
  font-family: var(--font-sans);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder { color: var(--text-muted); opacity: 0.7; }

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.55;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15em;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-check a { font-size: 0.88rem; }

/* ── Section: Autor ────────────────────────────────────────────── */
.autor-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.autor-avatar {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dim);
  font-family: var(--font-mono);
  font-size: 2.5rem;
}

.autor-bio {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}
.autor-bio p + p { margin-top: 1rem; }

@media (max-width: 600px) {
  .autor-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Section: Benachrichtigung ─────────────────────────────────── */
.benachrichtigung {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.notify-form { max-width: 520px; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  list-style: none;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-ai {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
  line-height: 1.6;
  max-width: 70ch;
}

/* ── Utility ───────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Inner-page layout (Impressum / Datenschutz / Danke) ─────── */
.inner-page {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
  min-height: 100vh;
}

.inner-page h1 { margin-bottom: 0.5rem; }
.inner-page .page-intro { color: var(--text-muted); margin-bottom: 3rem; font-size: 1.05rem; }
.inner-page h2 { font-size: 1.1rem; margin-top: 2.5rem; margin-bottom: 0.75rem; color: var(--accent); }
.inner-page h3 { font-size: 0.95rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--text-muted); font-weight: 600; }
.inner-page p  { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }
.inner-page ul { color: var(--text-muted); font-size: 0.95rem; padding-left: 1.5rem; margin-bottom: 1rem; }
.inner-page ul li { margin-bottom: 0.35rem; }
.inner-page a  { font-size: 0.95rem; }
.inner-page hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
