/* ============================================================
   PERTION – Digitale Wahrnehmung für eine vernetzte Zukunft
   Stylesheet
   ============================================================ */

:root {
  --primary:       #0d1b2a;
  --accent:        #1e90ff;
  --accent-light:  #63b3ed;
  --surface:       #132238;
  --surface-2:     #1a2e45;
  --text:          #e8edf3;
  --text-muted:    #8fa8c0;
  --border:        #1e3a5f;
  --gold:          #c9a84c;
  --white:         #ffffff;
  --font-serif:    'Merriweather', Georgia, serif;
  --font-sans:     'Inter', 'Segoe UI', sans-serif;
  --radius:        8px;
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --transition:    0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .6rem; }
p  { margin-bottom: 1.2rem; color: var(--text); }
a  { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0d1b2a 0%, #0a2540 50%, #0d1b2a 100%);
  position: relative; overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(30,144,255,0.08) 0%, transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: normal; color: var(--accent);
  display: block; font-size: .7em;
  font-weight: 400; margin-top: .3rem;
}
.hero-desc {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 2.5rem; max-width: 520px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent); color: var(--white);
}
.btn-primary:hover { background: #1a7fe8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,144,255,0.35); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent-light); color: var(--white); transform: translateY(-2px); }

/* Book mockup */
.hero-book {
  display: flex; justify-content: center; align-items: center;
}
.book-cover {
  width: 260px; height: 370px;
  background: linear-gradient(145deg, #132238 0%, #0a2540 100%);
  border-radius: 4px 12px 12px 4px;
  box-shadow: -8px 8px 0 #0a1520, var(--shadow), 0 0 60px rgba(30,144,255,0.15);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; text-align: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
}
.book-cover::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 18px;
  background: linear-gradient(to right, #071525, #0d1b2a);
  border-right: 1px solid var(--border);
}
.book-cover-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.book-cover-title {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: .4rem; line-height: 1.3;
}
.book-cover-sub {
  font-size: .75rem; color: var(--accent-light);
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.book-cover-author {
  font-size: .8rem; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: .8rem;
  width: 100%;
}
.book-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--gold); color: #1a1200;
  font-size: .65rem; font-weight: 700;
  padding: .3rem .6rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .08em;
}

/* ── Pillars ── */
.pillars { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: .8rem auto 0; }
.pillars-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
}
.pillar-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.pillar-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.pillar-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.pillar-card h3 { color: var(--accent-light); font-size: 1rem; margin-bottom: .5rem; }
.pillar-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ── Chapters ── */
.chapters-list { display: flex; flex-direction: column; gap: 1.2rem; }
.chapter-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 1.5rem; align-items: center;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.chapter-item:hover { border-color: var(--accent); transform: translateX(4px); }
.chapter-num {
  font-family: var(--font-serif);
  font-size: 1.8rem; font-weight: 700;
  color: var(--border); line-height: 1;
  min-width: 2.5rem; text-align: center;
}
.chapter-item:hover .chapter-num { color: var(--accent); }
.chapter-info h3 { font-size: 1.05rem; margin-bottom: .25rem; color: var(--white); }
.chapter-info p { font-size: .85rem; color: var(--text-muted); margin: 0; }
.chapter-tag {
  font-size: .72rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}
.tag-philosophy { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.tag-tech       { background: rgba(30,144,255,0.15); color: var(--accent-light); border: 1px solid rgba(30,144,255,0.3); }
.tag-ethics     { background: rgba(72,187,120,0.15); color: #68d391; border: 1px solid rgba(72,187,120,0.3); }
.tag-ai         { background: rgba(159,122,234,0.15); color: #b794f4; border: 1px solid rgba(159,122,234,0.3); }
.tag-future     { background: rgba(236,153,75,0.15); color: #f6ad55; border: 1px solid rgba(236,153,75,0.3); }

/* ── Reading Excerpt ── */
.excerpt { background: var(--surface); }
.excerpt-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  max-width: 820px; margin: 0 auto;
  position: relative;
}
.excerpt-box::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 8rem; line-height: 0;
  color: var(--accent); opacity: .15;
  position: absolute; top: 2.5rem; left: 1.5rem;
}
.excerpt-label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
}
.excerpt-text {
  font-family: var(--font-serif);
  font-size: 1.05rem; line-height: 1.9;
  color: var(--text); font-style: italic;
}
.excerpt-source {
  margin-top: 1.5rem; font-size: .85rem;
  color: var(--text-muted); font-style: normal;
}

/* ── Glossar ── */
.glossar-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.glossar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; gap: 1.2rem; align-items: flex-start;
  transition: border-color var(--transition);
}
.glossar-card:hover { border-color: var(--accent-light); }
.glossar-qr {
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: white; border-radius: 6px;
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.glossar-qr img { width: 56px; height: 56px; }
.glossar-content h3 { font-size: .95rem; color: var(--accent-light); margin-bottom: .4rem; }
.glossar-content p { font-size: .82rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.glossar-link {
  display: inline-block; margin-top: .5rem;
  font-size: .75rem; color: var(--accent);
}

/* ── Author ── */
.author { background: var(--surface); }
.author-inner {
  display: grid; grid-template-columns: auto 1fr;
  gap: 3rem; align-items: start;
  max-width: 820px; margin: 0 auto;
}
.author-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0a2540);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; flex-shrink: 0;
  border: 3px solid var(--border);
}
.author-name { font-size: 1.4rem; margin-bottom: .3rem; }
.author-title { color: var(--accent-light); font-size: .9rem; margin-bottom: 1.2rem; }
.author-tags { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.author-tag {
  font-size: .75rem; padding: .25rem .7rem;
  border-radius: 20px; border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── Footer ── */
footer {
  background: #070f1a;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 700;
  color: var(--white); margin-bottom: .5rem;
}
.footer-logo span { color: var(--accent); }
.footer-sub { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.5rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--text-muted); font-size: .78rem; }

/* ── Page-specific ── */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(180deg, #0a2540 0%, var(--primary) 100%);
  text-align: center;
}
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 1rem auto 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-book { display: none; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: var(--primary); padding: 1.5rem; gap: 1.2rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .chapter-item { grid-template-columns: auto 1fr; }
  .chapter-tag { display: none; }
  .author-inner { grid-template-columns: 1fr; }
  .author-avatar { margin: 0 auto; }
  .excerpt-box { padding: 2rem 1.5rem; }
}
