/* ═══════════════════════════════════════════════════════════
   herr eich — Pause (Visitenkarte)
   Eigenständiges, in sich geschlossenes Stylesheet.
   Nutzt dieselben lokalen Schriften wie die Hauptseite (DSGVO —
   keine externe Font-CDN) und dieselben Design-Tokens.
   ═══════════════════════════════════════════════════════════ */

/* ─── Lokale Schriften (WOFF2 in /fonts/) ─── */
@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; }

/* ─── Tokens (aus herr-eich.css) ─── */
:root {
  --bg-surface:    #EFE4CE;
  --bg-warm:       #E8DBC0;
  --bg-card:       #e4d6b8;

  --text-primary:    #362818;
  --text-body:       #5A4530;
  --text-accent:     #7A5A2E;
  --text-muted:      #857058;
  --text-decorative: #A89478;
  --ink-deep:        #1F1208;

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Lora', serif;
  background: var(--bg-surface);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(122, 90, 46, 0.16); }

a { color: var(--text-accent); }

/* ═══════════ Startseite (zentrierte Karte) ═══════════ */
.pause-wrap {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem var(--pad);
}

.card {
  width: 100%;
  max-width: var(--max);
  text-align: center;
}

.wordmark {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--ink-deep);
  margin-bottom: 3.25rem;
}

.threshold {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-accent);
  margin-bottom: 0.4rem;
}

.threshold-caption {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-decorative);
  margin-bottom: 2.75rem;
}

.card h1 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.card p {
  color: var(--text-body);
  margin: 0 auto 1.5rem;
  max-width: 44ch;
}

.card p.open {
  color: var(--text-primary);
}

.contact {
  margin: 2.5rem auto 0;
}

.contact-email {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 90, 46, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-email:hover {
  color: var(--ink-deep);
  border-color: var(--text-accent);
}

.sign {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 2.75rem !important;
}

.card-foot {
  margin-top: 4rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.card-foot a {
  color: var(--text-muted);
  text-decoration: none;
}
.card-foot a:hover { color: var(--text-accent); }
.card-foot .sep {
  color: var(--text-decorative);
  margin: 0 0.6rem;
}

/* ═══════════ Rechtsseiten (Impressum / Datenschutz) ═══════════ */
.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem var(--pad) 4.5rem;
}

.legal .back {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
}
.legal .back::before { content: '\2190\00a0'; }
.legal .back:hover { color: var(--text-accent); }

.legal .page-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-decorative);
  margin-bottom: 2.5rem;
}

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

.legal-block h2 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.legal-block h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-accent);
  margin: 1.4rem 0 0.5rem;
}

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

.legal-block address em {
  font-style: italic;
  color: var(--text-muted);
}

.legal-block a {
  color: var(--text-accent);
  word-break: break-word;
}

.legal-block ul {
  margin: 0 0 1rem 1.5rem;
  list-style: disc;
  color: var(--text-body);
  line-height: 1.75;
}

.legal-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.legal-foot a { color: var(--text-muted); text-decoration: none; }
.legal-foot a:hover { color: var(--text-accent); }

.devanagari-rule {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  text-align: center;
  color: var(--text-decorative);
  font-size: 1.05rem;
  margin-top: 3.5rem;
  opacity: 0.8;
}

/* ─── klein ─── */
@media (max-width: 480px) {
  .card h1 { font-size: 1.7rem; }
  .threshold { font-size: 1.4rem; }
  .legal { padding-top: 2.5rem; }
}


/* ═══════════ Erfahrungen (Werdegang) ═══════════ */
.erfahrungen { max-width: 660px; }

.lead-intro {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 2.75rem;
}

.tl-chapter { margin: 2.5rem 0 1.4rem; }
.tl-chapter:first-of-type { margin-top: 0.5rem; }
.tl-chapter .num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-decorative);
}
.tl-chapter h2 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 0.3rem 0 0.15rem;
}
.tl-chapter .sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.tl-stops {
  position: relative;
  margin-left: 0.4rem;
  padding-left: 1.75rem;
  border-left: 1px solid var(--line);
}

.stop { position: relative; padding-bottom: 1.9rem; }
.stop:last-child { padding-bottom: 0.25rem; }
.stop::before {
  content: '';
  position: absolute;
  left: calc(-1.75rem - 5px);
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--text-accent);
}
.stop .date {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-decorative);
  margin-bottom: 0.3rem;
}
.stop h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}
.stop h3 em, .stop p em { font-style: italic; color: var(--text-accent); }
.stop p {
  font-family: 'Lora', serif;
  color: var(--text-body);
  line-height: 1.75;
  margin: 0;
}

/* Studienhintergrund */
.studium { margin-top: 3.25rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.studium .page-label { margin-bottom: 1.4rem; }
.studium > p {
  font-family: 'Lora', serif;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.4rem;
}
.studium > p em { font-style: italic; color: var(--text-accent); }

.vita-group ul { list-style: none; margin: 0; padding: 0; }
.vita-group li {
  font-family: 'Lora', serif;
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.6;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.vita-group li:first-child { border-top: none; }

.erf-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 90, 46, 0.3);
  padding-bottom: 2px;
}
.erf-link:hover { color: var(--ink-deep); }

@media (max-width: 480px) {
  .tl-stops { padding-left: 1.4rem; }
  .stop::before { left: calc(-1.4rem - 5px); }
}


/* ═══════════ Visitenkarte (Flip) ═══════════ */
.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.1rem;
  perspective: 2200px;
}
.flip {
  position: relative;
  width: min(93vw, 600px);
  height: min(88svh, 740px);
  transform-style: preserve-3d;
  transition: transform 0.95s cubic-bezier(0.45, 0.08, 0.22, 1);
}
.flip.flipped { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--bg-surface);
  border: 1px solid rgba(120, 90, 50, 0.22);
  border-radius: 7px;
  box-shadow: 0 22px 60px -28px rgba(31, 18, 8, 0.5), 0 3px 10px -4px rgba(31, 18, 8, 0.16);
  overflow: hidden;
}
.face-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.75rem 2rem;
  overflow-y: auto;
}
.face-front .card { margin: 0 auto; }
.face-back { transform: rotateY(180deg); }
.face-back .scroll { height: 100%; overflow-y: auto; }
.face-back .legal { padding-top: 2.1rem; max-width: 100%; }

.flip-cv { margin-top: 1.9rem !important; }

/* Zurück-Button auf der Rückseite */
.face-back button.back {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  .flip { transition: none; }
}
@media (max-height: 720px) {
  .face-front { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .face-front { padding: 2rem 1.4rem; }
  .face-back .legal { padding-left: 1.4rem; padding-right: 1.4rem; }
}


/* ═══════════ Inline-Mail (Platzhalter) ═══════════ */
.mail-inline {
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 90, 46, 0.35);
  padding-bottom: 1px;
  white-space: nowrap;
}
.mail-inline:hover { color: var(--ink-deep); }
