/* ═══════════════════════════════════════════════
   COMPONENTS — Nav, Hero, Cursor, Buttons, Cards …
═══════════════════════════════════════════════ */

/* ─── Nav ─── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #ffffff;
  transition: box-shadow 0.3s ease;
}
#site-header.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,0.08); }

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #2c502c;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 4px;
  transition: color 0.2s;
}
.nav-link sup { font-size: 9px; color: #aaa; font-weight: 400; }
.nav-link::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 3px;
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.25,1,0.5,1);
}
.nav-link:hover::after { width: 100%; }

/* ─── Nav underline color ─── */
.nav-link::after { background: #f1add4; }

/* ─── Mobile menu ─── */
#mobile-menu {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25,1,0.5,1);
  background: #ffffff;
}
#mobile-menu.open { max-height: 420px; }

/* ─── Gründer-Foto (Desktop) ─── */
.about-founder-img {
  width: 100%;
  height: calc(100vh - 100px);
  max-height: 780px;
  object-fit: cover;
  object-position: center top;
  display: block;
  will-change: transform;
}

/* ─── Hero ─── */
#hero {
  padding-top: 180px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.hero-name {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 300;
  color: #bbb;
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero-roles {
  font-family: 'Inter', sans-serif;
  font-size: clamp(42px, 7.5vw, 108px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.82;
  color: #2c502c;
}
.hero-roles .dot { color: #9090c0; font-weight: 300; }

/* ─── Custom cursor ─── */
#cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: #2c502c; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  opacity: 0; transition: opacity 0.4s;
  will-change: transform;
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(44,80,44,0.4);
  border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  opacity: 0; transition: opacity 0.4s, width 0.35s cubic-bezier(0.25,1,0.5,1), height 0.35s cubic-bezier(0.25,1,0.5,1);
  will-change: transform;
}
body.cursor-on #cursor-dot,
body.cursor-on #cursor-ring { opacity: 1; }
.cursor-grow #cursor-ring { width: 60px !important; height: 60px !important; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: #2c502c;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1.5px solid #2c502c; cursor: pointer;
  box-shadow: 3px 3px 0 0 #2c502c;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: #2c502c; color: #fff; border-color: #2c502c; }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: #2c502c;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1.5px solid #2c502c;
  cursor: pointer;
  box-shadow: 3px 3px 0 0 #2c502c;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  text-decoration: none;
}
.btn-outline:hover { background: #2c502c; color: #fff; border-color: #2c502c; }

/* ─── Mega CTA link ─── */
.cta-mega {
  font-family: 'Inter', sans-serif;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 400;
  color: #2c502c;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 14px;
  text-decoration-color: transparent;
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: text-decoration-color 0.35s ease;
  display: inline-block;
}
.cta-mega:hover { text-decoration-color: #050203; }

/* ─── Services list ─── */
.service-row {
  border-top: 1px solid rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  transition: border-color 0.2s;
  cursor: default;
}
.service-row:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.service-row:hover { border-top-color: rgba(0,0,0,0.3); }
.service-row:hover .service-title { letter-spacing: -0.025em; }
.service-num { font-size: 11px; color: #bbb; font-weight: 400; letter-spacing: 0.1em; }
.service-title { font-family: 'Inter', sans-serif; font-size: clamp(24px, 3.5vw, 42px); font-weight: 400; letter-spacing: 0; color: #050203; transition: letter-spacing 0.3s; }
.service-arrow { font-size: 18px; color: #ccc; transition: transform 0.3s, color 0.2s; }
.service-row:hover .service-arrow { transform: translate(4px,-4px); color: #050203; }

/* ─── Process number badge ─── */
.process-number { color: #050203; }
body.dark .process-number { color: #050203 !important; }

/* ─── Team CTA tile ─── */
.team-cta-tile { background: #2c502c; }

/* ─── Work grid ─── */
.work-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px;
  border: 2px solid #2c502c;
  box-shadow: 5px 5px 0 0 #2c502c;
}
.work-card-inner {
  border-radius: 20px;
  transition: transform 0.6s cubic-bezier(0.25,1,0.5,1);
  will-change: transform;
}
.work-card:hover .work-card-inner { transform: scale(1.04); }
.work-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex; align-items: flex-end;
  padding: 20px 22px;
}
.work-card:hover .work-card-overlay { opacity: 1; }
.work-card-arrow {
  position: absolute; top: 28px; right: 28px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
  font-size: 14px;
}
.work-card:hover .work-card-arrow { opacity: 1; transform: scale(1); }

/* ─── Work filter ─── */
.filter-btn {
  font-size: 15px;
  font-weight: 500;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 2px 0;
  transition: color 0.2s;
  position: relative;
}
.filter-btn::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: #f1add4;
  transition: width 0.25s ease;
}
.filter-btn:hover { color: #050203; }
.filter-btn:hover::after { width: 100%; }
.filter-btn.active { color: #2c502c; }
.filter-btn.active::after { background: #2c502c; width: 100%; }

body.dark .filter-btn::after { background: #2c502c; }
body.dark .filter-btn.active { color: #f1add4; }
body.dark .filter-btn.active::after { background: #f1add4; }

.work-item { transition: opacity 0.3s ease; }
.work-item.hidden-item { display: none; }

/* ─── Chip ─── */
.chip {
  font-size: 12px; font-weight: 500;
  border: 1.5px solid #2c502c;
  border-radius: 100px;
  padding: 8px 18px;
  color: #2c502c;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  font-family: 'Inter', sans-serif;
}
.chip:hover { border-color: #2c502c; color: #2c502c; }
.chip.selected { background: #050203; color: #fff; border-color: #050203; }

/* ─── Contact form input ─── */
.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(0,0,0,0.12);
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #2c502c;
  outline: none;
  transition: border-color 0.2s;
}
.field-input::placeholder { color: #bbb; }
.field-input:focus { border-color: #050203; }

/* ─── Drag scroll ─── */
.drag-scroll { cursor: grab; overflow-x: auto; scrollbar-width: none; }
.drag-scroll::-webkit-scrollbar { display: none; }
.drag-scroll.is-dragging { cursor: grabbing; user-select: none; }

/* ─── Marquee ─── */
@keyframes marquee { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.marquee-inner { display:flex; gap:0; animation: marquee 22s linear infinite; white-space:nowrap; }

/* ─── Filmstrip ─── */
.filmstrip-scroll {
  position: relative;
  background: #0d0d0d;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  cursor: grab;
  padding: 44px 0;
  margin: 0 -40px;
}
.filmstrip-scroll::-webkit-scrollbar { display: none; }
.filmstrip-scroll.is-dragging { cursor: grabbing; user-select: none; }
.filmstrip-scroll::before,
.filmstrip-scroll::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 28px;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0px, transparent 10px,
    rgba(255,255,255,0.12) 10px, rgba(255,255,255,0.12) 30px,
    transparent 30px, transparent 46px
  );
  pointer-events: none;
}
.filmstrip-scroll::before { top: 8px; }
.filmstrip-scroll::after { bottom: 8px; }

.filmstrip-track {
  display: flex;
  width: max-content;
  padding: 0 40px;
}
.film-frame {
  width: 280px;
  flex-shrink: 0;
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.film-frame:first-child { border-left: 1px solid rgba(255,255,255,0.07); }
.film-frame-num {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
  margin-bottom: 20px;
}
.film-frame-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.film-frame-company {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}
.film-frame-date {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ─── Cookie Banner ─── */
#cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9997;
  animation: cookieOverlayIn 0.3s ease both;
}
#cookie-overlay.cookie-banner-hide { animation: cookieOverlayOut 0.3s ease both; }
@keyframes cookieOverlayIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookieOverlayOut { from { opacity: 1; } to { opacity: 0; } }

#cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9998;
  width: 90%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border: 2px solid #2c502c;
  box-shadow: 5px 5px 0 0 #2c502c;
  border-radius: 20px;
  padding: 28px 32px 24px;
  animation: cookieIn 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
#cookie-banner.cookie-banner-hide {
  animation: cookieOut 0.3s cubic-bezier(0.4,0,1,1) both;
}
@keyframes cookieIn {
  from { opacity: 0; transform: translate(-50%, -47%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes cookieOut {
  from { opacity: 1; transform: translate(-50%, -50%); }
  to   { opacity: 0; transform: translate(-50%, -47%); }
}

/* Header */
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.cookie-banner-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2c502c;
  margin: 0 0 5px 0;
}
.cookie-banner-responsible {
  font-size: 11px;
  color: #bbb;
  margin: 0;
}
.cookie-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #bbb;
  cursor: pointer;
  padding: 0 0 0 12px;
  flex-shrink: 0;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}
.cookie-close-btn:hover { color: #050203; }

/* Text */
.cookie-banner-text {
  font-size: 13px;
  line-height: 1.75;
  color: #777;
  margin: 0 0 16px 0;
}

/* Categories */
#cookie-settings { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.cookie-category {
  background: #f5f5f3;
  border-radius: 12px;
  padding: 14px 16px;
}
.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cookie-category-title {
  font-size: 14px;
  font-weight: 600;
  color: #050203;
  display: block;
  margin-bottom: 4px;
}
.cookie-category-desc {
  font-size: 11px;
  line-height: 1.6;
  color: #aaa;
  margin: 0;
}
.cookie-always-on {
  font-size: 11px;
  font-weight: 600;
  color: #2c502c;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: #2c502c; }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }

/* Action buttons */
.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.cookie-btn-reject, .cookie-btn-save, .cookie-btn-accept {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: lowercase;
  padding: 13px 20px;
  border-radius: 100px;
  border: 1.5px solid #2c502c;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.cookie-btn-reject {
  background: transparent;
  color: #2c502c;
  box-shadow: 3px 3px 0 0 #2c502c;
}
.cookie-btn-reject:hover { background: #2c502c; color: #fff; }
.cookie-btn-save {
  background: transparent;
  color: #2c502c;
  box-shadow: 3px 3px 0 0 #2c502c;
}
.cookie-btn-save:hover { background: #2c502c; color: #fff; }
.cookie-btn-accept {
  background: #2c502c;
  color: #fff;
  box-shadow: 3px 3px 0 0 rgba(44,80,44,0.4);
}
.cookie-btn-accept:hover { background: #1e3a1e; border-color: #1e3a1e; }

/* Links */
.cookie-banner-link {
  font-size: 11px;
  color: #bbb;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.cookie-banner-link:hover { color: #2c502c; }

/* Dark mode */
body.dark #cookie-banner { background: #1a1a1a; border-color: #f1add4; box-shadow: 5px 5px 0 0 #f1add4; }
body.dark .cookie-banner-title { color: #f1add4; }
body.dark .cookie-close-btn { color: #555; }
body.dark .cookie-close-btn:hover { color: #ededeb; }
body.dark .cookie-category { background: #222; }
body.dark .cookie-category-title { color: #ededeb; }
body.dark .cookie-always-on { color: #f1add4; }
body.dark .cookie-toggle input:checked + .cookie-toggle-slider { background: #f1add4; }
body.dark .cookie-btn-reject,
body.dark .cookie-btn-save { border-color: #f1add4; color: #f1add4; box-shadow: 3px 3px 0 0 #f1add4; }
body.dark .cookie-btn-reject:hover,
body.dark .cookie-btn-save:hover { background: #f1add4; color: #050203; }
body.dark .cookie-btn-accept { background: #f1add4; border-color: #f1add4; color: #050203; box-shadow: 3px 3px 0 0 rgba(241,173,212,0.4); }
body.dark .cookie-btn-accept:hover { background: #e898c4; border-color: #e898c4; }
body.dark .cookie-banner-link:hover { color: #f1add4; }

@media (max-width: 560px) {
  #cookie-banner { padding: 24px 20px 20px; }
  .cookie-banner-actions { grid-template-columns: 1fr; }
}
