:root{
  --bg:#000;
  --fg:#fff;
  --pad:22px;
  --max:1100px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:var(--bg);
  color:var(--fg);
}

.topbar{
  position: fixed;          /* ← WICHTIG */
  color: #fff;
  transition: color 200ms ease;
  top: 0;
  left: 0;
  right: 0;

  padding: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  z-index: 100;             /* über Content */
  pointer-events: none;     /* Klicks nur auf Kinder */
  /* Header color states */
}

.topbar.is-dark{
  color: #000;
}

.topbar > *{
  pointer-events: auto;
}


.logo{
  font-weight:800;
  font-size:34px;
  letter-spacing:-0.03em;
  text-transform:lowercase;
  color:inherit;
  text-decoration:none;
}

.menu-btn{
  appearance:none;
  border:0;
  background:none;
  color:inherit;
  cursor:pointer;
  width:60px; height:74px;
  display:grid;
  place-items:center;
  border-radius:999px;
}

.menu-btn span{
    font-size:80px;
    line-height:1;
    font-weight: lighter;
    margin-top: -20px;
}

/* Hero */
.hero{
  position:relative;
  height:100vh;
  overflow:hidden;
}

.bg-image,
.bg-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.bg-video{
  opacity:0;
  transition: opacity 600ms ease;
}
.bg-video.is-visible{ opacity:1; }

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(1200px 700px at 50% 30%, rgba(0,0,0,.05), rgba(0,0,0,.55));
  pointer-events:none; /* IMPORTANT */
}

.hint{
  position:absolute;
  bottom:var(--pad);
  left:var(--pad);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.85;
  z-index:2;
}

/* Sections */
.section{ width:100%; }
.page{
  background:#fff;
  color:#000;
  padding: 120px var(--pad) 80px;
  min-height: 100vh;
}

.page-inner{
  max-width: var(--max);
  margin:0 auto;
}

.page-title{
  margin:0 0 24px;
  font-size:42px;
  letter-spacing:-0.02em;
}

.page-subtitle{
  margin:-8px 0 24px;
  font-weight:400;
  font-size:18px;
  color:#666;
}

/* Work grid */
.work-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:22px;
}

.project{
  position:relative;
  overflow:hidden;
  background:#eee;
  aspect-ratio: 4 / 5;
}

.project-link{
  display:block;
  width:100%;
  height:100%;
  color:inherit;
  text-decoration:none;
}

.project img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .5s ease;
}

.project:hover img{ transform: scale(1.05); }

.project-info{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:16px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  color:#fff;
}

.project-info h2{ margin:0; font-size:18px; }
.project-info span{ font-size:12px; opacity:.85; }

/* About */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:48px;
  align-items:start;
}

.portrait{
  aspect-ratio: 3 / 4;
  background:#eee;
  overflow:hidden;
}

.portrait img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.text p{
  max-width: 46ch;
  line-height:1.6;
  margin: 0 0 18px;
}

/* Contact */
.contact-inner{ max-width: 600px; }
.links a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding-bottom:2px;
}

/* Menu overlay */
.overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.92);
  opacity:0;
  pointer-events:none;
  transition: opacity 220ms ease;
  z-index: 9999;
}

.overlay.is-open{
  opacity:1;
  pointer-events:auto;
}

.overlay-inner{
  position:absolute;
  inset:0;
  padding: var(--pad);
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
}

.close-btn{
  position:absolute;
  top: var(--pad);
  right: var(--pad);
  appearance:none;
  border:0;
  background:none;
  color:#fff;
  width:44px; height:44px;
  display:grid;
  place-items:center;
  cursor:pointer;
  border-radius:999px;
}

.close-btn span{ font-size:28px; line-height:1; }

.nav{
  text-align:right;
  padding-bottom:6vh;
}

.nav a{
  display:block;
  text-decoration:none;
  color:#fff;
  font-weight:800;
  letter-spacing:-0.02em;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  padding: 6px 0;
}

.nav a:hover{ opacity:.75; }

.nav small{
  display:block;
  margin-top: 16px;
  font-size: 12px;
  opacity:.7;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
  .text p{ max-width: 100%; }
}

/* Work filters */
.work-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
}

.filter-btn {
  appearance: none;
  background: none;
  border: none;
  color: #666;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.filter-btn:hover {
  color: #000;
  background: #f5f5f5;
}

.filter-btn.active {
  color: #fff;
  background: #000;
  border-color: #000;
}

/* Badges and Icons */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}

.platform-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal-container {
  position: relative;
  background: #0a0a0a;
  border: 1px solid #222;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.video-modal.is-open .video-modal-container {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.video-modal-content {
  width: 100%;
  position: relative;
  padding-top: 135%; /* Optimized for Reels */
  background: #000;
}

.video-modal-content iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-footer {
  padding: 24px;
  color: #fff;
  border-top: 1px solid #1a1a1a;
  background: #0a0a0a;
}

.video-modal-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.video-modal-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: #999;
  line-height: 1.5;
}

.video-modal-external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.video-modal-external-link:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Smooth list layout item animations */
.project {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

@media (max-width: 600px) {
  .work-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin-bottom: 24px;
    scrollbar-width: none;
  }
  .work-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 13px;
  }
  .video-modal-container {
    width: 95%;
    max-height: 95vh;
  }
  .video-modal-content {
    padding-top: 140%;
  }
}

