:root {
  --font-family: "din-2014-rounded-variable", "din-2014-rounded", "DIN 2014 Rounded VF", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;

  --bg: #f5f5f5;
  --text: #1e1e1e;
  --muted: #2d2d2d;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #e6e6e6;
  --border: #1e1e1e;
  --brand-black: #000000;
  --brand-white: #ffffff;
  --gray-200: #d9d9d9;
  --gray-300: #bdbdbd;
  --gray-500: #5f5f5f;
  --black-0:  rgb(0, 0, 0);
  --black-10: rgba(0, 0, 0, 0.1);
  --black-25: rgba(0, 0, 0, 0.25);
  --black-35: rgba(0, 0, 0, 0.35);
  --black-40: rgba(0, 0, 0, 0.4);
  --black-70: rgba(0, 0, 0, 0.7);
  --black-90: rgba(0, 0, 0, 0.9);
  --white-0: rgba(255, 255, 255, 0);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-35: rgba(255, 255, 255, 0.35);;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-90: rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.15);

  --h1: 5rem;
  --h2: 4.25rem;
  --h3: 3rem;
  --h4: 2rem;
  --h5: 1.5rem;
  --h6: 1.25rem;
  --body: 1rem;
  --rubrik: 1rem;

  --lh-h1: 5rem;
  --lh-h2: 5rem;
  --lh-h3: 3.25rem;
  --lh-h4: 2.75rem;
  --lh-h5: 2.125rem;
  --lh-h6: 2rem;
  --lh-body: 1.625rem;
  --lh-rubrik: 1.5rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow-focus: 0 0 0 2px var(--brand-black);
  --blur: 2px;
}

[data-theme="dark"] {
  --bg: var(--black-0);
  --text: #d9d9d9;
  --muted:var(--surface-2);
  --surface: #1e1e1e;
  --surface-2: #2d2d2d;
  --surface-3: #171717;
  --border: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.body,
.rubrik,
.header-title,
.header-subtitle,
.section-title,
.typo-label,
.nav-item,
.btn,
.infobox-title,
.infobox-body {
  font-family: var(--font-family);
}

.brand-topbar {
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--black-10);
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.brand-title {
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 600;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle .switch {
  margin-bottom: 0;
}

.theme-toggle .switch-paddle {
  border-radius: 2rem;
}

.theme-toggle .switch-paddle::after {
  border-radius: 2rem;
}

.switch {
  margin-bottom: 0;
}

.switch-paddle {
  border-radius: 2rem;
}

.switch-paddle::after {
  border-radius: 2rem;
}

.switch-input:checked + .switch-paddle {
  background: var(--muted);
}

.theme-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-board {
  padding: 40px 48px 80px;
}

.section-block {
  margin-bottom: 48px;
}

.section-title {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 20px;
}

.typo-card {
  background: transparent;
  padding: 12px 0;
}

.typo-label {
  font-size: 24px;
  margin-bottom: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.body,
.rubrik {
  margin: 0 0 0 0;
}

h1 {
  font-size: var(--h1);
  line-height: var(--lh-h1);
  font-weight: 600;
}

h2 {
  font-size: var(--h2);
  line-height: var(--lh-h2);
  font-weight: 600;
}

h3 {
  font-size: var(--h3);
  line-height: var(--lh-h3);
  font-weight: 600;
}

h4 {
  font-size: var(--h4);
  line-height: var(--lh-h4);
  font-weight: 600;
}

h5 {
  font-size: var(--h5);
  line-height: var(--lh-h5);
}

h6 {
  font-size: var(--h6);
  line-height: var(--lh-h6);
}

.body {
  font-size: var(--body);
  line-height: var(--lh-body);
}

.rubrik {
  font-size: var(--rubrik);
  line-height: var(--lh-rubrik);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.header-block {
  padding: 16px 0;
}

.header-title {
  font-size: var(--h1);
  line-height: var(--lh-h1);
  font-weight: 600;
  margin-bottom: 10px;
}

.header-subtitle {
  font-size: var(--h6);
  line-height: 28px;
  font-weight: 500;
  letter-spacing: 0.6px;
}

.color-card {
  background: var(--bg);
  padding: 24px 12px;
  border-radius: var(--radius-sm);
}

.color-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.swatch {
  width: 101px;
  height: 101px;
  border-radius: var(--radius-sm);
  background: var(--swatch);
}

.swatch-outline {
  border: 1px solid var(--brand-black);
}

.nav-bar {
  background: var(--white-70);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-sm);
  padding: 20px 40px;
}

[data-theme="dark"] .nav-bar {
  background: var(--bg);
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  cursor: pointer;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  background: var(--white-90);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-sm);
  display: none;
  z-index: 20;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  display: block;
}

.nav-dropdown__link {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-dropdown__link:hover {
  background: var(--surface-2);
}

[data-theme="dark"] .nav-dropdown__menu {
  background: var(--bg);
}

.nav-item--active {
  background: var(--surface-2);
  font-weight: 700;
}

[data-theme="dark"] .nav-item--active {
  background: var(--surface-2);
}

.icon-btn {
  border: none;
  background: var(--surface-2);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}

.btn--primary .icon {
  filter: brightness(0) invert(1);
}

.btn--hollow-dark .icon {
  filter: brightness(0) invert(1);
}

.icon-btn .icon {
  display: none;
}

html[data-theme="light"] .icon-btn .icon[data-theme-light] {
  display: inline-block;
}

html[data-theme="dark"] .icon-btn .icon[data-theme-dark] {
  display: inline-block;
}

html[data-theme="dark"] .icon-btn .icon[data-theme-dark] {
  filter: brightness(0) invert(1);
}

.case-page {
  color: var(--text);
}

[data-theme="dark"] .case-page {
  background: var(--bg);
}

.case-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white-90);
  backdrop-filter: blur(var(--blur));
  padding: 16px 0;
}

[data-theme="dark"] .case-nav {
  background: var(--bg);
}

.case-nav .nav-items {
  gap: 48px;
}

.case-nav .switch {
  margin-left: 16px;
}

.case-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  margin-top: 0;
}

.case-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--h1);
  line-height: var(--lh-h1);
  font-weight: 600;
  color: var(--brand-white);
  text-transform: uppercase;
  letter-spacing: 4px;
}

.case-hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--black-25), var(--black-90));
}

[data-theme="light"] .case-hero__fade {
  background: linear-gradient(180deg, var(--white-0), var(--surface-2));
}

.case-intro {
  padding: 48px 0 32px;
  position: relative;
}

.case-title h1 {
  font-size: 8.75rem;
  line-height: 8.25rem;
  margin: 0;
  font-weight: 600;
}

.case-index {
  font-size: 8.75rem;
  line-height: 8.25rem;
  color: var(--gray-200);
}

[data-theme="dark"] .case-index {
  color: var(--gray-500);
}

.case-meta {
  margin-top: 16px;
  font-size: 1.25rem;
  line-height: 2rem;
  color: var(--muted);
}

[data-theme="dark"] .case-meta {
  color: var(--gray-300);
}

.case-task {
  margin-top: 20px;
}

.case-task-float {
  position: absolute;
  right: 0;
  top: 473px;
  width: min(52vw, 839px);
  padding-right: 0;
}

@media (min-width: 1200px) {
  .case-task-float {
    top: 176px;
    width: min(52vw, 43.75rem);
  }
}


.case-media {
  padding: 24px 0 48px;
}

.media-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
}

.media-card--interactive {
  cursor: pointer;
}

.media-card--tall {
  min-height: 662px;
}

.media-card--video {
  min-height: 0;
}

.media-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.media-placeholder__title {
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.media-placeholder__meta {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 6px;
}

[data-theme="dark"] .media-card--placeholder {
  background: var(--surface-3);
  color: var(--text);
}

[data-theme="light"] .media-card--placeholder {
  background: var(--surface);
  color: var(--muted);
}

.media-card img,
.media-card video {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.media-card__embed {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
  display: block;
}

.media-card video {
  height: 520px;
  object-fit: cover;
}

.cv-main {
  padding: 48px 0 96px;
}

.cv-timeline {
  padding: 24px 0 48px;
}

.legal-main {
  padding: 0 0 96px;
}

.legal-content {
  padding: 48px 0 96px;
}

.legal-nav {
  background: var(--surface-2);
  padding: 24px 0;
}

[data-theme="dark"] .legal-nav {
  background: var(--surface-2);
}

.legal-nav__group {
  display: flex;
  gap: 62px;
  align-items: center;
}

.legal-nav__item {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

[data-theme="dark"] .legal-nav__item {
  color: var(--brand-white);
}

.legal-nav__item--active {
  background: var(--surface-2);
}

.footer-bar {
  border-top: 1px solid var(--black-10);
  background: var(--surface);
  padding: 20px 0;
}

[data-theme="dark"] .footer-bar {
  border-top-color: var(--white-10);
  background: var(--bg);
}

.footer-bar__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-bar__links a {
  color: var(--text);
  text-decoration: none;
}

.footer-bar__links a:hover {
  text-decoration: underline;
}

.legal-body {
  max-width: 860px;
  margin: 0 auto;
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.5rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body p {
  margin-bottom: 1rem;
}

.cv-page h1,
.cv-page h2,
.cv-page h3,
.cv-page h4,
.cv-page h5,
.cv-page h6 {
  margin-bottom: 0;
}

.timeline {
  position: relative;
  padding: 12px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 56px;
  width: 2px;
  background: var(--black-10);
}

.timeline-item {
  position: relative;
  padding-left: 12rem;
  margin-bottom: 48px;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  text-align: center;
}

.timeline-icon h6 {
  font-weight: 700;
  margin: 0;
}

.timeline-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-content {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin-top: 0.5rem;
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.timeline-content-date {
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.timeline-content h3 {
  margin-bottom: 0.75rem;
}

.timeline-content h6 {
  margin-bottom: 0.75rem;
}

.timeline-content p {
  margin-top: 0;
}

@media (min-width: 640px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    display: flex;
    padding-left: 0;
    margin-bottom: 64px;
  }

  .timeline-icon {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item .timeline-content {
    width: calc(50% - 5rem);
  }

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

[data-theme="dark"] .timeline::before {
  background: var(--white-10);
}

[data-theme="dark"] .timeline-icon img[src*="static/images/referenzen/"] {
  filter: invert(1);
}

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
  }
}

.media-phone {
  position: absolute;
  bottom: 16px;
  right: 48px;
  width: 180px;
  border-radius: 16px;
  box-shadow: 0 24px 40px var(--black-35);
}

.media-card--short img {
  height: 300px;
  object-fit: cover;
}

.case-divider {
  padding: 24px 0 48px;
  position: relative;
}

.case-scroll-panel {
  position: relative;
  height: 524px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.case-scroll-panel__image {
  position: absolute;
  inset: -200px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.case-scroll-panel__shade {
  position: absolute;
  inset: 24px 0 48px;
  background: var(--black-40);
  width: 100vw;
  left: 0;
  pointer-events: none;
}

.case-member {
  padding: 32px 0 64px;
}

.case-member__header h2 {
  font-size: 4.25rem;
  line-height: 5rem;
  margin: 0 0 8px;
}

.case-member__meta {
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.case-cta {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.case-footer {
  background: var(--surface-2);
  padding: 48px 0 80px;
  text-align: center;
}

[data-theme="dark"] .case-footer {
  background: var(--surface-3);
}

.case-footer__role {
  font-size: 2rem;
  line-height: 3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.case-footer__desc {
  font-size: 1rem;
  line-height: 1.625rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .case-footer__desc {
  color: var(--text);
}

.case-footer__tools {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.case-footer__tools img {
  width: 120px;
  height: 120px;
}

[data-theme="dark"] .case-footer__tools img {
  opacity: 0.1;
}

.media-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.media-modal.is-open {
  display: flex;
}

.media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--black-70);
}

.media-modal__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--brand-black);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-modal__image,
.media-modal__video {
  max-width: 100%;
  max-height: 80vh;
  display: none;
}

.media-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  color: var(--brand-white);
  background: transparent;
  border: none;
  cursor: pointer;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .case-task-float {
    width: min(44vw, 640px);
    top: 260px;
  }

  .case-title h1 {
    font-size: 4.5rem;
    line-height: 4.8rem;
  }

  .case-index {
    font-size: 4.5rem;
    line-height: 4.8rem;
  }

  .case-task-float {
    position: static;
    width: 100%;
    padding: 0 1.25rem;
    margin-top: 24px;
  }

  .case-member__header h2 {
    font-size: 3rem;
    line-height: 3.4rem;
  }

  .media-card video {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .case-hero {
    height: 320px;
  }

  .case-nav .grid-x {
    gap: 12px;
  }

  .case-nav .nav-items {
    gap: 16px;
  }

  .media-phone {
    position: static;
    width: 140px;
    margin-top: 16px;
  }

  .case-scroll-panel__image {
    background-attachment: scroll;
  }

  .case-footer__tools {
    flex-direction: column;
    align-items: center;
  }
}

.button-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[data-theme="light"] .button-group--dark {
  display: none;
}

html[data-theme="dark"] .button-group--light {
  display: none;
}

.btn {
  font-family: var(--font-family);
  font-size: 20px;
  line-height: 34px;
  border-radius: var(--radius-md);
  padding: 1rem 2.5rem;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--text);
  color: var(--brand-white);
  cursor: pointer;
}

.btn--sm {
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 0.6rem 1.5rem;
}

.btn--sm .icon {
  width: 16px;
  height: 16px;
}

.btn--hover {
  opacity: 0.9;
}

.btn--primary {
  background: var(--text);
  color: var(--brand-white);
}

.btn--primary:hover {
  opacity: 0.9;
  color: var(--brand-white);
}

.btn--hollow {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn--hollow:hover {
  background: var(--black-10);
  border-color: var(--brand-black);
}

.btn--primary-white {
  background: var(--brand-white);
  color: var(--text);
}

.btn--primary-white:hover {
  background: var(--white-70);
}

.btn--hollow-dark {
  background: transparent;
  border-color: var(--brand-white);
  color: var(--brand-white);
}

.btn--left {
  flex-direction: row;
}

[data-theme="dark"] .btn--primary {
  background: var(--surface);
  color: var(--brand-black);
}

[data-theme="dark"] .btn--hollow {
  border-color: var(--brand-white);
  color: var(--brand-white);
}

[data-theme="dark"] .btn--primary-white {
  background: var(--brand-white);
  color: var(--brand-black);
}

[data-theme="dark"] .btn--primary-white:hover {
  background: var(--white-70);
  color: var(--brand-black);
}

[data-theme="dark"] .btn--hollow-dark {
  border-color: var(--brand-white);
  color: var(--brand-white);
}

.btn--hollow-dark:hover {
  background: var(--white-10);
  border-color: var(--brand-white);
}

.infobox {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.infobox--left {
  flex-direction: row;
  gap: 20px;
}

.infobox-title {
  font-size: 32px;
  line-height: 49px;
  font-weight: 600;
  min-width: 6.25rem;
}

.infobox-body {
  font-size: var(--body);
  line-height: var(--lh-body);
}

[data-theme="dark"] .infobox {
  background: var(--surface);
  color: var(--brand-white);
}

@media (max-width: 640px) {
  .brand-board {
    padding: 24px 20px 40px;
  }

  h1 {
    font-size: 48px;
    line-height: 60px;
  }

  h2 {
    font-size: 40px;
    line-height: 52px;
  }

  .header-title {
    font-size: 48px;
    line-height: 60px;
  }

  .color-row {
    flex-wrap: wrap;
  }

  .infobox--left {
    flex-direction: column;
  }
}
