:root {
  --page-pad: clamp(18px, 3vw, 54px);
  --card-width: min(590px, calc(100vw - (var(--page-pad) * 2)));
  --glass-bg: rgba(24, 27, 28, 0.52);
  --glass-line: rgba(255, 255, 255, 0.23);
  --text: rgba(255, 255, 255, 0.98);
  --muted: rgba(255, 255, 255, 0.78);
  --center-width: min(51vw, 760px);
}

* { box-sizing: border-box; }

html, body { margin: 0; width: 100%; min-height: 100%; background: #0b0b0b; }

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible {
  outline: 3px solid rgba(255,255,255,.96);
  outline-offset: 4px;
}

.landing {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #111;
}

.slideshow, .scene, .shade {
  position: absolute;
  inset: 0;
}

.side-panel, .center-frame {
  position: absolute;
  top: 0;
  bottom: 0;
}

.slideshow { z-index: 0; background: #111; }

.scene {
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity;
}
.scene.is-visible { opacity: 1; }

.side-panel,
.center-frame {
  background-image: var(--image);
  background-repeat: no-repeat;
  background-position: var(--position, center center);
  will-change: transform, opacity;
}

.side-panel {
  width: calc((100% - var(--center-width)) / 2);
  overflow: hidden;
  background-size: auto 100%;
  filter: saturate(.98) brightness(.88);
}

.side-panel-left {
  left: 0;
  background-position: var(--position, center center);
}

.side-panel-right {
  right: 0;
  background-position: var(--position, center center);
}

.center-frame {
  left: 50%;
  width: var(--center-width);
  height: 100%;
  transform: translateX(-50%) scale(1.002);
  background-size: cover;
  box-shadow:
    -10px 0 28px rgba(0,0,0,.10),
    10px 0 28px rgba(0,0,0,.10);
  z-index: 1;
}

/* Alle drei Bildflächen bewegen sich als eine Szene. So bleiben Mitte, links und rechts exakt synchron. */
.scene {
  transform-origin: 50% 50%;
}
.scene.animate-in {
  animation: sceneBreath 10s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes sceneBreath {
  0% { transform: scale(1.001); }
  50% { transform: scale(1.007); }
  100% { transform: scale(1.012); }
}

.shade {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.025) 42%, rgba(0,0,0,.13)),
    linear-gradient(90deg, rgba(0,0,0,.11), transparent 26%, transparent 74%, rgba(0,0,0,.11));
  z-index: 2;
}

.profile-shell {
  position: absolute;
  right: var(--page-pad);
  bottom: clamp(18px, 2.7vw, 38px);
  z-index: 5;
  width: var(--card-width);
  animation: shellIn 900ms cubic-bezier(.16,1,.3,1) both;
}

@keyframes shellIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.glass-card {
  position: relative;
  width: 100%;
  min-height: 270px;
  padding: 29px 30px 25px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.035) 48%, rgba(255,255,255,.055)),
    var(--glass-bg);
  box-shadow:
    0 24px 60px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.17),
    inset 0 -1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  animation: glassFloat 7s ease-in-out 1s infinite alternate;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(85% 70% at 12% 0%, rgba(255,255,255,.18), transparent 58%);
  opacity: .65;
}

@keyframes glassFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

h1 {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(37px, 4.15vw, 59px);
  line-height: .96;
  letter-spacing: -0.045em;
  font-weight: 650;
  text-shadow: 0 1px 18px rgba(0,0,0,.14);
}

.contact-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 0 14px;
  margin-top: 1px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 10px;
  background: rgba(18,20,20,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 7px 20px rgba(0,0,0,.10);
  text-decoration: none;
  font-size: 13px;
  font-weight: 560;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.contact-button svg { width: 17px; height: 17px; fill: currentColor; }
.contact-button:hover { transform: translateY(-1px); background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.40); background: rgba(255,255,255,.13); }

.identity {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.role {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 580;
  letter-spacing: -.015em;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #54e77a;
  box-shadow: 0 0 0 3px rgba(84,231,122,.12), 0 0 14px rgba(84,231,122,.42);
}

.socials {
  position: absolute;
  z-index: 1;
  left: 30px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.socials a:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }
.socials svg { width: 27px; height: 27px; fill: currentColor; }

.site-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 7px 0;
  color: rgba(255,255,255,.88);
  font-size: 11.5px;
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0,0,0,.36);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-sep { color: rgba(255,255,255,.43); }

@media (max-width: 900px) {
  :root { --page-pad: 16px; }
  :root { --center-width: min(63vw, 720px); }
  .profile-shell { bottom: 18px; }
  .glass-card { min-height: 250px; }
}

@media (max-width: 680px) {
  body { overflow: hidden; }
  .landing { min-height: 560px; }

  .side-panel { display: none; }
  .center-frame {
    left: 0;
    width: 100%;
    transform: none;
    background-size: cover;
    background-position: var(--mobile-position, var(--position, center center));
    box-shadow: none;
  }

  .shade {
    background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.01) 46%, rgba(0,0,0,.35));
  }

  .profile-shell {
    right: 12px;
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
  }

  .glass-card {
    min-height: 216px;
    padding: 22px 21px 20px;
    border-radius: 16px;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }

  h1 { font-size: clamp(34px, 11vw, 47px); }
  .contact-button { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .contact-button svg { width: 15px; height: 15px; }
  .identity { margin-top: 18px; }
  .role { font-size: 18px; }
  .availability { margin-top: 7px; font-size: 14px; }
  .socials { left: 21px; bottom: 18px; gap: 16px; }
  .socials a { width: 31px; height: 31px; }
  .socials svg { width: 25px; height: 25px; }
  .site-footer { justify-content: center; padding-top: 9px; font-size: 10.5px; gap: 5px; }
}

@media (max-width: 430px) {
  .glass-card { min-height: 208px; padding: 20px 18px 18px; }
  .card-topline { gap: 12px; }
  .contact-button { padding: 0 11px; justify-content: center; }
  .socials { left: 18px; bottom: 16px; }
  .site-footer { max-width: 96%; margin-inline: auto; }
}

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


/* V5: on phones show only the active main image. */
@media (max-width: 640px) {
  :root { --center-width: 100vw; }
  .side-panel { display: none; }
  .center-frame {
    left: 0;
    width: 100%;
    transform: none;
    background-position: var(--mobile-position, center center);
    background-size: cover;
    box-shadow: none;
  }
}

