html,
body {
  height: 100%;
  margin: 0;
  overflow-x: clip;
}

/* Platz für die Scrollbar immer reservieren: kein Springen zwischen Seiten mit und ohne Scrollbar */
html {
  scrollbar-gutter: stable;
}

span {
  height: auto;
}

.inner-container img,
.inner-container video {
  border-radius: 16px;
}

.inner-container img.no-radius {
  border-radius: 0;
}

img.knob {
  border-radius: 100%;
  box-shadow: 0 50px 50px var(--shadow-strong);
}

.logo {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: baseline;
}

.logo-svg {
  width: 48px;
  height: 48px;
  color: var(--black);
  transition: color 0.25s;
  //color: var(--blue);
}

.logo:hover .logo-svg {
  color: var(--blue);
}

.logo.current .logo-svg {
  color: var(--blue);
}

.light {
  text-color: white;
}

.text-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1 1 auto;
  width: auto;
  height: auto;
  //background-color: var(--lightblue);
  gap: var(--gap-s);
  border-bottom: 1px solid var(--grayblue);
}

.text-box .icon,
.text-box sub,
.text-box a {
  height: auto;
  line-height: 1.4;
}

.content.custom-padding {
  padding-bottom: var(--custom-padding-bottom, 0) !important;
}

.lastnext {
  position: fixed;
  //top: 0;
  left: 0;
  bottom: -100px;
  width: 100vw;
  height: auto;
  //background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-m);
  /* Abstand zwischen den Buttons */
  //opacity: 0;
  z-index: 9999;
  transition: bottom 0.3s;
}

.lastnext.visible {
  opacity: 1;
  bottom: 0;
  padding: 0 0 var(--gap-xs) 0;
  transition: bottom 0.3s;
}

.scrolldown-ctn {
  opacity: 0;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 200px;
  //background: yellow;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.scrolldown-btn {
  //animation: scrolldownBtn 2s linear infinite;
}

.scrolldown-btn:hover {
  //background-color: var(--lightblue);
  animation: none;
}

@keyframes scrolldownBtn {
  0% {
    background-color: var(--black);
  }

  20% {
    background-color: var(--blue);
  }

  80% {
    background-color: var(--blue);
  }

  100% {
    background-color: var(--black);
  }
}

.scrolldown-icon {
  animation: scrolldownIcon 2s linear infinite;
}

@keyframes scrolldownIcon {
  0% {
    opacity: 0;
    transform: translateY(-50%);
  }

  20% {
    opacity: 1;
    transform: translateY(0);
  }

  80% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(50%);
  }
}

.icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  font-size: 24px;
  margin-right: 8px;
  color: var(--darkerblue);
}

button.icon-btn .icon {
  width: 1em;
  height: 1em;
  font-size: 1em;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  top: 0;
}

button .icon {
  width: 1em;
  height: 1em;
  font-size: 1em;
  position: relative;
  top: 1px;
  color: var(--white);
}

.bg-shape {
  position: fixed;
  top: -60px;
  left: 0;
  /* wichtig */
  width: 120%;
  height: 100%;
  z-index: -1;
  background: rgb(228, 228, 239);
  //background: linear-gradient(180deg, rgba(228,228,239,1) 0%, rgba(228,228,239,0) 100%);
  transition: transform 0.2s ease-out;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 50%);
}

.reverse {
  //clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 40%);
}

.me {
  width: 100%;
  display: flex;
  justify-content: center;
}

.me img {
  max-width: 400px;
}



.arrow {
  border: solid black;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 8px;
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

label {
  color: var(--paper);
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
  border-radius: 100px;
  margin-bottom: var(--gap-s);
  background-color: var(--light-gray);
  padding: 12px 24px;
  margin-right: var(--gap-s);
}

sub.label {
  color: var(--lighter-gray);
}

.right-nav button {
  background-color: var(--pill-soft);
  box-shadow: none;
  //border: 2px solid var(--black);
  color: var(--ink);
  margin: 0;
}

.contact-btn {
  display: none;
}

.right-nav button .icon {
  color: var(--ink);
}

.right-nav button:hover .icon,
.right-nav button[aria-expanded="true"] .icon {
  color: var(--paper);
}

.right-nav button[aria-expanded="true"] {
  background-color: var(--blue);
}

/* Foto-Button: feste Farben, kein Dark-Mode-Wechsel */
.right-nav button.avatar-btn {
  position: relative;
  overflow: visible;
  margin: 0;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  background: #FFFFFF;
}

.right-nav button.avatar-btn:hover,
.right-nav button.avatar-btn:active,
.right-nav button.avatar-btn[aria-expanded="true"] {
  transform: none;
  background-color: #FFFFFF;
}

.avatar-btn .avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: none;
  object-fit: cover;
  transition: opacity 0.25s;
}

.avatar-btn .avatar-color {
  opacity: 0;
}

.avatar-btn:hover .avatar-color,
.avatar-btn[aria-expanded="true"] .avatar-color {
  opacity: 1;
}

.avatar-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-nav button.avatar-btn .avatar-badge .icon {
  font-size: 22px;
  color: #161718;
  transition: color 0.25s;
}

.right-nav button.avatar-btn:hover .avatar-badge .icon,
.right-nav button.avatar-btn[aria-expanded="true"] .avatar-badge .icon {
  color: #4647C8;
}

/* Legal-Notice-Popover am Info-Button */
.info-wrap {
  position: relative;
}

.info-pop {
  position: absolute;
  top: calc(100% + var(--gap-xs));
  right: 0;
  display: block;
  width: max-content;
  max-width: calc(100vw - var(--gap-m));
  padding: var(--gap-m);
  background: var(--paper);
  box-shadow: 32px 48px 64px var(--shadow);
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted-strong);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.info-pop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.info-pop-title {
  display: block;
  font-size: var(--p-xs);
  margin-bottom: var(--gap-m);
  color: var(--muted-strong);
}

.info-pop-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-s) var(--gap-l);
}

.info-pop-name {
  color: var(--ink);
}

.topbar .info-pop a,
.topbar .info-pop a:visited {
  color: var(--blue);
  font-weight: 400;
}

.topbar .info-pop a:hover {
  color: var(--accent-strong);
}

/* Mobil: Popover an der Kopfzeile statt am Button ausrichten, nie breiter als die Seite */
@media screen and (max-width: 767px) {
  .topbar {
    position: relative;
  }

  .navigation.info-wrap {
    position: static;
  }

  .info-pop {
    left: 0;
    right: 0;
    top: calc(100% + var(--gap-xs));
    width: auto;
    max-width: none;
    padding: var(--gap-s);
  }

  .info-pop-title {
    margin-bottom: var(--gap-s);
  }

  .info-pop-grid {
    flex-direction: column;
    gap: var(--gap-s);
  }
}

.right-nav button:hover {
  color: var(--paper);
  transition: color, 0.25s;
}

button {
  background: var(--black);
  color: var(--white);
  //border: 2px solid var(--black);
  border: none;
  padding: 10px 36px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: var(--p-m);
  font-weight: 500;
  //text-transform: uppercase;
  border-radius: 120px;
  cursor: pointer;
  margin: var(--gap-xs) 0 var(--gap-xs) 0;
  width: 100%;
  height: 58px;
  box-shadow: 32px 48px 64px var(--shadow);
}

/* Hover: leicht größer */
button:hover {
  transform: scale(1.02);
}

/* Pressed: kurz kleiner / "inset" feel */
button:active,
button.pressed {
  transform: scale(0.98);
  transition-duration: 80ms;
}

button.icon-btn {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

button.blank {
  background: none;
  border: none;
  padding: 10px 0;
  box-shadow: none;
  color: var(--black);
}

button.blank:hover {
  background: var(--blue);
}

button.blank:active {
  background: var(--darkerblue);
}

button.blank .icon {
  color: var(--black);
}

button.blank:hover .icon {
  color: var(--white);
}

input {
  background: none;
  color: var(--white);
  border: none;
  padding: 10px 32px;
  text-align: left;
  text-decoration: none;
  display: inline-block;
  font-size: var(--p-m);
  font-weight: 400;
  border-radius: 100px;
  width: calc(100% - var(--gap-s));
  font-size: var(--p-s);
}

input::placeholder {
  color: var(--white);
  opacity: 0.3;
  font-weight: 400;
}

input:active,
input:focus {
  outline: none;
  border: none;
}

button:hover {
  background-color: var(--blue);
  transition: color, 0.25s;
}

/*
button:hover .icon {
  //color: var(--blue);
  transition: color 0.25s;
}
  */

sub a .icon,
p a .icon,
li a .icon {
  color: var(--blue);
  transition: color 0.25s;
}

sub a:hover .icon,
p a:hover .icon,
li a:hover .icon {
  color: var(--lightblue);
  transition: color 0.25s;
}

button:hover.blank {
  border: none;
}

button:active {
  background: var(--darkerblue);
  transition: color, 0.25s;
}

button.work {
  display: none;
}

button.work2 {
  display: inline;
}

.container {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gap-s) 0 var(--gap-s);
}

/* Volle Breite, farblich abgesetzt (wie .h-scroll-sticky in work-adas.html), Inhalt bleibt über .container zentriert */
.full-bleed {
  width: 100%;
  background-color: var(--lightblue);
}

.disclaimer {
  padding-bottom: none;
  background-color: red;
}

.topbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  height: 90px;
  gap: 0;
  padding-top: var(--gap-xs);
  //background-color: red;
}

.topbar-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  //background-color: yellow;
}

.right-nav {
  display: flex;
  gap: var(--gap-m);
  align-items: center;
  //background-color: green;
}

.bottombar2 {
  padding: var(--gap-m) 0 var(--gap-m) 0;
  margin-bottom: var(--gap-s);
  background-color: var(--lightblue);
  height: auto;
  box-shadow: 32px 48px 64px var(--shadow);
  color: var(--ink);
}

.navigation2 {
  display: flex;
  display: inline-block;
  position: relative;
  margin-bottom: 0;
}

.bottombar2 .navigation2 a {
  color: var(--ink);
}

.bottombar2 .navigation2 a:hover,
.bottombar2 .navigation2.current a {
  color: var(--blue);
}

.bottombar2 .subtile a:hover {
  color: var(--accent-strong);
}

.bottombar2 .hund h4 {
  color: var(--ink);
}

.bottombar2 .subtile {
  color: var(--muted-strong);
}

.bottombar2 .subtile a {
  color: var(--blue);
}


.navigation {
  display: flex;
  display: inline-block;
  position: relative;
  margin-bottom: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.navigation.current a {
  color: var(--blue);
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  padding-top: var(--gap-m);
  padding-bottom: var(--gap-m);
}

.content.start {
  margin-top: var(--gap-m);
  
}

.content.about {
  padding-top: 0;
  align-items: flex-start;
}

.content:has(+ .content.continued-s),
.content:has(+ .content.continued-m) {
  padding-bottom: 0;
}

.content.continued-s {
  padding-top: var(--gap-s);
}

.content.continued-m {
  padding-top: var(--gap-m);
}

img,
video {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  margin-bottom: var(--gap-xs);
  box-shadow: 32px 48px 64px var(--shadow);
}

img.noShadow,
video.noShadow {
  box-shadow: none;
}

img.no100,
video.no100 {
  width: 100%;
  box-shadow: none;
}

img.noBg,
video.noBg {
  background-color: none;
  background: none;
}

img.tools {
  width: 48px;
  height: 48px;
  box-shadow: none;
}

.two {
  display: flex;
  gap: var(--gap-s);
  width: 100%;
}

.two img {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: auto;
  margin-bottom: var(--gap-s);
  object-fit: cover;
}

.app-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  width: 100%;
  padding: 24px;
  height: auto;
  background-color: var(--lightblue);
  gap: var(--gap-s);
}

.app-link>div {
  flex: 1;
}

.app-text {
  display: none;
}

.app-link button {
  margin-left: auto;
}

.app-link img {
  width: 80px;
  height: 80px;
  margin: 0;
}

img.about {
  border-radius: 0%;
}

.work {
  align-items: flex-start;
}

.start {
  padding-top: var(--gap-m);
}

.further-section {
  width: 100%;
  background-color: var(--lightblue);
  padding: var(--gap-l) 0;
}

.content.vita,
.content.align-baseline {
  align-items: baseline;
}

.content .left {
  width: 100%;
  //min-height: 50%;
}

.content .right {
  width: 100%;
}

.content .center {
  width: 100%;
}

.yt-video {
  position: relative;
  padding-bottom: 56.25%;
  margin-bottom: var(--gap-xs);
  /* 16:9 Aspect Ratio */
  padding-top: 25px;
  height: 0;
}

/* Stellt das iframe des Videos so ein, dass es den Container voll ausfüllt */
.yt-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.legal {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: auto;
  font-size: 50px;
  transform: translate(-50%, 0);
  -ms-transform: translate(-50%, -50%);
  background-color: var(--surface-strong);
  padding: var(--gap-l);
  color: var(--paper);
}

section {
  display: flex;
  //background-color: green; //marking
  height: 50%;
  justify-content: center;
}

.expandable {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.overlay {
  position: absolute;
  display: none;
  background: var(--paper);
  padding: var(--gap-s);
  box-shadow: 32px 48px 64px var(--shadow);
  z-index: 1000;
  white-space: nowrap;
  max-width: 100%;
  right: calc(var(--gap-s) * -1);
  /* ragt um gap-s nach rechts raus */
  left: auto;
  /* falls gesetzt, überschreiben */

  /* Animation */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.overlay.show {
  opacity: 1;
  display: block;
  transform: translateY(0);
  pointer-events: auto;
}

.overlay::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--paper);
  /* Optional: weicher Schatten unter dem Pfeil */
  /* filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1)); */
}

/* Overlay für vergrößerte Bilder */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--scrim-solid);
  /* Ändert den Hintergrund des Overlays zu weiß */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  padding: 64px;
  object-fit: contain;
}

.image-overlay.visible {
  visibility: visible;
  opacity: 1;
}

.img-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  cursor: zoom-out;
}

.img-zoom-overlay>img,
.img-zoom-overlay>video {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  display: block;
  margin: auto;
  object-fit: contain;
  //padding: 50px;
}

.zoomable-img {
  scale: 1;
  transition: 0.3s;
}

.inner-container {
  display: flex;
  flex-direction: column;
}

.inner-container>img,
.inner-container>video {
  order: 1;
}

.inner-container>div {
  order: 2;
}

.inner-container img,
.inner-container video {
  //background-color: green;
  width: 50%;
}

.gap {
  height: var(--gap-m);
}

.me-vid {
  width: 80%;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: block;
  //margin: 20px auto 0 auto;
  margin-bottom: var(--gap-m);
  object-fit: cover;
  box-shadow: 32px 48px 64px var(--shadow);
  max-width: 400px;
}

/* Summarize Modal */
.summarize-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background-color: var(--overlay);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.summarize-modal-content {
  background-color: var(--white);
  padding: var(--gap-s);
  border-radius: 0;
  box-shadow: none;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
  box-sizing: border-box;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalPulse {

  0%,
  100% {
    background-color: var(--modal-pulse-a);
  }

  50% {
    background-color: var(--modal-pulse-b);
  }
}

.summarize-modal-content.loading {
  animation: modalPulse 2s ease-in-out infinite;
}

.summarize-modal-content .icon-btn {
  align-self: flex-end;
  margin: 0;
  margin-left: auto;
}

.dropdown-wrapper {
  position: relative;
}

.perspective-dropdown {
  background: var(--black);
  color: var(--white);
  padding: var(--gap-s) var(--gap-m);
  border-radius: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  font-size: var(--p-m);
  font-weight: 500;
  transition: background 0.2s;
  box-shadow: 32px 48px 64px var(--shadow);
}

.perspective-dropdown:hover {
  background: var(--darkblue);
  transition: color, 0.25s;
  transform: scale(1.02);
}

.perspective-dropdown:active,
.perspective-dropdown.pressed {
  transform: scale(0.98);
  transition-duration: 80ms;
  background: var(--darkerblue);
}

.dropdown-icon {
  transition: transform 0.2s;
}

.dropdown-icon.open {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 32px;
  box-shadow: 32px 48px 64px var(--shadow);
  overflow: hidden;
  z-index: 10001;
}

.dropdown-item {
  padding: var(--gap-s) var(--gap-m);
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Nunito Sans', sans-serif;
  font-size: var(--p-m);
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--black);
  color: var(--white);
}

.summary-output {}

.summary-text {
  padding: 0;
  margin-bottom: var(--gap-s);
}

.ai-disclaimer {
  color: var(--gray);
  margin: 0;
}

/*---------------------------------------------------------------------------------------------------------------*/
@media screen and (min-width: 768px) {

  .logo {
    width: 64px;
    height: 64px;
  }

  .contact-btn {
    display: inline;
  }

  .right-nav .navigation:has(button) {
    display: inline-block;
  }

  button.work {
    display: inline;
  }

  button.work2 {
    display: none;
  }

  .scrolldown-ctn {
    opacity: 1;
  }

  .me-vid {
    width: 80%;
    max-width: 400px;
    height: 80%;
    margin: 0;
    border-radius: 50%;
  }

  .right-nav {
    display: flex;
    gap: var(--gap-l);
  }

  .bg-shape {
    top: 0;
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 30% 100%);
    background: linear-gradient(180deg, rgba(66, 67, 198, 0.4) 0%, rgba(228, 228, 239, 1) 37%, rgba(228, 228, 239, 0) 100%);
    /* background: linear-gradient(180deg, rgba(228, 228, 239, 0.4) 0%, rgba(228, 228, 239, 1) 37%, rgba(228, 228, 239, 0) 100%); */
  }

  .reverse {
    clip-path: polygon(44% 0, 100% 0, 100% 100%, 38% 100%);
  }

  .container {
    padding: 0 var(--gap-l) 0 var(--gap-l);
  }

  .container-work {
    padding-top: var(--gap-m);
  }

  .content {
    flex-direction: row;
    //width: 100%;
  }

  .content .left {
    width: 43%;
    min-height: 50%;
    //background-color: red;
    padding-right: 7%;
  }

  .content .right {
    width: 57%;
  }

  .content .center {
    width: 100%;
  }

  button {
    //padding: 12px 42px;
    width: auto;
    margin: 0;
    margin: var(--gap-s) 0 var(--gap-s) 0;
  }

  button.icon-btn {
    margin: 0;
    margin-top: var(--gap-m);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content.about {
    padding-top: 80px;
  }

  img.about {
    margin-top: 20px;
    width: 70%;
    height: 90%;
    margin: 0;
    border-radius: 0%;
  }

  .inner-container {
    display: flex;
    justify-content: center;
    gap: var(--gap-m);
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 3rem;
  }

  .inner-container-img {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
  }

  .inner-container img,
  .inner-container video {
    max-height: 520px;
    max-width: 400px;
  }
  img.mobile {
    width: auto;
    height: auto;
    max-width: 240px;
  }

  .img-link {
    position: cursor;
  }

  .img-link img:hover {
    scale: 1.02;
    transition: 0.3s;
  }

  .img-link img {
    scale: 1;
    transition: 0.3s;
  }


  .inner-container sub {
    width: 50%;
    align-items: flex-start;
  }

  .inner-container {
    flex-direction: row;
    justify-content: center;
    gap: var(--gap-m);
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .inner-container>img,
  .inner-container>video,
  .inner-container>div {
    order: 0;
  }

  .app-text {
    display: block;
  }

  .summarize-modal-content {
    padding: var(--gap-m);
    width: 90% !important;
    height: auto !important;
    max-width: 800px !important;
    max-height: 90vh;
    overflow: visible;
    box-shadow: 32px 48px 64px var(--shadow);
  }
}

/*---------------------------------------------------------------------------------------------------------------*/
@media screen and (min-width: 1024px) {

  .right-nav {
    gap: var(--gap-xl);
  }

  .bottombar2 {
    padding: var(--gap-m);
  }

  .content {
    padding-top: var(--gap-l);
    padding-bottom: var(--gap-l);
  }
}

/*---------------------------------------------------------------------------------------------------------------*/
@media screen and (min-width: 1200px) {

  .container {
    max-width: 1640px;
  }

  .bottombar2 {
    padding: var(--gap-m);
  }

  .content {
    padding-top: var(--gap-l);
    padding-bottom: var(--gap-l);
  }

  .content .center {
    width: 62%;
  }
}

/* Horizontal Scroll Section */
.h-scroll-section {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
}

.h-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--lightblue);
}

.h-scroll-track {
  display: flex;
  gap: var(--gap-xs);
  padding: 0 var(--gap-s);
  will-change: transform;
  align-items: flex-start;
}

.h-scroll-card {
  flex-shrink: 0;
  width: max-content;
  display: flex;
  flex-direction: column;
}
.card-content {
  padding: var(--gap-m) var(--gap-m) 0 var(--gap-m);
}
.image-container {
  margin: var(--gap-m) 0 var(--gap-m) 0;
}

.h-scroll-card-img {
  height: 309px;
  width: auto;
  //background-color: var(--light-gray);
  margin-bottom: var(--gap-xs);
  overflow: hidden;
  flex-shrink: 0;
}

.h-scroll-card-img img {
  width: auto;
  height: 100%;
  object-fit: cover;
  margin: 0;
  margin-bottom: 0;
  box-shadow: none;
}

.h-scroll-card h3,
.h-scroll-card p {
  max-width: 100%;
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
}

.h-scroll-card h3 {
  margin-top: 0;
  margin-bottom: var(--gap-xs);
}

.h-scroll-card p {
  margin: 0;
}

.h-scroll-card-text.two-col {
  display: flex;
  gap: var(--gap-s);
  width: 0;
  min-width: 100%;
}

.h-scroll-card-text.two-col p {
  flex: 1;
  width: auto;
  min-width: 0;
  max-width: none;
}

@media screen and (min-width: 768px) {
  .h-scroll-track {
    padding: 0 var(--gap-l);
  }
}

/* Dark Mode: nur die Kopf-Form abdunkeln – Light-Regeln oben bleiben unangetastet */
:root[data-theme="dark"] .bg-shape {
  background: #202233;
}
@media screen and (min-width: 768px) {
  :root[data-theme="dark"] .bg-shape {
    background: linear-gradient(180deg, rgba(32, 34, 51, 0.4) 0%, rgba(32, 34, 51, 1) 37%, rgba(32, 34, 51, 0) 100%);
  }
}
/* Video-Tabs mit wischbarem Karussell (work-faar) */
.content.vsection {
  padding-bottom: 0;
}

.vhead {
  width: 100%;
}

.vtabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs) var(--gap-s);
  width: 100%;
}

.vtabs .vtab,
.vtabs .vtab:hover,
.vtabs .vtab:active {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1.45;
  text-align: left;
  color: var(--ink);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.25s;
}

.vtabs .vtab:hover {
  color: var(--blue);
  opacity: 0.75;
}

.vtabs .vtab.is-active {
  color: var(--blue);
  opacity: 1;
}

.vcarousel {
  width: 100%;
  overflow: hidden;
  padding: var(--gap-m) 0 var(--gap-l);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.vtrack {
  position: relative;
  display: flex;
  gap: var(--gap-s);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.vtrack.is-dragging {
  transition: none;
}

.vslide {
  position: relative;
  flex: 0 0 calc(100vw - 3 * var(--gap-s));
  cursor: pointer;
}

.vslide.is-active {
  cursor: default;
}

.vslide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.5s;
}

.vslide.is-active::after,
.vslide:hover::after {
  opacity: 0;
}

.vslide video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  pointer-events: none;
}

.vcaps {
  width: 100%;
  margin-top: var(--gap-s);
}

.vcap {
  display: none;
  margin: 0;
}

.vcap.is-active {
  display: block;
  animation: vcapIn 0.3s ease;
}

.vcap p {
  margin: 0;
}

.vcap-title {
  display: none;
  margin: 0 0 var(--gap-xs);
}

@keyframes vcapIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media screen and (min-width: 768px) {
  .vslide {
    flex-basis: min(78vw, 1200px);
  }
}

@media screen and (max-width: 767px) {
  .vtabs {
    display: none;
  }

  .vcap-title {
    display: block;
  }
}

/* h2 links und hero-m rechts auf einer Grundlinie (p hat margin-top 1em, h2 nur 0.83em) */
.left:has(+ .right > .hero-m:first-child) h2 {
  margin-top: 1em;
}

.img-trio {
  display: flex;
  gap: var(--gap-s);
  margin-bottom: var(--gap-xs);
}

.img-trio img {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  height: auto;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .img-trio {
    gap: var(--gap-xs);
  }
}



/* Weicher blauer Schein an der Kante des bg-shape (Position/Form kommen von .bg-shape, Fleck setzt animate.js) */
.bg-shape.bg-shape-glow {
  background: radial-gradient(circle 900px at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--white) 80%, transparent) 0%, transparent 100%) !important;
  /* background: radial-gradient(circle 600px at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--white) 50%, transparent) 0%, transparent 100%) !important; */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease !important;
}

.bg-shape.bg-shape-glow.on {
  opacity: 1;
}

/* Kopie der h1: der blaue Schein färbt den Text, aber nur im Bereich des bg-shape (siehe animate.js) */
.h1-glow,
.h1-glow * {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.h1-glow {
  position: absolute;
  margin: 0;
  pointer-events: none;
  opacity: 0.75;
  user-select: none;
  background: radial-gradient(circle 900px at var(--tx, 50%) var(--ty, 50%), var(--blue) 0%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Info-Popover ab Desktop leicht nach rechts versetzt */
@media screen and (min-width: 768px) {
  .info-pop {
    right: calc(-1 * var(--gap-s));
  }
}
