/* ============================================
   MEDIA_DIMI — Design System
   Dunkel, kraftvoll, modern. Schweizer Präzision.
   ============================================ */

:root {
  /* Farbwelt aus dem MEDIA_DIMI-Logo: Anthrazit, Weiss, Teal */
  --bg: #232425;
  --bg-soft: #2a2b2d;
  --bg-card: #303235;
  --line: #3e4044;
  --text: #f5f6f7;
  --text-muted: #aeb2b8;
  --accent: #2cc5d2;
  --accent-soft: #5bd6e0;
  --accent-dark: #0b3a40;
  --radius: 14px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; margin-bottom: 0.5em; }
p { margin-bottom: 1em; }
.lead { font-size: 1.25rem; color: var(--text-muted); }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 14, 17, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.wordmark span { color: var(--accent); }
.wordmark:hover { text-decoration: none; }

.logo-link { display: flex; align-items: center; }
.logo { height: 32px; width: auto; }
.logo-footer { height: 44px; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a.active { color: var(--text); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-dark) !important;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--accent-soft); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--text) !important;
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--text-muted); }
.main-nav .btn { padding: 9px 20px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 8px;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; top: -8px; }
.nav-toggle span::after { left: 0; top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(44, 197, 210, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(44, 197, 210, 0.06), transparent);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 52ch; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-img {
  margin-top: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-img img { width: 100%; height: 420px; object-fit: cover; }

/* ---------- Sektionen ---------- */
section { padding: 80px 0; }
section.alt { background: var(--bg-soft); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 a { color: var(--text); }
.card .card-link { font-weight: 700; color: var(--accent-soft); }

.img-rounded {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.img-rounded img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Schritte / Ablauf ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.step p { margin: 0; color: var(--text-muted); }
.step strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ---------- Checkliste ---------- */
.checklist { list-style: none; display: grid; gap: 12px; margin: 20px 0; }
.checklist li { padding-left: 32px; position: relative; color: var(--text-muted); }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}
.checklist li strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 820px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 24px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item div { padding: 0 0 18px; color: var(--text-muted); }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: linear-gradient(120deg, #117e8a, var(--accent));
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 55ch; margin: 0 auto 28px; }
.cta-band .btn { background: #fff; color: var(--accent-dark) !important; }
.cta-band .btn:hover { background: #eef9fa; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { font-weight: 700; font-size: 0.92rem; }
.form input,
.form textarea,
.form select {
  width: 100%;
  margin-top: 6px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.site-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 28px;
}
.breadcrumb a { color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 70px 0 60px; }
  .hero-img img { height: 280px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .main-nav .btn { margin-top: 10px; text-align: center; }
}

/* ============================================
   MEDIA_DIMI — Modernisierung 06/2026
   Animationen · Showreel · Referenzen · Trust
   ============================================ */

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Showreel / Video (responsiv 16:9) */
.video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; color: var(--text-muted); background: linear-gradient(135deg, var(--bg-soft), var(--bg-card)); }
.video-placeholder .play { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 18px; }
.stat .num { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.stat .label { color: var(--text-muted); font-size: 0.95rem; margin-top: 8px; }

/* Trust / Logos */
.trust-note { text-align: center; color: var(--text-muted); margin-bottom: 26px; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px; }
.logo-strip img { height: 46px; width: auto; opacity: .7; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.logo-strip img:hover { opacity: 1; filter: none; }
.logo-ph { height: 46px; min-width: 116px; display: inline-flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 8px; color: var(--text-muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }

/* Referenzen */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ref-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.ref-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.ref-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.ref-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/10; color: var(--text-muted); font-size: .9rem; background: linear-gradient(135deg, var(--bg-soft), var(--bg-card)); }
.ref-body { padding: 22px 24px; }
.ref-body h3 { margin-bottom: 6px; }
.ref-body p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* Instagram-Galerie */
.ig-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.ig-wrap { max-width: 360px; width: 100%; margin: 0 auto; }
.ig-ph { aspect-ratio: 9 / 16; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text-muted); font-size: .85rem; line-height: 1.5; background: linear-gradient(135deg, var(--bg-soft), var(--bg-card)); }
.nav-cta-row { margin-top: 28px; }
.main-nav a.active { color: var(--text); }

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


/* Reel-Kacheln (dunkel, klickbar) */
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.reel-tile { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background-color: var(--bg-card); background-size: cover; background-position: center; transition: transform .2s, border-color .2s; }
.reel-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.reel-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.5)); }
.reel-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: rgba(44,197,210,.92); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.reel-label { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; z-index: 1; font-size: .8rem; color: #fff; opacity: .92; }
.reel-video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--line); background: #000; display: block; }
.ref-logo { height: 56px; width: auto; display: block; margin: 4px 0 16px; }
.ref-card { display: block; color: inherit; }
.ref-card:hover { text-decoration: none; }
.ref-logo-wrap { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: 28px; background: linear-gradient(135deg, var(--bg-soft), var(--bg-card)); }
.ref-logo-wrap img { max-height: 64px; max-width: 78%; width: auto; }

/* Mobile-Fix: Instagram-Reels (Bolliger) sauber anzeigen */
@media (max-width: 700px) {
  .ig-gallery { grid-template-columns: 1fr; justify-items: center; }
  .ig-gallery .instagram-media { min-width: 0 !important; width: 100% !important; }
}
