/* --- Fonts (self-hosted, DSGVO-konform) ----------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* â”€â”€â”€ Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --bg:           #F8FAFC;
  --surface:      #FFFFFF;
  --surface-2:    #F1F5F9;
  --text:         #0F172A;
  --text-muted:   #475569;
  --border:       #E2E8F0;
  --primary:      #2563EB;
  --primary-hover:#1D4ED8;
  --primary-soft: #DBEAFE;
  --accent:       #7C3AED;
  --accent-soft:  #EDE9FE;
  --gradient-brand: linear-gradient(120deg, #2563EB 0%, #7C3AED 100%);
  --shadow-sm:    0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md:    0 4px 14px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg:    0 18px 40px -12px rgba(15,23,42,0.18);
  --radius:       12px;
  --radius-sm:    8px;
  --max-width:    1100px;
  --gap:          clamp(1.5rem, 4vw, 3rem);
}

/* â”€â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition:
    background 800ms ease,
    background-color 800ms ease,
    color 800ms ease,
    border-color 800ms ease,
    box-shadow 800ms ease,
    fill 800ms ease,
    stroke 800ms ease !important;
}

html { scroll-behavior: smooth; background: var(--bg); zoom: 1.5; overflow-x: hidden; }
section[id], .section-anchor { scroll-margin-top: 64px; }

/* Modern scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.4s ease;
}
html.is-scrolling { scrollbar-color: var(--primary) transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
  transition: background 0.4s ease;
}
html.is-scrolling ::-webkit-scrollbar-thumb { background: var(--primary); background-clip: padding-box; }
html.is-scrolling ::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); background-clip: padding-box; }
body {
  position: relative;
  overflow-x: clip;
  background: transparent;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Skip-Link (Barrierefreiheit) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* --- Ambient aurora layer (drifting gradient orbs behind the page) --- */
body::before {
  content: "";
  position: fixed;
  inset: -15vh -15vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 38% at 14% 18%, color-mix(in srgb, var(--primary) 24%, transparent) 0%, transparent 72%),
    radial-gradient(34% 42% at 86% 26%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 72%),
    radial-gradient(40% 38% at 52% 88%, color-mix(in srgb, var(--primary) 16%, transparent) 0%, transparent 70%);
  filter: blur(64px) saturate(118%);
  opacity: 0.85;
  animation: aurora-drift 30s ease-in-out infinite alternate;
}
[data-theme="dark"] body::before {
  opacity: 1;
  filter: blur(72px) saturate(135%);
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.2%, -1.8%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 1.6%, 0) scale(1.05); }
}

/* â”€â”€â”€ Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* â”€â”€â”€ Site Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.3s ease, box-shadow 0.3s ease,
              backdrop-filter 0.3s ease;
}
.site-header.header--scrolled {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  line-height: 1.2;
  gap: 0.5rem;
}
.brand-logo {
  height: 60px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
[data-theme="dark"] .brand-logo {
  content: url('logo_weberwebdesign_darkmode.webp');
}
.brand .accent { color: var(--primary); }
.brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: none;
}
.site-nav {
  display: flex;
  gap: 0.12rem;
  flex: 1;
}
.site-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--primary); background: var(--primary-soft); }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.nav-toggle:hover { background: var(--primary-soft); }
.nav-toggle:hover span { background: var(--primary); }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s, background 0.15s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Burger dropdown */
.nav-burger-wrap { position: relative; }
.nav-burger-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  flex-direction: column;
  min-width: 180px;
  padding: 0.4rem;
  z-index: 200;
}
.nav-burger-menu.nav--open { display: flex; }
.nav-burger-menu a {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-burger-menu a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-burger-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.3rem 0.75rem;
}
.nav-burger-menu button.footer-legal-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-burger-menu button.footer-legal-btn:hover { color: var(--primary); background: var(--primary-soft); }

/* â”€â”€â”€ Hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(75% 60% at 50% -12%, color-mix(in srgb, var(--primary) 9%, transparent) 0%, transparent 68%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 48vw; height: 48vw;
  max-width: 680px; max-height: 680px;
  top: -12%; left: -8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 60%, transparent) 0%, transparent 66%);
  animation: hero-blob-a 24s ease-in-out infinite alternate;
}
.hero::after {
  width: 42vw; height: 42vw;
  max-width: 620px; max-height: 620px;
  top: -6%; right: -6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 66%);
  animation: hero-blob-b 28s ease-in-out infinite alternate;
}
@media (hover: none), (max-width: 768px) {
  .hero::before, .hero::after { display: none; }
  .neural-canvas { display: none; }
}
[data-theme="dark"] .hero::before,
[data-theme="dark"] .hero::after { opacity: 0.7; }
.hero > .container { position: relative; z-index: 1; }
@keyframes hero-blob-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(12%, 10%, 0) scale(1.12); }
}
@keyframes hero-blob-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-10%, 8%, 0) scale(1.1); }
}
.hero-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 18ch;
  color: var(--text);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 0.75rem;
}
.hero-sub--sm {
  font-size: 0.95rem;
  margin-bottom: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.grad-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title .grad-text { white-space: nowrap; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  margin-top: 2.5rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-stat__num {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* â”€â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); border-color: #CBD5E1; }
.btn-gradient {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  box-shadow: 0 2px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn-gradient:hover {
  filter: brightness(1.12);
  box-shadow: 0 4px 24px color-mix(in srgb, var(--primary) 50%, transparent);
}
.btn-glass {
  background: rgba(255,255,255,0.18);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.65);
}
[data-theme="dark"] .btn-glass {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
}
[data-theme="dark"] .btn-glass:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.30);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* â”€â”€â”€ Section common â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-header { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.section-sub { font-size: 1rem; color: var(--text-muted); margin-top: 0.5rem; margin-bottom: 2rem; }

/* Soft gradient section dividers (replace flat 1px borders) */
.offers-section,
.ai-workflow-section,
.ki-kompass-section,
.projects-section,
.more-section,
.workflow-section,
.skills-section,
.about-section {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--primary) 32%, var(--border)) 22%,
    color-mix(in srgb, var(--accent) 32%, var(--border)) 78%,
    transparent 100%
  ) 1;
}

/* â”€â”€â”€ Competency Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.offers-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}
.offers-section .section-header { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.offer-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--primary) 18%, transparent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.offer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--primary) 45%, transparent), var(--shadow-md);
  border-color: transparent;
}
.offer-card:hover::before { opacity: 1; }
.offer-card:hover::after  { opacity: 1; }

/* Accent variant â€” Individuelle Umsetzung */
.offer-card--accent {
  background: var(--surface);
}
.offer-card--accent::after { background: linear-gradient(120deg, var(--accent), var(--primary)); }
.offer-card--accent .offer-icon { color: var(--accent); background: var(--accent-soft); }
.offer-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
}
.offer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  color: var(--primary);
  background: var(--primary-soft);
}
.offer-icon svg { width: 23px; height: 23px; }
.offer-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.offer-audience {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.offer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.offer-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.offer-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}
.offer-card--accent .offer-list li::before {
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}
.offer-cta {
  margin-top: auto;
  width: 100%;
}

/* â”€â”€â”€ Featured Projects â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.projects-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--border);
}
.projects-section .section-header { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.project-card {
  display: flex;
  gap: var(--gap);
  align-items: stretch;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.project-card:last-child { margin-bottom: 0; }
.project-card--reversed { flex-direction: row-reverse; }

/* Media Panel */
.project-media {
  flex: 0 0 55%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e2e8f0;
  min-height: 280px;
  position: relative;
  transition: box-shadow 0.3s ease;
}
.project-card:hover .project-media {
  box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--primary) 50%, transparent);
}
.project-media video,
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-media img { min-height: 280px; }

/* Screenshot Gallery */
.ki-kompass-placeholder {
  background: linear-gradient(135deg, #0f2a4a 0%, #1d4ed8 55%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ki-kompass-placeholder::after {
  content: "KI-Kompass";
  color: rgba(255,255,255,0.18);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

/* Screenshot Gallery */
.screenshot-gallery { background: #1e293b; cursor: default; }
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;
  transition: background 0.2s;
}
.gallery-btn:hover { background: rgba(0,0,0,0.75); }
.gallery-btn--prev { left: 0.5rem; }
.gallery-btn--next { right: 0.5rem; }
.gallery-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-dot.active { background: #fff; }
.screenshot-gallery--contain { background: #f1f5f9; }
[data-theme="dark"] .screenshot-gallery--contain { background: #1e293b; }
.screenshot-gallery--contain .gallery-track img {
  object-fit: contain;
  background: transparent;
}

/* Info Panel */
.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
  gap: 1rem;
}
.project-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.project-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}
.project-desc {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
  max-width: 46ch;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
}
.tag--primary {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
  overflow: visible;
}

.project-hint {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.project-hint code {
  font-family: monospace;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-size: 0.85em;
}

/* --- Project details (collapsible nerd section) ----- */
.project-details {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.project-details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.project-details > summary::before {
  content: '▶';
  font-size: 0.65rem;
  transition: transform 0.2s;
}
.project-details[open] > summary::before {
  transform: rotate(90deg);
}
.project-details > summary::-webkit-details-marker { display: none; }
.project-details__body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--surface);
}
.project-details__body p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.project-details__body strong {
  color: var(--text);
}
.stl-downloads {
  position: relative;
}
.stl-downloads summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.stl-downloads summary::-webkit-details-marker { display: none; }
.stl-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  display: flex;
  flex-direction: column;
  min-width: 220px;
  overflow: hidden;
}
.stl-list a {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  white-space: nowrap;
}
.stl-list a:last-child { border-bottom: none; }
.stl-list a:hover { background: var(--primary-soft); color: var(--primary); }

/* â”€â”€â”€ More Projects â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.more-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}
.more-section .section-title { margin-bottom: 0; }
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.more-card {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.more-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--primary) 16%, transparent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.more-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.more-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--primary) 42%, transparent), var(--shadow-md);
  border-color: transparent;
}
.more-card:hover::before { opacity: 1; }
.more-card:hover::after  { opacity: 1; }
.more-card__media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
}
.more-card__media .gallery-track {
  height: 100%;
}
.more-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.more-card:hover .more-card__media img { transform: scale(1.03); }
.more-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.more-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.more-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* â”€â”€â”€ Workflow â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.workflow-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.workflow-section .section-header { text-align: center; }
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.workflow-step { text-align: center; }
.step-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.6rem;
  object-fit: contain;
}
[data-theme="dark"] .step-icon { filter: invert(1) hue-rotate(210deg) brightness(0.92) saturate(1.1); }
.step-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-soft);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 22ch;
  margin-inline: auto;
}

/* --- FAQ ---------------------------------------------------- */
.faq-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}
.faq-section .section-header { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-question {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.15s ease;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] > .faq-question { color: var(--primary); }
.faq-item[open] > .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem 1.4rem 0;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.97rem;
  max-width: 68ch;
}

/* â”€â”€â”€ Skills â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.skills-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}
.skills-section .section-title { margin-bottom: 2rem; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.skills-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.skills-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skills-ref-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
  transition: opacity 0.15s;
}
.skills-ref-link:hover { opacity: 0.75; text-decoration: underline; }

/* â”€â”€â”€ About â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.about-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.about-inner { max-width: 680px; }
.about-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 1rem;
}
.about-text--lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 1.25rem;
}

/* â”€â”€â”€ Contact â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.contact-section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  text-align: center;
}
.contact-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.contact-btn { font-size: 1rem; padding: 0.85rem 2rem; }

/* Request block (Anfrage-Optionen) */
.request-block {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.request-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.request-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto 1.2rem;
  max-width: 46ch;
}
.request-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.request-option {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.request-option:hover,
.request-option:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  transform: translateY(-2px);
}

/* â”€â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.home-page .site-footer {
  border-top: 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { font-weight: 700; font-size: 0.95rem; }
.footer-brand .accent { color: var(--primary); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-legal-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}
.footer-legal-btn:hover { color: var(--text); }

/* â”€â”€â”€ Legal panels â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.legal-panel {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  animation: fadeIn 0.2s ease;
}
.legal-panel__inner { max-width: 780px; }
.legal-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.legal-panel p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.legal-panel a { color: var(--primary); }
.legal-panel a:hover { text-decoration: underline; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* â”€â”€â”€ Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.modal--open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); }
.modal-inner {
  position: relative;
  z-index: 1;
  margin: auto;
  width: min(960px, 96vw);
  height: min(600px, 90vh);
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: inherit;
}
.modal-close:hover { background: rgba(0,0,0,0.85); }
#game-frame { width: 100%; height: 100%; border: none; }


/* ─── AI-native Arbeitsweise ────────────────────────────────── */
.ai-workflow-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.ai-workflow-inner {
  max-width: 72ch;
}
.ai-workflow-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
.ai-workflow-body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.ai-workflow-body p:last-child { margin-bottom: 0; }

/* ─── System-Teaser ─────────────────────────────────────────── */
/* REGEL: Immer weiß/solid — nie glass. Steht auf Home-Page nach  */
/* FAQ (glass) → muss weiß sein. Nicht durch ai-workflow ersetzen.*/
.system-teaser-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--surface);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--primary) 32%, var(--border)) 22%,
    color-mix(in srgb, var(--accent) 32%, var(--border)) 78%,
    transparent 100%
  ) 1;
}

/* ─── Project Focus Badge ────────────────────────────────────── */
.project-focus-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.6rem;
}

/* KI-Kompass Section */
.ki-kompass-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
}
.ki-kompass-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.ki-kompass-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.ki-kompass-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.ki-kompass-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ki-kompass-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}
.ki-kompass-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.ki-kompass-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ki-kompass-visual {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(15,23,42,0.08);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.ki-kompass-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--primary) 45%, transparent);
}
.ki-kompass-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  transition: transform 0.4s ease;
}
.ki-kompass-visual:hover img {
  transform: scale(1.03);
}
@media (max-width: 1024px) {
  .ki-kompass-inner {
    grid-template-columns: 1fr;
  }
  .ki-kompass-visual {
    order: -1;
    max-width: 480px;
    margin-inline: auto;
  }
}

/* ─── KI-Kompass Kids Freebie ─── */
.ki-kompass-kids {
  background: var(--surface);
}
.ki-kompass-kids .ki-kompass-visual {
  background: var(--primary-soft);
}
.ki-kompass-kids .ki-kompass-visual img {
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

/* ─── KI-Kompass Kids · PIX Bonus ─── */
.ki-kompass-bonus {
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ki-kompass-bonus__title {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 0.25rem 0 0.6rem;
}
.ki-kompass-bonus__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.1rem;
}
.ki-kompass-bonus .ki-kompass-actions {
  margin: 0;
}

/* ─── Edition Carousel ─── */
/* ─── Edition Carousel ─── */
.edition-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(15,23,42,0.08);
  height: 420px;
}
.edition-carousel .gallery-track {
  width: 100%;
  height: 100%;
}
.gallery-slide.edition-card {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.edition-card--featured {
  border-color: var(--primary);
}
[data-theme="dark"] .edition-card--featured {
  background: rgba(59,130,246,0.06);
}
.edition-card__img {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--primary-soft);
}
.edition-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.edition-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.25rem 1.5rem 1.5rem;
}
.edition-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.2);
}
.edition-badge--featured {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}
.edition-badge--license {
  background: #dcfce7;
  color: #166534;
  border-color: rgba(22,101,52,0.2);
}
[data-theme="dark"] .edition-badge--license {
  background: rgba(134,239,172,0.12);
  color: #86efac;
  border-color: rgba(134,239,172,0.25);
}
.edition-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.edition-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}
.edition-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.35rem;
  position: relative;
  line-height: 1.4;
}
.edition-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.edition-btn-soon {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.edition-carousel .gallery-btn {
  background: rgba(0,0,0,0.18);
  color: var(--text);
  border: 1px solid var(--border);
}
.edition-carousel .gallery-btn:hover {
  background: rgba(0,0,0,0.32);
}
.edition-carousel .gallery-dots {
  bottom: 0.65rem;
}
.edition-carousel .gallery-dot {
  background: var(--border);
}
.edition-carousel .gallery-dot.active {
  background: var(--primary);
}

/* ─── KI-Quiz ───────────────────────────────────────────────── */
.quiz-panel {
  height: auto;
  min-height: 320px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 1.75rem;
  overflow: visible;
}
.quiz-panel-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.quiz-panel-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.quiz-state--hidden { display: none !important; }
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.quiz-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}
.quiz-progress-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.quiz-question-text {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.9rem;
  line-height: 1.5;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.4;
}
.quiz-option:hover:not([disabled]) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.quiz-option--correct {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
  font-weight: 600;
}
.quiz-option--wrong {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}
.quiz-option--reveal {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
}
[data-theme="dark"] .quiz-option--correct { background: rgba(22,163,74,0.15)  !important; color: #4ade80 !important; }
[data-theme="dark"] .quiz-option--wrong   { background: rgba(220,38,38,0.15)   !important; color: #f87171 !important; }
[data-theme="dark"] .quiz-option--reveal  { background: rgba(22,163,74,0.12)  !important; color: #4ade80 !important; }
.quiz-option[disabled] { cursor: default; }
.quiz-next-btn { margin-top: 0.25rem; }
.quiz-result-score {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.quiz-result-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.quiz-result-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ─── Dark mode ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0F172A;
  --surface:      #1E293B;
  --surface-2:    #172033;
  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --border:       #334155;
  --primary:      #3B82F6;
  --primary-hover:#2563EB;
  --primary-soft: rgba(59, 130, 246, 0.12);
  --accent:       #A78BFA;
  --accent-soft:  rgba(167, 139, 250, 0.14);
  --gradient-brand: linear-gradient(120deg, #3B82F6 0%, #A78BFA 100%);
  --shadow-lg:    0 18px 40px -12px rgba(0,0,0,0.5);
}
[data-theme="dark"] .site-header {
  background: transparent;
}
[data-theme="dark"] .site-header.header--scrolled {
  background: rgba(15, 23, 42, 0.92);
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.theme-btn:hover { color: var(--primary); background: var(--primary-soft); }

/* â”€â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .workflow-step { text-align: left; }
  .step-text { max-width: 100%; margin-inline: 0; }
}

@media (max-width: 1024px) {
  /* Scale down to 80% on tablets/phones — keeps zoom:1.5 only for ≥1025px desktop */
  html { zoom: 1.3; }
}

@media (max-width: 768px) {
  /* Remove desktop zoom so content renders at normal scale on phones */

  /* ── Hero title: nowrap overflows narrow viewports ── */
  .hero-title .grad-text { white-space: normal; }

  /* ── General overflow safeguards ── */
  .section-title,
  .hero-title,
  .project-title,
  .offer-title,
  .catalog-callout__title { overflow-wrap: break-word; }

  /* Buttons never exceed their container */
  .btn { max-width: 100%; }

  /* Catalog callout: stack button below text */
  .catalog-callout { grid-template-columns: 1fr; }
  .catalog-callout .btn { align-self: flex-start; }  .project-card,
  .project-card--reversed { flex-direction: column; }
  .project-media { flex: none; min-height: 200px; width: 100%; }
  .project-desc { max-width: 100%; }

  .offer-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .workflow-steps { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Reduce icon size on mobile */
  .step-icon { width: 64px; height: 64px; }

  /* Smaller logo on mobile */
  .brand-logo { height: 40px; }

  /* Hide contact logo on mobile — saves space, not needed on small screens */
  .contact-logo { display: none; }

  /* Sections: tighter vertical padding */
  .offers-section,
  .projects-section,
  .more-section,
  .workflow-section,
  .skills-section,
  .about-section { padding-top: clamp(2rem, 6vw, 3rem); padding-bottom: clamp(2rem, 6vw, 3rem); }
}

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { justify-content: center; }

  /* Full-width buttons in hero on very small screens */
  .hero-actions { align-items: stretch; }
}

/* ─── Header nav collapse (9 Items brauchen Platz) ─── */
@media (max-width: 1160px) {
  .site-nav a { padding: 0.4rem 0.5rem; font-size: 0.82rem; }
  .nav-toggle { display: flex; }
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body::before,
  .hero::before,
  .hero::after { animation: none !important; }
  .offer-card::before,
  .more-card::before { display: none !important; }
}

/* --- KI-Schulungen Card ----------------------------------------- */
.more-card__media--kischulungen {
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kischulungen-placeholder-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 1rem;
}
.kischulungen-topics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.kischulungen-topics li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.kischulungen-topics li::before {
  content: '\00B7';
  position: absolute;
  left: 0.2rem;
  color: var(--primary);
  font-weight: 700;
}

/* ─── Nach oben (Back to top) ─── */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.2s ease;
  z-index: 90;
}
.to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.to-top:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 16px 32px -10px color-mix(in srgb, var(--primary) 55%, transparent);
}
.to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ── Cookie Banner ──────────────────────────────────────────── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: .875rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
}
.show-cookie-banner .cookie-banner { display: block; }
.cookie-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .75rem 1.25rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  font-size: .875rem;
  color: var(--text-muted);
  min-width: 200px;
}
.cookie-banner__link {
  background: none;
  border: none;
  padding: 0;
  font-size: .875rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
}
.cookie-banner__link:hover { color: var(--primary-hover, #1D4ED8); }
.cookie-banner__btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .5rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.cookie-banner__btn:hover { background: var(--primary-hover, #1D4ED8); }
@media (max-width: 480px) {
  .to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 0.2s ease, visibility 0.2s; transform: none; }
  .to-top--visible,
  .to-top:hover { transform: none; }
}

/* ======================================================================
   WEBER CLEAN FINAL LAYER
   Konsolidierte finale Regeln: Neural-Hero, Education-Dropdown,
   alternierende Sektionen, Glass-Karten und kombinierter Scrollbutton.
   Keine historischen Zwischen-Overrides.
   ====================================================================== */

/* --- Neural Hero ------------------------------------------------------ */
.home-page .hero--neural {
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: flex-start;
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
  background: transparent;
}

.home-page .hero--neural::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 0;
  filter: none;
  opacity: 1;
  pointer-events: none;
  background:
    radial-gradient(42% 44% at 13% 20%, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 72%),
    radial-gradient(36% 42% at 84% 18%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 74%),
    radial-gradient(42% 38% at 72% 88%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 72%),
    linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--primary-soft) 32%, var(--bg)) 48%, color-mix(in srgb, var(--accent-soft) 26%, var(--bg)) 100%);
  animation: none;
}

.home-page .hero--neural::after { display: none; }

[data-theme="dark"] .home-page .hero--neural::before {
  background:
    radial-gradient(42% 44% at 13% 20%, color-mix(in srgb, var(--primary) 20%, transparent) 0%, transparent 74%),
    radial-gradient(36% 42% at 84% 18%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 76%),
    radial-gradient(42% 38% at 72% 88%, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 72%),
    linear-gradient(135deg, #0b1220 0%, #0f172a 48%, #111827 100%);
}

.home-page .hero--neural .neural-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  opacity: 0.74;
}

[data-theme="dark"] .home-page .hero--neural .neural-canvas { opacity: 0.82; }
.home-page .hero--neural > .container { position: relative; z-index: 2; width: 100%; }
.home-page .hero-stats { display: none; }

/* --- Education Dropdown ---------------------------------------------- */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown__toggle:hover,
.nav-dropdown:focus-within .nav-dropdown__toggle,
.nav-dropdown.nav-dropdown--open .nav-dropdown__toggle { color: var(--text); background: var(--primary-soft); }
.nav-dropdown__icon { width: 15px; height: 15px; transition: transform 0.18s ease; }
.nav-dropdown:hover .nav-dropdown__icon,
.nav-dropdown:focus-within .nav-dropdown__icon,
.nav-dropdown.nav-dropdown--open .nav-dropdown__icon { transform: rotate(180deg); }
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 120;
  min-width: 220px;
  padding: 0.45rem;
  display: grid;
  gap: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.nav-dropdown--open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown__menu a {
  display: block;
  padding: 0.58rem 0.7rem;
  border-radius: 11px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible { color: var(--primary); background: var(--primary-soft); }
[data-theme="dark"] .nav-dropdown__menu {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

/* --- Finale Startseiten-Sektionslogik ------------------------------- */
.home-page .offers-section,
.home-page .ai-workflow-section,
.home-page .projects-section,
.home-page .more-section,
.home-page .workflow-section,
.home-page .faq-section,
.home-page .skills-section,
.home-page .about-section,
.home-page .contact-section,
.home-page .system-teaser-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-bottom: 0;
  border-image: none;
  overflow: visible;
}

/* Uniform viewport-höhe pro Sektion — flex-column damit .container volle Breite behält */
.home-page .offers-section,
.home-page .ai-workflow-section,
.home-page .workflow-section,
.home-page .faq-section,
.home-page .system-teaser-section,
.home-page .contact-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-page .offers-section,
.home-page .projects-section,
.home-page .workflow-section,
.home-page .about-section {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .home-page .offers-section,
[data-theme="dark"] .home-page .projects-section,
[data-theme="dark"] .home-page .workflow-section,
[data-theme="dark"] .home-page .about-section {
  background: #0f172a;
  border-bottom-color: #334155;
}

.home-page .ai-workflow-section,
.home-page .more-section,
.home-page .skills-section,
.home-page .faq-section,
.home-page .contact-section {
  background: transparent;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.home-page .ai-workflow-section > .container,
.home-page .more-section > .container,
.home-page .skills-section > .container,
.home-page .faq-section > .container,
.home-page .contact-section > .container {
  border-radius: clamp(22px, 3vw, 34px);
  padding: clamp(1.4rem, 2.2vw, 2.1rem);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(5.9px);
  -webkit-backdrop-filter: blur(5.9px);
  overflow: hidden;
}

[data-theme="dark"] .home-page .ai-workflow-section > .container,
[data-theme="dark"] .home-page .more-section > .container,
[data-theme="dark"] .home-page .skills-section > .container,
[data-theme="dark"] .home-page .faq-section > .container,
[data-theme="dark"] .home-page .contact-section > .container {
  background: rgba(15, 23, 42, 0.34);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.22);
}

/* System-Teaser: weiß/solid auf Home-Page. Nicht entfernen. */
.home-page .system-teaser-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border: none;
  border-image: none;
  overflow: visible;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .home-page .system-teaser-section {
  background: #0f172a;
  border-bottom-color: #334155;
}

/* --- Glass-Karten ---------------------------------------------------- */
.offer-card,
.project-card,
.more-card,
.ki-kompass-visual,
.quiz-panel,
.request-block,
.project-details,
.edition-card,
.stl-list,
.modal-inner,
.legal-panel__inner {
  background: rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(5.9px);
  -webkit-backdrop-filter: blur(5.9px);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.project-card { padding: clamp(1rem, 2vw, 1.35rem); border-radius: 20px; }
.project-media,
.more-card__media,
.screenshot-gallery,
.edition-carousel { border-radius: 16px; }
.more-card__media { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.project-details,
.stl-list { overflow: hidden; }
[data-theme="dark"] .offer-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .more-card,
[data-theme="dark"] .ki-kompass-visual,
[data-theme="dark"] .quiz-panel,
[data-theme="dark"] .request-block,
[data-theme="dark"] .project-details,
[data-theme="dark"] .edition-card,
[data-theme="dark"] .stl-list,
[data-theme="dark"] .modal-inner,
[data-theme="dark"] .legal-panel__inner {
  background: rgba(15, 23, 42, 0.34);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.22);
}

/* --- Education-Seite Basisstil --------------------------------------- */
.education-page .education-hero {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .education-page .education-hero { background: #0f172a; }

/* --- Kombinierter Down-/Up-Button nur Startseite --------------------- */
.home-page #to-top {
  --scroll-btn-size: 46px;
  --scroll-btn-edge: 24px;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: clamp(1.1rem, 4vh, 2rem);
  z-index: 90;
  width: var(--scroll-btn-size);
  height: var(--scroll-btn-size);
  display: grid;
  place-items: center;
  border-radius: 999px;
  transform: translate3d(-50%, 0, 0) rotate(180deg);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: var(--primary);
  border: none;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.28);
  color: #fff;
  cursor: pointer;
  transition:
    left 0.84s cubic-bezier(.2,.9,.2,1),
    bottom 0.84s cubic-bezier(.2,.9,.2,1),
    transform 0.84s cubic-bezier(.2,.9,.2,1),
    opacity 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  animation: hero-arrow-button-float 1.85s ease-in-out infinite;
}
.home-page #to-top.to-top--up {
  left: calc(100% - var(--scroll-btn-edge) - var(--scroll-btn-size));
  bottom: 24px;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: none;
}
.home-page #to-top.to-top--flick { animation: hero-arrow-flick 0.84s cubic-bezier(.2,.9,.2,1); }
.home-page #to-top:hover {
  color: #fff;
  background: var(--primary-hover);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.38);
  animation-play-state: paused;
}
[data-theme="dark"] .home-page #to-top {
  background: var(--primary);
  border: none;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.32);
}
@keyframes hero-arrow-button-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes hero-arrow-flick { 0% { scale: 1; } 45% { scale: 1.12; filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.22)); } 100% { scale: 1; filter: none; } }

@media (max-width: 1160px) {
  .nav-dropdown { display: block; }
  .nav-dropdown__toggle { width: 100%; justify-content: space-between; padding: 0.6rem 0.75rem; font-size: 0.95rem; }
  .nav-dropdown__menu {
    position: static;
    min-width: 0;
    margin: 0.15rem 0 0.35rem;
    padding: 0.25rem;
    box-shadow: none;
    border-radius: 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
  }
  .nav-dropdown.nav-dropdown--open .nav-dropdown__menu { display: grid; }
}

@media (max-width: 768px) {
  .home-page .hero--neural { min-height: calc(100svh - 64px); padding-bottom: 5.5rem; }
  .home-page #to-top { --scroll-btn-size: 44px; --scroll-btn-edge: 16px; width: var(--scroll-btn-size); height: var(--scroll-btn-size); bottom: 16px; }
  .home-page #to-top.to-top--up { left: calc(100% - var(--scroll-btn-edge) - var(--scroll-btn-size)); bottom: 16px; }
  .home-page .ai-workflow-section > .container,
  .home-page .more-section > .container,
  .home-page .skills-section > .container,
  .home-page .contact-section > .container { border-radius: 20px; padding: 1.1rem; }
  .project-card { padding: 1rem; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page #to-top { animation: none; }
  .home-page #to-top.to-top--flick { animation: none; }
}


/* --- Mobile Neural Stabilisierung ------------------------------------
   Mobile zeigt einen zentrierten Ausschnitt der virtuellen Desktop-Fläche.
   Keine Viewport-Skalierung, kein Morphing bei Browser-Adressleisten-Scroll.
*/
@media (max-width: 768px) {
  .home-page .hero--neural::before {
    top: 0;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 1440px;
    height: max(920px, 100lvh);
    transform: translate3d(-50%, 0, 0);
    max-width: none;
    max-height: none;
  }

  .home-page .hero--neural .neural-canvas {
    left: 50%;
    right: auto;
    width: 1440px;
    height: max(920px, 100lvh);
    max-width: none;
    transform: translate3d(-50%, 0, 0);
  }
}


/* --- Weber Webdesign Repositioning ---------------------------------- */
.brand--webdesign {
  flex: 0 1 260px;
  min-width: 0;
  white-space: normal;
}
.brand-main {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.brand-sub--mobile { display: none; }

.webdesign-hero .hero-title {
  max-width: 15.5ch;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy {
  min-width: 0;
}
.hero-brand-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-content: center;
  justify-items: center;
  min-height: 340px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(5.9px);
  -webkit-backdrop-filter: blur(5.9px);
}
[data-theme="dark"] .hero-brand-card {
  background: rgba(15, 23, 42, 0.34);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.22);
}
.hero-brand-card__logo {
  width: min(100%, 420px);
}
.hero-brand-card__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(15, 23, 42, 0.12));
}
.hero-brand-card__line {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-align: center;
}

.catalog-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}
.catalog-callout__title {
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0.35rem 0 0.5rem;
}
.catalog-callout__text {
  max-width: 66ch;
  color: var(--text-muted);
  line-height: 1.7;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.reason-card {
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.reason-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.45rem;
}
.reason-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
[data-theme="dark"] .reason-card {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--border);
}

.projects-page .projects-hero {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .projects-page .projects-hero {
  background: #0f172a;
}
.projects-page .projects-section,
.projects-page .more-section {
  position: relative;
  z-index: 2;
  background: var(--surface);
}
.projects-page .more-section {
  background: var(--bg);
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-brand-card {
    min-height: auto;
    max-width: 520px;
    justify-self: start;
  }
  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-callout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand--webdesign {
    flex-basis: 148px;
  }
  .brand-main {
    font-size: 0.98rem;
  }
  .brand-sub--desktop { display: none; }
  .brand-sub--mobile {
    display: block;
    font-size: 0.62rem;
    line-height: 1.15;
    max-width: 17ch;
  }
  .hero-brand-card {
    padding: 1rem;
  }
  .reason-grid {
    grid-template-columns: 1fr;
  }
}


/* --- Cleanup: KI-Zusatzsektion entfernt ------------------------------
   Keine eigenständige KI-Verkaufssektion auf der Startseite.
*/
.ai-services-section {
  display: none !important;
}


/* ─── Anfrage-Wizard ────────────────────────────────────────────────── */
.inquiry-wizard {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: clamp(18px, 2.5vw, 26px);
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 30px rgba(0,0,0,0.09);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[data-theme="dark"] .inquiry-wizard {
  background: rgba(15,23,42,0.52);
  border-color: rgba(148,163,184,0.22);
  box-shadow: 0 4px 30px rgba(0,0,0,0.26);
}

/* Inside the contact panel tile — no extra card frame */
.about-contact-action .inquiry-wizard {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0;
}

.inq-header {
  margin-bottom: 1.5rem;
}
.inq-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.35rem;
}
.inq-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.inq-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 60ch;
}
.inq-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.inq-progress-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.inq-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
  width: 25%;
  transition: width 0.35s ease;
}
.inq-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* steps */
.inq-step--hidden { display: none !important; }

.inq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.9rem;
  line-height: 1.45;
}
.inq-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.88em;
}

/* chip grid */
.inq-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
.inq-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.3;
  text-align: center;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 0;
  word-break: break-word;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.inq-chip__icon {
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.15s;
}
.inq-chip:hover .inq-chip__icon,
.inq-chip--selected .inq-chip__icon { opacity: 1; }
.inq-chip:hover {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 18%, transparent);
}
.inq-chip--selected {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 32%, transparent);
}
.inq-chip--selected:hover {
  color: #fff;
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.inq-chip--skip {
  color: var(--text-muted);
  font-weight: 500;
  border-style: dashed;
}

/* step 4: fields */
.inq-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.inq-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.inq-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.inq-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.inq-input::placeholder { color: var(--text-muted); }
.inq-textarea { resize: vertical; min-height: 88px; }

.inq-field-error {
  font-size: 0.82rem;
  color: #dc2626;
  margin-bottom: 0.75rem;
}
.inq-field-error--hidden { display: none !important; }
[data-theme="dark"] .inq-field-error { color: #f87171; }

.inq-submit-btn { margin-top: 0.25rem; }

/* step 5: summary */
.inq-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}
.inq-summary-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 999px;
}
.inq-summary-tag__label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.65;
}
.inq-summary-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.2rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}
.inq-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}
.inq-privacy-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .inq-field-row { grid-template-columns: 1fr; }
  .inq-final-actions { flex-direction: column; }
  .inq-final-actions .btn { justify-content: center; }
}


/* --- Logo aus Hero in Kontakt verschoben ----------------------------- */
.webdesign-hero .hero-layout {
  grid-template-columns: 1fr;
}

.webdesign-hero .hero-copy {
  max-width: 760px;
  margin-top: 100px;
}

.contact-logo {
  width: min(360px, 78vw);
  margin: 0 auto clamp(1.4rem, 4vw, 2.2rem);
  padding: clamp(0.65rem, 2vw, 1rem);
  border-radius: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(5.9px);
  -webkit-backdrop-filter: blur(5.9px);
}

.contact-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.10));
}

[data-theme="dark"] .contact-logo {
  background: rgba(15, 23, 42, 0.34);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.22);
}

@media (max-width: 520px) {
  .webdesign-hero .hero-copy {
    max-width: none;
    margin-top: 0;
  }

  .contact-logo {
    width: min(300px, 86vw);
  }
}


/* --- Kontakt bereinigt: Anfrage-Kachel entfernt, Logo nahtlos -------- */
.contact-logo {
  width: min(360px, 78vw) !important;
  margin: 0 auto clamp(1.6rem, 4vw, 2.4rem) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.contact-logo img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

[data-theme="dark"] .contact-logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.contact-section .contact-sub {
  margin-bottom: 1.4rem;
}

@media (max-width: 520px) {
  .contact-logo {
    width: min(300px, 84vw) !important;
  }
}


/* --- Über mich + Kontakt zusammengelegt ------------------------------ */
.about-contact-section {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 9vw, 7rem) 0;
  text-align: left;
}

.about-contact-section .container {
  max-width: var(--max-width);
}

.section-anchor {
  display: block;
  position: relative;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}

.about-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.82fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(5.9px);
  -webkit-backdrop-filter: blur(5.9px);
}

[data-theme="dark"] .about-contact-panel {
  background: rgba(15, 23, 42, 0.52);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.28);
}

.about-contact-copy .section-title {
  margin-bottom: 0.85rem;
}

.about-contact-copy .about-text {
  max-width: 68ch;
}

.about-contact-action {
  text-align: center;
}

.about-contact-action .contact-logo {
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem) !important;
}

.about-contact-action .contact-title {
  margin-bottom: 0.75rem;
}

.about-contact-action .contact-sub {
  max-width: 42ch;
  margin-inline: auto;
}

.about-contact-action .contact-actions {
  margin-top: 1.4rem;
}

@media (max-width: 860px) {
  .about-contact-panel {
    grid-template-columns: 1fr;
  }

  .about-contact-action {
    text-align: left;
  }

  .about-contact-action .contact-logo {
    margin-inline: 0 !important;
  }

  .about-contact-action .contact-sub {
    margin-inline: 0;
  }

  .about-contact-action .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .about-contact-panel {
    padding: 1.35rem;
  }

  .about-contact-action .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-contact-action .contact-actions .btn {
    justify-content: center;
  }
}


/* --- FIX: Über/Kontakt nur ein Glasspanel, keine äußere Box ---------- */
.about-contact-section.contact-section,
.about-contact-section {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.about-contact-section > .container {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding-inline: clamp(1rem, 4vw, 2.5rem) !important;
}

/* Das ist die einzige sichtbare Kachel dieser Sektion */
.about-contact-panel {
  background: rgba(255, 255, 255, 0.34) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10) !important;
  backdrop-filter: blur(5.9px) !important;
  -webkit-backdrop-filter: blur(5.9px) !important;
}

[data-theme="dark"] .about-contact-section.contact-section,
[data-theme="dark"] .about-contact-section {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

[data-theme="dark"] .about-contact-section > .container {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.home-page .about-contact-section {
  background: transparent !important;
  border-bottom: 0 !important;
  padding-inline: clamp(1rem, 4vw, 2.5rem) !important;
}
[data-theme="dark"] .home-page .about-contact-section {
  background: transparent !important;
  border-bottom-color: #334155 !important;
}

.home-page .about-contact-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding-inline: 0 !important;
}
[data-theme="dark"] .home-page .about-contact-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .about-contact-panel {
  background: rgba(15, 23, 42, 0.52) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.28) !important;
}


/* --- Katalog Sneakpeek Galerie ---------------------------------------
   Automatische Designvorschau aus katalog/index.html.
   Zeigt Preview-Bilder und öffnet direkt die jeweilige Demo.
*/
.catalog-preview {
  margin-top: clamp(1.8rem, 4vw, 3rem);
}

.catalog-preview__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.catalog-preview__title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: 0.25rem;
}

.catalog-preview__controls {
  display: none;
}

.catalog-preview__nav-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.catalog-preview__nav-wrapper .catalog-preview__viewport {
  flex: 1;
  min-width: 0;
}

.catalog-preview__btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0.25rem 0.35rem;
  color: var(--text-muted);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
  user-select: none;
}

.catalog-preview__btn:hover {
  color: var(--primary);
  transform: scale(1.2);
}

.catalog-preview__viewport {
  overflow: hidden;
}

.catalog-preview__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0;
  touch-action: pan-x;
}

.catalog-preview__track::-webkit-scrollbar {
  display: none;
}

.catalog-preview-card {
  position: relative;
  flex: 0 0 calc((100% - 1rem) / 2);
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}


.catalog-preview-card img {
  display: none;
}

.catalog-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    transparent 70%,
    rgba(0, 0, 0, 0.86) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.catalog-preview-card:hover::after {
  opacity: 1;
}

.cpcard-frame-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  transform: translateZ(0);
}

.cpcard-iframe {
  width: 1440px;
  height: 900px;
  border: none;
  pointer-events: none;
  transform-origin: top center;
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -720px;
  display: block;
  background: transparent;
}

.catalog-preview-card__content {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.95rem;
  z-index: 2;
  color: #fff;
  transform: translateY(calc(100% + 1.5rem));
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.06s;
}

.catalog-preview-card:hover .catalog-preview-card__content {
  transform: translateY(0);
}

.catalog-preview-card__title {
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.catalog-preview-card__meta {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.catalog-preview__loading,
.catalog-preview__empty {
  padding: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.catalog-preview__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.catalog-preview__dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.26);
  cursor: pointer;
  padding: 0;
  transition: width 0.18s ease, background 0.18s ease;
}

.catalog-preview__dot.is-active {
  width: 22px;
  background: var(--primary);
}

[data-theme="dark"] .catalog-preview__btn {
  color: var(--text-muted);
}

[data-theme="dark"] .catalog-preview-card {
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

@media (max-width: 980px) {
  .catalog-preview-card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 680px) {
  .catalog-preview__head {
    align-items: start;
  }

  .catalog-preview-card {
    flex-basis: 100%;
    aspect-ratio: 16 / 9;
  }

  .catalog-preview__btn {
    width: 38px;
    height: 38px;
  }
}


/* --- Instagram im Kontaktbereich als Inline-Link --------------------- */
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, opacity 0.18s ease;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: var(--primary);
  opacity: 0.9;
}

.instagram-link__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #E1306C;
}

@media (max-width: 520px) {
  .instagram-link {
    justify-content: center;
    width: 100%;
  }
}


/* --- Mobile Speed Pass ------------------------------------------------
   Ziel: weniger initiale Mobile-Arbeit, stabilere Layouts, weniger CLS.
*/
@media (max-width: 768px) {
  .home-page .hero--neural .neural-canvas {
    opacity: 0.72;
  }

  .catalog-preview__viewport {
    contain: layout paint;
  }

  .catalog-preview-card {
    min-height: 210px;
    contain: layout paint;
  }

  .catalog-preview-card img {
    content-visibility: auto;
  }
}

@media (max-width: 520px) {
  .catalog-preview-card {
    min-height: 196px;
  }
}

/* Browser muss untere Sektionen nicht sofort komplett layouten */
.offers-section,
.ai-workflow-section,
.workflow-section,
.about-contact-section,
.projects-section,
.more-section,
.skills-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

/* ─── Einheitliche Sektionshöhe = Hero ───────────────────────────────── */
.home-page .offers-section,
.home-page .ai-workflow-section,
.home-page .workflow-section,
.home-page .about-contact-section {
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero,
.site-header {
  content-visibility: visible;
}


/* --- Instagram Social Link sichtbar im Kontaktbereich ---------------- */
.contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  margin: 0.3rem auto 1.15rem;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.contact-social-link:hover,
.contact-social-link:focus-visible {
  color: var(--primary);
  opacity: 0.95;
  transform: translateY(-1px);
}

.contact-social-link__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: #E1306C;
}

.about-contact-action .contact-social-link {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .about-contact-action .contact-social-link {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 520px) {
  .contact-social-link {
    width: 100%;
    text-align: center;
  }
}


/* --- Darkmode: weißes Kontaktlogo ----------------------------------- */
.contact-logo {
  position: relative;
}

.contact-logo__img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-logo__img--dark {
  display: none;
}

[data-theme="dark"] .contact-logo__img--light {
  display: none;
}

[data-theme="dark"] .contact-logo__img--dark {
  display: block;
}


/* --- FIX: Logo Light/Dark immer nur eine Version sichtbar ------------ */
/* Überschreibt ältere .contact-logo img { display:block !important; } Regeln. */
.contact-logo .contact-logo__img--light {
  display: block !important;
}

.contact-logo .contact-logo__img--dark {
  display: none !important;
}

html[data-theme="dark"] .contact-logo .contact-logo__img--light {
  display: none !important;
}

html[data-theme="dark"] .contact-logo .contact-logo__img--dark {
  display: block !important;
}

