/* ==========================================================================
   LGS MEDIA — v4
   Konzept: FREITAGs knallhartes Schweizer Funktionsdesign — Schwarz, Weiß,
   Grau, klare Gitterstruktur, sachliche Typografie, Farbe kommt nur aus dem
   "Produkt" selbst (hier: den Projekt-Kacheln) — kombiniert mit Karine
   Bravos randlosem Vollbild-Bildraster und ihrer minimalen Nav.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;800;900&family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Farbe — FREITAG-Tokens: Ink, Silver Foam, Canvas White */
  --ink: #000000;
  --paper: #ffffff;
  --gray: #cacaca;
  --gray-soft: #ececec;
  --ink-soft: #5c5c5c;

  /* Farbe kommt nur aus den Projekten (den "Produkten") */
  --blue: #2c3f8f;
  --green: #3c8f5c;
  --red: #d94430;

  /* Typografie */
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Layout */
  --content-max: 1200px;
  --edge: clamp(20px, 5vw, 64px);
  --gap: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.03;
  letter-spacing: -0.015em;
}

p { margin: 0; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--edge); }
.mono { font-family: var(--font-mono); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ink);
  padding: 0.3rem 0.6rem;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.header-actions { display: flex; align-items: center; gap: 2rem; }
.main-nav { display: flex; gap: 2rem; }

.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 780px) {
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 60px 0 0 0; background: var(--paper);
    flex-direction: column; gap: 0; padding: 1rem var(--edge);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 1rem 0; border-bottom: 1px solid var(--gray); font-size: 1.05rem; }
}

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

.hero { border-bottom: 1px solid var(--ink); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 78vh;
}

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; min-height: auto; } }

.hero-copy {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--edge);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--ink);
}

@media (max-width: 900px) { .hero-copy { border-right: none; border-bottom: 1px solid var(--ink); } }

.hero-kicker { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 1.25rem; }

.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; max-width: 14ch; }

.hero-sub { max-width: 42ch; margin-top: 1.5rem; color: var(--ink-soft); font-size: 1.05rem; }

.offer-pills { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.75rem; }

.offer-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.85rem; border: 1.5px solid var(--ink);
  font-size: 0.8rem; font-weight: 600; font-family: var(--font-mono);
}

.offer-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }

.hero-meta { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; font-family: var(--font-body); font-weight: 600;
  font-size: 0.9rem; border: 1.5px solid var(--ink); cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-art { position: relative; overflow: hidden; background: var(--ink); }

.hero-art .shape { position: absolute; border-radius: 50%; }
.hero-art .shape-1 { width: 58%; aspect-ratio: 1/1; background: var(--blue); top: -10%; left: -8%; }
.hero-art .shape-2 { width: 44%; aspect-ratio: 1/1; background: var(--green); bottom: -6%; right: -4%; }
.hero-art .shape-3 { width: 28%; aspect-ratio: 1/1; background: var(--red); bottom: 18%; left: 16%; }

/* ------------------------------ Social-Zeile ------------------------------ */

.social-row { display: flex; gap: 1rem; margin-top: 1.25rem; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1.5px solid var(--ink);
  font-size: 0.9rem; transition: background 0.15s ease, color 0.15s ease;
}
.social-row a:hover { background: var(--ink); color: var(--paper); }

/* -------------------------------- Ticker ---------------------------------- */

.ticker { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 1.1rem 0; }
.ticker-track { display: flex; width: max-content; gap: 2.5rem; animation: ticker-scroll 24s linear infinite; }
.ticker-track span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.3rem, 3.6vw, 2.1rem);
  white-space: nowrap; color: var(--ink-soft);
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------------------------- Kontaktformular ------------------------------ */

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--ink); border: 1px solid var(--ink); margin-top: 2rem;
}
.form-field { background: var(--paper); }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--ink-soft); padding: 0.6rem 0.9rem 0;
}
.form-field input, .form-field textarea {
  width: 100%; border: none; background: transparent;
  padding: 0.45rem 0.9rem 0.85rem; font-family: var(--font-body);
  font-size: 0.95rem; color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { margin-top: 1.5rem; border: none; }

.form-banner {
  margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--ink); font-size: 0.9rem;
}
.form-banner.success { background: var(--gray-soft); }
.form-banner.error { background: #fdeceb; border-color: var(--red); color: var(--red); }

.contact-direct { margin-top: 2.5rem; }
.contact-direct .label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); }

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

section { padding: var(--gap) 0; border-bottom: 1px solid var(--ink); }
section:last-of-type { border-bottom: none; }

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

.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.section-head p { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1.02rem; }

/* ------------------------------- Leistungen ------------------------------ */

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }

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

.service { padding: 2rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }

.service .swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--dot); margin-bottom: 1.1rem; }
.service h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.service p { color: var(--ink-soft); font-size: 0.94rem; }

/* --------------------------------- Prozess -------------------------------- */

.process { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }

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

.process-step { padding: 1.75rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.process-step .step-num { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); }
.process-step h3 { font-size: 1.1rem; font-weight: 700; margin: 0.6rem 0 0.45rem; }
.process-step p { color: var(--ink-soft); font-size: 0.92rem; }

/* --------------------------- Vollbild-Portfolio (Karine) ------------------ */

.wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

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

.wall-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.wall-tile.wide { grid-column: span 2; aspect-ratio: 8 / 5; }

.wall-tile.art-checker { background-image: conic-gradient(var(--shape) 90deg, transparent 90deg 180deg, var(--shape) 180deg 270deg, transparent 270deg); background-size: 44px 44px; }
.wall-tile.art-stripes { background-image: repeating-linear-gradient(0deg, var(--shape) 0 12px, transparent 12px 24px); }
.wall-tile.art-circles { background-image: radial-gradient(circle at 50% 28%, var(--shape) 0 24%, transparent 25%), radial-gradient(circle at 50% 76%, var(--shape) 0 20%, transparent 21%); }
.wall-tile.art-diagonal { background: linear-gradient(135deg, var(--shape) 0 48%, transparent 48%); }

.wall-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent 70%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.wall-tile:hover .wall-label { opacity: 1; }

.wall-label strong { font-size: 0.92rem; font-weight: 700; display: block; }
.wall-label small { font-family: var(--font-mono); font-size: 0.72rem; opacity: 0.85; }

/* -------------------------- Scroll-Reveal Utilities ------------------------ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity 0.7s ease; }
.reveal-fade.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------- CTA strip ----------------------------- */

.cta-strip { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-strip h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 800; margin-bottom: 2rem; }

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

.site-footer { padding: 2.25rem 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--ink-soft); font-size: 0.85rem; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-note { color: var(--ink-soft); font-size: 0.82rem; font-family: var(--font-mono); }

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

.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.3rem; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 0.85rem; border: 1.5px solid var(--ink);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  transition: transform 0.15s ease;
}

.float-cta:hover { transform: translateY(-2px); }

@media (max-width: 520px) {
  .float-cta { right: 14px; bottom: 14px; padding: 0.65rem 1.05rem; font-size: 0.78rem; }
}

/* ------------------------------ Inner pages ------------------------------ */

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; border-bottom: 1px solid var(--ink); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.page-head p { color: var(--ink-soft); max-width: 55ch; margin-top: 1rem; }

/* Kontakt */

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; }

@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-blurb { padding-right: 3rem; }
.contact-blurb h3 { font-size: 1.3rem; margin-bottom: 1rem; font-weight: 700; }
.contact-blurb p { color: var(--ink-soft); margin-bottom: 1.5rem; }

.contact-card { border: 1px solid var(--ink); }
.contact-row { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--ink); }
.contact-row:last-child { border-bottom: none; }
.contact-row .label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }
.contact-row .value { font-size: 1.05rem; font-weight: 700; font-family: var(--font-display); }
.contact-row .value a:hover { text-decoration: underline; }

/* Impressum */

.legal-block { max-width: 65ch; }
.legal-block h2 { font-size: 1.05rem; margin-top: 2.1rem; margin-bottom: 0.65rem; font-weight: 700; }
.legal-block h2:first-child { margin-top: 0; }
.legal-block p, .legal-block li { color: var(--ink-soft); margin-bottom: 0.6rem; }
.legal-block ul { padding-left: 1.2rem; }
.placeholder-flag { color: var(--red); font-weight: 700; }

.legal-note {
  margin-top: 2.1rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--ink);
  background: var(--gray-soft);
  font-size: 0.88rem;
}
