:root {
  --bg: #0b1020;
  --surface: #121936;
  --surface-2: #0f1530;
  --text: #e6e9f2;
  --muted: #a9b0c3;
  --primary: #7c5cff;
  --accent: #2de1fc;
  --success: #35d07f;
  --warning: #ffb020;
  --danger: #ff5c7a;
  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.1);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124,92,255,0.22), transparent 45%),
              radial-gradient(900px 500px at 110% 20%, rgba(45,225,252,0.18), transparent 40%),
              var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 19px;
  /* Prevent content from sliding under fixed header */
  padding-top: 72px;
}

/***** Header / Navigation *****/
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; backdrop-filter: saturate(120%) blur(10px); background: linear-gradient(180deg, rgba(11,16,32,0.85), rgba(11,16,32,0.55)); border-bottom: 1px solid var(--card-border); }
.nav { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; display: block; object-fit: contain; background: var(--surface); border: 1px solid var(--card-border); padding: 4px; box-shadow: 0 6px 18px rgba(124,92,255,0.35); transition: transform 200ms ease, box-shadow 200ms ease; cursor: pointer; }
.brand-logo:hover { transform: scale(1.06) rotate(-1deg); box-shadow: 0 8px 22px rgba(124,92,255,0.45); }
.brand-logo.tap { animation: pop 260ms ease; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* Header compact state on scroll */
.site-header.scrolled { background: linear-gradient(180deg, rgba(11,16,32,0.92), rgba(11,16,32,0.7)); border-bottom-color: rgba(255,255,255,0.18); }
.site-header.scrolled .nav { padding: 10px 20px; }
.brand-name { font-weight: 700; letter-spacing: 0.3px; }
.brand-name small { color: var(--muted); font-weight: 500; }

.nav-list { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 500; opacity: 0.9; padding: 8px 12px; border-radius: 10px; transition: 180ms ease; }
.nav-list a:hover { background: var(--card); opacity: 1; }
.nav-toggle { display: none; }

/***** Hero *****/
.hero { max-width: 1200px; margin: 0 auto; padding: 72px 20px 36px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-border); color: var(--muted); font-size: 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 14px 0 12px; letter-spacing: 0.2px; }
.hero p { color: var(--muted); font-size: 19px; margin: 0 0 24px; }
.cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #0a0f20; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 10px 26px rgba(124,92,255,0.35); }
.hero-visual { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--card-border); padding: 16px; box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: auto; object-fit: contain; border-radius: 12px; display: block; }

/***** Sections *****/
section { scroll-margin-top: 90px; }
.section { max-width: 1200px; margin: 0 auto 100px; padding: 42px 20px; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; }
.section p.lead { color: var(--muted); margin: 0 0 24px; }

.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card { grid-column: span 4; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

/***** Prozess / Steps *****/
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
.step { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative; }
.step h4 { margin: 8px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/***** Media blocks / images *****/
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.media { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 12px; display: grid; place-items: center; }
.media img { width: 100%; height: auto; object-fit: contain; border-radius: 10px; display: block; }
.media.small img { height: auto; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/***** Lists *****/
.list { color: var(--muted); }
.checklist { list-style: none; padding-left: 0; margin: 0; display: grid; gap: 16px; }
.checklist li { position: relative; padding-left: 48px; color: var(--muted); }
.checklist li::before { position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-content: center; border-radius: 10px; background: linear-gradient(135deg, rgba(45,225,252,0.35), rgba(124,92,255,0.35)); color: #fff; font-weight: 800; font-size: 16px; border: 1px solid var(--card-border); }
.checklist li.workflow::before { content: "⚡"; }
.checklist li.standardization::before { content: "🎯"; }
.checklist li.client-connection::before { content: "📧"; }
.checklist li.billing::before { content: "📄"; }
.checklist li.huk-sending::before { content: "📤"; }

/***** Footer *****/
footer { border-top: 1px solid var(--card-border); margin-top: 42px; padding: 28px 20px; color: var(--muted); text-align: center; background: rgba(0,0,0,0.2); }

/***** Utilities *****/
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/***** External link chip *****/
.link-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; margin-left: 8px; border-radius: 999px; font-size: 14px; color: var(--text); text-decoration: none; background: var(--card); border: 1px solid var(--card-border); opacity: 0.9; }
.link-chip:hover { opacity: 1; background: rgba(255,255,255,0.12); }

/***** Lightbox & clickable images *****/
.click-zoom { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(10,10,14,0.88); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 180ms ease; z-index: 1000; }
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox .lb-content { max-width: min(1100px, 92vw); max-height: 90vh; width: auto; height: auto; display: flex; align-items: center; justify-content: center; padding: 12px; }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 80px rgba(0,0,0,0.6); }
.lightbox .card { max-width: 100%; width: min(1000px, 92vw); }

/* Clickable hint */
.click-zoom { cursor: zoom-in; }
.lightbox.show { cursor: zoom-out; }
.lightbox img { max-width: 95vw; max-height: 95vh; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow); }

/***** Responsive *****/
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .cards .card { grid-column: span 6; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .media-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-list { display: none; position: absolute; right: 16px; top: 60px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 12px; padding: 10px; width: min(80vw, 320px); box-shadow: var(--shadow); }
  .nav-list.show { display: grid; grid-auto-rows: min-content; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--card-border); color: var(--text); cursor: pointer; }
}

/* Base link styles */
a { color: inherit; text-decoration: none; }
a:hover, a:focus { text-decoration: none; }

/***** Interactive hover effects *****/
.card, .step, .media {
  transition: transform 220ms cubic-bezier(.21,.9,.26,1),
              box-shadow 220ms ease,
              border-color 220ms ease,
              background 220ms ease;
  will-change: transform;
}
.card:hover, .step:hover, .media:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(124,92,255,0.35);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(124,92,255,0.25) inset;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}
.card:active, .step:active, .media:active {
  transform: translateY(-1px) scale(0.997);
}

/* Fullscreen card presentation inside lightbox */
.lightbox .card.card-fullscreen {
  width: min(1000px, 92vw);
  max-height: 86vh;
  overflow: auto;
  border-radius: 14px;
  background: var(--surface, rgba(20,20,28,0.9));
  padding: clamp(18px, 2.4vw, 28px);
}
.lightbox .card.card-fullscreen h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.2; }
.lightbox .card.card-fullscreen p, .lightbox .card.card-fullscreen li { font-size: clamp(1.06rem, 1.8vw, 1.2rem); line-height: 1.65; }
.lightbox .card.card-fullscreen small { font-size: 1em; }

/* Keep zoom cursors semantics */
.lightbox .lb-content { cursor: zoom-out; }

/* Optional: subtle elevation when enlarged */
.card.card-enlarged { box-shadow: 0 16px 44px rgba(0,0,0,0.35), 0 0 0 1px rgba(124,92,255,0.25) inset; }