/* ============================================================
   LDD-Service — Light Theme
   ============================================================ */

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

:root {
  --bg:          #ffffff;
  --bg-2:        #f8fafc;
  --bg-3:        #f1f5f9;
  --bg-card:     #ffffff;
  --border:      #e2e8f0;
  --border-2:    #cbd5e1;
  --accent:      #2563eb;
  --accent-soft: #eff6ff;
  --accent-mid:  #dbeafe;
  --accent-2:    #7c3aed;
  --accent-2s:   #f5f3ff;
  --text:        #0f172a;
  --text-muted:  #475569;
  --text-dim:    #94a3b8;
  --success:     #059669;
  --success-soft:#d1fae5;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ───────────────────────────────────────────── */

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
h5 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-dim); }

p { color: var(--text-muted); font-size: 0.975rem; }
a { text-decoration: none; color: inherit; }

/* ── Utilities ───────────────────────────────────────────── */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 { margin-bottom: 14px; }
.section-header p  { max-width: 520px; margin: 0 auto; font-size: 1.02rem; }

/* ── Buttons ─────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

.btn-primary svg { width: 18px; height: 18px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.btn-nav:hover { background: #1d4ed8 !important; }

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Navbar ──────────────────────────────────────────────── */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo span {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--bg-2); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover { color: var(--text); background: var(--bg-2); }
.mobile-menu.open { display: flex; }

/* ── Hero ────────────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
  gap: 60px;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.1), transparent 70%);
  top: -150px; left: -250px;
}

.orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(124,58,237,0.08), transparent 70%);
  top: 200px; right: -150px;
}

.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(56,189,248,0.07), transparent 70%);
  bottom: 0; left: 35%;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

h1 { margin-bottom: 24px; color: var(--text); }

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Trust badges row */
.trust-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid;
}

.trust-badge.local {
  color: var(--success);
  background: var(--success-soft);
  border-color: #a7f3d0;
}

.trust-badge.custom {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-mid);
}

.trust-badge.dsgvo {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.trust-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Terminal ────────────────────────────────────────────── */

.hero-visual {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 420px;
}

.terminal {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37,99,235,0.1);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.78rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.72rem;
  color: #6e7681;
  font-family: inherit;
}

.terminal-body { padding: 20px; line-height: 1.9; }

.t-prompt  { color: #3fb950; }
.t-cmd     { color: #79c0ff; }
.t-out     { color: #8b949e; padding-left: 12px; }
.t-success { color: #3fb950; }

.t-cursor {
  display: inline-block;
  color: #2563eb;
  animation: blink 1s step-start infinite;
}

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

/* Local AI badge on terminal */
.terminal-badge {
  margin: 12px 20px 0;
  padding: 8px 12px;
  background: #0d2310;
  border: 1px solid #1a4a1f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #3fb950;
  font-weight: 500;
}

.terminal-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Services ────────────────────────────────────────────── */

#leistungen {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

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

.service-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: transparent;
  transition: background 0.3s;
}

.service-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
  background: linear-gradient(90deg, var(--accent), #7c3aed);
}

.service-card.featured {
  border-color: var(--accent-mid);
  background: linear-gradient(145deg, var(--accent-soft) 0%, #fff 60%);
}

.service-card.featured::after {
  background: linear-gradient(90deg, var(--accent), #7c3aed);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-mid);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.service-icon svg { width: 24px; height: 24px; }

.service-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
}

.service-local-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 6px;
}

.service-local-badge svg { width: 11px; height: 11px; }

.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: 0.88rem; line-height: 1.65; margin-bottom: 20px; }

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Why Us ──────────────────────────────────────────────── */

#warum {
  padding: 120px 0;
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-left h2 { margin: 12px 0 20px; }
.why-left p  { margin-bottom: 16px; }
.why-left .btn-primary { margin-top: 12px; }

.usp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.usp-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.usp-item:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-md);
}

.usp-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-mid);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.usp-icon svg { width: 20px; height: 20px; }
.usp-item h4 { margin-bottom: 4px; color: var(--text); }
.usp-item p  { font-size: 0.83rem; }

/* ── Local AI highlight strip ────────────────────────────── */

.local-ai-strip {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin: 80px 0 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.local-ai-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: #d1fae5;
  border: 1.5px solid #6ee7b7;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}

.local-ai-icon svg { width: 28px; height: 28px; }

.local-ai-body h3 { color: var(--text); margin-bottom: 6px; }
.local-ai-body p  { font-size: 0.9rem; max-width: 560px; }

.local-ai-guarantees {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.guarantee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
}

.guarantee svg { width: 14px; height: 14px; }

/* ── Process ─────────────────────────────────────────────── */

#prozess {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step {
  flex: 1;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}

.step:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.step-content h4 { margin-bottom: 8px; color: var(--text); }
.step-content p  { font-size: 0.84rem; }

.step-arrow {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--text-dim);
  margin-top: 34px;
}

/* ── Contact ─────────────────────────────────────────────── */

#kontakt {
  padding: 120px 0;
  background: var(--bg);
}

.contact-card {
  position: relative;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 64px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-orb {
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 { margin: 12px 0 16px; }
.contact-content > p { margin-bottom: 40px; }

.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.contact-alt {
  margin-top: 24px;
  font-size: 0.84rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-alt a {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s;
}

.contact-alt a:hover { opacity: 0.75; }

/* ── Footer ──────────────────────────────────────────────── */

footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { flex: 1; min-width: 0; }
.footer-brand .logo { display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; max-width: 280px; }

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h5 { margin-bottom: 4px; }

.footer-col a {
  font-size: 0.84rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Scroll animations ───────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-visual { width: 340px; }
  .why-grid { gap: 48px; }
  .process-steps { flex-wrap: wrap; }
  .step-arrow { display: none; }
  .step { min-width: calc(50% - 10px); }
  .local-ai-strip { flex-direction: column; gap: 20px; }
}

@media (max-width: 768px) {
  #hero {
    flex-direction: column;
    padding-top: 100px;
    text-align: center;
  }

  .hero-content { order: 1; }
  .hero-visual  { order: 2; width: 100%; }
  .hero-sub     { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .trust-badges { justify-content: center; }
  .badge        { justify-content: center; }

  .nav-links { display: none; }
  .burger    { display: flex; }

  .services-grid { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; gap: 48px; }

  .process-steps { flex-direction: column; }
  .step { min-width: 100%; }

  .contact-card { padding: 32px 20px; }
  .form-row     { grid-template-columns: 1fr; }

  .footer-inner  { flex-direction: column; gap: 40px; }
  .footer-links  { flex-wrap: wrap; gap: 32px; }

  .local-ai-strip { padding: 24px; }
}
