@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/*
 * Konveo Landing Page – Dark Mode Stylesheet
 * Full dark-mode design with CSS custom properties, responsive layout,
 * scroll animations, and interactive component styles.
 *
 * Created: 2026-03-19
 * Updated: 2026-03-20 – PHASE-1-A: Added CSS custom properties (bg-alt, glass-bg, glass-border),
 *   SVG icon base styles for .feature-icon, @supports marker, reduced-motion media query.
 * Updated: 2026-03-20 – PHASE-2-A: Typewriter wrapper, text, cursor styles with blink keyframes
 *   and prefers-reduced-motion override.
 * Updated: 2026-03-20 – PHASE-4-A/B/C: Trust bar glassmorphism, testimonial decorative
 *   quote marks, contact card glassmorphism, #kontakt radial accent, #warum bg-alt.
 * Updated: 2026-03-20 – PHASE-2-C: Interactive process diagram with animated SVG connector,
 *   click-activated step nodes, mobile vertical connector.
 * Updated: 2026-03-20 – PHASE-3-A: Code snippet overlays on Tooling/Automation/Integration
 *   service cards with desktop hover reveal and mobile toggle button.
 * Updated: 2026-03-20 – PHASE-2-A: Cookie consent banner styles, .btn-secondary, mobile stacking.
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --color-bg: #0a0a0f;
  --color-surface: #13131a;
  --color-border: #1e1e2e;
  --color-accent: #6366f1;
  --color-accent-hover: #818cf8;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-bg-alt: #0d0d1a;
  --color-glass-bg: rgba(19, 19, 26, 0.6);
  --color-glass-border: rgba(99, 102, 241, 0.15);
  --spacing-section-v-desktop: 100px;
  --spacing-section-v-mobile: 72px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Offset für Sprung-Links, damit der sticky Header die Überschrift nicht verdeckt */
  scroll-padding-top: 84px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Kein grauer Tap-Flash auf Touch-Geräten */
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--spacing-section-v-desktop) 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 0;
}

.section-intro {
  text-align: center;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 12px auto 56px;
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  padding: 14px 32px;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1010;
  border-bottom: 1px solid var(--color-border);
}

/* Glassmorphism via pseudo-element so backdrop-filter doesn't create a new
   containing block for position:fixed children (the mobile nav overlay) */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-inner nav {
  display: flex;
  align-items: center;
}

/* Hamburger (mobile only) */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger active state */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Nav links – mobile first (hidden) */
.nav-links {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #0a0a0f;
  padding: 40px 24px;
  gap: 32px;
}

.nav-links.nav-open {
  display: flex;
}

.nav-links li a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text-primary);
  transition: width 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a:focus-visible {
  color: var(--color-text-primary);
}

.nav-links li a:hover::after,
.nav-links li a:focus-visible::after {
  width: 100%;
}

/* Desktop nav */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    gap: 32px;
  }

  .nav-links li a {
    font-size: 0.9375rem;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 24px;
  overflow: hidden;
}

/* Gradient mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(129, 140, 248, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtext {
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.hero-secondary-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.hero-secondary-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text-primary);
  transition: width 0.2s ease;
}

.hero-secondary-link:hover {
  color: var(--color-text-primary);
}

.hero-secondary-link:hover::after {
  width: 100%;
}

/* Typewriter */
.typewriter-wrapper {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.typewriter-text {
  display: inline;
  color: var(--color-accent-hover);
}

.typewriter-cursor {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 300;
  animation: cursor-blink 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.feature-card {
  background: var(--color-surface);
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 12px;
  padding: 12px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  transition: color 0.2s ease, filter 0.2s ease;
}

.why-card:hover .feature-icon svg,
.why-card:focus-visible .feature-icon svg {
  color: var(--color-accent-hover);
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.5));
}

@supports (backdrop-filter: blur(1px)) {}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-secondary);
}

/* ============================================
   Courses Grid
   ============================================ */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.course-card {
  display: block;
  background: var(--color-surface);
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.course-card:hover,
.course-card:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.course-card h3 {
  margin-bottom: 8px;
}

.course-card p {
  color: var(--color-text-secondary);
}

.course-label {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* NOTE: Testimonials removed – styles kept for future use */
/* ============================================
   Testimonials Grid
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

/* 2 columns at 640px (tablet) */
@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3 columns at 1024px (desktop) */
@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--color-surface);
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  font-family: Georgia, serif;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-quote {
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 20px;
  padding: 0;
  flex-grow: 1;
}

.testimonial-quote p {
  margin: 0;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: var(--color-accent-hover);
}

.faq-arrow {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-arrow {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 0 20px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  width: 100%;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form .btn-primary {
  align-self: flex-start;
}

/* Contact Card */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 767px) {
  .contact-card {
    padding: 20px;
  }
}

/* Select elements – match existing input/textarea styles */
.form-group select {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-group select:focus {
  border-color: var(--color-accent);
  outline: none;
}

select option {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

/* Contact Success Message */
.contact-success {
  text-align: center;
  padding: 16px 0;
}

.contact-success__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.contact-success__text {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* Calendar CTA Link */
.calendar-cta {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.calendar-cta:hover,
.calendar-cta:focus-visible {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 56px 24px;
}

.site-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin-bottom: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.footer-inner a {
  color: var(--color-text-secondary);
  transition: color 0.25s ease;
}

.footer-inner a:hover {
  color: var(--color-text-primary);
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Utility: Focus visible ring
   ============================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================
   Responsive overrides
   ============================================ */
@media (max-width: 767px) {
  .section {
    padding: var(--spacing-section-v-mobile) 24px;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* ============================================
   Services Grid
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: block;
  background: var(--color-surface);
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  color: var(--color-text-secondary);
}

.service-label {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Service Card: Code Snippet Overlay */
.service-card.has-code-snippet {
  position: relative;
  overflow: hidden;
  cursor: default; /* no longer a link itself */
}

.service-code-snippet {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.95);
  border-radius: 16px;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-start;
  overflow: auto;
}

.service-code-snippet pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.service-code-snippet code {
  font-family: 'Courier New', 'Fira Code', monospace;
  font-size: max(0.8rem, 13px);
  line-height: 1.7;
  user-select: none;
  -webkit-user-select: none;
  color: var(--color-text-primary);
}

/* Syntax token colors */
.token-keyword  { color: #c084fc; }
.token-function { color: #60a5fa; }
.token-string   { color: #4ade80; }
.token-comment  { color: #64748b; font-style: italic; }
.token-number   { color: #fb923c; }

/* Desktop hover: show snippet */
@media (hover: hover) {
  .service-card.has-code-snippet:hover .service-code-snippet {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Mobile toggle button: only visible on touch devices */
.service-code-toggle {
  display: none;
  margin-top: 12px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  color: var(--color-accent);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.service-code-toggle:hover {
  background: rgba(99, 102, 241, 0.25);
}

/* Show button on touch devices */
@media (hover: none) {
  .service-code-toggle {
    display: inline-block;
  }
}

/* Mobile: show snippet when toggled open */
.service-code-snippet.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Service card CTA link */
.service-card-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.service-card-cta:hover,
.service-card-cta:focus-visible {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

/* ============================================
   Process Diagram (Interactive)
   ============================================ */

.process-diagram {
  position: relative;
  margin-top: 56px;
}

/* SVG connector line — desktop */
.process-connector-svg {
  display: none; /* hidden on mobile */
  position: absolute;
  top: 28px; /* align with center of the 56px node circles */
  left: calc(12.5%); /* start at center of first node */
  width: calc(75%); /* end at center of last node */
  height: 4px;
  z-index: 0;
  overflow: visible;
}

.process-connector-line {
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.2s ease-out;
  opacity: 0.4;
}

.process-connector-line.animated {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .process-connector-line {
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* Node grid */
.process-nodes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .process-nodes {
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
  }

  .process-connector-svg {
    display: block;
  }
}

/* Individual node */
.process-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px 32px;
  transition: opacity 0.3s ease;
}

/* Inactive nodes slightly dimmed */
.process-node:not(.active) {
  opacity: 0.55;
}

/* Node button */
.process-node-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  color: var(--color-text-primary);
  transition: color 0.2s ease;
}

.process-node-btn:hover,
.process-node-btn:focus-visible {
  color: var(--color-accent-hover);
}

.process-node-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Circle node */
.process-node-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.process-node.active .process-node-circle {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
}

/* Node label */
.process-node-label {
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

.process-node.active .process-node-label {
  color: var(--color-text-primary);
}

/* Mobile: vertical connector between nodes */
@media (max-width: 767px) {
  .process-node {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 0 0;
    margin-bottom: 28px;
    position: relative;
  }

  .process-node:last-child {
    margin-bottom: 0;
  }

  .process-node:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 27px; /* center of 56px circle */
    top: 56px;
    bottom: -28px;
    width: 2px;
    background: var(--color-border);
    z-index: 0;
  }

  .process-node.active:not(:last-child)::after {
    background: var(--color-accent);
    opacity: 0.4;
  }

  .process-node-btn {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
  }

  .process-node-label {
    text-align: left;
    font-size: 1rem;
  }
}

/* Detail content */
.process-node-detail {
  margin-top: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  text-align: center;
  width: 100%;
}

@media (max-width: 767px) {
  .process-node-detail {
    text-align: left;
    padding-left: 0;
    flex: 1;
    min-width: 0;
  }
}

.process-node.active .process-node-detail {
  max-height: 400px;
}

.process-node-detail p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  padding: 0 8px 16px;
}

@media (max-width: 767px) {
  .process-node-detail p {
    font-size: 1rem;
    line-height: 1.7;
    padding: 8px 0 0 0;
  }
}

/* ============================================
   Why Work With Me Grid
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  background: var(--color-surface);
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.why-card h3 {
  margin-bottom: 8px;
}

.why-card p {
  color: var(--color-text-secondary);
}

/* ============================================
   Projects Grid (Projektreferenzen)
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

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

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

.project-card {
  background: var(--color-surface);
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.project-card h3 {
  margin-bottom: 0;
  margin-top: 4px;
}

.project-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-block-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-block p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

.project-block--result .project-block-label {
  color: var(--color-accent);
}

.project-result-highlight {
  color: #4ade80;
  font-weight: 700;
}

.project-cta {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  margin-top: auto;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.project-cta:hover,
.project-cta:focus-visible {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

@media (max-width: 639px) {
  .project-card {
    padding: 20px;
  }
}

/* ============================================
   Vertrauensleiste (Trust Bar)
   ============================================ */
.trust-bar {
  background: var(--color-glass-bg);
  border-top: 1px solid var(--color-glass-border);
  border-bottom: 1px solid var(--color-glass-border);
  padding: 40px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08);
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.trust-bar__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 0 24px;
}

.trust-bar__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.trust-bar__label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

.trust-bar__divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .trust-bar__inner {
    flex-direction: column;
    gap: 32px;
  }

  .trust-bar__divider {
    width: 48px;
    height: 1px;
  }

  .trust-bar__stat {
    padding: 0;
  }
}

/* ============================================
   Zielgruppe & Problemloesung Section
   ============================================ */
.zielgruppe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

@media (max-width: 767px) {
  .zielgruppe-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.zielgruppe-column {
  background: var(--color-surface);
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.zielgruppe-column__heading {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.zielgruppe-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zielgruppe-item {
  color: var(--color-text-secondary);
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.zielgruppe-item:hover {
  border-color: var(--color-accent);
  color: var(--color-text-primary);
}

/* Zielgruppe section heading spacing */
#zielgruppe .section-heading {
  margin-bottom: 0;
}

/* ============================================
   About Section
   ============================================ */

/* About layout: 2-column grid on desktop */
.about-layout {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: center;
}

/* Image wrapper centers image in its column */
.about-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Profile image: circular with accent border */
.about-img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
  background-color: var(--color-surface);
  display: block;
}

/* Fallback avatar (shown via onerror when image fails) */
.about-img-fallback {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-accent);
  flex-shrink: 0;
}

/* Name heading */
.about-content h3 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

/* Role/subtitle line */
.about-role {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Body text */
.about-content > p:not(.about-role) {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

/* Bullet list */
.about-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.about-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Override feature-icon size for bullet context */
.about-bullets .feature-icon {
  font-size: 1.5rem;
  padding: 8px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.about-bullets li > span:last-child {
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding-top: 6px;
}

/* Mobile: single column stacked */
@media (max-width: 767px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image-wrapper {
    justify-content: center;
  }

  .about-img {
    max-width: 200px;
    margin: 0 auto;
  }

  .about-img-fallback {
    width: 120px;
    height: 120px;
    font-size: 2.25rem;
  }
}

/* Very narrow viewports */
@media (max-width: 359px) {
  .about-img {
    max-width: 160px;
  }

  .about-content > p,
  .about-bullets li > span:last-child {
    font-size: 1rem;
  }
}

/* ============================================
   Kontakt Section Accent
   ============================================ */
#kontakt {
  position: relative;
}

#kontakt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#kontakt .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   Warum Section Background
   ============================================ */
#warum {
  background-color: var(--color-bg-alt);
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  padding: 16px 0;
}

#cookie-banner.cookie-banner--hidden {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 200px;
}

.cookie-banner__text p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.cookie-banner__text a:hover {
  text-decoration-color: var(--color-accent);
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 20px;
  background: transparent;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-text-primary);
}

@media (max-width: 479px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    text-align: center;
    width: 100%;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  /* All animation overrides go here — populated by Phase 2 tickets */
  .fade-in-hidden {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .typewriter-cursor {
    animation: none;
    opacity: 0;
  }
}

/* ============================================
   Footer Links
   ============================================ */
.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ============================================
   Back Link (Legal Pages)
   ============================================ */
.back-link {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--color-accent-hover);
}

/* ============================================
   Legal Page Styles (Impressum / Datenschutz)
   ============================================ */
.section address {
  font-style: normal;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.section h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

/* ============================================
   Audit Section (KWR-008)
   ============================================ */
.audit-section {
  background: var(--color-bg-alt);
  text-align: center;
  padding: var(--spacing-section-v-desktop) 24px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .audit-section {
    padding: var(--spacing-section-v-mobile) 24px;
  }
}

.audit-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 0;
}

.audit-badge {
  display: inline-block;
  background: transparent;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.audit-cta {
  margin-top: 1.5rem;
}

/* ============================================
   Project Label (KWR-009)
   ============================================ */
.project-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
  margin-left: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ============================================
   Footer Tagline (KWR-011)
   ============================================ */
.footer-tagline {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  opacity: 0.7;
  margin-top: -8px;
}

/* ============================================
   Scroll-Fortschrittsleiste (dezenter Effekt)
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 2000;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================
   Header – kompakter/kontrastreicher beim Scrollen
   ============================================ */
.site-header.scrolled::before {
  background: rgba(10, 10, 15, 0.95);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* ============================================
   Nach-oben-Button (v. a. mobil praktisch)
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-glass-border);
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, border-color 0.2s ease;
  z-index: 1005;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ============================================
   Button-Shine (dezenter Glanz beim Hover)
   ============================================ */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  left: 130%;
}

/* ============================================
   Sanft animierter Hero-Glow (subtil)
   ============================================ */
@keyframes hero-glow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

.hero::before {
  animation: hero-glow 16s ease-in-out infinite;
}

/* ============================================
   Mobile-Feinschliff
   ============================================ */
@media (max-width: 767px) {
  .hero {
    padding: 64px 24px 56px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero-subtext {
    font-size: 1.0625rem;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 32px;
  }

  /* Volle Breite = großes, gut treffbares Tap-Target */
  .hero-actions .btn-primary {
    width: 100%;
    text-align: center;
  }

  /* Sektionsüberschriften nicht zu groß/gedrängt */
  .section-heading {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
  }

  /* Nav-Links: größere Touch-Fläche */
  .nav-links li a {
    display: inline-block;
    padding: 6px 0;
  }
}

/* Sehr kleine Geräte */
@media (max-width: 360px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 56px 18px;
  }
}

/* ============================================
   Reduced Motion – neue Effekte deaktivieren
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }

  .btn-primary::after {
    display: none;
  }

  .scroll-progress {
    transition: none;
  }

  .back-to-top {
    transition: opacity 0.01s;
  }
}
