@import url('fonts.css');
@import url('chroma-light.css');
@import url('chroma-dark.css');

/* chroma: the github (light) style colours punctuation and plain names near-black;
   github-dark leaves them unset, so in dark mode they would inherit those light
   values. Fall back to the dark base colour instead. */
.dark .chroma .p, .dark .chroma .nx, .dark .chroma .na, .dark .chroma .nb, .dark .chroma .bp { color: inherit; }

/* ==========================================================================
   CSS Design System — stefan-strich.de
   Monochrome + blue palette, dark/light mode, Geist typography
   Design decisions: D-01 through D-22
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties — Light mode defaults
   -------------------------------------------------------------------------- */

:root {
  /* Editorial palette — light theme (matches business card design) */
  --color-bg: #f4f6f9;
  --color-bg-grad: #eef1f6;       /* top of the page background gradient */
  --color-bg-subtle: #f7f9fc;     /* alt sections, chips */
  --color-surface: #ffffff;       /* cards, insets */
  --color-text: #0f1828;
  --color-text-muted: #4b5872;
  --color-text-subtle: #8a97ab;   /* faint / meta */
  --color-border: rgba(15, 23, 42, 0.12);
  --color-border-subtle: rgba(15, 23, 42, 0.08);
  --color-border-strong: rgba(15, 23, 42, 0.18);

  /* Accent — brand blue (single accent color) */
  --color-accent: #5b9dff;
  --color-accent-hover: #3f86f0;
  --color-accent-text: #ffffff;                 /* text on accent fills */
  --color-accent-soft: color-mix(in oklab, var(--color-accent) 12%, transparent);
  --color-accent-line: color-mix(in oklab, var(--color-accent) 45%, transparent);

  /* Surfaces / glass */
  --glass-bg: color-mix(in oklab, var(--color-surface) 80%, transparent);
  --glass-border: var(--color-border);
  --glass-blur: 14px;
  --shadow: 0 24px 50px -32px rgba(15, 23, 42, 0.30);

  /* Overlay for photo backgrounds (D-01) */
  --overlay-bg: oklch(0 0 0 / 0.5);

  /* Typography — Space Grotesk (display) + IBM Plex Sans (body) + IBM Plex Mono (labels) */
  --font-family: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font-size-base: 1rem;
  --line-height-base: 1.55;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --heading-weight: 600;             /* Space Grotesk display weight */
  --heading-letter-spacing: -0.02em; /* tight editorial headings */

  /* Layout (D-18, D-19) */
  --container-max: 1200px;          /* D-18 */
  --reading-max: 65ch;              /* D-19 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Progress bar (D-22) */
  --progress-height: 2px;
  --progress-color: var(--color-accent);

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.375rem;

  /* Transitions (D-13) */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

/* --------------------------------------------------------------------------
   Dark mode overrides
   D-16: dark is default for new visitors
   D-17: applied via SSR cookie-read — no flash
   -------------------------------------------------------------------------- */

.dark {
  --color-bg: #0a0f1a;
  --color-bg-grad: #0c1320;
  --color-bg-subtle: #0d1626;
  --color-surface: #111c2f;
  --color-text: #e8edf6;
  --color-text-muted: #9aa8bf;
  --color-text-subtle: #7c8aa3;   /* AA on dark bg (A11Y-01) */
  --color-border: rgba(148, 163, 184, 0.14);
  --color-border-subtle: rgba(148, 163, 184, 0.10);
  --color-border-strong: rgba(148, 163, 184, 0.26);

  --color-accent: #5b9dff;
  --color-accent-hover: #7db4ff;
  --color-accent-text: #06101f;   /* dark text on accent fills in dark theme */
  --color-accent-soft: color-mix(in oklab, var(--color-accent) 16%, transparent);
  --color-accent-line: color-mix(in oklab, var(--color-accent) 40%, transparent);

  --glass-bg: color-mix(in oklab, var(--color-surface) 78%, transparent);
  --glass-border: var(--color-border);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);

  --overlay-bg: oklch(0 0 0 / 0.7);
}

/* --------------------------------------------------------------------------
   Base reset and global styles
   -------------------------------------------------------------------------- */

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

html {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  /* Sticky footer: flex column so main#content can flex-grow to fill viewport (Phase 05) */
  display: flex;
  flex-direction: column;
  /* clip (not hidden): hidden makes <body> the scroll container and breaks scroll listeners */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed editorial background: accent glow (top-right) + faint grid faded below the fold */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, var(--color-accent-soft), transparent 60%),
    linear-gradient(180deg, var(--color-bg-grad), var(--color-bg) 38%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

/* --------------------------------------------------------------------------
   Accessibility — skip-to-content link (A11Y-03, Phase 05)
   Visually hidden until focused; slides into view for keyboard users
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-accent);
  color: #fff;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   Accessibility — global focus indicator (A11Y-04, Phase 05)
   Uses accent color for all interactive elements
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   Typography hierarchy
   D-07: light + spacious headings (weight 300, generous letter-spacing)
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-letter-spacing);
  line-height: 1.12;
  color: var(--color-text);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   Layout utilities (D-18, D-19)
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--spacing-lg);
}

.reading-width {
  max-width: var(--reading-max);
}

/* Mono accent kicker above page/section titles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.7;
}

.page-lead {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  max-width: 60ch;
  margin-top: var(--spacing-sm);
}

/* --------------------------------------------------------------------------
   Glass card utility (D-04)
   Semi-transparent with backdrop blur, layered over photo backgrounds
   -------------------------------------------------------------------------- */

.glass {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   Photo overlay utility (D-01)
   Full-bleed background photos with dark overlay
   -------------------------------------------------------------------------- */

.photo-overlay {
  position: relative;
}

.photo-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 1;
}

.photo-overlay > * {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Progress bar styles (D-22)
   Thin top-of-page loading indicator during HTMX content swaps
   -------------------------------------------------------------------------- */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: var(--progress-height);
  background: var(--progress-color);
  width: 0%;
  transition: width var(--transition-slow);
  z-index: 9999;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   HTMX content transition (D-13: ~200ms fade)
   Sticky footer: flex-grow so main fills remaining viewport height (A11Y-05, Phase 05)
   -------------------------------------------------------------------------- */

.htmx-swapping > #content {
  opacity: 0;
  transition: opacity var(--transition-normal);
}

#content {
  transition: opacity var(--transition-normal);
  flex: 1;
}

/* --------------------------------------------------------------------------
   Responsive breakpoints (D-06: mobile-first from 320px)
   -------------------------------------------------------------------------- */

/* Mobile-first: base styles are for 320px+ */

/* Tablet */
@media (min-width: 768px) {
  :root {
    --font-size-5xl: 4rem;
    --font-size-4xl: 3rem;
  }

  .container {
    padding-inline: var(--spacing-xl);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --font-size-5xl: 4.5rem;
  }

  .container {
    padding-inline: var(--spacing-2xl);
  }
}

/* --------------------------------------------------------------------------
   Footer styles (D-21: subtle separator)
   -------------------------------------------------------------------------- */

.footer-separator {
  border-top: 1px solid var(--color-border);
}

.footer-text {
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.footer-text:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.social-icon {
  width: 20px;
  height: 20px;
  transition: color var(--transition-normal);
}

.footer-text:hover .social-icon {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Header (D-09: minimal header — logo/name + dark mode toggle)
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition-normal);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 66px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.header-logo:hover {
  color: var(--color-text);
}

.header-monogram {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(160deg, var(--color-surface), var(--color-bg-subtle));
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Theme toggle (D-15)
   -------------------------------------------------------------------------- */

.theme-toggle {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  height: 38px;
  width: 38px;
  border-radius: 9px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-border);
  background: var(--color-bg-subtle);
}

/* Show sun in dark mode, moon in light mode */
.dark .theme-icon--sun { display: block; }
.dark .theme-icon--moon { display: none; }
.theme-icon--sun { display: none; }
.theme-icon--moon { display: block; }

/* --------------------------------------------------------------------------
   Footer inner layout (D-12, D-20, D-21)
   -------------------------------------------------------------------------- */

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--spacing-xl);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-section {
  display: flex;
  gap: var(--spacing-md);
}

/* --------------------------------------------------------------------------
   Card grid (D-11: landing page cards as primary navigation)
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.card-link {
  display: block;
  padding: 26px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card-link:hover {
  transform: translateY(-3px);
  color: var(--color-text);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow);
}

.card-link h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.card-link p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* Personal landing nav cards — title block + sliding arrow */
.nav-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--spacing-xl);
  min-height: 172px;
}

.nav-card-cta {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.nav-card:hover .nav-card-cta {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Landing page — full-screen hero matching original Next.js frontend design
   Portrait background, dark overlay, glass cards centered, footer at bottom
   -------------------------------------------------------------------------- */

.landing {
  min-height: 100vh;
}

.landing-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center center;
}

.hero-bg {
  background-image: url('/photos/portrait.jpg');
}

/* 40% dark overlay matching original */
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(0 0 0 / 0.4);
  z-index: 1;
}

.landing-hero > * {
  position: relative;
  z-index: 2;
}

/* Header — site name, extralight, top-left */
.landing-header {
  padding: 1.5rem 2rem;
}

.landing-logo {
  color: oklch(1 0 0 / 0.6);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 200;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 2px oklch(0 0 0 / 0.8);
  transition: color 300ms;
  margin: 0; /* reset h1 default margin when element is h1 (SEO-05) */
  line-height: 1; /* reset h1 line-height */
}

.landing-logo:hover {
  color: oklch(1 0 0 / 0.8);
}

/* Cards — centered on the hero */
.landing-cards {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  width: 100%;
}

@media (min-width: 768px) {
  .landing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .landing-header {
    padding: 2rem;
  }
}

/* Glass card — matches original: bg-white/10, backdrop-blur, border-white/20 */
.landing-card {
  background: oklch(1 0 0 / 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(1 0 0 / 0.2);
  border-radius: 0.5rem;
  padding: 2rem 2rem 2rem;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 300ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .landing-card {
    padding: 3rem 2rem;
  }
}

.landing-card:hover {
  background: oklch(1 0 0 / 0.2);
  border-color: oklch(1 0 0 / 0.4);
  transform: scale(1.05);
}

/* Circular icon container */
.landing-card-icon {
  width: 4rem;
  height: 4rem;
  background: oklch(1 0 0 / 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.landing-card-title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.landing-card-desc {
  color: oklch(1 0 0 / 0.8);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .landing-card-desc {
    font-size: 1rem;
  }
}

.landing-card-cta {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: oklch(1 0 0 / 0.6);
  transition: color 300ms;
}

.landing-card:hover .landing-card-cta {
  color: oklch(1 0 0 / 0.8);
}

/* Landing footer — inside the hero, at the bottom */
.landing-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.landing-footer-social {
  display: flex;
  gap: 1.5rem;
}

.landing-footer-social a {
  color: oklch(1 0 0 / 0.6);
  transition: color 300ms;
}

.landing-footer-social a:hover {
  color: white;
}

.landing-footer-social .social-icon {
  width: 20px;
  height: 20px;
}

.landing-footer-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: oklch(1 0 0 / 0.5);
}

.landing-footer-legal a {
  color: oklch(1 0 0 / 0.5);
  text-decoration: none;
  transition: color 300ms;
}

.landing-footer-legal a:hover {
  color: oklch(1 0 0 / 0.8);
}

/* --------------------------------------------------------------------------
   Hero section — reused for content pages (CV, Projects, etc.)
   -------------------------------------------------------------------------- */

.hero {
  min-height: 40vh;
  background-size: cover;
  background-position: top center;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--spacing-3xl);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(0 0 0 / 0.4);
}

.hero > * {
  position: relative;
}

.hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 200;
  margin-bottom: var(--spacing-sm);
  color: white;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: var(--spacing-md);
  color: white;
}

.hero-summary {
  max-width: 65ch;
  line-height: 1.6;
  opacity: 0.9;
  color: white;
}

/* Section spacing for content sections */
.section-spacing {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

/* --------------------------------------------------------------------------
   Back link — breadcrumb-style navigation
   -------------------------------------------------------------------------- */

.back-link {
  display: inline-block;
  margin-bottom: var(--spacing-lg);
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 300;
  transition: opacity var(--transition-fast);
}

.back-link:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   CV Timeline (BIZ-02) — left-aligned with year markers
   -------------------------------------------------------------------------- */

.cv-timeline {
  position: relative;
  padding-left: var(--spacing-xl);
  border-left: 2px solid var(--color-border);
  margin-bottom: var(--spacing-3xl);
}

.cv-entry {
  position: relative;
  margin-bottom: var(--spacing-xl);
  padding-left: var(--spacing-md);
}

.cv-entry::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--spacing-xl) - 5px);
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

.cv-year {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.05em;
}

.cv-role {
  font-size: var(--font-size-xl);
  font-weight: 400;
  margin-bottom: var(--spacing-xs);
}

.cv-company {
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: var(--spacing-sm);
}

.cv-location {
  opacity: 0.6;
}

.cv-summary {
  line-height: 1.6;
  max-width: 65ch;
}

.cv-tags,
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.tag {
  display: inline-block;
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  border-radius: 6px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Skills grid (BIZ-03)
   -------------------------------------------------------------------------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.skill-group h3 {
  font-size: var(--font-size-base);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Print styles (BIZ-08)
   -------------------------------------------------------------------------- */

@media print {
  .header,
  .footer-separator,
  .footer,
  .theme-toggle,
  #progress-bar,
  .back-link { display: none !important; }

  .cv-entry { page-break-inside: avoid; break-inside: avoid; }

  .glass {
    background: white !important;
    backdrop-filter: none !important;
    border: 1px solid #ddd !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }

  .cv-timeline { border-left-color: #ccc; }
  .cv-entry::before { background: #666; }
  .cv-year { color: #333; }
  .tag { background: #f0f0f0; border-color: #ccc; color: #333; }

  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #666; }

  @page { margin: 1.5cm; }
}

/* --------------------------------------------------------------------------
   Project list — card grid (BIZ-04)
   -------------------------------------------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.project-card {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.project-card h2 {
  font-size: 1.25rem;
  font-weight: 400;
}

.project-links {
  margin-top: auto;
  padding-top: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-md);
}

.project-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity var(--transition-normal);
}

.project-links a:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Project detail — case study page (BIZ-05)
   -------------------------------------------------------------------------- */

.case-study-description {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: var(--spacing-lg);
  max-width: 65ch;
}

.case-study-body {
  margin-top: var(--spacing-xl);
  line-height: 1.7;
  max-width: 65ch;
}

.case-study-body h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  font-weight: 400;
}

.case-study-body p {
  margin-bottom: var(--spacing-md);
}

.case-study-body code {
  background: rgba(128, 128, 128, 0.1);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* === Phase 4: Gallery, Lightbox, About === */

/* --------------------------------------------------------------------------
   Personal pages — gallery (/photos + album), About (/about), legal pages.
   Tokens only: no new colours, no new typefaces, no new scripts.

   Typographic law for these pages: Space Grotesk sets structure, IBM Plex Sans
   sets language, IBM Plex Mono sets figures — and never a word. Mono therefore
   appears exactly once per page, on the index the page is actually keyed by.

   Photographs are never cropped. Plates sit at a common height with their true
   aspect ratio, so rows end ragged on the right. Only album covers crop, because
   a cover is a deliberate choice rather than a photograph on display.
   -------------------------------------------------------------------------- */

/* ---- gallery index (/photos) ---- */

.gallery-timeline {
  display: flex;
  flex-direction: column;
  max-width: 62rem;
  margin-top: var(--spacing-2xl);
}

/* Year is a real index, so it sits in the gutter and is set in mono. */
.gallery-year-group {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: start;
}

.gallery-year-group + .gallery-year-group {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--color-border-subtle);
}

.gallery-year {
  grid-column: 1;
  margin: 0;
  padding-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.gallery-album-list {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.gallery-album {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--spacing-lg);
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.gallery-cover {
  display: block;
  width: 100%;
  height: 9.5rem;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-subtle);
  transition: border-color 160ms;
}

.gallery-album:hover .gallery-cover,
.gallery-album:focus-visible .gallery-cover {
  border-color: var(--color-accent-line);
}

.gallery-album-title {
  margin: 0;
  padding-top: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--color-text);
}

.gallery-album:hover .gallery-album-title {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.gallery-album-desc {
  margin: 0.5rem 0 0;
  max-width: 46ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.gallery-album-count {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Empty gallery — the state that ships until albums exist. Quiet, not broken. */
.gallery-empty {
  max-width: 46ch;
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border-subtle);
}

.gallery-empty h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.gallery-empty p {
  margin: 0.6rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (max-width: 700px) {
  .gallery-year-group { grid-template-columns: 1fr; }
  .gallery-year { grid-column: 1; padding-top: 0; margin-bottom: var(--spacing-md); }
  .gallery-album-list { grid-column: 1; }
  .gallery-album { grid-template-columns: 1fr; gap: var(--spacing-sm); }
  .gallery-cover { height: 11rem; }
}

/* ---- album page (/photos/{year}/{album}) — the light table ----
   A flex line of plates at a common height. width:auto keeps the true aspect
   ratio of every photograph, so nothing is cropped and rows end ragged.
   height:auto on the image is load-bearing: the width/height HTML attributes
   are presentational hints, and without it the height attribute wins and the
   plate renders at the photograph's pixel height. */

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--spacing-lg) var(--spacing-md);
}

/* The plate is exactly as wide as its photograph is at the common row height:
   --ar is the real width/height ratio, rendered server-side from the stored
   pixel dimensions. That keeps the true aspect ratio, lets the caption wrap
   inside the picture's width, and needs no intrinsic-size guessing. */
.photo-grid-item {
  --plate-h: 13.5rem;
  flex: 0 0 auto;
  width: calc(var(--plate-h) * var(--ar, 1.5));
  max-width: 100%;
  cursor: pointer;
  border-radius: 0;
  overflow: visible;
}

.photo-grid-item--featured {
  --plate-h: 20rem;
}

.photo-grid-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: border-color 160ms;
}

.photo-grid-item:hover img {
  border-color: var(--color-accent-line);
}

.photo-grid-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Album lead sentence, above the light table. */
.album-lead {
  margin: 0 0 var(--spacing-xl);
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Caption sits under its plate. No caption renders nothing at all. */
.photo-cap {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  transition: color 160ms;
}

.photo-grid-item:hover .photo-cap,
.photo-grid-item:focus-visible .photo-cap {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .photo-grid-item { --plate-h: 10.5rem; }
  .photo-grid-item--featured { --plate-h: 14rem; }
}

/* One plate per row on a phone: full width, true aspect, still no crop. */
@media (max-width: 640px) {
  .photo-grid { gap: var(--spacing-xl); }
  .photo-grid-item,
  .photo-grid-item--featured { width: 100%; }
}


/* Lightbox Panel */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.85);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: min(90vh, 800px);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xl);
  transform: translateY(100%);
  transition: transform 200ms ease-out;
}

@media (max-width: 768px) {
  .lightbox-panel {
    padding: var(--spacing-md);
  }
}

.lightbox-panel.active {
  transform: translateY(0);
}

.lightbox-photo {
  max-height: 70%;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.lightbox-caption {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--spacing-md);
  text-align: center;
  max-width: var(--reading-max);
}

.lightbox-counter {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--spacing-xs);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 150ms;
}

.lightbox-nav:hover {
  color: var(--color-accent);
}

.lightbox-nav:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.lightbox-nav--prev {
  left: var(--spacing-md);
}

.lightbox-nav--next {
  right: var(--spacing-md);
}

.lightbox-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 150ms;
}

.lightbox-close:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   About (/about) — goldmark output from about.md, styled as a document rather
   than a card. No gutter here: the three headings are section names, not an
   index, and hanging generic words in a rail is the templated move. What the
   page needed was measure, hierarchy and rhythm.
   -------------------------------------------------------------------------- */

.abt-doc {
  max-width: 62ch;
  margin-top: var(--spacing-2xl);
}

.abt-doc > :first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.abt-doc h2 {
  margin: var(--spacing-2xl) 0 var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border-subtle);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--color-text);
}

.abt-doc p {
  margin: 0 0 0.9em;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.abt-doc ul {
  margin: 0 0 0.9em;
  padding: 0;
  list-style: none;
}

.abt-doc li {
  position: relative;
  margin-bottom: 0.55em;
  padding-left: 1.1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.abt-doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 4px;
  height: 1px;
  background: var(--color-border-strong);
}

.abt-doc li strong {
  font-weight: 500;
  color: var(--color-text);
}

.abt-doc a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-line);
  text-underline-offset: 3px;
}

.abt-doc a:hover {
  text-decoration-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Legal pages (/impressum, /datenschutz) — one template, six call sites across
   all three hosts. Set as a register: the statute each rubric discharges sits
   in the gutter, the rubric and its text run in the value column. The gutter
   is informative, never decorative — a block with no honest citation gets no
   key rather than a filler word.
   -------------------------------------------------------------------------- */

.lgl-doc {
  display: grid;
  grid-template-columns: 12.5rem 2.5rem minmax(0, 58ch);
  margin-top: var(--spacing-2xl);
}

.lgl-doc > * {
  grid-column: 3;
  margin: 0 0 0.9em;
}

/* Statute key: the one mono element on the page, because it is pure citation.
   nowrap plus non-breaking spaces in the markup keep the section sign with its
   number, which German typography does not allow to break. */
.lgl-key {
  grid-column: 1;
  margin: 2.4em 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.lgl-doc > .lgl-key:first-child {
  margin-top: 0;
}

.lgl-doc > h2 {
  margin: 2.4em 0 0.5em;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--color-text);
  hyphens: auto;
}

.lgl-doc > h2:first-of-type {
  margin-top: 0;
}

.lgl-doc p,
.lgl-doc address,
.lgl-plain p,
.lgl-plain address,
.lgl-plain li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* No italic face is self-hosted, so an italic address would be synthesised. */
.lgl-doc address,
.lgl-plain address {
  font-style: normal;
}

/* Datenschutz: same voice and measure, no gutter — its sections are numbered
   in their own headings, so there is no separate index to hang out there. */
.lgl-plain {
  max-width: 62ch;
  margin-top: var(--spacing-2xl);
}

.lgl-plain p,
.lgl-plain ul,
.lgl-plain address {
  margin: 0 0 0.9em;
}

.lgl-plain h2 {
  margin: 2.2em 0 0.5em;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--color-text);
}

.lgl-plain h2:first-child {
  margin-top: 0;
}

.lgl-plain ul {
  padding: 0;
  list-style: none;
}

.lgl-plain li {
  position: relative;
  margin-bottom: 0.45em;
  padding-left: 1.1rem;
}

.lgl-plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 1px;
  background: var(--color-border-strong);
}

.lgl-doc a,
.lgl-plain a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-line);
  text-underline-offset: 3px;
}

.lgl-doc a:hover,
.lgl-plain a:hover {
  text-decoration-color: var(--color-accent);
}

.lgl-doc strong,
.lgl-plain strong {
  font-weight: 500;
  color: var(--color-text);
}

/* Stacked on narrow screens: the key sits directly above its rubric. */
@media (max-width: 780px) {
  .lgl-doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .lgl-doc > *,
  .lgl-doc > .lgl-key {
    grid-column: 1;
  }
  .lgl-key {
    margin-bottom: 0.15em;
  }
  .lgl-doc > h2 {
    margin-top: 0;
  }
  .lgl-doc > h2:first-of-type {
    margin-top: 0;
  }
}

/* The date stamp is a quiet line under the document, not a card with a rule
   down its side and nothing inside it. */
.currently-card {
  max-width: 62ch;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border-subtle);
}

.currently-updated {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}


/* --------------------------------------------------------------------------
   Reduced motion. blog.css, landing.css, privates.css and about.css each
   carry this guard; main.css did not, and it is the sheet that sets
   scroll-behavior: smooth and every transition on the shared components.
   -------------------------------------------------------------------------- */

@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;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Under Construction Page
   ========================================================================== */

.construction-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  gap: var(--spacing-xl);
  padding: var(--spacing-xl);
}

.construction-ribbon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  text-align: center;
}

.construction-ribbon {
  font-size: var(--font-size-4xl);
  font-weight: var(--heading-weight);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-align: center;
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-accent);
  line-height: 1.2;
}

.construction-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  font-weight: var(--heading-weight);
  letter-spacing: 0.05em;
}

.construction-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-lg) var(--spacing-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
}

.construction-footer-social {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.construction-social-link {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

.construction-social-link:hover {
  color: var(--color-accent);
}

.construction-footer-legal {
  font-size: var(--font-size-sm);
  color: var(--color-text-subtle);
}

.construction-legal-link {
  color: var(--color-text-subtle);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.construction-legal-link:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .construction-ribbon {
    font-size: var(--font-size-3xl);
    letter-spacing: 0.1em;
  }
}

/* --------------------------------------------------------------------------
   Profile page — Phase 11
   -------------------------------------------------------------------------- */

/* Hero */
.profile-hero {
  background-color: var(--color-bg);
  padding: var(--spacing-3xl) 0;
}

.profile-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.1;
  margin-bottom: var(--spacing-xs);
}

.profile-hero-subtitle {
  font-size: var(--font-size-xl);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.3;
  margin-bottom: var(--spacing-lg);
}

.profile-hero-row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .profile-hero-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.profile-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
}

.profile-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  padding: var(--spacing-sm);
  transition: color var(--transition-fast);
}

.profile-contact-links a:hover {
  color: var(--color-accent);
}

.profile-contact-links svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.profile-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md, 6px);
  color: var(--color-accent);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.profile-pdf-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-accent-text, #fff);
}

@media (max-width: 767px) {
  .profile-pdf-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Sticky section nav */
.profile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-subtle);
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  pointer-events: none;
}

.profile-nav.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.profile-nav-inner {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  padding: var(--spacing-sm) 0;
  -webkit-overflow-scrolling: touch;
}

.profile-nav-inner a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.profile-nav-inner a:hover {
  color: var(--color-accent);
}

/* Content sections */
.profile-section {
  padding: var(--spacing-3xl) 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border-subtle);
  scroll-margin-top: 3rem;
}

.profile-section-alt {
  background-color: var(--color-bg-subtle);
}

.profile-section h2 {
  font-size: var(--font-size-2xl);
  font-weight: 300;
  margin-bottom: var(--spacing-xl);
}

/* Education list */
.profile-education-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-education-list li {
  display: flex;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: var(--spacing-xl);
}

.profile-education-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.profile-edu-year {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  white-space: nowrap;
  min-width: 6rem;
  flex-shrink: 0;
}

/* Language list */
.profile-language-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Sonstiges list */
.profile-sonstiges-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-sonstiges-list li {
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: var(--spacing-xl);
}

.profile-sonstiges-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.profile-sonstiges-year {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
