/* ============================================================
   FARU STUDIO: Design-System
   Warmes Premium-Schwarz-Weiss mit gedecktem Erdton (Clay).
   Clean und ruhig, dunkle Flaechen als dramatischer Kontrast.
   ============================================================ */

:root {
  /* Warme, premium Neutrals (Basis: helles Papier) */
  --bg:          #F3EEE6;   /* warmes Papier, Grundflaeche */
  --bg-2:        #EAE2D5;   /* etwas tiefer: Karten/Sektionen */
  --ink:         #18140F;   /* warmes Near-Black, Text */
  --ink-2:       #3D372F;   /* zweite Textebene */
  --muted:       #766E62;   /* gedaempfter Text */
  --line:        #DED5C6;   /* Haarlinie auf hell */
  --hair-strong: rgba(24, 20, 15, 0.22);

  /* Erdton als Charakter */
  --accent:      #9A7451;   /* Clay / Taupe, feiner Akzent */
  --accent-deep: #7C5A3A;
  --on-accent:   #F3EEE6;

  /* Dunkle Flaechen (Hero, grosser CTA) */
  --dark:        #16120D;   /* dramatisches Near-Black */
  --dark-2:      #211A12;
  --on-dark:     #F3EEE6;
  --on-dark-muted: #A79A87;
  --line-dark:   rgba(243, 238, 230, 0.15);

  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(90px, 13vh, 168px);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dunkle Theme-Flaeche: Tokens kippen, Komponenten passen sich automatisch an */
.is-dark {
  --bg:          var(--dark);
  --bg-2:        var(--dark-2);
  --ink:         var(--on-dark);
  --ink-2:       var(--on-dark-muted);
  --muted:       var(--on-dark-muted);
  --line:        var(--line-dark);
  --hair-strong: rgba(243, 238, 230, 0.28);
  background: var(--dark);
  color: var(--on-dark);
}

/* ---------- Reset & Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 640;
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 7.4vw, 5.8rem); font-weight: 680; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; }

p { margin: 0 0 1.2em; }

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

img, video, svg { display: block; max-width: 100%; height: auto; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.volt { color: var(--accent); font-style: inherit; }
em.volt { font-style: normal; }

.muted { color: var(--muted); }

/* ---------- Typo-Bausteine ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.eyebrow-center { justify-content: center; }

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  line-height: 1.58;
  color: var(--muted);
  max-width: 48ch;
}
.lead strong { color: var(--ink); font-weight: 500; }

.section {
  padding-block: var(--section);
  position: relative;
}
.section + .section { padding-top: 0; }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.hairline-top { border-top: 1px solid var(--line); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

/* Primaer invertiert automatisch je Theme: hell = dunkler Button, dunkel = heller Button */
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-ghost {
  border-color: var(--hair-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 12px 22px; font-size: 0.9rem; }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Marke (Logo als Maske, faerbt sich per currentColor) ---------- */

.brand { display: inline-flex; align-items: center; flex: none; color: var(--ink); }
.brand-logo {
  display: block;
  width: 118px;
  height: 32px;
  background: currentColor;
  -webkit-mask: url("../assets/faru-logo-black.svg?v=2") left center / contain no-repeat;
  mask: url("../assets/faru-logo-black.svg?v=2") left center / contain no-repeat;
}
.footer-brand .brand-logo { width: 128px; height: 34px; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Fast deckender Hintergrund statt backdrop-filter: Blur wird sonst bei jedem
   Scroll-Frame neu gerendert (auf Windows/Chrome teuer), hier optisch nahezu
   identisch bei einem Bruchteil der Render-Kosten. */
.site-header.is-scrolled {
  background: rgba(243, 238, 230, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.site-nav ul {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 2px;
  position: relative;
  transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  /* echtes Hamburger-Icon: 44x44 Touch-Ziel, drei Striche -> X */
  width: 44px;
  height: 44px;
  /* über dem Vollbild-Overlay (site-nav z-index 90) bleiben, damit der
     Schließen-Button (X) im offenen Zustand klickbar ist. */
  position: relative;
  z-index: 101;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before { position: absolute; left: 0; top: -7px; }
.nav-toggle-lines::after { position: absolute; left: 0; top: 7px; }
/* geöffnet: obere/untere Linie kreuzen sich zum X, mittlere blendet aus */
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Header ueber dem dunklen Start-Hero: helle Marke/Navigation bis zum Scrollen */
body[data-page="start"] .site-header:not(.is-scrolled) .brand { color: var(--on-dark); }
body[data-page="start"] .site-header:not(.is-scrolled) .site-nav > ul > li > a { color: rgba(243, 238, 230, 0.72); }
body[data-page="start"] .site-header:not(.is-scrolled) .site-nav > ul > li > a:hover { color: #fff; }
body[data-page="start"] .site-header:not(.is-scrolled) .nav-toggle {
  color: var(--on-dark);
  border-color: var(--line-dark);
}
body[data-page="start"] .site-header:not(.is-scrolled) .header-cta {
  background: var(--on-dark);
  color: var(--dark);
}

/* Während des gepinnten Kamera-Flugs bleibt der Header transparent + hell,
   damit das dunkle Logo nicht auf der dunklen Szene verschwindet. */
body.hero-active .site-header.is-scrolled {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.hero-active .site-header .brand { color: var(--on-dark); }
body.hero-active .site-header .site-nav > ul > li > a { color: rgba(243, 238, 230, 0.72); }
body.hero-active .site-header .site-nav > ul > li > a:hover { color: #fff; }
body.hero-active .site-header .nav-toggle { color: var(--on-dark); border-color: var(--line-dark); }
body.hero-active .site-header .header-cta { background: var(--on-dark); color: var(--dark); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
    /* Vollbild-Overlay über dem Seiteninhalt, aber unter dem Header (z-index 100),
       damit der Schließen-Button oben rechts klickbar bleibt. */
    z-index: 90;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; text-align: center; gap: 26px; }
  .site-nav a { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--ink) !important; }
  .header-cta { display: none; }
  /* Menü geöffnet: helles Overlay -> Icon dunkel, auch über dem dunklen Start-Hero. */
  body[data-page="start"] .site-header:not(.is-scrolled) .nav-toggle[aria-expanded="true"],
  body.hero-active .site-header .nav-toggle[aria-expanded="true"] { color: var(--ink); }
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  padding-block: 130px 88px;
  --hero-arrive: 0; /* 0..1, JS zieht am Ende die helle Ankunft auf */
}
.hero.is-dark { background: var(--dark); }

/* Bühne: Start-Plate (LCP/Fallback) + Flug-Video, full-bleed hinter der Typo */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  background: var(--dark);
}
.hero-plate,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Video liegt über der Plate, wird im Cinematic-Modus geladen + eingeblendet */
.hero-video { display: none; opacity: 0; transition: opacity 0.9s var(--ease); will-change: transform, opacity; }
.hero--cinematic .hero-video { display: block; }
.hero--cinematic.fx-on .hero-video { opacity: 1; }

/* Grade/Vignette + warme Ankunft über der Bühne */
.hero-grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 52%, rgba(10, 12, 14, 0.5) 100%),
    linear-gradient(180deg, rgba(10,12,14,0.16), transparent 30%);
}
/* helle Überblendung in die Startseite am Flug-Ende */
.hero-grade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #F3EEE6; /* Papierfarbe der Startseite (nicht var(--bg): im is-dark-Kontext dunkel) */
  opacity: calc(var(--hero-arrive) * 0.5);
  transition: opacity 0.1s linear;
}

/* Scrim: hält die Typo links/unten über der Bühne lesbar */
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--dark) 0%, rgba(22, 18, 13, 0.82) 26%, rgba(22, 18, 13, 0.12) 58%, transparent 80%),
    linear-gradient(0deg, var(--dark) 2%, transparent 34%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
/* Leichter Schatten sichert die Lesbarkeit über den wechselnden Foto-Plates
   (heller Ankunfts-Himmel wie dunkler Start-Ozean). */
.hero-copy {
  max-width: 620px;
  text-shadow: 0 1px 26px rgba(10, 12, 14, 0.38);
}

.hero-title {
  font-size: clamp(2.9rem, 8vw, 6rem);
  margin: 0 0 26px;
}
.hero-copy .lead { max-width: 46ch; margin-bottom: 34px; color: var(--on-dark-muted); }
.hero-copy .lead strong { color: var(--on-dark); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--on-dark-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 22px; }
.hero-meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Mobile: Plate mittig, Typo unten mit kräftigerem Boden-Scrim */
@media (max-width: 900px) {
  .hero { align-items: flex-end; padding-block: 116px 92px; }
  .hero-plate,
  .hero-video { object-position: center 32%; }
  .hero-stage::after {
    background:
      linear-gradient(0deg, var(--dark) 6%, rgba(22, 18, 13, 0.58) 42%, transparent 70%),
      linear-gradient(90deg, rgba(22, 18, 13, 0.35), transparent 62%);
  }
  .hero-copy { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
}

/* ---------- Hero: Story-Beats + Ankunft (nur Cinematic) ----------
   Intro (Headline/CTA) ist ab dem ersten Frame sichtbar; JS blendet sie beim
   Scrollen aus und die Beats einzeln ein. Startzustand: nur Intro sichtbar. */
.hero-copy { will-change: opacity, transform; }

.hero-beats {
  display: none; /* Standard/Fallback: aus – die .manifesto-Sektion trägt die Story */
}
.hero--cinematic .hero-beats {
  display: grid;
  position: absolute;
  inset: 0;
  z-index: 1;
  place-items: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.hero-beat {
  grid-area: 1 / 1;
  margin: 0;
  max-width: 16ch;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  opacity: 0;
  text-shadow: 0 2px 40px rgba(8, 10, 12, 0.55);
}

.hero-arrival {
  display: none;
}
.hero--cinematic .hero-arrival {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 var(--gutter);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.hero-arrival-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-arrival-line {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  text-shadow: 0 2px 40px rgba(8, 10, 12, 0.5);
}

/* Mitlaufender Anfrage-Anker (nur Cinematic) */
.hero-anchor {
  display: none;
}
.hero--cinematic .hero-anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  transform: translateX(-50%);
  z-index: 3;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(243, 238, 230, 0.28);
  background: rgba(22, 18, 13, 0.55);
  color: var(--on-dark);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.hero--cinematic .hero-anchor:hover { border-color: var(--on-dark); background: rgba(22, 18, 13, 0.6); }

/* ---------- Manifesto-Sektion (Story im Fallback) ---------- */
.cine .manifesto { display: none; }
/* Manifesto verborgen -> Folge-Sektion braucht ihr Top-Padding zurück */
.cine .manifesto + .section { padding-top: var(--section); }
.manifesto-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.manifesto-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.35em;
}
.manifesto-line:last-of-type { color: var(--muted); font-weight: 500; margin-bottom: 1.4em; }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.scroll-hint::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(to right, var(--on-dark-muted), transparent);
}
.js .scroll-hint::after { animation: hint 2.4s var(--ease) infinite; }
@keyframes hint {
  0%   { transform: scaleX(0); transform-origin: left; }
  45%  { transform: scaleX(1); transform-origin: left; }
  55%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@media (prefers-reduced-motion: reduce) {
  .js .scroll-hint::after { animation: none; }
}
@media (max-width: 640px), (max-height: 640px) {
  .scroll-hint { display: none; }
}
/* Ohne Kamera-Flug (statischer Hero) kein „Eintauchen"-Hinweis */
.hero--static .scroll-hint { display: none; }

/* Seiten-Panel gleitet mit weichem Radius ueber den Hero */
.page-surface {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-radius: 30px 30px 0 0;
  margin-top: -30px;
}
@media (max-width: 767px) {
  .page-surface { border-radius: 22px 22px 0 0; margin-top: -22px; }
}

/* Unterseiten-Hero (statisch, hell und edel) */
.page-hero {
  position: relative;
  padding-top: clamp(150px, 22vh, 228px);
  padding-bottom: clamp(48px, 8vh, 88px);
  background:
    radial-gradient(120% 100% at 88% 0%, var(--bg-2) 0%, transparent 58%),
    var(--bg);
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 24px; }

/* ---------- Leistungs-Kacheln ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  min-height: 300px;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 85% 0%, rgba(154, 116, 81, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.service-tile:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(24, 20, 15, 0.09);
}
.service-tile:hover::before { opacity: 1; }

.service-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.service-tile h3 { margin-bottom: 10px; }
.service-tile p { color: var(--muted); font-size: 0.97rem; margin: 0; max-width: 40ch; }

.service-tile .tile-arrow {
  position: absolute;
  top: clamp(24px, 3.5vw, 40px);
  right: clamp(24px, 3.5vw, 40px);
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-tile:hover .tile-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: rotate(45deg);
}

/* ---------- Arbeiten / Case-Kacheln ---------- */

.work-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.work-card:hover {
  border-color: var(--accent);
  box-shadow: 0 26px 60px rgba(24, 20, 15, 0.12);
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.work-media img,
.work-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.5s var(--ease);
}
.work-media video { opacity: 0; }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-card.is-playing .work-media video { opacity: 1; }

.work-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.work-caption h3 { margin: 0; }
.work-caption .work-tags {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Warum / Ablauf ---------- */

.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.point { border-top: 1px solid var(--line); padding-top: 24px; }
.point h3 { font-size: 1.2rem; margin-bottom: 10px; }
.point p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.point .point-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr 2fr;
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.step h3 { margin: 0; }
.step p { color: var(--muted); margin: 0; max-width: 52ch; }
@media (max-width: 700px) {
  .step { grid-template-columns: 56px 1fr; }
  .step p { grid-column: 2; margin-top: 8px; }
}

/* ---------- Trust-Zeile (Social Proof) ---------- */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px clamp(28px, 5vw, 56px);
  padding-block: clamp(28px, 4vw, 40px);
  border-block: 1px solid var(--line);
}
.trust-stat { flex: 1 1 180px; }
.trust-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.trust-stat span { font-size: 0.92rem; color: var(--muted); }

/* ---------- Platzhalter ---------- */

/* Ruhige Info-Karte für abgeschlossenen Inhalt (Ausblick, Pakete-Hinweis).
   Solide Hairline statt gestrichelter Linie – Letztere las sich wie ein
   unfertiger Platzhalter. */
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  color: var(--muted);
  background: var(--bg-2);
}
.info-card p:last-child { margin-bottom: 0; }
.info-card strong { color: var(--ink); }

.badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

/* ---------- Testimonial ---------- */

.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  background: var(--bg-2);
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.quote-card figcaption {
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}
.quote-card figcaption strong { color: var(--ink); font-weight: 600; }
/* Kleines Label, das eine externe Kundenstimme klar vom Gründerzitat abhebt. */
.quote-tag {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
/* Zwei Zitat-Karten nebeneinander (Gründer + Kunde), auf Mobil gestapelt. */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px);
  align-items: start;
}
@media (max-width: 820px) { .quotes-grid { grid-template-columns: 1fr; } }
/* Kundenstimme in der Fallstudie: gleiche Rhythmik wie die case-blocks darüber. */
.case-quote { margin-top: clamp(32px, 5vw, 56px); }

/* ---------- Grosser CTA (tiefe Erdton-Flaeche) ---------- */

.cta-section {
  --ink: var(--on-dark);
  --muted: rgba(243, 238, 230, 0.72);
  --line: rgba(243, 238, 230, 0.2);
  --hair-strong: rgba(243, 238, 230, 0.32);
  --bg: #4E3A28;
  --accent: #E4CFB4;
  background: #4E3A28;
  color: var(--on-dark);
  border: none;
  text-align: center;
  padding-block: clamp(90px, 14vh, 158px);
}
.cta-section h2 { max-width: 18ch; margin-inline: auto; }
.cta-section .lead { margin: 24px auto 40px; color: var(--muted); }
.cta-section .cta-row { justify-content: center; }
.cta-contacts {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  font-size: 0.95rem;
  color: var(--muted);
}
.cta-contacts a:hover { color: #fff; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 40px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--bg);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 48px;
  margin-bottom: 48px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a:hover { color: var(--ink); }
.footer-contact { display: grid; gap: 6px; }
.footer-contact a:hover { color: var(--accent); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 0.82rem;
}
.footer-legal p { margin: 0; }
.footer-legal nav { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--ink); }

/* ---------- Sticky Mobile-CTA ---------- */

.mobile-cta {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 12px 30px rgba(24, 20, 15, 0.28);
}
@media (max-width: 767px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 78px; }
}

/* ---------- Leistungen (Detailseite) ---------- */

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(48px, 7vw, 90px);
  border-top: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 800px) {
  .service-detail { grid-template-columns: 1fr; }
}
.service-detail .service-num { color: var(--accent); margin-bottom: 14px; display: block; }
.service-detail h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.service-detail .service-body p { color: var(--muted); }
.feature-list { display: grid; gap: 12px; margin: 24px 0 32px; }
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--ink);
  font-size: 0.97rem;
}
.feature-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Case Study ---------- */

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  border-block: 1px solid var(--line);
  padding-block: 28px;
  margin-block: clamp(36px, 5vw, 64px);
}
.case-meta dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.case-meta dd { margin: 0; font-size: 0.98rem; }
.case-meta a { border-bottom: 1px solid var(--hair-strong); }
.case-meta a:hover { color: var(--accent); border-color: var(--accent); }

.case-block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 64px);
  padding-block: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) { .case-block { grid-template-columns: 1fr; } }
.case-block h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0; }
.case-block p { color: var(--muted); margin-bottom: 0.9em; }
.case-block p:last-child { margin-bottom: 0; }

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-block: clamp(40px, 6vw, 72px);
}
.case-gallery figure { margin: 0; }
.case-gallery figure:first-child { grid-column: 1 / -1; }
.case-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.case-gallery figure:first-child img { aspect-ratio: 16 / 9; }
.case-gallery figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
}
@media (max-width: 640px) { .case-gallery { grid-template-columns: 1fr; } }

/* ---------- Ueber mich ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
/* Ohne Porträt: eine ruhige, gut lesbare Textspalte statt leerer Bildspalte. */
.about-grid--solo { grid-template-columns: minmax(0, 68ch); }
.about-portrait img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.about-portrait figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
}
.about-body p { color: var(--muted); }
.about-body p strong, .about-body p em { color: var(--ink); font-style: normal; }
.about-body .lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.34;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-channels { display: grid; gap: 14px; margin-top: 32px; }
.contact-channels a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.contact-channels a:hover { border-color: var(--accent); background: var(--bg-2); }
.contact-channels .channel-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}
.trust-note::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 8px; }
label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 140px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-hint { font-size: 0.82rem; color: var(--muted); }

.form-success {
  border: 1px solid var(--accent);
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
}
.form-success h2 { font-size: 1.4rem; }
.form-success p { margin: 0; color: var(--muted); }
.form-error {
  border: 1px solid #B4553F;
  background: rgba(180, 85, 63, 0.08);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 32px;
}
.form-error p { margin: 0; color: var(--ink); }
[hidden] { display: none !important; }

/* ---------- Terminbuchung (Calendly) ---------- */

.booking {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-2);
}
.calendly-inline-widget { border-radius: 14px; overflow: hidden; }
.calendly-inline-widget[hidden] { display: none; }
.booking-fallback p:last-child { margin-bottom: 0; }
.booking-fallback .cta-row { margin: 4px 0 16px; }

/* ---------- FAQ ---------- */

.faq { max-width: 840px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 24px; color: var(--muted); max-width: 68ch; }
.faq-a p { margin: 0; }

/* ---------- Rechtstexte ---------- */

.legal-content { max-width: 720px; }
.legal-content h2 { font-size: 1.5rem; margin-top: 2em; }
.legal-content p { color: var(--muted); }

/* ---------- Cursor (Desktop) ---------- */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              background-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.cursor-ring.is-hover {
  width: 60px;
  height: 60px;
  background: rgba(154, 116, 81, 0.12);
}
body.has-cursor, body.has-cursor a, body.has-cursor button,
body.has-cursor input, body.has-cursor select, body.has-cursor textarea,
body.has-cursor label { cursor: none; }

/* ---------- Seiten-Uebergang (Curtain) ---------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--dark);
  transform: translateY(101%);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.curtain-mark {
  width: 58px;
  height: 58px;
  background: var(--on-dark);
  opacity: 0.92;
  -webkit-mask: url("../assets/faru-mark-white.svg") center / contain no-repeat;
  mask: url("../assets/faru-mark-white.svg") center / contain no-repeat;
}

/* ---------- Grain ---------- */

/* Statisches Korn: die frühere Endlos-Transform-Animation (grain-shift) über
   eine 200%-große fixierte Fläche war auf schwächeren Windows-GPUs teuer.
   Statisch bleibt die Textur erhalten, kostet aber pro Frame nichts. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Intro-Animation (Hero, ohne JS-Abhaengigkeit) ---------- */

.js [data-intro] {
  opacity: 0;
  animation: intro-up 0.85s var(--ease) both;
}
.js .hero-copy [data-intro]:nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy [data-intro]:nth-child(3) { animation-delay: 0.16s; }
.js .hero-copy [data-intro]:nth-child(4) { animation-delay: 0.24s; }
.js .hero-copy [data-intro]:nth-child(5) { animation-delay: 0.32s; }
.js .page-hero [data-intro]:nth-child(2) { animation-delay: 0.08s; }
.js .page-hero [data-intro]:nth-child(3) { animation-delay: 0.16s; }
@keyframes intro-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Scroll-Reveals (CSS-Zustand, JS/IO schaltet frei; Failsafe im JS) ---------- */

.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].reveal-in,
.js [data-reveal-group] > .reveal-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-intro],
  .js [data-reveal],
  .js [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
