/* ==========================================================================
   CAUSA LOGIC · Portfolio-Hub (portfolio.causa-logic.ch)
   Causa-Branding: schwarz/weiss, klar & technisch. Schriften: Space Grotesk
   (Display) + Inter (Text). Rahmt die vier farbigen Demo-Seiten neutral ein.
   ========================================================================== */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90%; descent-override: 22.43%; line-gap-override: 0%; size-adjust: 107.4%;
}

:root {
  --schwarz:   #0a0a0a;
  --schwarz-2: #151515;   /* dunkle Sektion */
  --karte:     #1a1a1a;   /* Paket-Karten auf Dunkel */
  --weiss:     #ffffff;
  --hell:      #f5f5f3;   /* (nicht mehr genutzt) */
  --hell-2:    #ececea;
  --text:      #14141a;   /* NUR für die weissen Demo-Container */
  --grau:      #8c8c8c;   /* neutrales Grau */
  --grau-hell: #b3b3b3;
  --rand:      rgba(20,20,20,.12);
  --rand-hell: rgba(255,255,255,.14);
  --disp:      'Space Grotesk', system-ui, sans-serif;
  --sans:      'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;
  --breite:    1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--schwarz); color: var(--weiss); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--breite); margin: 0 auto; padding: 0 32px; }
.section { padding: 110px 0; }
.section.hell { background: var(--hell); color: var(--text); }

h1, h2, h3, .disp { font-family: var(--disp); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--grau-hell); margin-bottom: 18px; }
.hell .kicker { color: var(--grau); }
.kicker::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .6; }
h2.titel { font-size: clamp(32px, 4.6vw, 54px); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--grau-hell); max-width: 620px; }
.hell .lead { color: var(--grau); }
.zen { text-align: center; } .zen .lead { margin: 14px auto 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--sans);
  font-size: 14.5px; font-weight: 600; padding: 15px 30px; border-radius: 8px; cursor: pointer; border: 1.5px solid transparent; transition: all .2s; }
.btn-weiss { background: var(--weiss); color: var(--schwarz); }
.btn-weiss:hover { background: #e9e9e6; }
.btn-schwarz { background: var(--text); color: var(--weiss); }
.btn-schwarz:hover { background: #2c2c34; }
.btn-linie { background: transparent; border-color: var(--rand-hell); color: var(--weiss); }
.btn-linie:hover { border-color: var(--weiss); }
.hell .btn-linie { border-color: var(--rand); color: var(--text); }
.hell .btn-linie:hover { border-color: var(--text); }

/* ---- Kopf ---- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(12,12,14,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rand-hell); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo img { height: 26px; width: auto; }
.nav-rechts { display: flex; align-items: center; gap: 20px; }
.nav-rechts a.txt { font-size: 14px; color: var(--grau-hell); } .nav-rechts a.txt:hover { color: var(--weiss); }

/* ---- Hero ---- */
.hero { padding: 130px 0 90px; position: relative; overflow: hidden; }
/* Causa-Logo als grosses, dezentes Motiv: ragt halb hinter den rechten Bildschirmrand. */
.hero .marke-x { position: absolute; right: -320px; top: 50%; transform: translateY(-50%); height: 138%; width: auto;
  opacity: .06; pointer-events: none; user-select: none; }
.hero h1 { font-size: clamp(40px, 6.5vw, 86px); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--grau-hell); }
.hero p { font-size: clamp(17px, 1.7vw, 21px); color: var(--grau-hell); max-width: 560px; margin: 26px 0 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Demo-Galerie ---- */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.demo-karte { display: block; background: var(--weiss); border: 1px solid var(--rand); border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s; }
.demo-karte:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.13); }
.vorschau { height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; }
.vorschau .wm { font-size: 40px; line-height: 1; }
.vorschau .wm small { display: block; font-size: 10px; letter-spacing: .4em; margin-top: 7px; opacity: .8; }
.dk-text { padding: 26px 28px 28px; }
.dk-tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #595959; }
.dk-text h3 { font-size: 23px; margin: 8px 0 8px; color: var(--text); }
.dk-text p { color: #595959; font-size: 15px; }
.dk-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--text); font-size: 14.5px; }
.demo-karte:hover .dk-link { color: #000; }
.dk-link::after { content: ' →'; }

/* ---- Pakete / Pricing ---- */
.pakete { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.paket { background: var(--karte); border: 1px solid var(--rand-hell); border-radius: 16px; padding: 36px 30px; position: relative; color: var(--weiss); }
.paket.top { border-color: var(--weiss); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.paket .badge { position: absolute; top: -12px; left: 30px; background: var(--weiss); color: var(--schwarz); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.paket .pk-tag { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grau-hell); }
.paket .preis { font-family: var(--disp); font-size: 40px; font-weight: 600; margin: 12px 0 4px; color: var(--weiss); }
.paket .preis small { font-size: 15px; font-weight: 400; color: var(--grau); }
.paket .pk-sub { color: var(--grau-hell); font-size: 14.5px; margin: 14px 0 20px; }
.paket ul { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; }
.paket li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--grau-hell); }
.paket li::before { content: '✓'; color: var(--weiss); font-weight: 700; }
.paket .btn { width: 100%; }

/* ---- Abschluss-CTA + Footer ---- */
.abschluss { text-align: center; }
.footer { background: var(--schwarz); border-top: 1px solid var(--rand-hell); padding: 50px 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer img { height: 22px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--grau-hell); }
.footer-links a:hover { color: var(--weiss); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .galerie { grid-template-columns: 1fr; }
  .pakete { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-rechts a.txt { display: none; }   /* nur Logo + Button auf kleinen Screens */
}
@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .container { padding: 0 22px; }
  .hero { padding: 90px 0 64px; }
  .hero .marke-x { height: 300px; right: -110px; opacity: .05; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .footer-in { flex-direction: column; text-align: center; }
}

/* ── Hero-Hintergrundbild als tiefste Ebene (Bild → Logo → Text) ─────────── */
.hero .hero-foto { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: right center / cover no-repeat; background-image: url('assets/hero-web.jpg?v=2'); background-image: image-set(url('assets/hero-web.webp?v=2') type('image/webp'), url('assets/hero-web.jpg?v=2') type('image/jpeg')); }
.hero .hero-foto::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,.30) 100%); }
.hero .marke-x { z-index: 1; opacity: .14; }     /* graues Logo schwebt über dem Bild */
.hero .container { position: relative; z-index: 2; }
@media (max-width: 760px) {
  .hero .hero-foto::after { background: linear-gradient(180deg, rgba(0,0,0,.40) 0%, rgba(0,0,0,.78) 100%); }
}

/* Mobile: kleineres Hero-Bild (schnelleres LCP) */
@media (max-width: 820px) {
  .hero .hero-foto { background-image: image-set(url('assets/hero-web-m.webp') type('image/webp'), url('assets/hero-web.jpg?v=2') type('image/jpeg')); }
}
