/* ============================================================
   HUSCHDESIGN – Main Stylesheet
   ============================================================ */

/* 1. Tokens & Reset  2. Typography  3. Layout  4. Nav
   5. Hero  6. Sections  7. Cards  8. Blog  9. Forms
   10. Footer  11. Animations  12. Utilities  13. Responsive */

/* --- 1. Tokens & Reset --- */
:root {
  --cyan:        #06b6d4;
  --cyan-dark:   #0891b2;
  --cyan-deeper: #164e63;
  --purple:      #8b5cf6;
  --purple-dark: #7c3aed;

  --bg:       #080808;
  --bg-2:     #0d0d0d;
  --bg-card:  rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);

  --text:      #ffffff;
  --text-70:   rgba(255,255,255,0.70);
  --text-50:   rgba(255,255,255,0.50);
  --text-30:   rgba(255,255,255,0.30);

  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.14);
  --border-cyan:  rgba(6,182,212,0.30);

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --nav-h: 72px;
  --max:   1200px;
  --pad:   clamp(1.25rem, 5vw, 2.5rem);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 150ms var(--ease);
  --base: 280ms var(--ease);
  --slow: 500ms var(--ease);
}

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

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

body {
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- 2. Typography --- */
h1, h2, h3, h4, h5 { line-height: 1.15; letter-spacing: -0.02em; font-family: var(--font-heading); }

.label {
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.75rem;
}

/* --- 3. Layout --- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section-header {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section-header .label { margin-bottom: 0.75rem; }

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-70);
  line-height: 1.7;
}

/* --- 4. Navigation --- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  transition: padding var(--base), background var(--base), border-color var(--base);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding-block: 1rem;
}

html.light .nav.scrolled {
  background: rgba(248, 250, 252, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: opacity var(--fast);
}

.nav-logo:hover { opacity: 0.75; }

.nav-logo img { height: 36px; width: auto; }
.logo-light { display: none; }
.logo-dark  { display: block; }
html.light .logo-light { display: block; }
html.light .logo-dark  { display: none; }

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-70);
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  transition: color var(--fast), background var(--fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  transition: all var(--base);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(6,182,212,0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(6,182,212,0.35);
  opacity: 0.92;
}

.btn-outline {
  border: 1.5px solid var(--border-hover);
  color: var(--text-70);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(6,182,212,0.06);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--base);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--base);
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile a {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  color: var(--text-70);
  transition: color var(--fast);
}

.nav-mobile a:hover { color: var(--cyan); }

/* --- 5. Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Animated mesh gradient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.blob-1 {
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(6,182,212,0.55) 0%, transparent 65%);
  top: -20%;
  left: -10%;
  filter: blur(90px);
  animation: blob1 20s ease-in-out infinite alternate;
}

.blob-2 {
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(139,92,246,0.45) 0%, transparent 65%);
  bottom: -15%;
  right: -5%;
  filter: blur(100px);
  animation: blob2 16s ease-in-out infinite alternate;
}

.blob-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(8,145,178,0.40) 0%, transparent 65%);
  top: 35%;
  left: 40%;
  filter: blur(80px);
  animation: blob3 13s ease-in-out infinite alternate;
}

.blob-4 {
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(22,78,99,0.7) 0%, transparent 65%);
  top: 10%;
  right: 20%;
  filter: blur(60px);
  animation: blob4 18s ease-in-out infinite alternate;
}

/* Dot grid overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Hero Split Layout */
.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 100svh;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset-inline: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.4), transparent);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-headline {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-headline-gradient {
  display: block;
  font-weight: 300;
  font-size: 0.72em;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 35%, var(--purple) 70%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 8s linear infinite;
  margin-bottom: 0.05em;
}

.hero-headline-bold {
  display: block;
  color: #fff;
  text-shadow: 0 0 60px rgba(6,182,212,0.3);
}

.hero-headline-italic {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
}

.hero-subtext {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-70);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Hero Visual (right side) ── */
.hero-visual {
  position: relative;
  height: 480px;
}

.hv-browser {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-46%, -50%);
  width: 300px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  animation: hv-float-a 7s ease-in-out infinite;
}

.hv-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.hv-dot { width: 8px; height: 8px; border-radius: 50%; }
.hv-dot:nth-child(1) { background: rgba(255,255,255,0.22); }
.hv-dot:nth-child(2) { background: rgba(255,255,255,0.15); }
.hv-dot:nth-child(3) { background: rgba(255,255,255,0.09); }

.hv-url {
  flex: 1;
  text-align: center;
  font-size: 0.67rem;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-family: monospace;
}

.hv-browser-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hv-nav-bar {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
}

.hv-hero-block {
  height: 85px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6,182,212,0.35), rgba(139,92,246,0.4));
  display: flex;
  align-items: flex-end;
  padding: 0.6rem;
  gap: 0.4rem;
}

.hv-hero-btn {
  height: 14px;
  border-radius: 7px;
  background: rgba(255,255,255,0.25);
}
.hv-hero-btn:first-child { width: 60px; }
.hv-hero-btn:last-child  { width: 40px; background: rgba(6,182,212,0.55); }

.hv-lines { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.2rem 0; }
.hv-line  { height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; }
.hv-line-80 { width: 80%; }
.hv-line-60 { width: 60%; }
.hv-line-40 { width: 42%; }

.hv-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.hv-card-mini {
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Stat card – top right */
.hv-stat {
  position: absolute;
  top: 6%;
  right: 4%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
  animation: hv-float-b 5s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hv-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hv-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.25rem;
  white-space: nowrap;
}

/* Ranking badge – bottom left */
.hv-rank {
  position: absolute;
  bottom: 14%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: hv-float-c 6s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.hv-rank-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hv-rank-title { font-size: 0.82rem; font-weight: 600; color: #fff; }
.hv-rank-sub   { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 0.1rem; }

/* Review snippet – bottom right */
.hv-review {
  position: absolute;
  bottom: 3%;
  right: 2%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  max-width: 165px;
  animation: hv-float-a 8s ease-in-out infinite 1.5s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hv-review-stars { font-size: 0.75rem; color: #fbbf24; margin-bottom: 0.35rem; letter-spacing: 0.05em; }
.hv-review p { font-size: 0.78rem; color: rgba(255,255,255,0.65); line-height: 1.5; margin-bottom: 0.3rem; font-style: italic; }
.hv-review span { font-size: 0.68rem; color: rgba(255,255,255,0.3); }

/* Rotating badge bottom-right */
.hero-spin-badge {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 10;
  width: 110px;
  height: 110px;
}

.hero-spin-badge svg.spin {
  width: 100%;
  height: 100%;
  animation: spin-slow 22s linear infinite;
}

.hero-spin-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 20px rgba(6,182,212,0.6);
  animation: pulse-glow 3s ease-in-out infinite;
}

/* --- 6. Generic Section Styles --- */
.bg-alt { background: var(--bg-2); }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* --- 7. Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  transition: background var(--base), border-color var(--base), transform var(--base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--cyan);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(6,182,212,0.65));
}

.card-icon-cyan, .card-icon-orange, .card-icon-green, .card-icon-purple {
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--cyan);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-70);
  line-height: 1.7;
}

/* Service Card big */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all var(--base);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), transparent, rgba(139,92,246,0.10));
  opacity: 0;
  transition: opacity var(--base);
  pointer-events: none;
}

.service-card:hover { border-color: var(--border-cyan); transform: translateY(-4px); }
.service-card:hover::after { opacity: 1; }

.service-number {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-30);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-70);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cyan);
  transition: gap var(--fast);
}

.service-link:hover { gap: 0.7rem; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-50);
  transition: all var(--fast);
}

.tag:hover { border-color: var(--border-cyan); color: var(--cyan); }

/* Portfolio / Reference Cards */
.project-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--base);
  cursor: default;
}

.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.project-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.project-thumb-1 { background: linear-gradient(135deg, #06b6d4 0%, #164e63 100%); }
.project-thumb-2 { background: linear-gradient(135deg, #7c3aed 0%, #1e1b4b 100%); }
.project-thumb-3 { background: linear-gradient(135deg, #8b5cf6 0%, #1e1b4b 100%); }
.project-thumb-4 { background: linear-gradient(135deg, #34d399 0%, #065f46 100%); }
.project-thumb-5 { background: linear-gradient(135deg, #f43f5e 0%, #4c0519 100%); }
.project-thumb-6 { background: linear-gradient(135deg, #fb923c 0%, #06b6d4 100%); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--base);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.project-info p {
  font-size: 0.82rem;
  color: var(--text-50);
}

/* Process steps – Scroll Reveal */
.process-scroll-wrapper {
  position: relative;
  height: 380vh;
}

.process-sticky-section {
  position: sticky !important;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 1.5rem);
  padding-bottom: 2rem;
}

/* 4-Spalten Bento-Grid */
.process-grid {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Jede Spalte = ein Schritt */
.process-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.75s ease;
}

.process-col.step-hidden {
  transform: translateY(72px);
  opacity: 0;
  pointer-events: none;
}

.process-step {
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  flex: 1;
  transition: background var(--base);
}

.process-step:hover { background: var(--bg-card-hover); }

.process-icon-card {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 130px;
  position: relative;
  overflow: hidden;
  transition: background var(--base);
}

.process-icon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6,182,212,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.process-icon-card svg {
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.process-icon-card:hover svg { transform: scale(1.08); }

.process-step-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-step p  { font-size: 0.85rem; color: var(--text-50); line-height: 1.6; }

/* ---- Animated Code Editor ---- */
.code-editor {
  background: #0d1117;
  border-radius: 16px;
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.8rem;
  line-height: 1.75;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07);
}

.ced-bar {
  background: #161b22;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ced-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ced-tab {
  margin-left: 0.6rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  padding: 0.18rem 0.65rem;
  border-radius: 4px;
}

.ced-tab-active {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
}

.ced-body {
  padding: 1.25rem 1.5rem;
}

/* Each code line starts invisible */
.ced-line {
  display: flex;
  align-items: baseline;
  gap: 0;
  opacity: 0;
  transform: translateY(3px);
  white-space: pre;
}

/* Lines animate in when parent gets .visible from IntersectionObserver */
.code-editor.visible .ced-line { animation: cedLine 0.3s ease forwards; }
.code-editor.visible .ced-line:nth-child(1)  { animation-delay: 0.05s; }
.code-editor.visible .ced-line:nth-child(2)  { animation-delay: 0.18s; }
.code-editor.visible .ced-line:nth-child(3)  { animation-delay: 0.31s; }
.code-editor.visible .ced-line:nth-child(4)  { animation-delay: 0.44s; }
.code-editor.visible .ced-line:nth-child(5)  { animation-delay: 0.57s; }
.code-editor.visible .ced-line:nth-child(6)  { animation-delay: 0.70s; }
.code-editor.visible .ced-line:nth-child(7)  { animation-delay: 0.83s; }
.code-editor.visible .ced-line:nth-child(8)  { animation-delay: 0.96s; }
.code-editor.visible .ced-line:nth-child(9)  { animation-delay: 1.09s; }
.code-editor.visible .ced-line:nth-child(10) { animation-delay: 1.22s; }
.code-editor.visible .ced-line:nth-child(11) { animation-delay: 1.35s; }
.code-editor.visible .ced-line:nth-child(12) { animation-delay: 1.48s; }
.code-editor.visible .ced-line:nth-child(13) { animation-delay: 1.61s; }
.code-editor.visible .ced-line:nth-child(14) { animation-delay: 1.74s; }

@keyframes cedLine {
  to { opacity: 1; transform: translateY(0); }
}

/* Line numbers */
.ced-ln {
  color: rgba(255,255,255,0.18);
  min-width: 1.8rem;
  text-align: right;
  margin-right: 1.2rem;
  user-select: none;
  flex-shrink: 0;
}

/* Indentation helpers */
.ced-indent  { display: inline-block; width: 1.6rem; flex-shrink: 0; }
.ced-indent2 { display: inline-block; width: 3.2rem; flex-shrink: 0; }

/* Syntax token colors */
.ced-tag     { color: #06b6d4; }
.ced-attr    { color: #a78bfa; }
.ced-eq      { color: rgba(255,255,255,0.4); }
.ced-str     { color: #fbbf24; }
.ced-text    { color: rgba(255,255,255,0.82); }
.ced-comment { color: rgba(255,255,255,0.28); font-style: italic; }
.ced-sel     { color: #06b6d4; }
.ced-prop    { color: #a78bfa; }
.ced-val     { color: #34d399; }
.ced-punct   { color: rgba(255,255,255,0.45); }

/* Blinking cursor */
.ced-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: #06b6d4;
  margin-left: 1px;
  vertical-align: text-bottom;
  opacity: 0;
}

.code-editor.visible .ced-cursor {
  animation: cedBlink 1s ease-in-out 1.9s infinite;
}

@keyframes cedBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* About Teaser */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.about-teaser > * {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.about-img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  flex: 1;
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
}

.about-portrait {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.about-img-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
}

.about-img-tag strong { display: block; font-size: 1rem; }

.about-text .label { margin-bottom: 0.75rem; }
.about-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 1.25rem; }
.about-teaser > div h2 { margin-bottom: 1.25rem; }
.about-text > p { color: var(--text-70); line-height: 1.8; margin-bottom: 2rem; font-size: 0.97rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label { font-size: 0.78rem; color: var(--text-50); margin-top: 0.2rem; }

/* --- 8. Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

#blog-auto-home[data-count="1"] { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
#blog-auto-home[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
#blog-auto-home[data-count="3"] { grid-template-columns: repeat(3, 1fr); }

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.blog-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.5s var(--ease);
}

.blog-card:hover .blog-thumb-inner { transform: scale(1.04); }

.blog-cat {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.blog-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.78rem;
  color: var(--text-30);
  margin-bottom: 0.75rem;
}

.blog-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.65rem;
  transition: color var(--fast);
}

.blog-card:hover h3 { color: var(--cyan); }

.blog-body p {
  font-size: 0.85rem;
  color: var(--text-50);
  line-height: 1.65;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 500;
  margin-top: 1.25rem;
  transition: gap var(--fast);
}

.blog-card:hover .blog-read-more { gap: 0.6rem; }

/* Full blog page list */
.blog-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.blog-featured .blog-card:first-child .blog-thumb { aspect-ratio: 16/9; }

/* --- 9. Forms --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 1rem; }
.contact-info > p { color: var(--text-70); line-height: 1.75; margin-bottom: 2rem; font-size: 0.95rem; }

.contact-items { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.9rem;
  transition: border-color var(--fast);
}

.contact-item:hover { border-color: var(--border-hover); }

.contact-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(6,182,212,0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-item-text { color: var(--text-70); }
.contact-item-text strong { display: block; color: var(--text); font-size: 0.82rem; margin-bottom: 0.1rem; }

.form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-70);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background-color: rgba(255,255,255,0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--fast);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-group select option { background: #111; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cyan);
  background: rgba(6,182,212,0.04);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-30);
}

.form-privacy a { color: var(--cyan); text-decoration: underline; }

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.form-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.form-checkbox-label .custom-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.form-checkbox-label .custom-check::after {
  content: '';
  display: block;
  width: 6px;
  height: 11px;
  border: 2px solid transparent;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  transition: border-color 0.15s;
}
.form-checkbox-label input[type="checkbox"]:checked + .custom-check {
  background: var(--cyan);
  border-color: var(--cyan);
}
.form-checkbox-label input[type="checkbox"]:checked + .custom-check::after {
  border-color: #fff;
}
.form-checkbox-label input[type="checkbox"]:focus-visible + .custom-check {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.form-checkbox-label span {
  font-size: 0.82rem;
  color: var(--text-70);
  line-height: 1.6;
}
.form-checkbox-label a { color: var(--cyan); text-decoration: underline; }

/* --- 10. Footer --- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: 4rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-50);
  line-height: 1.75;
  margin-top: 0.75rem;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-50);
  transition: all var(--base);
  flex-shrink: 0;
}

.social-link:hover {
  border-color: var(--border-hover);
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-30);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-50);
  transition: color var(--fast);
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.82rem; color: var(--text-30); }

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: var(--text-30);
  transition: color var(--fast);
}

.footer-bottom-links a:hover { color: var(--text-50); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(6,182,212,0.10) 0%, rgba(249,115,22,0.08) 100%);
  border: 1px solid var(--border-cyan);
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset-inline: 20%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
}

.cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-banner p { color: var(--text-70); margin-bottom: 2.25rem; max-width: 520px; margin-inline: auto; font-size: 1rem; }
.cta-banner .ctas { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Page Hero (inner pages) */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(6,182,212,0.07), transparent 65%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .label { margin-bottom: 0.75rem; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-70);
  max-width: 580px;
  line-height: 1.75;
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color var(--fast);
}

.faq-q:hover { color: var(--cyan); }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--text-50);
  transition: all var(--base);
}

.faq-item.open .faq-icon { border-color: var(--cyan); color: var(--cyan); transform: rotate(45deg); }

.faq-a {
  display: none;
  padding-top: 1rem;
  font-size: 0.93rem;
  color: var(--text-70);
  line-height: 1.75;
}

.faq-item.open .faq-a { display: block; }

/* --- 11. Animations --- */
@keyframes blob1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(70px, 50px) scale(1.08); }
  66%  { transform: translate(-30px, 80px) scale(0.95); }
  100% { transform: translate(40px, -40px) scale(1.05); }
}

@keyframes blob2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-80px, -50px) scale(1.1); }
  66%  { transform: translate(30px, -70px) scale(0.92); }
  100% { transform: translate(-50px, 50px) scale(1.05); }
}

@keyframes blob3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, 40px) scale(1.12); }
  100% { transform: translate(80px, -30px) scale(0.9); }
}

@keyframes blob4 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(40px, 60px); }
  100% { transform: translate(-30px, -50px); }
}

@keyframes hv-float-a {
  0%, 100% { transform: translate(-46%, -50%) translateY(0); }
  50%       { transform: translate(-46%, -50%) translateY(-14px); }
}
@keyframes hv-float-b {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes hv-float-c {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

@keyframes shimmer-text {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--cyan); }
  50%       { opacity: 0.5; box-shadow: 0 0 12px var(--cyan); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(6,182,212,0.5); }
  50%       { box-shadow: 0 0 35px rgba(249,115,22,0.6); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- 12. Utilities --- */
.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 8s linear infinite;
}

.divider { height: 1px; background: var(--border); margin-block: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Services Bento Grid ── */
.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.svc-wide-l { grid-column: 1 / 3; }
.svc-wide-r { grid-column: 2 / 4; }

.svc-card {
  --svc-color: #06b6d4;
  --svc-rgb: 6, 182, 212;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}

.svc-card:hover {
  border-color: rgba(var(--svc-rgb), 0.4);
  box-shadow: 0 0 0 1px rgba(var(--svc-rgb), 0.15), 0 16px 48px rgba(var(--svc-rgb), 0.1);
  transform: translateY(-4px);
}

/* Mouse spotlight */
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--svc-rgb), 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 0;
}
.svc-card:hover::before { opacity: 1; }

/* Wide cards: side-by-side */
.svc-wide-l,
.svc-wide-r {
  display: grid;
  grid-template-columns: 210px 1fr;
}

/* Narrow cards: stacked */
.svc-narrow {
  display: flex;
  flex-direction: column;
}

/* Visual section */
.svc-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg,
    rgba(var(--svc-rgb), 0.12) 0%,
    rgba(var(--svc-rgb), 0.03) 100%);
  overflow: hidden;
  min-height: 190px;
}

.svc-wide-l .svc-visual,
.svc-wide-r .svc-visual {
  border-right: 1px solid rgba(var(--svc-rgb), 0.12);
  min-height: unset;
}

.svc-narrow .svc-visual {
  border-bottom: 1px solid rgba(var(--svc-rgb), 0.12);
  min-height: 185px;
}

/* Background radial glow */
.svc-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%,
    rgba(var(--svc-rgb), 0.28) 0%, transparent 65%);
  transition: opacity 0.4s;
}

.svc-card:hover .svc-visual::after { opacity: 1.4; }

/* Card number */
.svc-num {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(var(--svc-rgb), 0.55);
  z-index: 2;
}

/* Icon */
.svc-icon-wrap {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 18px rgba(var(--svc-rgb), 0.55));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s;
}

.svc-card:hover .svc-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 28px rgba(var(--svc-rgb), 0.8));
}

.svc-icon-wrap svg {
  width: 52px;
  height: 52px;
  stroke: var(--svc-color);
  fill: none;
}

/* SVG filled circles (browser dots) */
.svc-icon-wrap svg circle[stroke-width="0"] {
  fill: var(--svc-color);
  stroke: none;
}

/* Floating decoration dots */
.svc-deco {
  position: absolute;
  border-radius: 50%;
  background: var(--svc-color);
  pointer-events: none;
  z-index: 1;
}

.svc-deco-1 {
  width: 5px; height: 5px;
  top: 22%; right: 18%;
  opacity: 0.5;
  animation: svc-dot-float 4s ease-in-out infinite;
}
.svc-deco-2 {
  width: 3px; height: 3px;
  bottom: 25%; right: 28%;
  opacity: 0.3;
  animation: svc-dot-float 5.5s ease-in-out infinite 1.2s;
}
.svc-deco-3 {
  width: 7px; height: 7px;
  bottom: 18%; left: 18%;
  opacity: 0.25;
  animation: svc-dot-float 3.8s ease-in-out infinite 0.6s;
}

/* Thin ring behind icon */
.svc-visual::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(var(--svc-rgb), 0.2);
  z-index: 1;
  animation: svc-ring-pulse 3s ease-in-out infinite;
}

@keyframes svc-ring-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.5; }
  50%       { transform: scale(1.2); opacity: 0.2; }
}

@keyframes svc-dot-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* Body / content */
.svc-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
}

.svc-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.svc-body > p {
  font-size: 0.875rem;
  color: var(--text-70);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.svc-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.svc-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-70);
  line-height: 1.45;
}

.svc-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--svc-color);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(var(--svc-rgb), 0.6);
}

.svc-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--svc-color);
  transition: gap 0.2s;
  margin-top: auto;
  padding-top: 0.25rem;
}

.svc-link-btn:hover { gap: 0.7rem; }

/* --- 13. Responsive --- */
@media (max-width: 1024px) {
  .services-bento { grid-template-columns: 1fr 1fr; }
  .svc-wide-l, .svc-wide-r { grid-column: span 2; grid-template-columns: 180px 1fr; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-teaser { gap: 2.5rem; }

  .process-scroll-wrapper { height: auto; }
  .process-sticky-section {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    padding-top: clamp(4rem, 10vw, 8rem);
    padding-bottom: clamp(4rem, 10vw, 8rem);
  }
  .process-col.step-hidden {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  /* Tablet: 2×2 Grid */
  .process-grid {
    flex-wrap: wrap;
  }
  .process-col {
    flex: 0 0 calc(50% - 0.5px);
  }
}

@media (max-width: 768px) {
  /* Mobile: nur Text-Karten, gestapelt */
  .process-grid { flex-direction: column; flex-wrap: nowrap; }
  .process-col  { flex: none; width: 100%; }
  .process-icon-card { display: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 6rem; }

  .hero-spin-badge { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-teaser { grid-template-columns: 1fr; }
  .about-img-wrapper { min-height: 360px; }
  #webdesign .about-teaser > *:last-child,
  #logodesign .about-teaser > *:last-child,
  #seo .about-teaser > *:last-child { order: -1; }
  #logodesign .about-teaser { direction: ltr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  #blog-auto-home[data-count] { grid-template-columns: 1fr; max-width: none; margin: 0; }
  .blog-featured { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .services-bento { grid-template-columns: 1fr; }
  .svc-wide-l, .svc-wide-r { grid-column: span 1; grid-template-columns: 1fr; }
  .svc-wide-l .svc-visual, .svc-wide-r .svc-visual {
    border-right: none;
    border-bottom: 1px solid rgba(var(--svc-rgb), 0.12);
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .cta-banner .ctas { flex-direction: column; align-items: center; }
  .nav-logo img { height: 26px; }
  .form-wrapper { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   14. Gradient Background & Dark / Light Mode
   ============================================================ */

/* Page base: subtle radial gradient tints on the dark/light base */
html {
  background:
    radial-gradient(ellipse at 12% 10%, rgba(6,182,212,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 88%, rgba(139,92,246,0.09) 0%, transparent 50%),
    #080808;
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light mode: CSS custom properties ── */
html.light {
  background:
    radial-gradient(ellipse at 12% 10%, rgba(6,182,212,0.13) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 88%, rgba(139,92,246,0.11) 0%, transparent 50%),
    #f8fafc;

  --bg:            #f8fafc;
  --bg-2:          #f1f5f9;
  --bg-card:       rgba(0, 0, 0, 0.04);
  --bg-card-hover: rgba(0, 0, 0, 0.07);

  --text:    #0f172a;
  --text-70: rgba(15, 23, 42, 0.70);
  --text-50: rgba(15, 23, 42, 0.50);
  --text-30: rgba(15, 23, 42, 0.30);

  --border:       rgba(0, 0, 0, 0.10);
  --border-hover: rgba(0, 0, 0, 0.16);
  --border-cyan:  rgba(6, 182, 212, 0.40);
}

/* ── Light mode: nav ── */
html.light .nav.scrolled {
  background: rgba(248, 250, 252, 0.92);
}

html.light .nav-links a:hover,
html.light .nav-links a.active {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
}

html.light .nav-mobile {
  background: rgba(248, 250, 252, 0.97);
}

html.light .nav-mobile a { color: rgba(15, 23, 42, 0.70); }
html.light .nav-mobile a:hover { color: var(--cyan); }

/* ── Light mode: hero ── */
html.light .hero {
  background: rgba(240, 245, 255, 0.55);
}

html.light .hero-headline-gradient {
  background: linear-gradient(135deg, #0f172a 0%, var(--cyan) 35%, var(--purple) 70%, #0f172a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.light .hero-headline-bold  { color: #0f172a; text-shadow: none; }
html.light .hero-headline-italic { color: rgba(15, 23, 42, 0.70); }

html.light .hero-badge {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  color: rgba(15, 23, 42, 0.85);
}

html.light .hero-subtext { color: var(--text-70); }

/* Spin badge text becomes dark */
html.light .hero-spin-badge text { fill: rgba(0, 0, 0, 0.45); }

/* Hero dot-grid: dark dots on light */
html.light .hero-noise {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* Hero visual mockup – invert the white glass cards */
html.light .hv-browser {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.13);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

html.light .hv-browser-bar {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.07);
}

html.light .hv-dot:nth-child(1) { background: rgba(0, 0, 0, 0.25); }
html.light .hv-dot:nth-child(2) { background: rgba(0, 0, 0, 0.15); }
html.light .hv-dot:nth-child(3) { background: rgba(0, 0, 0, 0.09); }

html.light .hv-url {
  color: rgba(0, 0, 0, 0.40);
  background: rgba(0, 0, 0, 0.05);
}

html.light .hv-nav-bar { background: rgba(0, 0, 0, 0.08); }

html.light .hv-line { background: rgba(0, 0, 0, 0.09); }

html.light .hv-card-mini {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.07);
}

html.light .hv-stat,
html.light .hv-rank,
html.light .hv-review {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(0, 0, 0, 0.13);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

html.light .hv-stat-label { color: rgba(0, 0, 0, 0.45); }
html.light .hv-rank-title  { color: #0f172a; }
html.light .hv-rank-sub    { color: rgba(0, 0, 0, 0.40); }
html.light .hv-review p    { color: rgba(0, 0, 0, 0.65); }
html.light .hv-review span { color: rgba(0, 0, 0, 0.35); }

/* ── Light mode: sections ── */
html.light .bg-alt  { background: var(--bg-2); }
html.light .footer  { background: var(--bg-2); }

html.light .about-img-tag {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
}

html.light .about-img-tag, html.light .about-img-tag strong {
  color: #0f172a;
}

/* ── Light mode: buttons ── */
html.light .btn-outline {
  border-color: rgba(0, 0, 0, 0.20);
  color: rgba(15, 23, 42, 0.70);
}

html.light .btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.06);
}

/* ── Light mode: forms ── */
html.light .form-group input,
html.light .form-group textarea,
html.light .form-group select {
  background-color: rgba(0, 0, 0, 0.03);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(15,23,42,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

html.light .form-group select option { background: #fff; color: #0f172a; }

html.light .form-group input:focus,
html.light .form-group textarea:focus,
html.light .form-group select:focus {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.04);
}

/* ── Theme toggle button – dezent, rechts außen ── */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-30);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--base), color var(--base), background var(--base);
  flex-shrink: 0;
  opacity: 0.7;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-70);
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

html.light .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
}

/* Dark mode (default): Sonne anzeigen → zu Hell wechseln */
.icon-sun  { display: block; }
.icon-moon { display: none; }

/* Light mode: Mond anzeigen → zu Dunkel wechseln */
html.light .icon-sun  { display: none; }
html.light .icon-moon { display: block; }

/* Mobile-Menü: etwas größer */
.nav-mobile .theme-toggle {
  width: 48px;
  height: 48px;
  opacity: 0.8;
}

.nav-mobile .theme-toggle svg { width: 20px; height: 20px; }

/* ============================================================
   15. Project Showcase (index.html Referenzen-Teaser)
   ============================================================ */

/* ── Schwebendes Vorschaufenster ── */
.psc-preview {
  position: fixed;
  z-index: 300;
  pointer-events: none;
  width: 340px;
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
  opacity: 0;
  transform: scale(0.88) translateZ(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
  will-change: left, top, transform;
  background: #111;
}

html.light .psc-preview {
  box-shadow: 0 32px 64px rgba(0,0,0,0.20), 0 0 0 1px rgba(0,0,0,0.10);
}

.psc-preview.visible {
  opacity: 1;
  transform: scale(1) translateZ(0);
}

.psc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.psc-slide.active { opacity: 1; }

/* Browser-Mockup im Vorschaufenster */
.psc-mock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.psc-mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: #1c1c1e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.psc-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.psc-mock-dot:nth-child(1) { background: #ff5f57; }
.psc-mock-dot:nth-child(2) { background: #febc2e; }
.psc-mock-dot:nth-child(3) { background: #28c840; }

.psc-mock-url {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-inline: 4px;
}

.psc-mock-screen {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Echtes Screenshot-Bild — wenn eingefügt */
.psc-mock-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.psc-mock-icon {
  font-size: 3rem;
  opacity: 0.7;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* ── Projektliste ── */
.psc { position: relative; }

.psc-row {
  position: relative;
  display: block;
  border-top: 1px solid var(--border);
  padding-block: 1.4rem;
  text-decoration: none;
  color: inherit;
}

.psc-row-bg {
  position: absolute;
  inset: 0 -1.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  opacity: 0;
  transform: scaleY(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

html.light .psc-row-bg { background: rgba(0,0,0,0.04); }

.psc-row:hover .psc-row-bg {
  opacity: 1;
  transform: scaleY(1);
}

.psc-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.psc-main { flex: 1; min-width: 0; }

.psc-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.psc-title { display: inline; font-size: inherit; font-weight: inherit; }

.psc-title-text {
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.psc-underline {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--text);
  transition: width 0.3s ease;
}

.psc-row:hover .psc-underline { width: 100%; }

.psc-arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--text-50);
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.psc-row:hover .psc-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.psc-main > p {
  font-size: 0.875rem;
  color: var(--text-50);
  line-height: 1.65;
  transition: color 0.22s ease;
}

.psc-row:hover .psc-main > p { color: var(--text-70); }

.psc-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.psc-cat {
  font-size: 0.75rem;
  color: var(--text-30);
  white-space: nowrap;
  transition: color 0.22s ease;
}

.psc-row:hover .psc-cat { color: var(--cyan); }

.psc-year {
  font-size: 0.70rem;
  font-family: monospace;
  color: var(--text-30);
  transition: color 0.22s ease;
}

.psc-row:hover .psc-year { color: var(--text-50); }

.psc-divider { border-top: 1px solid var(--border); }

/* Kein Hover-Vorschaufenster auf Touch-Geräten */
@media (hover: none) { .psc-preview { display: none; } }

@media (max-width: 600px) {
  .psc-meta { display: none; }
}

/* ============================================================
   SERP Mockup (SEO section – leistungen.html)
   ============================================================ */
.serp-mockup {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  font-size: 0.82rem;
  max-width: 100%;
}

.serp-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.serp-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.serp-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.serp-urlbar {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  color: var(--text-50);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.serp-body {
  background: #0d1117;
  padding: 1rem 1.2rem 1.2rem;
}

html.light .serp-body { background: #fff; }
html.light .serp-mockup { border-color: rgba(0,0,0,0.1); }
html.light .serp-chrome { background: #f1f3f4; border-color: rgba(0,0,0,0.08); }
html.light .serp-urlbar { background: rgba(0,0,0,0.06); color: #555; }
html.light .serp-dots span { background: rgba(0,0,0,0.15); }

.serp-search-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.serp-google-logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.serp-searchbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 0.4rem 0.9rem;
  color: var(--text);
  gap: 0.5rem;
}

html.light .serp-searchbox {
  background: #fff;
  border-color: rgba(0,0,0,0.15);
  color: #202124;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.serp-searchbox svg { opacity: 0.5; flex-shrink: 0; }

.serp-stats {
  font-size: 0.72rem;
  color: var(--text-30);
  margin-bottom: 0.85rem;
  padding-left: 0.1rem;
}

/* Results */
.serp-result {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 0.6rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  transition: background 0.2s;
}

.serp-result--first {
  background: rgba(6, 182, 212, 0.07);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.08);
}

html.light .serp-result--first {
  background: rgba(6, 182, 212, 0.05);
  border-color: rgba(6, 182, 212, 0.3);
}

.serp-result--dim {
  opacity: 0.35;
}

.serp-rank {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan);
  min-width: 20px;
  padding-top: 0.15rem;
  letter-spacing: 0.01em;
}

.serp-result--dim .serp-rank { color: var(--text-50); }

.serp-result-inner { flex: 1; min-width: 0; }

.serp-result-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.serp-favicon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.serp-favicon--gray {
  background: rgba(255,255,255,0.15);
  color: var(--text-70);
}

html.light .serp-favicon--gray { background: rgba(0,0,0,0.1); }

.serp-site {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
}

html.light .serp-site { color: #202124; }

.serp-url {
  font-size: 0.68rem;
  color: var(--text-50);
}

html.light .serp-url { color: #4d5156; }

.serp-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #7cb9f8;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.light .serp-title { color: #1a0dab; }

.serp-desc {
  font-size: 0.75rem;
  color: var(--text-50);
  line-height: 1.5;
}

html.light .serp-desc { color: #4d5156; }

.serp-desc strong { color: var(--text-70); font-weight: 500; }
html.light .serp-desc strong { color: #202124; }

/* ─────────────────────────────────────────────────────────
   Referenzen – Stacking Cards
   ───────────────────────────────────────────────────────── */
.stack-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
}

/* Card always dark – all text hardcoded white, independent of theme */
.stack-card {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 620px;
  border-radius: 20px;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  overflow: hidden;
  transform-origin: top center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.stack-card:hover {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 4px 20px rgba(0,0,0,0.5);
}
.stack-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--cyan));
  z-index: 2;
}

.stack-card-left {
  width: 42%;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
  background: var(--card-left-bg, transparent);
}

.stack-card-num {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
}

.stack-card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.stag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.18rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.72);
}

.stack-card-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
}

.stack-card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.68;
}

.stack-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.32);
  transition: color 280ms ease, text-decoration-color 280ms ease;
  width: fit-content;
}
.stack-card-link:hover {
  color: var(--card-accent, var(--cyan));
  text-decoration-color: var(--card-accent, var(--cyan));
}
.stack-card-link svg { transition: transform 280ms ease; }
.stack-card-link:hover svg { transform: translateX(4px); }

.stack-card-right {
  width: 58%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stack-card-emoji {
  font-size: 7rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 28px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
}
.stack-card:hover .stack-card-emoji { transform: scale(1.07); }
/* Fade-edge so left text blends into the gradient */
.stack-card-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0d0d0d 0%, transparent 26%);
  z-index: 0;
  pointer-events: none;
}

/* Per-project right-panel gradients */
.proj-bg-perzl     { background: linear-gradient(135deg, #b45309 0%, #7c2d12 100%); }
.proj-bg-atzberger { background: linear-gradient(135deg, #e01818 0%, #4a0000 100%); }
.proj-bg-wagner    { background: linear-gradient(135deg, #d07a8c 0%, #7a2c3c 100%); }
.proj-bg-gartenbau { background: linear-gradient(135deg, #15803d 0%, #052e16 100%); }
.proj-bg-putzfee   { background: linear-gradient(135deg, #0891b2 0%, #155e75 100%); }
.proj-bg-ksp       { background: linear-gradient(135deg, #f07030 0%, #7a3000 100%); }
.proj-bg-alexandra { background: linear-gradient(135deg, #e8a020 0%, #7a4800 100%); }
.proj-bg-toepfer   { background: linear-gradient(135deg, #1ab5b5 0%, #0e4f4f 100%); }
.proj-bg-zahnwolke { background: linear-gradient(135deg, #0284c7 0%, #0c4a6e 100%); }
.proj-bg-kurier    { background: linear-gradient(135deg, #4338ca 0%, #1e1b4b 100%); }
.proj-bg-ferienhof   { background: linear-gradient(135deg, #d4b040 0%, #7a5c00 100%); }
.proj-bg-hundeschule { background: linear-gradient(135deg, #5ab800 0%, #274e00 100%); }
.proj-bg-spvgg     { background: linear-gradient(135deg, #1d4ed8 0%, #1e1b4b 100%); }
.proj-bg-influently{ background: linear-gradient(135deg, #6637c9 0%, #2e1065 100%); }

/* Scroll counter */
#stack-counter {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  background: rgba(8,8,8,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
#stack-counter.visible { opacity: 1; }
#stack-counter span { color: var(--cyan); }

/* ── Logo & Corporate Design Section ───────────────────────── */
.logo-cd-board { border-radius: 20px; overflow: hidden; box-shadow: 0 4px 40px rgba(0,0,0,0.12); margin-bottom: 0.75rem; }
.logo-cd-board img { width: 100%; display: block; }
.logo-cd-caption { text-align:center; font-size:0.8rem; color:var(--text-50); font-style:italic; margin-bottom:2.5rem; }

.logo-cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 0;
}
.logo-cd-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo-cd-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.logo-cd-card-cta { border-style: dashed; cursor: pointer; }
.logo-cd-card-cta:hover { border-color: var(--cyan); border-style: solid; }
.logo-cd-top {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
}
html:not(.light) .logo-needs-bg {
  background: rgba(255,255,255,0.88) !important;
  border-radius: 10px 10px 0 0;
}
.logo-cd-mono {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 800; letter-spacing: -0.03em;
}
.logo-cd-img {
  max-width: 78%; max-height: 68px;
  width: auto; height: auto;
  object-fit: contain;
}
.logo-cd-body { padding: 1rem 1.25rem 1.25rem; }
.logo-cd-name { font-weight: 700; font-size: 0.88rem; color: var(--text); margin-bottom: 0.5rem; line-height: 1.35; }
.logo-cd-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.logo-cd-tag {
  font-size: 0.64rem; font-weight: 600;
  padding: 0.18rem 0.55rem; border-radius: 50px;
  border: 1px solid currentColor;
  text-decoration: none;
}
@media (max-width: 900px) { .logo-cd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .logo-cd-grid { grid-template-columns: 1fr; } }

/* Testimonials Carousel (referenzen page) */
.testimonials-carousel { position: relative; }
.testimonials-track-wrap { overflow: hidden; border-radius: 20px; }
.testimonials-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testimonial-card {
  flex: 0 0 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.35;
  margin-bottom: 0.25rem;
  font-family: Georgia, serif;
}
.testimonial-stars { color: var(--yellow, #facc15); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.testimonial-text  { flex: 1; font-size: 0.95rem; color: var(--text-70); line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { font-size: 0.82rem; color: var(--text-50); margin-top: auto; }
.testimonial-author strong { display: block; color: var(--text); font-style: normal; font-size: 0.92rem; margin-bottom: 0.15rem; }
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.carousel-btn:hover { background: var(--cyan); border-color: var(--cyan); color: #000; }
.carousel-dots { display: flex; gap: 0.5rem; align-items: center; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  border: none; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: var(--cyan); transform: scale(1.4); }

/* Lightbox */
.lb-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.lb-backdrop.open { opacity: 1; pointer-events: all; }
.lb-panel {
  position: relative;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  overflow: hidden;
  max-width: 660px; width: 100%;
  transform: scale(0.9);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.lb-backdrop.open .lb-panel { transform: scale(1); }
.lb-thumb {
  width: 100%; aspect-ratio: 16/8;
  display: flex; align-items: flex-end; justify-content: center;
  position: relative; overflow: hidden; padding: 1.25rem 1.5rem 0;
}

.lb-devices {
  display: flex; align-items: flex-end; gap: 0.75rem;
  width: 100%; height: 100%;
}

/* Laptop */
.lb-mock-laptop {
  flex: 1; display: flex; flex-direction: column;
  border-radius: 8px 8px 0 0; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: #0e0e0e;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.lb-mock-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; background: #1e1e1e;
  border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0;
}
.lb-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.lb-mock-url {
  font-size: 0.58rem; color: rgba(255,255,255,0.35);
  margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-mock-screen { aspect-ratio: 16/9; overflow: hidden; background: #111; }
.lb-mock-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* Phone */
.lb-mock-phone {
  width: 72px; flex-shrink: 0; border-radius: 12px 12px 0 0;
  border: 1.5px solid rgba(255,255,255,0.18); border-bottom: none;
  background: #0e0e0e; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  margin-bottom: 0;
}
.lb-mock-phone-notch {
  height: 9px; background: #1e1e1e;
  display: flex; align-items: center; justify-content: center;
}
.lb-mock-phone-notch::before {
  content: ''; width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.12);
}
.lb-mock-phone-screen { aspect-ratio: 9/16; overflow: hidden; background: #111; }
.lb-mock-phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lb-thumb::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--lb-accent, var(--cyan));
}
.lb-body { padding: 1.75rem 2rem 2rem; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.lb-tag {
  font-size: 0.7rem; font-weight: 500;
  padding: 0.18rem 0.65rem; border-radius: 9999px;
  background: rgba(6,182,212,0.12); border: 1px solid rgba(6,182,212,0.3);
  color: var(--cyan);
}
.lb-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; font-family: var(--font-heading); color: #ffffff; }
.lb-desc  { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 1.5rem; }
.lb-visit {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.3rem; border-radius: 9999px;
  background: var(--cyan); color: #000;
  font-weight: 600; font-size: 0.85rem; text-decoration: none;
  transition: opacity 280ms ease;
}
.lb-visit:hover { opacity: 0.82; }
.lb-close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  width: 2.1rem; height: 2.1rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 280ms ease; z-index: 10;
}
.lb-close:hover { background: rgba(255,255,255,0.15); }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 280ms ease; z-index: 1001;
}
.lb-nav:hover { background: rgba(255,255,255,0.18); }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

/* Responsive */
@media (max-width: 900px) {
  .stack-card { height: auto; flex-direction: column; }
  .stack-card-left  { width: 100%; padding: 1.75rem 1.5rem; }
  .stack-card-right { width: 100%; height: 200px; }
  .stack-card-emoji { font-size: 4.5rem; }
  .stack-card-title { font-size: 1.25rem; }
  .testimonial-card { padding: 2rem 1.5rem; }
  .lb-nav { display: none; }
  .lb-body { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .stack-sticky { position: relative; height: auto; padding: 1rem var(--pad); }
  .stack-card { transform: none !important; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
  #stack-counter { display: none; }
}

/* ── Browser Mockup im Stack-Card rechten Panel ─────────── */
.stack-card-mockup {
  position: relative;
  z-index: 1;
  width: calc(100% - 2rem);
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 2px 10px rgba(0,0,0,0.45);
}

.mockup-bar {
  background: #1e1e1e;
  padding: 0 0.8rem;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.mockup-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mockup-dot-r { background: #ff5f57; }
.mockup-dot-y { background: #febc2e; }
.mockup-dot-g { background: #28c840; }

.mockup-url {
  flex: 1;
  margin-left: 0.4rem;
  background: #111;
  border-radius: 4px;
  height: 17px;
  padding: 0 0.5rem;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font);
}

.mockup-screen {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}
.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 900px) {
  .stack-card-mockup { width: calc(100% - 1rem); height: calc(100% - 1rem); }
}

/* ─────────────────────────────────────────────────────────────
   Legal Pages (Impressum, Datenschutz)
───────────────────────────────────────────────────────────── */
.legal-content { max-width: 680px; }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.5rem; }
.legal-content h3 { font-size: 0.97rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-content p,
.legal-content address,
.legal-content li { font-size: 0.9rem; color: var(--text-70); line-height: 1.8; font-style: normal; }
.legal-content ul { padding-left: 1.25rem; list-style: disc; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-content a { color: var(--cyan); }

/* ─────────────────────────────────────────────────────────────
   Über Mich – Values Grid
───────────────────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  transition: border-color var(--base);
}
.value-card:hover { border-color: var(--border-hover); }
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--cyan);
}

.value-icon svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(6,182,212,0.65));
}
.value-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.875rem; color: var(--text-70); line-height: 1.7; }

/* ─────────────────────────────────────────────────────────────
   Über Mich – Skills & Timeline
───────────────────────────────────────────────────────────── */
.skills-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.skill-pill {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border-cyan);
  font-size: 0.82rem;
  color: var(--cyan);
  background: rgba(6,182,212,0.06);
}

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 72px 26px 1fr;
  align-items: start;
  padding-bottom: 2.75rem;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 84px;
  top: 18px;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, rgba(6,182,212,0.4), var(--border));
}
.timeline-year {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  text-align: right;
  padding-top: 2px;
  letter-spacing: 0.02em;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--bg);
  justify-self: center;
  margin-top: 2px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
  flex-shrink: 0;
}
.timeline-item:first-child .timeline-dot { background: var(--cyan); }
.timeline-content { padding-left: 1rem; }
.timeline-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.timeline-content p { font-size: 0.875rem; color: var(--text-70); line-height: 1.65; }

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 52px 26px 1fr; }
  .timeline-item:not(:last-child)::before { left: 64px; }
  .timeline-year { font-size: 0.7rem; }
}

/* ─────────────────────────────────────────────────────────────
   Blog – Kategorien & Featured Card
───────────────────────────────────────────────────────────── */
.blog-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.cat-btn {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-50);
  transition: all var(--base);
  cursor: pointer;
  background: transparent;
}
.cat-btn:hover, .cat-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(6,182,212,0.07);
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 3rem;
  transition: border-color var(--base);
}
.blog-featured-card:hover { border-color: var(--border-hover); }
.blog-featured-thumb {
  aspect-ratio: auto;
  min-height: 280px;
}
.blog-featured-thumb .blog-thumb-inner {
  width: 100%;
  height: 100%;
  min-height: 280px;
  font-size: 4rem;
}
.blog-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-body .blog-cat {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
  background: rgba(6,182,212,0.15);
  color: var(--cyan);
  border: 1px solid rgba(6,182,212,0.3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.blog-featured-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.blog-featured-body p {
  font-size: 0.9rem;
  color: var(--text-70);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .blog-featured-card { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   Blog-Artikel – Hero, Layout, ToC, Content
───────────────────────────────────────────────────────────── */
.article-hero {
  background: var(--bg-2);
  padding: calc(var(--nav-h, 72px) + 4rem) 0 4.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(6,182,212,0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(139,92,246,0.07) 0%, transparent 55%);
  pointer-events: none;
}
.article-hero-inner { position: relative; z-index: 1; }
.article-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-50);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.article-hero-back:hover { color: var(--cyan); }
.article-hero-cat {
  display: inline-block;
  background: rgba(6,182,212,0.1);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1.1rem;
  max-width: 780px;
}
.article-hero-excerpt {
  font-size: 1rem;
  color: var(--text-70);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-50);
}
.article-hero-meta span { display: flex; align-items: center; gap: 0.35rem; }

.article-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.toc-sidebar { position: sticky; top: 100px; }
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
}
.toc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-50);
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
}
.toc-item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.83rem;
  color: var(--text-70);
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 0.1rem;
}
.toc-item:hover { background: rgba(6,182,212,0.06); color: var(--text); }
.toc-item.active { background: rgba(6,182,212,0.1); color: var(--cyan); font-weight: 600; }
.toc-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.toc-cta {
  font-size: 0.78rem;
  color: var(--text-50);
  padding: 0 0.75rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.article-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 110px;
}
.article-content p {
  color: var(--text-70);
  line-height: 1.9;
  margin-bottom: 1.25rem;
  font-size: 0.975rem;
}
.article-content ul {
  color: var(--text-70);
  line-height: 1.85;
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.975rem;
}
.article-content ul li { margin-bottom: 0.5rem; }
.article-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
}
.article-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.article-author {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.article-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.article-author-name { font-weight: 700; font-size: 0.9rem; }
.article-author-role { font-size: 0.78rem; color: var(--text-50); }
.article-cta-box {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(139,92,246,0.06));
  border: 1px solid var(--border-cyan);
  border-radius: 20px;
  text-align: center;
}
.article-cta-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.article-cta-box p { font-size: 0.87rem; color: var(--text-70); margin-bottom: 1.25rem; line-height: 1.65; }

.article-beitragsbild {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.article-beitragsbild img { width: 100%; height: auto; display: block; }
.article-beitragsbild .blog-thumb-inner {
  width: 100%;
  aspect-ratio: 16/7;
  font-size: 5rem;
  border-radius: 0;
}

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .toc-sidebar { position: static; }
  .toc-box { display: none; }
}
