/* =========================================================
   Design tokens
   ========================================================= */

:root {
  /* Colors */
  --bg-page: #FCFBF7;
  --bg-surface: #FFFFFF;
  --border-light: #F1EFEA;

  --text-primary: #1F2124;
  --text-secondary: #5F6368;

  /* Radius */
  --radius-xl: 16px;
  --radius-sm: 12px;

  /* Shadows */
  --shadow-md: 0 10px 30px -10px rgba(80, 70, 50, 0.08);

  /* Motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphatic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-fast: 150ms;
  --motion-medium: 300ms;

  /* Spacing system */
  --space-xs: 12px;
  --space-sm: 24px;
  --space-md: 48px;
  --space-lg: 96px;
}

/* =========================================================
   Base reset
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter var', system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
}

/* =========================================================
   Page layout
   ========================================================= */

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-lg) 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* =========================================================
   Module base
   ========================================================= */

.module {
  display: block;
  max-width: 100%;
}

/* =========================================================
   Hero
   ========================================================= */

.hero .eyebrow {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: var(--space-sm);
}

.hero .lead {
  max-width: 560px;
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* =========================================================
   Text block
   ========================================================= */

.text-block {
  max-width: 640px;
}

/* =========================================================
   Grid / cards
   ========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-sm);
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--motion-medium) var(--ease-emphatic),
    box-shadow var(--motion-medium) var(--ease-standard);
}

.card:hover {
  transform: translateY(-4px);
}

.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eee, #ddd);
}

.card-body {
  padding: var(--space-sm);
}

.card h3 {
  margin: 0 0 var(--space-xs);
  font-family: 'Libre Baskerville', serif;
}

/* =========================================================
   Image strip
   ========================================================= */

.image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-xs);
}

.image-placeholder {
  aspect-ratio: 1 / 1;
  background: #EDEBE6;
  border-radius: var(--radius-sm);
}

/* =========================================================
   Archive / notes
   ========================================================= */

.archive {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.archive-item {
  padding: var(--space-sm);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.archive-item:hover {
  transform: translateY(-2px);
}

.archive-item h4 {
  margin: 0 0 var(--space-xs);
  font-family: 'Libre Baskerville', serif;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* =========================================================
   Dark mode tokens
   ========================================================= */

[data-theme="dark"] {
  --bg-page: #0A1220;
  --bg-surface: #1E293B;
  --border-light: #334155;

  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Navbar (utility, not identity)
   ========================================================= */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);

  z-index: 100;
}

.nav.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);

  border-radius: 9999px;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .nav-inner {
  background: rgba(30, 41, 59, 0.85);
}

.nav-name {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--text-secondary);
  transition:
    background var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

[data-theme="dark"] .nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   Hidden theme toggle (expert-only)
   ========================================================= */

.theme-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  color: var(--text-primary);
}

.nav.show-theme-toggle .theme-toggle {
  display: inline-block;
}

/* =========================================================
   Resume page (document layout)
   ========================================================= */

.resume {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-lg) 24px;
  font-size: 0.95rem;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-md);
}

.resume-header h1 {
  margin: 0;
  font-size: 1.75rem;
}

.resume-header .subtitle {
  margin-top: 4px;
  color: var(--text-secondary);
}

.resume-section {
  margin-bottom: var(--space-md);
}

.resume-section h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.resume-item {
  margin-bottom: var(--space-sm);
}

.resume-item header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.resume-item ul {
  margin: 0;
  padding-left: 18px;
}

.resume-item li {
  margin-bottom: 4px;
}

/* Certifications list */
.resume-certifications {
  margin: 0;
  padding-left: 18px;
}

.resume-certifications li {
  margin-bottom: 4px;
}
/* =========================================================
   protokoll entry
   ========================================================= */

.protokoll-entry {
  max-width: 720px;
  margin: 0 auto;
}

.entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
}


.entry-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}


.entry-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0;
  position: relative;
  padding-bottom: var(--space-xs);
}

.entry-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--border-light);
  margin-top: var(--space-xs);
}

.entry-body p {
  font-family: 'Inter var', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 640px;
}


.entry-body p {
  max-width: 640px;
  font-size: 0.95rem;
  line-height: 1.7;
}
/* =========================================================
   protokoll index
   ========================================================= */

.protokoll-index {
  max-width: 720px;
  margin: 0 auto;
}

.protokoll-header {
  margin-bottom: var(--space-md);
}

.protokoll-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}

.protokoll-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.protokoll-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.protokoll-item:last-child {
  border-bottom: none;
}

.protokoll-item time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.protokoll-item span {
  font-family: 'Inter var', system-ui, sans-serif;
  font-size: 0.95rem;
  text-align: right;
}

.protokoll-item:hover span {
  color: var(--text-secondary);
}
