/* ==========================================================
   visimu – Gestaltung
   Farben, Schriften und Abstände zentral in :root ändern.
   ========================================================== */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  --bg: #ffffff;          /* Seitenhintergrund */
  --surface: #f4f4f3;     /* Flächen, Kacheln */
  --line: #e4e4e4;        /* Linien */
  --text: #111214;        /* Haupttext */
  --text-2: #3d4046;      /* Fließtext */
  --muted: #72767d;       /* Nebentext */
  --accent: #63a8a1;      /* visimu-Türkis aus dem Logo (Flächen, Linien) */
  --accent-text: #3d8780; /* Türkis für kleine Schrift auf Weiß (besser lesbar) */
  --accent-soft: rgba(99, 168, 161, .12);
  --ink: #000000;         /* Kopf- und Fußzeile */
  --ink-line: #222326;
  --ink-muted: #9ba0a8;
  --header: 84px;         /* Höhe Kopfzeile */

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 300; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 300; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
em { font-style: normal; color: var(--accent-text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { display: block; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
section { position: relative; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); background: var(--ink); color: #fff;
}
.brand img { height: 36px; width: auto; }
.main-nav { display: flex; gap: clamp(20px, 3vw, 44px); margin-left: auto; }
.main-nav a { font-size: 15px; font-weight: 400; color: var(--ink-muted); transition: color .2s; position: relative; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
.main-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-muted); }
.lang button { background: none; border: 0; padding: 4px; font: inherit; color: var(--ink-muted); cursor: pointer; letter-spacing: .08em; }
.lang button[aria-pressed="true"] { color: #fff; font-weight: 500; }
.burger { display: none; background: none; border: 0; width: 32px; height: 32px; position: relative; cursor: pointer; }
.burger span:not(.sr) { position: absolute; left: 5px; right: 5px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
.burger span:nth-child(1) { top: 12px; } .burger span:nth-child(2) { top: 19px; }
.nav-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border: 1px solid var(--text);
  border-radius: 100px; font-size: 15px; font-weight: 400; transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn.accent { border-color: var(--accent); background: var(--accent); color: #0b1413; }
.btn.accent:hover { background: transparent; color: var(--accent); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero (Startseite) ---------- */
.hero { height: 100vh; min-height: 620px; margin-top: 0; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slowzoom 24s var(--ease) infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(255,255,255,.85) 100%); }
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(56px, 10vh, 110px); }
.hero h1 { font-size: clamp(40px, 7.4vw, 112px); max-width: 12ch; }
.hero .sub { max-width: 540px; color: var(--text-2); font-size: clamp(16px, 1.4vw, 19px); margin: 26px 0 34px; }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 40px; z-index: 2; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 56px; margin: 12px auto 0; background: linear-gradient(var(--muted), transparent); }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(80px, 12vw, 170px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(30px, 4vw, 56px); }
.link-more { color: var(--muted); font-size: 15px; white-space: nowrap; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.link-more:hover { color: var(--text); border-color: var(--accent); }
.statement { font-size: clamp(24px, 3.2vw, 44px); line-height: 1.3; max-width: 22ch; font-weight: 300; }
.statement-wrap { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; }
.page-head { padding-top: calc(var(--header) + clamp(60px, 10vw, 140px)); padding-bottom: clamp(40px, 6vw, 80px); }
.page-head h1 { font-size: clamp(44px, 7vw, 104px); }
.page-head p { max-width: 620px; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); margin-top: 24px; }

/* ---------- Kacheln / Galerie ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 32px); }
.tile { display: block; }
.tile-img { overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5; border-radius: var(--radius); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-meta { padding: 16px 2px 0; }
.tile-kat { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile h3 { font-size: 20px; margin-top: 6px; transition: color .2s; }
.tile:hover h3 { color: var(--accent-text); }

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter button {
  font: inherit; font-size: 14px; color: var(--muted); background: transparent; border: 1px solid var(--line);
  border-radius: 100px; padding: 8px 18px; cursor: pointer; transition: all .2s;
}
.filter button sup { font-size: 10px; margin-left: 4px; }
.filter button:hover { color: var(--text); border-color: var(--muted); }
.filter button[aria-pressed="true"] { color: #fff; background: var(--text); border-color: var(--text); }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.service { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.service .media { aspect-ratio: 16 / 9; overflow: hidden; }
.service .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.service:hover .media img { transform: scale(1.04); }
.service .body { padding: clamp(24px, 3vw, 40px); }
.service h3 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 14px; }
.service p { color: var(--text-2); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; color: var(--muted); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px 28px 0 0; border-right: 1px solid var(--line); margin-right: 28px; }
.step:last-child { border-right: 0; }
.step .num { font-size: 13px; color: var(--accent-text); font-weight: 500; letter-spacing: .1em; }
.step h3 { font-size: 22px; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.benefit h3 { font-size: 26px; margin-bottom: 12px; }
.benefit h3::before { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-bottom: 22px; }
.benefit p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; }
.split h2 { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: 20px; }
.split.reverse .media { order: 2; }

/* ---------- Kunden ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logos div { background: var(--bg); aspect-ratio: 5 / 2; display: grid; place-items: center; color: #b9bcc1; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.logos-note { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(90px, 13vw, 180px) 0; background: radial-gradient(60% 80% at 50% 100%, var(--accent-soft), transparent 70%); border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(34px, 5vw, 72px); max-width: 16ch; margin: 0 auto 20px; }
.cta p { color: var(--text-2); margin-bottom: 36px; }

/* ---------- Projekt-Detail ---------- */
.project-hero { height: 88vh; min-height: 480px; overflow: hidden; background: var(--surface); }
.project-hero-media { width: 100%; height: 100%; object-fit: cover; }
.project-head { padding-top: clamp(48px, 6vw, 90px); }
.back { color: var(--muted); font-size: 14px; display: inline-block; margin-bottom: 28px; }
.back:hover { color: var(--accent-text); }
.project-head h1 { font-size: clamp(38px, 6vw, 88px); max-width: 16ch; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: clamp(36px, 5vw, 64px) 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meta dd { margin: 0; font-weight: 400; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.two-col p { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-2); }
.project-images { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(60px, 8vw, 120px); }
.project-images figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.project-images figure img { width: 100%; height: 100%; object-fit: cover; }
.project-images figure:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.next-project { display: block; position: relative; height: 56vh; min-height: 340px; overflow: hidden; border-top: 1px solid var(--line); }
.next-project { background: var(--surface); }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; transition: transform 1.2s var(--ease), opacity .6s; }
.next-project:hover img { transform: scale(1.04); opacity: .45; }
.next-project .wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.next-project strong { font-weight: 300; font-size: clamp(30px, 5vw, 72px); line-height: 1.1; }

/* ---------- Über / Kontakt / Text ---------- */
.contact-big { font-size: clamp(28px, 5vw, 72px); font-weight: 300; line-height: 1.1; display: inline-block; border-bottom: 1px solid var(--accent); padding-bottom: 6px; transition: color .2s; }
.contact-big:hover { color: var(--accent-text); }
.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 90px); padding-top: 28px; border-top: 1px solid var(--line); }
.contact-list dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-list dd { margin: 0; }
.prose { max-width: 720px; color: var(--text-2); }
.prose p { margin-bottom: 1.2em; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 72px 0 32px; font-size: 15px; }
.site-footer .muted { color: var(--ink-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 240px; height: auto; margin-bottom: 20px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; color: var(--ink-muted); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ink-line); color: var(--ink-muted); font-size: 13px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Einblenden ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .statement-wrap { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header: 68px; }
  .brand img { height: 28px; }
  .burger { display: block; }
  .main-nav {
    position: fixed; top: var(--header); left: 0; right: 0; height: calc(100vh - var(--header)); flex-direction: column; gap: 0; padding: 8px var(--gutter) 28px;
    background: var(--ink);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease);
  }
  .main-nav a { font-size: 26px; font-weight: 300; color: #fff; padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
  .main-nav a[aria-current]::after { display: none; }
  .main-nav a[aria-current] { color: var(--accent); }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; transform: none; }
  .nav-open { overflow: hidden; }
  .hero { min-height: 0; height: auto; flex-direction: column; align-items: stretch; padding-top: var(--header); }
  .hero-media { position: relative; height: 52vh; object-position: 68% 50%; animation: none; }
  .hero::after { display: none; }
  .hero-content { padding-top: 32px; padding-bottom: 56px; }
  .scroll-hint { display: none; }
  .grid, .services, .benefits, .split, .two-col, .project-images, .footer-grid, .contact-list { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; margin-right: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .meta { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .project-hero { height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Bilder auf hellem Hintergrund (Feld "hintergrund" in projekte.js) ---------- */
.tile-img.fit img, .project-images figure.fit img { object-fit: contain; padding: 7%; filter: none; }
.tile:hover .tile-img.fit img { filter: none; }
.project-hero.fit .project-hero-media { object-fit: contain; padding: calc(var(--header) + 3vh) 6vw 5vh; }
.project-images figure.fit { aspect-ratio: 4 / 3; }
.project-hero.fit video.project-hero-media { object-fit: contain; padding: var(--header) 0 0; }
.project-hero.buehne .project-hero-media { padding: var(--header) 0 0; }
.tile-img.fit { box-shadow: inset 0 0 0 1px var(--line); }
.project-images figure.fit { box-shadow: inset 0 0 0 1px var(--line); }
.tile-img { position: relative; }
.tile-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.tile-img.fit video { object-fit: contain; padding: 7%; }
.tile.playing .tile-img video { opacity: 1; }
.play-badge { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #0b1413; background: var(--accent); padding-left: 2px; transition: opacity .3s; }
.tile.playing .play-badge { opacity: 0; }

/* ---------- Rechtstexte ---------- */
.prose h2 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 400; color: var(--text); margin: 44px 0 12px; letter-spacing: 0; }
.prose strong { font-weight: 500; color: var(--text); }
.prose em { color: var(--muted); font-size: 14px; }
