/* ═══════════════════════════════════════════════════════════
   herr eich — shared styles v1.0
   Last updated: April 2026
   Design System: herr-eich-design-system.html
   ═══════════════════════════════════════════════════════════ */

/* ─── Self-hosted fonts ───
   Four WOFF2 files in /fonts/:
     lora-variable.woff2
     lora-italic-variable.woff2
     manrope-variable.woff2
     tiro-devanagari-sanskrit.woff2
   DSGVO-compliant — no external font CDN.
*/
@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora-italic-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-variable.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tiro Devanagari Sanskrit';
  src: url('/fonts/tiro-devanagari-sanskrit.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

/* ─── Design tokens ─── */
:root {
  /* Backgrounds — the parchment scale */
  --bg-surface:    #EFE4CE;
  --bg-warm:       #E8DBC0;
  --bg-card:       #e4d6b8;
  --bg-card-hover: #e1d2b1;
  --bg-nav:        rgba(239, 228, 206, 0.88);

  /* Text — the ink scale */
  --text-primary:    #362818;
  --text-body:       #5A4530;
  --text-accent:     #7A5A2E;   /* the signature gold-brown — italic, links, key terms */
  --text-muted:      #857058;
  --text-decorative: #A89478;
  --text-faint:      #A89478;   /* alias for legacy class usage */
  --ink-deep:        #1F1208;   /* wordmark only */

  /* Structure */
  --line: rgba(120, 90, 50, 0.18);
  --max:  560px;
  --pad:  2rem;
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  overflow: hidden;
  height: 100%;
}
body {
  font-family: 'Lora', serif;
  background: var(--bg-surface);
  color: var(--text-primary);
  height: 100%;
  overflow: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background-color: rgba(122, 90, 46, 0.18);
  color: var(--text-primary);
}

/* ─── Inline emphasis default ─── */
em {
  font-style: italic;
  color: var(--text-accent);
}

/* ─── Sections (full-viewport blur/focus transitions) ─── */
section {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  padding: 6rem var(--pad) 5rem;
  flex-direction: column;
  justify-content: flex-start;
  display: flex;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
  transition:
    opacity 700ms cubic-bezier(0.25, 0.1, 0.25, 1),
    filter  700ms cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, filter;
}

.home-spacer {
  height: calc(0.6rem + 1rem); /* reduced — was 1.2rem + 2.5rem */
  flex-shrink: 0;
}

/* Tighter top padding on home only — so the whole page fits above the fold */
#home { padding-top: 3rem; }

section.active {
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
}

.inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

/* ─── Breath rule (shared divider) ─── */
.breath {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, transparent, var(--text-decorative), transparent);
  margin: 2.5rem auto;
}

/* ─── Devanagari signature — sits below the footer as a closing mark ─── */
.devanagari-rule {
  text-align: left;
  margin: 2.5rem 0 1rem;
  font-family: 'Tiro Devanagari Sanskrit', serif;
  color: var(--text-decorative);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  opacity: 0.55;
  line-height: 1.3;
}

/* ─── Devanagari threshold — sits above the wordmark on home as an opening invocation ─── */
.devanagari-threshold {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text-decorative);
  opacity: 0.55;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  text-align: left;
  animation: fadeUp 1.2s ease both;
}

/* ═══════════════════════════════════════════════════════
   HOME SECTION
   ═══════════════════════════════════════════════════════ */

.home-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-bottom: 2.5rem;
  animation: fadeUp 1.2s ease both;
}

/* The brand wordmark — when used as a home-label or signature */
.wordmark {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-deep);
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
}

.home-question {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  animation: fadeUp 1.2s ease 0.2s both;
}
.home-question em {
  font-style: italic;
  color: var(--text-accent);
}

.home-subtitle {
  font-family: 'Lora', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-accent);
  line-height: 1.55;
  margin-bottom: 0.5rem;
  display: block;
  animation: fadeUp 1.2s ease 0.3s both;
}

.home-para {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 2rem;
  animation: fadeUp 1.2s ease 0.4s both;
}
.home-para em {
  font-style: italic;
  color: var(--text-accent);
}

/* ═══════════════════════════════════════════════════════
   ROADMAP LABEL (home page text arc)
   ═══════════════════════════════════════════════════════ */

.roadmap-label {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}
.roadmap-aktuell {
  font-family: 'Manrope', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-decorative);
  font-weight: 400;
  margin-right: 0.75rem;
}
.roadmap-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-warm);
  padding: 0.35rem 1.1rem;
  border-radius: 100px;
}
.roadmap-active {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-body);
}
.roadmap-dot {
  color: var(--text-decorative);
  font-size: 0.7rem;
}
.roadmap-future {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-decorative);
  opacity: 0.55;
}

/* ═══════════════════════════════════════════════════════
   KONTAKTLISTE REFERENCE (home page quiet CTA)
   ═══════════════════════════════════════════════════════ */

.kontaktliste-ref {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}
.kontaktliste-line {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}
.kontaktliste-link {
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
}

/* ═══════════════════════════════════════════════════════
   READ HIGHLIGHT (book recommendation on Lesen/Read)
   ═══════════════════════════════════════════════════════ */

.read-highlight {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.read-highlight-cover {
  width: 90px;
  height: auto;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.read-highlight-title {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.read-highlight-text {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════
   SCHRIFTEN ACCORDION (About page)
   ═══════════════════════════════════════════════════════ */

.schriften-accordion {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.schriften-item {
  border-bottom: 1px solid var(--line);
}
.schriften-item:last-child {
  border-bottom: none;
}
.schriften-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
}
.schriften-active .schriften-header {
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.schriften-active .schriften-header:hover {
  opacity: 0.7;
}
.schriften-title {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0 0 0.15rem;
  padding: 0;
  line-height: 1.3;
}
.about-body .schriften-title {
  margin: 0 0 0.15rem;
  line-height: 1.3;
}
.schriften-paths {
  font-family: 'Lora', serif;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.about-body .schriften-paths {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.schriften-badge {
  font-family: 'Manrope', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  display: inline-block;
}
.schriften-badge-active {
  color: #2E5A3E;
  background: rgba(46, 90, 62, 0.1);
}
.schriften-badge-future {
  color: var(--text-muted);
  background: rgba(133, 112, 88, 0.08);
}
.schriften-toggle {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1.5rem;
}
.schriften-arrow {
  display: inline-block;
  transition: transform 0.4s ease;
}
.schriften-item.open .schriften-arrow {
  transform: rotate(90deg);
}
.schriften-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.5s ease;
  opacity: 0;
}
.schriften-item.open .schriften-body {
  opacity: 1;
}
.schriften-body-inner {
  padding: 0 0 1.25rem;
}
.schriften-body-inner p {
  font-family: 'Lora', serif;
  font-size: inherit;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.schriften-body-inner p:last-child {
  margin-bottom: 0;
}
.schriften-disabled {
  opacity: 0.38;
}
.schriften-disabled .schriften-header {
  cursor: default;
}

/* ═══════════════════════════════════════════════════════
   NAV LIST (home page vertical nav)
   ═══════════════════════════════════════════════════════ */

.nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeUp 1.2s ease 0.6s both;
}

.nav a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: color 0.3s ease;
}
.nav a:hover { color: var(--text-primary); }
.nav a::after { content: '→'; font-size: 1rem; transition: transform 0.3s ease; }
.nav a:hover::after { transform: translateX(4px); }

/* Nav no longer closes with a line — the foot-divider carries that job */
.nav > *:last-child { border-bottom: none; }

.nav .nav-disabled {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: default;
  opacity: 0.5;
}
.nav .nav-disabled::after { content: '—'; font-size: 1rem; }

/* Nav subtitle (two-line layout) */
.nav .nav-text { flex: 1; }
.nav .nav-title { display: block; font-weight: 500; }
.nav .nav-subtitle {
  display: block;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-decorative);
  font-weight: 300;
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════
   BACK LINK + PAGE LABEL
   ═══════════════════════════════════════════════════════ */

.back {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--text-decorative);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
  line-height: 1;
}
.back:hover { color: var(--text-muted); }
.back::before { content: '←'; }

.page-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-bottom: 3rem;
}

/* ═══════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════ */

.about-name {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.about-body p {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.about-body p em {
  font-style: italic;
  color: var(--text-accent);
}
.about-body p.schriften-paths {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

/* ── Portrait card (About page) ── */
.portrait-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.portrait-photo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-warm);
  border: 1px solid var(--line);
}
.portrait-quote {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0.45rem;
}
.about-body .portrait-quote {
  margin-bottom: 0.45rem;
}
.portrait-name {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-deep);
  letter-spacing: 0.005em;
}

.about-section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-bottom: 1.25rem;
  margin-top: 2.25rem;
}
.schriften-body-inner .about-section-label:first-child {
  margin-top: 0;
}

.zuruck-block {
  border-left: 2px solid var(--line);
  padding: 1rem 1.25rem;
  background: var(--bg-warm);
  margin: 2rem 0;
}
.zuruck-block p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-accent);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

/* ─── Vita list ─── */
.vita-group { margin-bottom: 2rem; }

.vita-group h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.vita-group ul { list-style: none; }

.vita-group li {
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-body);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
  display: flex;
  gap: 0.6rem;
}
.vita-group li::before {
  content: '›';
  color: var(--text-decorative);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   LEGEND PAGE (key term entries)
   ═══════════════════════════════════════════════════════ */

.keys-intro {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 3rem;
}

.key-entry {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: none;
  position: relative;
}
.key-entry::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--line);
  margin: 0 auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.key-entry:last-of-type::after { display: none; }

.key-term {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-accent);
  display: block;
  margin-bottom: 0.3rem;
}

/* Optional Devanagari companion beneath the Latin term */
.key-devanagari {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 0.95rem;
  color: var(--text-decorative);
  display: block;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.key-body {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.85;
}
.key-body em {
  font-style: italic;
  color: var(--text-accent);
}

/* ═══════════════════════════════════════════════════════
   READING PAGE (source entries)
   ═══════════════════════════════════════════════════════ */

.source-entry {
  margin-bottom: 3.5rem; /* increased from 2.5rem */
  padding-bottom: 0;
  border-bottom: none;
}

.source-link {
  display: inline-block;
  margin-top: 0.9rem; /* reduced slightly for better proportion */
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}
.source-link:hover { color: var(--text-primary); }

/* Optional: slightly tighten title-to-body spacing if needed */
.key-term {
  display: block;
  margin-bottom: 0.4rem;
}

.keys-cta {
  margin-top: 4rem; /* slightly more separation from entries */
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.keys-cta p {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */

.contact-heading {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.contact-body {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.contact-body em {
  font-style: italic;
  color: var(--text-accent);
}

.contact-email {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 90, 46, 0.3);
  transition: border-color 0.3s ease;
  padding-bottom: 1px;
}
.contact-email:hover { border-color: var(--text-accent); }

.loop-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.loop-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-bottom: 1.25rem;
}

.loop-body {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.loop-note {
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════
   MUTED LINK (generic)
   ═══════════════════════════════════════════════════════ */

.muted-link {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}
.muted-link:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════
   LEGAL PAGES (Impressum, Datenschutz)
   ═══════════════════════════════════════════════════════ */

.legal-block { margin-bottom: 2rem; }

.legal-block h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-block p,
.legal-block address {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-body);
  font-style: normal;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.legal-block a {
  color: var(--text-body);
  text-decoration: underline;
  text-decoration-color: rgba(122, 90, 46, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}
.legal-block a:hover {
  text-decoration-color: var(--text-accent);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.foot {
  margin-top: 3rem;
  padding-top: 0;
  padding-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.foot a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.foot a:hover { color: var(--text-primary); }

/* Two-tier footer: primary (About, Contact) + secondary (legal, lang) */
.foot-two-tier {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.foot-primary,
.foot-secondary {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.foot-primary a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  color: var(--text-body);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.foot-primary a:hover { color: var(--text-primary); }

.foot-secondary {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.foot-secondary a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.foot-secondary a:hover { color: var(--text-primary); }

/* ─── Home footer — two-tier: About/Contact on top, legal more muted below ─── */
/* Applied as class .foot-home on the home section's .foot div */

.foot-divider-home {
  width: 100%;
  height: 1px;
  background: var(--text-decorative);
  opacity: 0.35;
  border: 0;
  margin: 3rem 0 2rem;
  animation: fadeUp 1.2s ease 0.75s both;
}

.foot-home {
  display: block !important;
  margin-top: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  font-family: 'Manrope', sans-serif;
  animation: fadeUp 1.2s ease 0.9s both;
}

.foot-home .foot-home-primary {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.25rem;
}
.foot-home .foot-home-primary a {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.foot-home .foot-home-primary a:hover {
  color: var(--text-primary);
}

.foot-home .foot-home-legal {
  display: flex;
  gap: 1.5rem;
}
.foot-home .foot-home-legal a {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-decorative);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}
.foot-home .foot-home-legal a:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   LANGUAGE SWITCH — fixed top-right, always visible
   ═══════════════════════════════════════════════════════ */

.lang-switch {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
  cursor: pointer;
}
.lang-switch:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════
   ANIMATION
   ═══════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   LOOP BANNER
   ═══════════════════════════════════════════════════════ */

#loop-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  padding: 9px 1rem;
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#loop-banner.dismissed {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

#loop-banner a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
  grid-column: 2;
}
#loop-banner a:hover { color: var(--text-primary); }

#loop-banner button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  color: var(--text-decorative);
  padding: 0;
  line-height: 1;
  text-align: right;
  grid-column: 3;
  transition: color 0.2s ease;
}
#loop-banner button:hover { color: var(--text-muted); }

.banner-short { display: none; }
.banner-full  { display: inline; }

@media (max-width: 480px) {
  .banner-short { display: inline; }
  .banner-full  { display: none; }
}

/* Push sections down to account for banner height */
body.has-banner section {
  padding-top: calc(6rem + 38px);
}

@media (max-width: 640px) {
  body.has-banner section {
    padding-top: calc(4.5rem + 38px);
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  :root {
    --pad: 1.5rem;
  }
  section { padding: 4.5rem var(--pad) 3.5rem; }
  #home { padding-top: 2.5rem; }
  .back { margin-bottom: 2rem; }
  .home-spacer { height: calc(0.6rem + 0.75rem); }
  .page-label { margin-bottom: 2rem; }
  .home-label { margin-bottom: 2rem; }
  .home-question { margin-bottom: 0.75rem; }
  .home-subtitle { margin-bottom: 0.5rem; }
  .home-para { margin-bottom: 2rem; }
  .about-section-label { margin-top: 2.5rem; }
  .key-entry { margin-bottom: 2rem; padding-bottom: 2rem; }
  .foot {
    margin-top: 3rem;
    gap: 0.75rem 1.25rem;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .foot-divider-home { margin: 2.5rem 0 1.5rem; }
  .foot-home .foot-home-primary { gap: 1.5rem; margin-bottom: 1rem; }
  .foot-home .foot-home-legal { gap: 1.25rem; }
  .contact-heading { margin-bottom: 2rem; }
  .zuruck-block { padding: 0.85rem 1rem; }
  .vita-group li { font-size: 0.88rem; }
  .portrait-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
    margin-top: 0.5rem;
  }
  .portrait-photo {
    margin: 0 auto;
  }
  .lang-switch {
    background: var(--bg-surface);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
  }
}

@media (max-width: 380px) {
  :root {
    --pad: 1.25rem;
  }
  section { padding: 4rem var(--pad) 3rem; }
  .nav a { font-size: 0.8rem; padding: 0.65rem 0; }
  .nav .nav-disabled { font-size: 0.8rem; padding: 0.65rem 0; }
  .nav .nav-title { font-size: 0.78rem; }
  .nav .nav-subtitle { font-size: 0.76rem; }
  .foot { gap: 0.5rem 1rem; }
  .foot a { font-size: 0.72rem; }
  .foot-home .foot-home-primary a { font-size: 0.74rem; }
  .foot-home .foot-home-legal a { font-size: 0.66rem; }
}
