:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --shell: 70rem;
  --reading: 45rem;
  --radius: .5rem;
  color-scheme: light;
}

.theme-eigenmodus {
  --bg: #f4f1e9;
  --surface: #fbfaf6;
  --text: #17201d;
  --muted: #5d6863;
  --accent: #1e5b4f;
  --accent-strong: #123d35;
  --line: #d8d8cf;
  --contrast: #2b3430;
}

.theme-ichversatz {
  --bg: #f3eff2;
  --surface: #fcf9fb;
  --text: #241b24;
  --muted: #70636d;
  --accent: #7a3f67;
  --accent-strong: #542747;
  --line: #ded3dc;
  --contrast: #efe7dd;
}

.theme-kompetenz,
.theme-kompetenzerhalt {
  --bg: #eef2f3;
  --surface: #f9fbfb;
  --text: #172126;
  --muted: #5c6a70;
  --accent: #245b70;
  --accent-strong: #163f50;
  --line: #d1dde1;
  --contrast: #e8e0cc;
}

.theme-lebenswirken {
  --bg: #f5efe5;
  --surface: #fffaf2;
  --text: #281e16;
  --muted: #726356;
  --accent: #9a542e;
  --accent-strong: #69381f;
  --line: #e4d5c2;
  --contrast: #e7eadf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 42%, transparent), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 42%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 36%, transparent) 1px, transparent 1px);
  background-size: 3.75rem 3.75rem;
  mask-image: linear-gradient(180deg, #000, transparent 46rem);
  opacity: .5;
}

a {
  color: var(--accent-strong);
  text-underline-offset: .22em;
}

a:hover {
  text-decoration-thickness: .13em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: .75rem 1rem;
  background: var(--text);
  color: var(--surface);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin-inline: auto;
}

.reading-column {
  width: min(calc(100% - 2.5rem), var(--reading));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  font-size: .95rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--bg);
  background: var(--accent);
}

.release-label {
  padding: .2rem .38rem;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: .2rem;
  color: var(--accent);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
}

.nav-list,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.footer-links a {
  color: var(--text);
  font-size: .96rem;
  text-decoration: none;
}

.hero {
  padding-block: clamp(5rem, 12vw, 10rem);
}

.home-hero {
  min-height: min(42rem, calc(100vh - 5rem));
  display: flex;
  align-items: center;
  background-color: #f4f1e9;
  background-image: url("/assets/eigenmodus-field.png");
  background-blend-mode: screen;
  background-position: center;
  background-size: cover;
}

.home-hero .shell {
  padding-block: 2rem;
}

.home-hero h1,
.home-hero .lede,
.home-hero .eyebrow,
.home-hero .actions {
  width: min(100%, 58rem);
}

.home-hero h1 {
  max-width: 20ch;
  font-size: clamp(3rem, 5vw, 4.75rem);
}

.home-hero h1,
.home-hero .lede {
  text-shadow: 0 1px 0 rgba(244, 241, 233, .95), 0 0 18px rgba(244, 241, 233, .9);
}

.personal-hero,
.business-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .52fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
}

.civic-hero {
  max-width: var(--shell);
}

.hero-copy {
  max-width: 58rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: 0;
}

.civic-hero h1 {
  max-width: 17ch;
  font-family: var(--font-serif);
  font-weight: 520;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0;
}

h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.lede {
  max-width: 43rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.35rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border: 1px solid var(--accent-strong);
  border-radius: .7rem;
  background: var(--accent-strong);
  color: white;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.text-link {
  font-weight: 800;
}

.quiet-note,
.metric-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, var(--contrast));
  color: var(--muted);
}

.metric-panel {
  display: grid;
  gap: 1rem;
  color: var(--text);
}

.quiet-note p,
.metric-panel p {
  margin: 0;
}

.quiet-note p + p,
.metric-panel p + p {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.statement {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, var(--bg));
}

.statement h2 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-weight: 520;
  letter-spacing: 0;
}

.section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.section-kicker {
  max-width: 55rem;
}

.domain-grid,
.process-grid,
.debate-grid,
.story-list {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.domain-grid {
  grid-template-columns: repeat(3, 1fr);
}

.process-grid,
.debate-grid {
  grid-template-columns: repeat(4, 1fr);
}

.story-list {
  grid-template-columns: minmax(0, .9fr);
}

.domain-card,
.process-grid article,
.debate-grid article,
.story-list article {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.story-list article {
  display: grid;
  grid-template-columns: 4rem minmax(10rem, .7fr) minmax(14rem, 1fr);
  gap: 1.25rem;
  align-items: baseline;
}

.domain-card.ich {
  background: #fcf9fb;
}

.domain-card.kompetenz {
  background: #f9fbfb;
}

.domain-card.leben {
  background: #fffaf2;
}

.card-index,
.number {
  display: block;
  margin: 0 0 1.6rem;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.story-list .number {
  margin: 0;
}

.domain-card p,
.process-grid p,
.debate-grid p,
.story-list p,
.prose {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.founder-band {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, var(--bg));
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
}

.founder-grid h2 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-weight: 520;
}

.prose {
  max-width: 42rem;
}

.press-contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer p {
  margin: 0;
}

.footer-status {
  display: inline-block;
  max-width: 36rem;
  margin-top: .65rem;
  color: var(--muted);
  font-size: .85rem;
}

.legal-page h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.legal-page h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0;
}

.session-actions {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  white-space: nowrap;
}

.session-actions span {
  color: var(--muted);
  font-size: .9rem;
}

.workspace-main,
.error-page {
  min-height: 72vh;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.workspace-main h1,
.error-page h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.empty-workspace {
  max-width: 46rem;
  margin-top: 4rem;
  padding-block: 2rem;
  border-block: 1px solid var(--line);
}

.empty-workspace h2,
.admin-grid h2 {
  margin-bottom: .75rem;
  font-size: 1.5rem;
}

.legal-document {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.legal-document section {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-document h1 {
  margin-bottom: 2rem;
}

.legal-document h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  letter-spacing: 0;
}

.legal-document h3 {
  margin-top: 1.5rem;
}

.legal-document address {
  font-style: normal;
}

.legal-document table {
  width: 100%;
  border-collapse: collapse;
}

.legal-document th,
.legal-document td {
  padding: .8rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.version {
  color: var(--muted);
  font-size: .9rem;
}

.profile-hero {
  min-height: min(48rem, calc(100vh - 5rem));
  display: flex;
  align-items: flex-end;
  padding-block: clamp(5rem, 11vw, 9rem);
  background-color: var(--bg);
  background-image: url("/assets/eigenmodus-field.png");
  background-blend-mode: screen;
  background-position: center;
  background-size: cover;
}

.profile-hero h1 {
  max-width: 12ch;
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  font-weight: 520;
}

.profile-intro {
  max-width: 50rem;
}

.profile-role {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--accent-strong);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 750;
  line-height: 1.4;
}

.profile-thesis {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-block: 1px solid var(--line);
  background: var(--accent-strong);
  color: var(--surface);
}

.profile-thesis .eyebrow {
  color: #a7d9cf;
}

.profile-thesis p:last-child {
  max-width: 32ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.profile-fields article {
  min-width: 0;
}

.profile-fields p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .personal-hero,
  .business-hero,
  .split,
  .founder-grid,
  .profile-fields,
  .domain-grid,
  .process-grid,
  .debate-grid,
  .story-list article {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }

  .civic-hero h1 {
    max-width: 13ch;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 1rem;
  }

  .shell,
  .reading-column {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    margin-inline: 1rem;
  }

  .header-inner,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.15rem;
  }

  .header-inner nav,
  .nav-list {
    width: 100%;
    max-width: 100%;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .15rem .75rem;
  }

  .nav-list li,
  .nav-list a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .release-label {
    font-size: .58rem;
  }

  .home-hero {
    min-height: 0;
    padding-block: 3rem;
    background-position: 62% center;
  }

  .profile-hero {
    min-height: 38rem;
    padding-block: 4rem;
  }

  .profile-hero h1 {
    max-width: 100%;
    font-size: 3.5rem;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: 2.4rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .home-hero .lede {
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .home-hero .actions {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 1.5rem;
  }

  h2,
  .lede {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .nav-list a,
  .footer-links a {
    display: inline-flex;
    min-height: 2.4rem;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
