/* ============================================================
   D3FX Filmworks — global stylesheet
   Design language from d3fx.tv (Astra/Elementor):
   dark #151515 bands, white/#F0F5FA content, blue #046bd2 accent,
   playful logo colors: blue / red / yellow / green
   ============================================================ */

/* Inter — self-hosted (DSGVO: no requests to Google servers) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --dark: #151515;
  --dark-2: #1d1d1d;
  --bg: #ffffff;
  --bg-alt: #F0F5FA;
  --heading: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --blue: #046bd2;
  --blue-dark: #045cb4;
  --logo-red: #fd0d39;
  --logo-yellow: #fdc500;
  --logo-green: #3ddc23;
  --border: rgba(30, 41, 59, 0.1);
  --border-dark: rgba(255, 255, 255, 0.1);
  --radius: 6px;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid var(--border-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Dark bands (hero, clients, footer) ---------- */

.band-dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
}

.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }

/* ---------- Hero ---------- */

.hero { padding: 96px 0; }

.hero-inner { max-width: 780px; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
}

.hero h1 .c1 { color: var(--blue); }
.hero h1 .c2 { color: var(--logo-red); }
.hero h1 .c3 { color: var(--logo-yellow); }
.hero h1 .c4 { color: var(--logo-green); }

.hero .services-line {
  margin-top: 20px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-primary { background: var(--blue); color: #fff; }

.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; }

.section .btn-ghost {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }

.section.alt { background: var(--bg-alt); }

.section-head { margin-bottom: 48px; }

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 62ch;
}

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: 24px; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.service {
  border-top: 3px solid var(--blue);
  padding-top: 20px;
}

.service.red { border-top-color: var(--logo-red); }
.service.yellow { border-top-color: var(--logo-yellow); }
.service.green { border-top-color: var(--logo-green); }

.service h3 { font-size: 1.1rem; margin-bottom: 8px; }

.service p { color: var(--muted); font-size: 0.95rem; }

/* ---------- YouTube embeds (click-to-play facade) ---------- */

.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-2);
  cursor: pointer;
}

.yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.92;
}

.yt:hover img { transform: scale(1.04); opacity: 1; }

.yt .yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: rgba(21, 21, 21, 0.8);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.yt:hover .yt-play { background: var(--logo-red); }

.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-item { margin: 0; }

.work-item figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}

.work-item figcaption span {
  font-weight: 400;
  color: var(--muted);
}

.channels-note {
  margin: 32px 0 16px;
  font-weight: 600;
  color: var(--heading);
}

.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s;
}

.channel-card:hover { border-color: var(--blue); }

.channel-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}

.channel-card h4 { font-size: 1rem; }

.channel-card p { color: var(--muted); font-size: 0.8rem; }

@media (max-width: 900px) {
  .channels { grid-template-columns: 1fr; }
}

.work-block { margin-bottom: 64px; }

.work-block:last-child { margin-bottom: 0; }

.work-block h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.work-block .work-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ---------- Clients (dark band, white logos) ---------- */

.clients-band { padding: 72px 0; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 56px;
  align-items: center;
  margin-top: 40px;
}

.clients-grid img {
  max-height: 56px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.clients-grid img:hover { opacity: 1; }

.clients-more {
  margin-top: 40px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

/* ---------- About ---------- */

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

.about-grid .portrait {
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(30, 41, 59, 0.18);
}

.about-text p { color: var(--text); margin-bottom: 18px; }

.about-text strong { color: var(--heading); }

/* ---------- Project lists / website tiles ---------- */

.site-tile {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.site-tile:hover { border-color: var(--blue); }

.site-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.site-tile .tile-body { padding: 20px 24px; }

.site-tile h3 { font-size: 1.05rem; }

.site-tile p { color: var(--muted); font-size: 0.85rem; }

.project-list { list-style: none; }

.project-list li { border-bottom: 1px solid var(--border); }

.project-list a,
.project-list .no-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  color: var(--muted);
}

.project-list a:hover strong { color: var(--blue); }

.project-list strong {
  color: var(--heading);
  font-size: 1.05rem;
  transition: color 0.2s;
}

.project-list .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-inner .logo img { height: 40px; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.socials { display: flex; gap: 12px; }

.socials a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.socials a:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

.socials svg { width: 18px; height: 18px; fill: currentColor; }

.copyright {
  margin-top: 36px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Scroll to top ---------- */

#toTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 90;
}

#toTop:hover { background: var(--blue-dark); }

#toTop.visible { opacity: 1; pointer-events: auto; }

/* ---------- Legal pages ---------- */

.legal { max-width: 760px; }

.legal h1 { font-size: 2rem; margin-bottom: 24px; }

.legal h2 { font-size: 1.2rem; margin: 32px 0 12px; }

.legal p { color: var(--text); margin-bottom: 14px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }

  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border-dark);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-top: 1px solid var(--border-dark); }

  .nav-links a { display: block; padding: 16px 24px; }
}
