/* Design tokens: same palette as celop-wissen so the brand reads as one system. */
:root {
  --color-text: #1c2430;
  --color-muted: #55606e;
  --color-background: #f7f8fa;
  --color-surface: #ffffff;
  --color-border: #dde2e9;
  --color-accent: #0e5484;
  --color-accent-contrast: #ffffff;
  --color-accent-soft: #e4eef6;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --gutter: 16px;
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #e6e9ee;
    --color-muted: #a2acba;
    --color-background: #12161c;
    --color-surface: #1a2029;
    --color-border: #2b3340;
    --color-accent: #6fb0e0;
    --color-accent-contrast: #0b1118;
    --color-accent-soft: #19283a;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.15em;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border-radius: var(--radius);
  z-index: 10;
}

.skip:focus {
  top: var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--color-background) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-decoration: none;
}

.brand svg {
  width: 1.7rem;
  height: 1.7rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--color-muted);
  text-decoration: none;
}

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

@media (max-width: 36rem) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

.button:hover {
  filter: brightness(1.08);
}

.button.secondary {
  background: transparent;
  color: var(--color-accent);
}

.button.secondary:hover {
  background: var(--color-accent-soft);
  filter: none;
}

/* Hero */
.hero {
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  max-width: 20ch;
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
}

.lead {
  max-width: 40rem;
  font-size: 1.2rem;
  color: var(--color-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.facts li::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Sections */
section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-intro {
  max-width: 42rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.7rem;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* Contact */
.contact {
  text-align: center;
}

.contact h2,
.contact .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.contact .actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

/* Legal pages */
.legal {
  padding: 3rem 0 4rem;
  max-width: 44rem;
}

.draft-banner {
  margin-bottom: 2rem;
  padding: 0.9rem 1.1rem;
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-accent-soft);
}

.placeholder {
  padding: 0 0.3rem;
  background: var(--color-accent-soft);
  border-radius: 4px;
}

/* Language switching: German is the default; app.js sets <html lang> for English. */
html[lang='de'] [lang='en'],
html[lang='en'] [lang='de'] {
  display: none;
}

.lang-toggle {
  padding: 0.25rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--color-accent);
}

button.button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav {
  align-items: center;
}

/* CV toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.35rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--color-accent);
}

.chip[aria-pressed='true'] {
  color: var(--color-accent-contrast);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.link-button {
  padding: 0.2rem 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--color-accent);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.45rem;
  width: 2px;
  background: var(--color-border);
}

.entry {
  position: relative;
  margin: 0 0 0.9rem;
  padding-left: 2rem;
}

.entry[hidden] {
  display: none;
}

.entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-accent);
}

.entry > details {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.entry > details[open] {
  border-color: var(--color-accent);
}

.entry > details > summary {
  display: grid;
  grid-template-columns: 9.5rem 1fr 1.25rem;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.entry > details > summary::-webkit-details-marker {
  display: none;
}

.entry > details > summary::after {
  content: '';
  justify-self: end;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.entry > details[open] > summary::after {
  transform: rotate(-135deg);
}

@media (prefers-reduced-motion: reduce) {
  .entry > details > summary::after {
    transition: none;
  }
}

.when {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.what strong {
  display: block;
}

.org {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.detail {
  padding: 0 1.1rem 1.1rem calc(9.5rem + 2.1rem);
  color: var(--color-muted);
}

.detail p {
  margin: 0 0 0.6rem;
}

.detail ul {
  margin: 0;
  padding-left: 1.2rem;
}

.detail li {
  margin-bottom: 0.3rem;
}

@media (max-width: 40rem) {
  .entry > details > summary {
    grid-template-columns: 1fr 1.25rem;
  }

  .when {
    grid-column: 1 / -1;
  }

  .what {
    grid-column: 1;
  }

  .entry > details > summary::after {
    grid-column: 2;
    grid-row: 2;
  }

  .detail {
    padding-left: 1.1rem;
  }
}

@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Station rows and the lesson cards ease their state changes. */
.entry > details > summary,
.insight {
  transition: background-color 0.2s, border-color 0.2s;
}

/* Keyword form of a bullet, used only in the condensed wide layout (see the 64rem block). */
.brief {
  display: none;
}

/* The "Konkret" toggle only makes sense in the wide layout (see the 64rem block). */
.more-toggle {
  display: none;
}

/* "Konkret": the experiences of a position as tagged items */
.exp-title {
  margin: 1.1rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.exp-group {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.exp + .exp-group {
  margin-top: 1.1rem;
}

.exp {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exp li {
  padding: 0.5rem 0.8rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.exp b {
  color: var(--color-text);
}

.exp b + span::before {
  content: ' – ';
}

/* Three columns on wide screens (JS only): stations, the open station's bullets, its concrete
   experiences. The markup stays the accordion; display: contents lifts summary, bullets and
   experiences into the grid. */
@media (min-width: 64rem) {
  .js .timeline {
    display: grid;
    grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
    grid-template-rows: repeat(7, auto) 1fr; /* one row per position, see #timeline */
    column-gap: 1.5rem;
    align-items: start;
  }

  .js .entry,
  .js .entry > details,
  .js .entry > details::details-content {
    /* ::details-content is the box browsers wrap around a details' content (Chromium 131+,
       Firefox 138+); without this the detail would never reach the grid. */
    display: contents;
  }

  /* display: contents on ::details-content also drops its closed-state hiding, so hide explicitly. */
  .js .entry > details:not([open]) > .detail {
    display: none;
  }

  /* The detail fills column 2. By default it shows the bullets alone; the "Konkret" toggle
     (app.js adds it where a .detail-more exists) shrinks them and opens the wider third column. */
  .js .entry > details > .detail {
    display: grid;
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: stretch; /* full grid height, so the sticky panels can follow the scroll */
    /* The experiences column exists at zero width, so the split can animate (grid tracks are
       transitionable since Chrome 107, Firefox 66, Safari 16). */
    grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
    column-gap: 0;
    align-items: start;
    padding: 0;
  }

  .js .entry > details > .detail.show-more {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: 1.5rem;
  }

  /* With the experiences open, the bullets shrink to their keyword form (.brief) and lose the
     intro sentence; .full is the sentence shown everywhere else. */
  .js .detail.show-more .detail-main > p,
  .js .detail.show-more .full {
    display: none;
  }

  .js .detail.show-more .brief {
    display: inline;
  }

  .js .detail-more {
    min-width: 0;
    max-height: 0; /* collapsed it must not add height: at zero width its text would wrap word by word */
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(1rem);
  }

  .js .detail.show-more .detail-more {
    max-height: 400rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .js .entry > details[open] > summary {
    transition: background-color 0.2s, border-color 0.2s;
  }

  @media (prefers-reduced-motion: no-preference) {
    .js .entry > details > .detail {
      transition: grid-template-columns 0.4s ease, column-gap 0.4s ease;
    }

    .js .detail-more {
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, max-height 0s linear 0.4s;
    }

    .js .detail.show-more .detail-more {
      transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s, visibility 0s, max-height 0s;
    }

    /* A newly opened station fades and slides its panel in. */
    .js .entry > details[open] > .detail {
      animation: detail-in 0.3s ease-out;
    }
  }

  .js .more-toggle {
    display: inline-block;
    margin-top: 1rem;
  }

  .js .entry > details > summary {
    position: relative;
    grid-column: 1;
    grid-template-columns: 1fr 1.25rem;
    margin: 0 0 0.6rem 2rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
  }

  .js .entry > details > summary .when {
    grid-column: 1 / -1;
  }

  .js .entry > details > summary::after {
    grid-column: 2;
    grid-row: 2;
    transform: rotate(-45deg);
  }

  .js .entry > details[open] > summary {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
  }

  /* The timeline dot moves from the (now display: contents) entry to its summary. */
  .js .entry > details > summary::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.2rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-accent);
  }

  .js .detail-main,
  .js .detail-more {
    position: sticky;
    top: 4.5rem;
    padding: 1.2rem 1.4rem;
    color: var(--color-muted);
    background: var(--color-background);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
  }

  .js .detail-main {
    grid-column: 1;
  }

  .js .detail-more {
    grid-column: 2;
  }

  .js .detail-more .exp-title {
    margin-top: 0;
  }

  .js #toggle-all {
    display: none;
  }
}

/* Skills, education and the like */
.cv-columns {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 52rem) {
  .cv-columns {
    grid-template-columns: 1fr 1.4fr;
  }
}

.cv-columns h3 {
  margin-top: 0;
}

.cv-columns > div > h3:not(:first-child) {
  margin-top: 1.75rem;
}

.skills {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  margin-bottom: 0.4rem;
}

.bar {
  display: block;
  height: 0.55rem;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.bar::after {
  content: '';
  display: block;
  height: 100%;
  width: calc(var(--v) / 6 * 100%);
  background: var(--color-accent);
  border-radius: 999px;
}

.note {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.facts-list {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.6rem 1rem;
  margin: 0 0 0.5rem;
  color: var(--color-muted);
}

.facts-list dt {
  font-weight: 600;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.facts-list dd {
  margin: 0;
}

.cv-columns p {
  margin: 0;
  color: var(--color-muted);
}

/* Filter status line under the toolbar */
.filter-status {
  margin: -1rem 0 1.5rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.filter-status .link-button {
  margin-left: 0.5rem;
}

/* Skill bars double as filter buttons; .static ones have no position to point to. */
.skill {
  display: grid;
  grid-template-columns: 8rem 1fr;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.15rem 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 4px;
}

/* Nested section inside a position: the third level of detail */
.sub {
  margin-top: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.sub > summary {
  padding: 0.7rem 1rem;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
  list-style: none;
}

.sub > summary::-webkit-details-marker {
  display: none;
}

.sub > summary::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0 0.7rem 0.1rem 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.sub[open] > summary::before {
  transform: rotate(45deg);
}

.sub-body {
  padding: 0.25rem 1rem 1rem;
}

.sub-body > p:first-child {
  margin-top: 0;
}

.case .stats {
  margin-top: 1.25rem;
}

/* Lessons: numbered, each one a collapsible card with the takeaway in the summary */
.insights {
  margin: 0;
  padding: 0;
  list-style: none;
}

.insights li {
  margin-bottom: 0.9rem;
}

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

.insight[open] {
  border-color: var(--color-accent);
}

.insight > summary {
  display: grid;
  grid-template-columns: 2.4rem 1fr 1.25rem;
  gap: 0.25rem 0.75rem;
  align-items: start;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.insight > summary::-webkit-details-marker {
  display: none;
}

.insight > summary::after {
  content: '';
  justify-self: end;
  margin-top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg);
}

.insight[open] > summary::after {
  transform: rotate(-135deg);
}

.num {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  font-weight: 700;
  color: var(--color-accent-contrast);
  background: var(--color-accent);
  border-radius: 50%;
}

.insight-title strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.3;
}

.takeaway {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-muted);
}

.insight-body {
  padding: 0 1.1rem 1.1rem calc(2.4rem + 0.75rem + 1.1rem);
  color: var(--color-muted);
}

.insight-body p {
  margin: 0 0 0.7rem;
}

.insight-body code {
  padding: 0.05rem 0.35rem;
  font-size: 0.9em;
  background: var(--color-accent-soft);
  border-radius: 4px;
}

@media (max-width: 40rem) {
  .insight-body {
    padding-left: 1.1rem;
  }
}

/* Print / "Save as PDF": CV and lessons, every level expanded (app.js opens them). */
@media print {
  :root {
    --color-text: #000;
    --color-muted: #333;
    --color-background: #fff;
    --color-surface: #fff;
    --color-border: #bbb;
    --color-accent: #0e5484;
    --color-accent-soft: #fff;
  }

  body {
    font-size: 10pt;
    line-height: 1.4;
  }

  /* Compact boxes: the date column and the lesson number no longer indent the text. */
  .entry {
    margin-bottom: 0.5rem;
  }

  .entry > details > summary {
    padding: 0.5rem 0.8rem;
  }

  .detail,
  .insight-body {
    padding: 0 0.8rem 0.7rem;
  }

  .insight > summary {
    padding: 0.5rem 0.8rem;
  }

  .insights li {
    margin-bottom: 0.5rem;
  }

  .sub-body {
    padding: 0 0.8rem 0.6rem;
  }

  .section-intro {
    margin-bottom: 1rem;
  }

  .site-header,
  .site-footer,
  .actions,
  .toolbar,
  .filter-status,
  .skip,
  .case,
  .detail-more,
  #erfahrungen,
  #kontakt {
    display: none;
  }

  .insight,
  .sub {
    break-inside: avoid;
  }

  /* Konkret as running text: group caption, then the items separated by dots. */
  .exp-title,
  .exp-group {
    display: inline;
    margin: 0;
    font-size: 0.9rem;
  }

  .exp-title::after,
  .exp-group::after {
    content: ': ';
  }

  .exp {
    display: inline;
  }

  .exp li {
    display: inline;
    padding: 0;
    border: 0;
    font-size: 0.9rem;
  }

  .exp li:not(:last-child)::after {
    content: ' · ';
  }

  .exp + .exp-group::before {
    content: '';
    display: block;
    height: 0.3rem;
  }

  /* Print is the accordion with everything open, never the master-detail grid. */
  .js .timeline,
  .js .entry,
  .js .entry > details,
  .js .entry > details::details-content,
  .js .entry > details > .detail {
    display: block;
  }

  .js .entry > details > .detail {
    padding: 0 0.8rem 0.7rem;
  }

  .js .detail-main {
    display: block;
    position: static;
    padding: 0;
    border: 0;
  }

  .more-toggle {
    display: none;
  }

  .js .entry > details > summary {
    margin: 0;
    border: 0;
    background: none;
  }

  .js .entry > details > summary::before {
    display: none;
  }

  .js .entry > details > .detail {
    position: static;
    padding: 0 0.8rem 0.7rem;
    border: 0;
  }

  .insight > summary::after,
  .sub > summary::before {
    display: none;
  }

  .hero {
    padding: 0 0 1rem;
  }

  section {
    padding: 1rem 0;
  }

  .alt {
    border: 0;
  }

  .entry,
  .cv-columns > div {
    break-inside: avoid;
  }

  .entry > details > summary::after {
    display: none;
  }
}

.print-only {
  display: none;
}

@media print {
  .print-only {
    display: block;
    margin: 0.6rem 0 0;
    color: var(--color-muted);
  }

  #lebenslauf .section-intro {
    display: none;
  }

  .bar,
  .bar::after,
  .entry::before {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Case study: stat tiles, tabs, screenshots */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 1.1rem 1.2rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.stats strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

html:not(.js) .tabs {
  display: none;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.tab:hover {
  border-color: var(--color-accent);
}

.tab[aria-selected='true'] {
  color: var(--color-accent-contrast);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.tab-date {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.js .panel:not(.active) {
  display: none;
}

html:not(.js) .panel + .panel {
  margin-top: 2.5rem;
}

.panel h3 {
  margin-top: 0;
}

.panel code {
  padding: 0.05rem 0.35rem;
  font-size: 0.9em;
  background: var(--color-accent-soft);
  border-radius: 4px;
}

.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  height: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.1);
}

.shot.phone {
  width: 15rem;
}

.shot.wide {
  flex: 1 1 28rem;
  max-width: 44rem;
}

.shot img,
.shot.wide img {
  width: 100%;
}

.shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.flow {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.flow li {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  counter-increment: step;
}

.flow li::before {
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-contrast);
  background: var(--color-accent);
  border-radius: 50%;
}

.case-note {
  max-width: 46rem;
  margin-top: 2.25rem;
}

/* Long German compounds must wrap instead of widening the grid on phones. */
.cv-columns > div {
  min-width: 0;
}

.facts-list {
  grid-template-columns: 6.5rem minmax(0, 1fr);
}

.facts-list dd,
.card p,
.detail {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Controls that only work with app.js stay out of the way without JavaScript. */
html:not(.js) .toolbar,
html:not(.js) .lang-toggle {
  display: none;
}

@media print {
  /* A topic filter must not drop positions from the printed CV. */
  .entry[hidden] {
    display: block;
  }
}
