:root {
  --accent: #16ff1f;
  --page-pad: clamp(12px, 3.1vw, 36px);
  --white: #ffffff;
  --eider-white: #E2DED8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  color: var(--white);
  background: #c2ddff;
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(232, 243, 255, 0.16);
  pointer-events: none;
}

button,
a {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

p {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.motion-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #c2ddff;
}

.motion-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(105, 118, 158, 0.62) 0%,
    rgba(105, 118, 158, 0.62) 16%,
    rgba(115, 128, 165, 0.12) 52%,
    transparent 68%
  );
  pointer-events: none;
}

.giphy-embed {
  position: absolute;
  inset: 0 -4%;
  width: calc(100% + 8%);
  height: 100%;
  border: 0;
  opacity: 0.98;
  pointer-events: none;
  object-fit: cover;
  filter: saturate(0.72) brightness(1.1);
}

.site-shell {
  position: relative;
  min-height: 100svh;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: max(20px, env(safe-area-inset-top)) var(--page-pad) max(22px, env(safe-area-inset-bottom));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 42px);
}

.topbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  margin: 0;
  color: transparent;
  font-size: clamp(88px, 24vw, 180px);
  font-weight: 400;
  line-height: 0.98;
  -webkit-text-stroke: 1.8px #000;
  paint-order: stroke fill;
}

.brand-dr {
  display: none;
}

.language-toggle {
  margin: 0;
  padding: 0;
  border: 0;
  color: rgba(0, 0, 0, 0.52);
  background: transparent;
  font-size: clamp(13px, 3.2vw, 17px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.language-toggle:focus-visible,
.about-toggle:focus-visible,
.menu-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.main-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(96px, 13vh, 116px);
}

.menu-link {
  display: inline-flex;
  align-items: baseline;
  min-height: 1.04em;
  color: var(--white);
  font-size: clamp(40px, 10.8vw, 88px);
  font-weight: 400;
  line-height: 1.04;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
  white-space: nowrap;
}

.menu-link:active,
.menu-link.is-active,
.menu-link.is-pressed {
  color: var(--accent);
}

.menu-arrow {
  display: inline-block;
  margin-left: 0.17em;
  transform: translateY(-0.02em);
}

.menu-link.menu-link--cyber {
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8A820;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 6px 18px;
  white-space: nowrap;
}

.cyber-arrow {
  font-style: normal;
  font-size: 1.15em;
  line-height: 1;
  margin-left: 2px;
  opacity: 0.85;
}

.menu-link--cyber.is-active {
  color: #E8A820;
  opacity: 0.7;
}

.about-toggle {
  position: fixed;
  right: calc(var(--page-pad) + env(safe-area-inset-right, 0px));
  left: auto;
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: clamp(22px, 5.9vw, 34px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.about-arrow {
  display: inline-block;
  flex-shrink: 0;
  transform: rotate(-90deg);
  transition: transform 380ms ease-in-out;
}

body.about-visible:not(.arrow-left):not(.arrow-right) .about-arrow {
  transform: rotate(90deg);
}

body.arrow-left .about-arrow {
  transform: rotate(0deg);
}

body.arrow-right .about-arrow {
  transform: rotate(180deg);
}

.about-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100svh;
  padding: calc(76px + env(safe-area-inset-top)) var(--page-pad) 160px;
  background: var(--eider-white);
  color: #000;
  isolation: isolate;
  overflow-x: clip;
}

.about-inner {
  width: min(100%, 860px);
}

.about-section h2 {
  margin: 0 0 20px;
  color: #000;
  font-size: clamp(82px, 21vw, 140px);
  font-weight: 400;
  line-height: 0.92;
}

.about-text p,
.about-text-closing p {
  margin: 0 0 11px;
  font-size: clamp(15px, 4vw, 19px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: justify;
  hyphens: auto;
  text-align-last: left;
}

.about-photos {
  width: 100%;
  margin: clamp(16px, 4vw, 28px) 0;
  padding: 6px;
  overflow: visible;
}

.about-photo {
  display: block;
  width: min(100%, 460px);
  height: auto;
  transform: translateZ(0);
  filter:
    drop-shadow(4px 0 0 #fff)
    drop-shadow(-4px 0 0 #fff)
    drop-shadow(0 4px 0 #fff)
    drop-shadow(0 -4px 0 #fff)
    drop-shadow(3px 3px 0 #fff)
    drop-shadow(-3px 3px 0 #fff)
    drop-shadow(3px -3px 0 #fff)
    drop-shadow(-3px -3px 0 #fff);
}

.about-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px var(--page-pad) 22px;
  background: var(--eider-white);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
  pointer-events: none;
}

.about-footer p {
  margin: 0;
  font-size: clamp(10px, 2.4vw, 11px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #3a3a3a;
  text-align: left;
  hyphens: none;
}

.about-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  pointer-events: auto;
}

.about-legal {
  width: 100%;
  display: flex;
  gap: 16px;
}

.about-legal a {
  text-decoration: none;
}

.section-divider {
  border: 0;
  border-top: 1px solid currentColor;
  margin: 20px 0;
}

.content-section {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  padding: calc(76px + env(safe-area-inset-top)) var(--page-pad) 116px;
  background: var(--eider-white);
  color: #000;
  transform: translateX(100%);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 520ms;
  visibility: hidden;
  pointer-events: none;
}

.content-section[data-dir="left"] {
  transform: translateX(-100%);
}

.content-section.is-active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}

.content-inner {
  width: min(100%, 860px);
}

.therapy-email {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.therapy-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
  margin: 32px 0 10px;
}

.therapy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
}

.therapy-list li {
  padding: 7px 0;
  font-size: clamp(13px, 3.2vw, 15px);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.therapy-list li:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.keynote-list {
  margin: 0;
}

.keynote-entry {
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.keynote-entry:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.keynote-year {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.4;
  margin: 0 0 4px;
}

.keynote-event {
  font-size: clamp(13px, 3.2vw, 15px);
  margin: 0 0 4px;
}

.keynote-talk {
  font-size: clamp(13px, 3.2vw, 15px);
  margin: 0;
  opacity: 0.6;
}

/* Doctolib booking button */
.doctolib-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
  padding: 16px 22px 14px;
  background: #0596de;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 180ms ease;
}

.doctolib-btn:hover {
  opacity: 0.88;
  color: #fff;
}

.doctolib-wordmark {
  display: block;
  height: 22px;
  width: auto;
  align-self: flex-start;
  filter: brightness(0) invert(1);
}

.doctolib-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(14px, 3.4vw, 16px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 10px;
}

.doctolib-action svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Presse page */
#presse h2 {
  margin-bottom: 0;
}

/* Medien page */
#medien h2 {
  margin-bottom: 24px;
}

.book-inner {
  width: min(100%, 680px);
}

.book-display {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.book-display + .book-display {
  margin-top: 40px;
}

.book-cover {
  display: block;
  width: min(180px, 45%);
  height: auto;
  box-shadow: 4px 6px 24px rgba(0, 0, 0, 0.18);
}

.book-info {
  flex: 1;
}

.book-label {
  margin: 0 0 8px;
  font-size: clamp(10px, 2.4vw, 11px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
}

.book-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 5.2vw, 28px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.book-subtitle {
  margin: 0 0 14px;
  font-size: clamp(13px, 3.2vw, 15px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  opacity: 0.6;
  text-align: justify;
  hyphens: auto;
  text-align-last: left;
}

.book-meta {
  margin: 0;
  font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: 0.02em;
  opacity: 0.5;
}

.book-buy-label {
  margin: 0 0 4px;
  font-size: clamp(10px, 2.4vw, 11px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
}

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

.book-buy-list li:last-child .book-buy-item {
  border-bottom: 1px solid #000;
}


.book-buy-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #000;
  text-decoration: none;
  color: #000;
  font-size: clamp(14px, 3.6vw, 17px);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: opacity 160ms ease;
}

.book-buy-item:hover {
  opacity: 0.45;
}

.book-coming-soon {
  margin: 32px 0 0;
  font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: 0.02em;
  opacity: 0.4;
}

@media (min-width: 600px) {
  .book-display {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .book-cover {
    width: min(160px, 38%);
    flex-shrink: 0;
  }
}

.medien-inner {
  width: min(100%, 600px);
}

/* Featured — mobile: scroll-snap carousel */
.featured-grid {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 calc(var(--page-pad) * -1) 16px;
  padding: 0;
  gap: 0;
}

.featured-grid::-webkit-scrollbar {
  display: none;
}

.featured-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: #000;
  transition: opacity 160ms ease;
  padding: 0 var(--page-pad);
}

.featured-card:hover {
  opacity: 0.6;
}

.featured-card img {
  width: calc(100% + var(--page-pad) * 2);
  margin-left: calc(var(--page-pad) * -1);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.featured-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-card-publisher {
  font-size: clamp(10px, 2.4vw, 11px);
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.55;
}

.featured-card-title {
  margin: 0;
  font-size: clamp(15px, 3.8vw, 19px);
  font-weight: 500;
  line-height: 1.15;
}

.featured-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 40px;
}

.featured-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 200ms ease;
}

.featured-dot.is-active {
  background: #000;
}

/* Featured — desktop: 4-column grid */
@media (min-width: 600px) {
  .featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow-x: visible;
    scroll-snap-type: none;
    margin: 0 0 48px;
    padding: 0;
  }

  .featured-card {
    flex: unset;
    scroll-snap-align: unset;
    padding: 0;
  }

  .featured-card img {
    width: 100%;
    margin-left: 0;
  }

  .featured-dots {
    display: none;
  }
}

.press-list-title {
  margin: 0 0 4px;
  font-size: clamp(10px, 2.4vw, 11px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

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

.media-list li:last-child .media-item {
  border-bottom: 1px solid #000;
}

.media-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #000;
  text-decoration: none;
  color: #000;
  transition: opacity 160ms ease;
}

.media-item:hover {
  opacity: 0.45;
}

.media-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-index {
  font-size: clamp(10px, 2.4vw, 11px);
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.35;
}

.media-type {
  display: inline-block;
  font-size: clamp(9px, 2.2vw, 10px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 8px;
}

.media-publisher {
  font-size: clamp(10px, 2.4vw, 11px);
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.55;
}

.media-publisher::before {
  content: "·";
  margin-right: 8px;
  opacity: 0.6;
}

.media-ext {
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 1;
  opacity: 0.4;
}

.media-title {
  margin: 0;
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

/* Black toggle on white backgrounds */
body[data-active-section]:not([data-active-section=""]) .about-toggle,
body.about-visible .about-toggle {
  color: #000;
}

.kunst-inner {
  width: min(100%, 560px);
}

.kunst-exhibition-label {
  margin: 0 0 28px;
  font-size: clamp(13px, 3.2vw, 15px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #000;
}

.tulip-gallery {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.tulip-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-kicker {
  margin: 0 0 12px;
  font-size: clamp(10px, 2.4vw, 12px);
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.55;
}

.content-section h2 {
  margin: 0 0 20px;
  color: #000;
  font-size: clamp(82px, 22vw, 148px);
  font-weight: 400;
  line-height: 0.92;
}

#cybermobbing h2 {
  font-size: clamp(44px, 12.5vw, 148px);
}

.content-section .content-inner > p:not(.section-kicker) {
  margin: 0 0 11px;
  font-size: clamp(15px, 4vw, 19px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: justify;
  hyphens: auto;
  text-align-last: left;
}

.content-section .content-inner > p.press-intro {
  margin: 0 0 72px;
  font-size: clamp(13px, 3.2vw, 15px);
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
  text-align-last: left;
}

@media (hover: hover) {
  .language-toggle:hover {
    opacity: 0.78;
  }

  .menu-link:hover,
  .about-toggle:hover,
  body[data-active-section="therapie"] .about-toggle:hover,
  body[data-active-section="cybermobbing"] .about-toggle:hover,
  body[data-active-section="kunst"] .about-toggle:hover,
  body[data-active-section="medien"] .about-toggle:hover,
  body[data-active-section="presse"] .about-toggle:hover {
    color: var(--accent);
  }
}

@media (min-width: 700px) {
  :root {
    --page-pad: clamp(30px, 4vw, 70px);
  }

  .hero {
    padding-top: max(28px, env(safe-area-inset-top));
  }

  .hero-content {
    display: flex;
    flex-direction: column;
  }

  .main-menu {
    margin-top: auto;
  }

  .about-section {
    padding-top: calc(96px + env(safe-area-inset-top));
  }

}

@media (min-width: 1024px) {
  .content-section {
    justify-content: center;
    padding-left: clamp(36px, 8vw, 120px);
    padding-right: clamp(36px, 8vw, 120px);
  }

  .content-inner {
    width: min(100%, 1000px);
  }

  .medien-inner {
    width: min(100%, 900px);
  }



  .about-section {
    padding-bottom: 120px;
  }

  .about-inner {
    display: grid;
    grid-template-columns: 1fr clamp(260px, 32vw, 460px);
    grid-template-rows: auto auto auto;
    column-gap: clamp(48px, 6vw, 96px);
    align-items: start;
    width: min(100%, 1300px);
  }

  .about-section h2 {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .about-photos {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: end;
    width: 100%;
    margin: 0;
    padding: 10px;
    overflow: visible;
  }

  .about-photo {
    width: 100%;
    max-width: 460px;
  }

  .about-text {
    grid-column: 1;
    grid-row: 2;
  }

  .about-text-closing {
    grid-column: 1;
    grid-row: 3;
  }

  .brand {
    font-size: clamp(80px, 9vw, 150px);
    white-space: nowrap;
  }

  .brand-dr {
    display: inline;
  }

  .brand-br {
    display: none;
  }

  .language-toggle {
    font-size: clamp(13px, 1.1vw, 17px);
  }

  .menu-link {
    font-size: clamp(62px, 5.6vw, 100px);
  }

  .menu-link.menu-link--cyber {
    font-size: clamp(15px, 1.7vw, 23px);
  }

  .about-toggle {
    font-size: clamp(24px, 2.2vw, 34px);
  }

  .about-text p,
  .about-text-closing p,
  .content-section .content-inner > p:not(.section-kicker) {
    font-size: clamp(16px, 1.4vw, 23px);
    line-height: 1.05;
  }
}

@media (max-height: 840px) and (min-width: 700px) {
  .brand {
    font-size: clamp(72px, 18svh, 180px);
  }
  .main-menu {
    margin-top: auto;
  }
  .menu-link {
    font-size: clamp(36px, 10.5svh, 88px);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0.01ms !important;
  }
}
