/* ==========================================================
   TAIMLINE FILMS – styles.css
   Aufbau: 1 Grundwerte · 2 Basis · 3 Header · 4 Hero · 5 Work
           6 About/Services · 7 Contact · 8 Footer · 9 Rechtstexte
           10 Animationen · 11 Mobil
   ========================================================== */

/* ---------- 1. GRUNDWERTE ---------- */
:root {
  /* EDIT HERE: Farben */
  --black: #000000;
  --white: #ffffff;
  --paper: #f4f3ee;              /* warmes Off-White (wie im Logo-Hintergrund) */
  --line: rgba(0, 0, 0, 0.16);
  --mute: rgba(0, 0, 0, 0.55);

  /* Schrift: System-Fonts, nichts wird aus dem Internet geladen */
  --font: "Helvetica Neue", Helvetica, "Arimo", "Segoe UI", Arial, system-ui, sans-serif;

  --pad: clamp(20px, 4vw, 56px);        /* Seitenrand */
  --radius: clamp(18px, 2.6vw, 36px);   /* Rundung, angelehnt an das Logo */
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. BASIS ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 16px; }
#services { scroll-margin-top: calc(var(--header-h) + 24px); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--black); color: var(--white);
  padding: 10px 14px; font-size: 13px;
}
.skip-link:focus { top: 12px; }

.section { padding: clamp(80px, 12vw, 180px) var(--pad); }

/* Zweispaltiges Layout (Label links, Inhalt rechts) */
.split { display: block; }

/* ---------- 3. HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled { padding-top: 12px; padding-bottom: 12px; border-bottom-color: var(--line); }

.brand { position: relative; z-index: 60; }
.brand img { height: 38px; width: auto; transition: height 0.4s var(--ease); }
.site-header.is-scrolled .brand img { height: 32px; }

.site-nav ul { display: flex; align-items: center; gap: clamp(22px, 3.4vw, 48px); }
.site-nav a {
  position: relative; display: inline-block;
  font-size: 12px; letter-spacing: 0.14em; font-weight: 400;
  padding: 6px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

/* CTA-Button "Jetzt unverbindlich anfragen" (Selektor bewusst so spezifisch wie
   ".site-nav a", damit die Button-Größe die normale Menü-Schriftgröße überschreibt) */
.site-nav a.nav-cta {
  display: inline-flex; align-items: center;
  padding: 9px 20px;
  border: 1px solid var(--black); border-radius: 999px;
  font-size: 11px; font-weight: 500;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta:focus-visible { background: var(--black); color: var(--paper); }

.menu-btn {
  display: none;
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: inherit; font-size: 12px; letter-spacing: 0.14em; color: inherit;
}
.menu-btn-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn-close { display: inline; }

/* ---------- 4. HERO ---------- */
.hero { padding: calc(var(--header-h) + clamp(36px, 7vw, 110px)) var(--pad) 0; }

.hero-title {
  font-weight: 500;
  font-size: clamp(40px, 11.5vw, 210px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.03em 0 0.05em; }
.hero-title .line > span { display: block; }

.hero-sub { margin-top: clamp(20px, 2.6vw, 36px); color: var(--mute); }

.reels {
  margin-top: clamp(32px, 5vw, 72px);
  max-width: 70%;
  margin-left: auto; margin-right: auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(10px, 2.4vw, 32px);
  align-items: start;
}
.reel {
  display: block;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.r2 { margin-top: clamp(0px, 6vw, 96px); }
.reel-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.2s var(--ease), transform 0.6s var(--ease);
}
.reel-video.is-ready { opacity: 1; }
.reel:hover .reel-video, .reel:focus-visible .reel-video { transform: scale(1.08); }
.reel:hover, .reel:focus-visible {
  transform: scale(1.035);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  z-index: 2;
}
/* Beim Hover die anderen beiden Reels sanft in den Hintergrund treten lassen */
.reels:hover .reel:not(:hover) { opacity: 0.5; }
.reel-label { position: absolute; right: 14px; bottom: 12px; color: var(--white); z-index: 2; mix-blend-mode: difference; }
.reel-label.label-icon { gap: 6px; }

/* Platzhalter (erscheinen, solange das Video fehlt) */
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.placeholder-dark  { background: #0d0d0d; color: var(--white); }
.placeholder-light { background: #dedcd3; color: var(--black); }
.placeholder-note {
  position: absolute; left: 20px; bottom: 16px;
  font-size: 11px; letter-spacing: 0.1em; opacity: 0.45;
}
/* Das "T" aus dem Logo als ruhiges Muster: zwei Balken */
.mark { position: relative; width: clamp(56px, 12%, 150px); aspect-ratio: 919 / 871; opacity: 0.14; }
.mark i { position: absolute; background: currentColor; border-radius: 6%; }
.mark i:first-child { left: 20.2%; top: 22.7%; width: 59.5%; height: 18%; }
.mark i:last-child  { left: 35.9%; top: 48.2%; width: 20.3%; height: 30.4%; }

/* ---------- 6. ABOUT / SERVICES ---------- */
.about .split {
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(32px, 6vw, 80px);
}
.about-text {
  font-size: clamp(24px, 3.6vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 22em;
}
.about-portrait {
  flex: none;
  width: clamp(140px, 18vw, 260px);
  height: clamp(140px, 18vw, 260px);
  border-radius: 50%;
  object-fit: cover;
}

.services { padding-top: 0; }
.service-list { border-top: 1px solid var(--line); }
.service-list li {
  border-bottom: 1px solid var(--line);
  padding: 0.22em 0;
  font-size: clamp(24px, 4.2vw, 68px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.035em;
  cursor: default;
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
.service-list li:hover { transform: translateX(0.25em); }
.service-list:hover li:not(:hover) { opacity: 0.32; }

/* ---------- 7. CONTACT ---------- */
.contact { background: var(--black); color: var(--paper); }
.contact-title {
  font-weight: 500;
  font-size: clamp(28px, 8.6vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.contact-title .block { display: block; }

.contact-links { margin-top: clamp(56px, 9vw, 130px); border-top: 1px solid rgba(244, 243, 238, 0.22); }
.contact-row {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid rgba(244, 243, 238, 0.22);
}
.contact-row .label { grid-column: 1 / 4; color: rgba(244, 243, 238, 0.6); }
.label-icon { display: inline-flex; align-items: center; gap: 10px; }
.ig-icon { flex: none; }
.contact-row a {
  grid-column: 4 / 13; justify-self: start;
  font-size: clamp(20px, 3.4vw, 46px); letter-spacing: -0.025em; line-height: 1.15;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease); overflow-wrap: anywhere;
}
.contact-row a:hover, .contact-row a:focus-visible { background-size: 100% 1px; }

.contact-cta {
  display: inline-flex; align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 15px 32px;
  border: 1px solid var(--paper); border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.contact-cta:hover, .contact-cta:focus-visible { background: var(--paper); color: var(--black); }

/* ---------- 8. FOOTER ---------- */
.site-footer {
  display: grid; grid-template-columns: 1fr auto; gap: 40px 24px; align-items: end;
  padding: clamp(48px, 6vw, 80px) var(--pad) 32px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { font-size: 12px; letter-spacing: 0.14em; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; }
.footer-links a { border-bottom: 1px solid transparent; transition: border-color 0.4s var(--ease); }
.footer-links a:hover { border-bottom-color: currentColor; }
.footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }

/* ---------- 9. IMPRESSUM / DATENSCHUTZ ---------- */
.legal { padding: calc(var(--header-h) + clamp(36px, 6vw, 90px)) var(--pad) clamp(60px, 9vw, 130px); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 7vw, 96px); font-weight: 500; line-height: 0.98; letter-spacing: -0.045em; margin-bottom: clamp(32px, 5vw, 64px); }
.legal h2 { font-size: clamp(18px, 2vw, 22px); font-weight: 500; letter-spacing: -0.01em; margin: 2.4em 0 0.6em; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; margin-bottom: 0.9em; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal a { border-bottom: 1px solid currentColor; }
.edit-note { border: 1px solid var(--black); border-radius: 14px; padding: 16px 18px; margin-bottom: 40px; font-size: 14px; line-height: 1.55; }
/* Platzhalter, die du ausfüllen musst – bewusst auffällig */
.fill { background: var(--black); color: var(--white); padding: 1px 8px; border-radius: 6px; font-weight: 500; }

/* ---------- Anfrageformular ---------- */
.request-form { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--black); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--black); }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.submit-btn {
  justify-self: start; margin-top: 8px;
  padding: 15px 34px; border: 1px solid var(--black); border-radius: 999px;
  background: var(--black); color: var(--paper);
  font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: opacity 0.3s var(--ease);
}
.submit-btn:hover, .submit-btn:focus-visible { opacity: 0.8; }
.form-note { font-size: 13px; color: var(--mute); margin-top: -6px; }

/* ---------- 10. ANIMATIONEN ---------- */
/* Headline-Reveal beim Laden */
.js .hero-title .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.js .hero-sub, .js .reels { opacity: 0; animation: fade 1.2s var(--ease) 0.45s forwards; }
.js .reels { animation-delay: 0.6s; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* sanftes Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Nutzer mit "Bewegung reduzieren": alles ruhig und sofort sichtbar */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .hero-title .line > span { transform: none; }
  .js .hero-sub, .js .reels, .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 11. MOBIL & TABLET ---------- */
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .menu-btn { display: block; position: relative; z-index: 60; }

  /* Vollbild-Menü (nur wenn JavaScript aktiv ist) */
  .js .site-nav {
    position: fixed; inset: 0; z-index: 55;
    background: var(--paper);
    padding: calc(var(--header-h) + 40px) var(--pad) 40px;
    display: flex; align-items: flex-start;
    opacity: 0; visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 6px; width: 100%; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { font-size: clamp(34px, 11vw, 56px); letter-spacing: -0.04em; font-weight: 500; padding: 14px 0; width: 100%; }
  .site-nav a::after { display: none; }
  .site-nav ul { align-items: flex-start; }
  .site-nav li:has(.nav-cta) { border-bottom: 0; padding-bottom: 10px; }
  .site-nav a.nav-cta { font-size: 13px; padding: 12px 24px; width: auto; }
  .site-header { z-index: 60; }
  body.menu-open { overflow: hidden; }

  .hero-title { font-size: 12.6vw; }
  .about .split { flex-direction: column; align-items: flex-start; gap: 28px; }
  .about-portrait { width: 140px; height: 140px; }
  .service-list li { font-size: 7vw; }
  .reels { column-gap: 8px; }
  .r2 { margin-top: 0; }
  .reel-label { right: 8px; bottom: 8px; font-size: 10px; }
  .reel .placeholder-note { left: 8px; bottom: 26px; font-size: 9px; }

  .contact-row { grid-template-columns: 1fr; row-gap: 8px; }
  .contact-row .label, .contact-row a { grid-column: 1 / -1; }

  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 10px; }
}

/* Reel-Slider: drei Videos, pro Schritt ein weiteres Reel */
.reels { display: block; position: relative; }
.reels-viewport { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.reels-viewport::-webkit-scrollbar { display: none; }
.reels-track { display: flex; gap: clamp(10px, 2.4vw, 32px); padding: 16px 0 32px; }
.reels-track .reel { flex: 0 0 calc((100% - 2 * clamp(10px, 2.4vw, 32px)) / 3); scroll-snap-align: start; }
.reels-track .r2 { margin-top: 0; }
.reel-link { display: block; position: absolute; inset: 0; }
.reel-sound { position: absolute; left: 10px; bottom: 10px; z-index: 3; border: 1px solid #ffffff60; border-radius: 999px; padding: 8px 10px; background: #000b; color: white; cursor: pointer; font: inherit; font-size: 11px; }
.reels-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--black); font-size: 24px; cursor: pointer; transition: background .2s, color .2s; }
.reels-prev { left: -54px; }
.reels-next { right: -54px; }
.reels-arrow:hover { background: var(--black); color: var(--paper); }
.reels-arrow:disabled { opacity: .3; cursor: default; }
.reels .placeholder-note { bottom: 52px; }
@media (max-width: 760px) {
  .reels-track { gap: 8px; }
  .reels-track .reel { flex-basis: calc((100% - 16px) / 3); }
  .reels-arrow { width: 30px; height: 30px; font-size: 20px; }
  .reels-prev { left: -35px; } .reels-next { right: -35px; }
  .reel-sound { left: 4px; bottom: 32px; padding: 5px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel:hover, .reel:focus-within, .reel:hover .reel-video { transform: none; }
}

/* Präzise zentrierte Icons für Navigation und Ton */
.reels-arrow {
  display: grid; place-items: center; padding: 0;
  width: 44px; height: 44px;
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.reels-arrow svg, .reel-sound svg { display: block; flex: none; }
.reels-arrow:disabled { visibility: hidden; pointer-events: none; }
.reel-sound {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.reel-sound:hover { background: rgba(0,0,0,.85); border-color: white; }
.reel-sound .sound-playing { display: none; }
.reel-sound[aria-pressed="true"] .sound-muted { display: none; }
.reel-sound[aria-pressed="true"] .sound-playing { display: initial; }
@media (max-width: 760px) {
  .reels-arrow { width: 30px; height: 30px; }
  .reels-arrow svg { width: 18px; height: 18px; }
  .reel-sound { width: 30px; height: 30px; left: 6px; bottom: 30px; }
  .reel-sound svg { width: 17px; height: 17px; }
}

/* ---------- Reels: saubere Rundung (auch iOS Safari) + Handy-Ansicht ---------- */
.reel {
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* Auf Touch-Geräten gibt es kein Hover: keinen hängenden Zustand beim Antippen */
@media (hover: none) {
  .reels:hover .reel:not(:hover) { opacity: 1; }
  .reel:hover, .reel:focus-visible { transform: none; box-shadow: none; }
  .reel:hover .reel-video, .reel:focus-visible .reel-video { transform: none; }
}

/* Handy: große Reels, zum Wischen, das nächste schaut ein Stück hervor */
@media (max-width: 760px) {
  .reels {
    max-width: none;
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
  }
  .reels-viewport {
    padding-inline: var(--pad);
    scroll-padding-inline: var(--pad);
    -webkit-overflow-scrolling: touch;
  }
  .reels-track { gap: 16px; padding: 8px 0 24px; }
  .reels-track .reel { flex: 0 0 76%; border-radius: 28px; }
  .reels-track::after { content: ""; flex: 0 0 max(0px, calc(var(--pad) - 16px)); }
  .reels-arrow { display: none; }
  .reel-sound { width: 46px; height: 46px; left: 16px; bottom: 16px; }
  .reel-sound svg { width: 22px; height: 22px; }
  .reel-label { right: 18px; bottom: 28px; font-size: 11px; mix-blend-mode: normal; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
  .reels .placeholder-note { left: 16px; bottom: 76px; font-size: 10px; }
}
