/* =================================================================
   ates·design — main.css
   Vanilla CSS · Custom Properties · Dark/Light Theme
   Keine externen Schriften, kein Tailwind, keine CDNs.
   ================================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Spacing scale (4px Basis) */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --fs-xs:   .8125rem;  /* 13px */
  --fs-sm:   .9375rem;  /* 15px */
  --fs-base: 1rem;      /* 16px */
  --fs-md:   1.125rem;  /* 18px */
  --fs-lg:   1.375rem;  /* 22px */
  --fs-xl:   1.75rem;   /* 28px */
  --fs-2xl:  2.25rem;   /* 36px */
  --fs-3xl:  3rem;      /* 48px */
  --fs-4xl:  clamp(2.5rem, 5vw + 1rem, 4.5rem);

  --lh-tight: 1.15;
  --lh-snug:  1.3;
  --lh-base:  1.55;

  /* Layout */
  --max-w: 1180px;
  --max-w-narrow: 880px;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 500ms;

  /* Z-Index */
  --z-header: 100;
  --z-overlay: 200;

  /* Header-Höhe (mit Safe-Area oben für iPhone-Notch) */
  --header-h: 64px;
  --header-h-safe: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

/* ---------- 2. DARK THEME (default) ---------- */
:root,
[data-theme="dark"] {
  --c-bg:        #0a0e14;
  --c-bg-2:      #060a10;
  --c-surface:   #11161e;
  --c-surface-2: #1a2230;
  --c-border:    #1e2a3d;
  --c-border-strong: #2a3a52;
  --c-text:      #e8eaed;
  --c-text-soft: #b4bcc8;
  --c-muted:     #8a93a3;
  --c-muted-2:   #5a6478;

  --c-primary:        #00d4aa;
  --c-primary-soft:   #00a886;
  --c-primary-glow:   rgba(0, 212, 170, .25);
  --c-primary-text:   #0a0e14;

  --c-accent:         #6366f1;
  --c-accent-soft:    #818cf8;
  --c-warm:           #f0b429;

  --c-success:        #00d4aa;
  --c-danger:         #ef4444;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow:    0 4px 16px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 40px var(--c-primary-glow);

  --grad-hero: radial-gradient(ellipse at top right, rgba(0, 212, 170, .12), transparent 50%),
               radial-gradient(ellipse at bottom left, rgba(99, 102, 241, .10), transparent 50%);
}

/* ---------- 3. LIGHT THEME ---------- */
[data-theme="light"] {
  --c-bg:        #fafbfc;
  --c-bg-2:      #f1f3f6;
  --c-surface:   #ffffff;
  --c-surface-2: #f4f6f9;
  --c-border:    #e3e8ee;
  --c-border-strong: #cbd3df;
  --c-text:      #0a0e14;
  --c-text-soft: #2a3447;
  --c-muted:     #6b7a8a;
  --c-muted-2:   #94a0b0;

  --c-primary:        #008f74;
  --c-primary-soft:   #00a886;
  --c-primary-glow:   rgba(0, 143, 116, .18);
  --c-primary-text:   #ffffff;

  --c-accent:         #4f46e5;
  --c-accent-soft:    #6366f1;
  --c-warm:           #d97706;

  --c-success:        #008f74;
  --c-danger:         #dc2626;

  --shadow-sm: 0 1px 2px rgba(15, 40, 70, .06);
  --shadow:    0 4px 16px rgba(15, 40, 70, .08);
  --shadow-lg: 0 16px 48px rgba(15, 40, 70, .12);
  --shadow-glow: 0 0 40px var(--c-primary-glow);

  --grad-hero: radial-gradient(ellipse at top right, rgba(0, 143, 116, .08), transparent 50%),
               radial-gradient(ellipse at bottom left, rgba(79, 70, 229, .07), transparent 50%);
}

/* ---------- 4. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -.02em;
  color: var(--c-text);
}

h1 { font-size: var(--fs-4xl); letter-spacing: -.035em; }
h2 { font-size: var(--fs-3xl); letter-spacing: -.025em; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-4); color: var(--c-text-soft); }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--c-primary-soft); }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.4em; }
li { margin-bottom: var(--sp-2); color: var(--c-text-soft); }

code {
  font-family: var(--font-mono);
  font-size: .92em;
  background: var(--c-surface-2);
  padding: .15em .4em;
  border-radius: 4px;
  color: var(--c-primary);
  border: 1px solid var(--c-border);
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-primary); color: var(--c-primary-text); }

/* ---------- 5. LAYOUT HELPERS ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section {
  padding: var(--sp-9) 0;
  position: relative;
}

.section-alt { background: var(--c-bg-2); }

.section-head {
  max-width: var(--max-w-narrow);
  margin: 0 auto var(--sp-7);
  text-align: center;
}

.section-head h2 { margin-bottom: var(--sp-3); }
.section-sub { font-size: var(--fs-md); color: var(--c-muted); }

.kicker {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .75rem 1.5rem;
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn svg { width: 1.1em; height: 1.1em; }

.btn-primary {
  background: var(--c-primary);
  color: var(--c-primary-text);
  box-shadow: 0 4px 14px var(--c-primary-glow);
}
.btn-primary:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary-text);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--c-primary-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn-ghost:hover {
  background: var(--c-surface-2);
  color: var(--c-text);
  border-color: var(--c-primary);
}

.btn-sm { padding: .55rem 1.1rem; font-size: var(--fs-sm); }
.btn-lg { padding: .95rem 1.75rem; font-size: var(--fs-md); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 7. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--c-bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease),
              background var(--t-base) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: var(--c-primary-text);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: -.02em;
}

.brand-name {
  font-size: var(--fs-md);
  letter-spacing: -.02em;
}
.brand-name strong { color: var(--c-primary); font-weight: 600; }

.primary-nav {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
}

.primary-nav a {
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  padding: var(--sp-2) 0;
  position: relative;
}

.primary-nav a:hover { color: var(--c-text); }

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover { background: var(--c-surface-2); border-color: var(--c-primary); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
  transition: transform var(--t-base) var(--ease),
              opacity var(--t-fast) var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  padding: var(--sp-9) 0 var(--sp-9);
  overflow: hidden;
  background: var(--grad-hero);
}

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

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  animation: float 20s var(--ease) infinite;
}
.hero-glow-1 {
  top: -200px; right: -100px;
  background: radial-gradient(circle, var(--c-primary), transparent 70%);
}
.hero-glow-2 {
  bottom: -300px; left: -200px;
  background: radial-gradient(circle, var(--c-accent), transparent 70%);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.1); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .25;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .4rem .85rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin-bottom: var(--sp-5);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 0 var(--c-primary-glow);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--c-primary-glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-5);
  line-height: 1.05;
}

.grad-text {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.strike {
  text-decoration: line-through;
  text-decoration-color: var(--c-muted-2);
  text-decoration-thickness: 2px;
  opacity: .6;
}

.hero-sub {
  font-size: var(--fs-md);
  color: var(--c-text-soft);
  margin-bottom: var(--sp-6);
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
  margin: 0;
}
.check {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-primary-glow);
  color: var(--c-primary);
  font-size: .7rem;
  font-weight: 700;
}

/* Hero card (right) */
.hero-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent), var(--c-warm));
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

.card-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-name { font-weight: 600; color: var(--c-text); }
.card-role { font-size: var(--fs-sm); color: var(--c-muted); }

.card-body { margin-bottom: var(--sp-4); }

.card-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  gap: var(--sp-3);
}
.card-line + .card-line { border-top: 1px dashed var(--c-border); }
.card-key { color: var(--c-muted); }
.card-val { color: var(--c-text); font-weight: 500; text-align: right; }
.card-val-ok { color: var(--c-primary); }

.card-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}
.card-stat { text-align: center; }
.card-stat-num {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
}
.card-stat-lbl {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-top: var(--sp-1);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid var(--c-border-strong);
  border-radius: 12px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--c-text-soft);
  border-radius: 2px;
  animation: scroll-down 2s var(--ease) infinite;
}
@keyframes scroll-down {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ---------- 9. STATS ---------- */
.stats {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-7) 0;
}

.stats-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.stats-grid li {
  text-align: center;
  margin: 0;
  padding: 0 var(--sp-3);
  position: relative;
}
.stats-grid li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 50%;
  background: var(--c-border);
}

.stat-num {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* ---------- 10. LEISTUNGEN (CARDS) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow);
}

.card-highlight {
  background: linear-gradient(180deg, var(--c-surface), var(--c-surface-2));
  border-color: var(--c-primary);
  box-shadow: 0 0 0 1px var(--c-primary), var(--shadow);
}

.card-tag {
  position: absolute;
  top: -10px; right: var(--sp-5);
  background: var(--c-primary);
  color: var(--c-primary-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
  letter-spacing: .02em;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: var(--c-primary-glow);
  color: var(--c-primary);
  border-radius: 12px;
  margin-bottom: var(--sp-4);
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: var(--sp-3); }

.card-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-3) 0 0;
}
.card-list li {
  position: relative;
  padding-left: 1.4em;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-2);
}
.card-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}

/* ---------- 11. SHOWCASE ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

.showcase {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.showcase:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow);
}

.showcase-frame {
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-3) var(--sp-4);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
}
.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c840; }

.browser-url {
  flex: 1;
  margin-left: var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: .35rem .7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.showcase-preview {
  background: var(--c-surface);
  border-radius: 8px;
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  min-height: 240px;
}
.showcase-preview.showcase-screenshot {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.showcase-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-block { margin-bottom: var(--sp-4); }
.preview-line {
  height: 14px;
  background: var(--c-surface-2);
  border-radius: 4px;
  margin-bottom: var(--sp-2);
}
.preview-line.w-60 { width: 60%; }
.preview-line.w-50 { width: 50%; }
.preview-line.w-40 { width: 40%; }
.preview-line.w-35 { width: 35%; }
.preview-line.w-30 { width: 30%; }
.preview-line.short { height: 10px; }
.preview-btn {
  width: 130px;
  height: 36px;
  background: var(--c-primary);
  border-radius: 6px;
  margin-top: var(--sp-3);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.preview-grid.preview-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 480px) {
  .preview-grid.preview-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
.preview-tile {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--c-surface-2), var(--c-border));
  border-radius: 6px;
}

.preview-btn-row {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.preview-btn {
  width: 130px;
  height: 36px;
  background: var(--c-primary);
  border-radius: 6px;
  margin-top: var(--sp-3);
}
.preview-btn.preview-btn-primary { margin-top: 0; }
.preview-btn.preview-btn-ghost {
  margin-top: 0;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
}
@media (max-width: 380px) {
  .preview-btn { width: 100px; }
}

.showcase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
}

.showcase-title {
  font-weight: 600;
  font-size: var(--fs-md);
  margin-bottom: var(--sp-1);
  color: var(--c-text);
}
.showcase-desc {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  max-width: 60ch;
}
.showcase-cta {
  color: var(--c-primary);
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.showcase-note {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-top: var(--sp-5);
}

/* ---------- 12. TECH GRID ---------- */
.tech-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.tech-grid li {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  text-align: left;
  margin: 0;
  transition: border-color var(--t-fast) var(--ease);
}
.tech-grid li:hover { border-color: var(--c-primary); }
.tech-grid strong {
  display: block;
  color: var(--c-text);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.tech-grid span {
  display: block;
  color: var(--c-text-soft);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

/* ---------- 13. PROCESS ---------- */
.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  counter-reset: step;
}
.process li {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin: 0;
  position: relative;
  transition: border-color var(--t-fast) var(--ease);
}
.process li:hover { border-color: var(--c-primary); }

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
  padding: .25rem .6rem;
  background: var(--c-primary-glow);
  border-radius: 6px;
}

.process h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.process p  { font-size: var(--fs-sm); margin: 0; color: var(--c-muted); }

/* ---------- 14. CTA-BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  padding: var(--sp-8) 0;
  text-align: center;
  color: var(--c-primary-text);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .5;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 {
  color: var(--c-primary-text);
  margin-bottom: var(--sp-3);
}
.cta-band p {
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-md);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-primary {
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.cta-band .btn-primary:hover {
  background: var(--c-surface);
  color: var(--c-text);
}

/* ---------- 15. KONTAKT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-6);
  align-items: start;
}

.contact-info {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.contact-item + .contact-item { border-top: 1px dashed var(--c-border); }

.contact-key {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
}
.contact-val {
  font-weight: 600;
  color: var(--c-text);
  text-align: right;
  word-break: break-word;
}
a.contact-val:hover { color: var(--c-primary); }
.contact-val-ok { color: var(--c-primary); }

.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.contact-form h3 { margin-bottom: var(--sp-2); }

.contact-iframe-wrap iframe {
  display: block;
  width: 100%;
  min-height: 600px;
}

/* ----- Real-Form-Variante (Kontaktformular mit Backend) ----- */
.contact-form-real .form-subtitle {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin: 0 0 var(--sp-4);
}

.contact-form-real .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 480px) {
  .contact-form-real .form-row { grid-template-columns: 1fr; }
}

.contact-form-real .req {
  font-style: normal;
  color: var(--c-danger);
  font-weight: 600;
  margin-left: 2px;
}

.contact-form-real .field textarea {
  min-height: 130px;
  resize: vertical;
}

/* ALTCHA widget themed via CSS custom properties.
   WICHTIG: --altcha-color-base ist der HINTERGRUND (nicht Text!),
   --altcha-color-text ist die Textfarbe. Beide via CSS-Variablen
   der Page = automatisches Light/Dark-Switching. */
.contact-form-real altcha-widget {
  --altcha-color-base: var(--c-surface);
  --altcha-color-text: var(--c-text);
  --altcha-color-border: var(--c-border);
  --altcha-color-border-focus: var(--c-primary);
  --altcha-color-error-text: #f23939;
  --altcha-max-width: 100%;
  display: block;
  margin: var(--sp-3) 0;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Form-Status (Success / Error) */
.form-status {
  font-size: var(--fs-sm);
  margin-top: var(--sp-3);
  min-height: 1.4em;
  font-weight: 500;
  padding: var(--sp-3);
  border-radius: var(--radius);
  display: none;
}
.form-status:not(:empty) { display: block; }
.form-status.is-ok {
  display: block;
  background: color-mix(in srgb, var(--c-primary) 15%, var(--c-surface));
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
}
.form-status.is-err {
  display: block;
  background: color-mix(in srgb, var(--c-danger) 12%, var(--c-surface));
  color: var(--c-danger);
  border: 1px solid var(--c-danger);
}

.contact-form-real .submit-btn:disabled,
.contact-form-real button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.field {
  display: block;
  margin-bottom: var(--sp-4);
}
.field > span {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--sp-2);
  color: var(--c-text);
}
.field em { font-style: normal; color: var(--c-muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--c-surface);
}
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }

.honeypot {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin: var(--sp-3) 0;
}
.form-hint a { color: var(--c-primary); }

.form-status {
  font-size: var(--fs-sm);
  margin-top: var(--sp-3);
  min-height: 1.4em;
  font-weight: 500;
}
.form-status.is-ok  { color: var(--c-primary); }
.form-status.is-err { color: var(--c-danger); }

/* ---------- 16. FOOTER ---------- */
.site-footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-7);
  margin-top: var(--sp-9);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-7);
}

.footer-brand p {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  margin-top: var(--sp-3);
}

.footer-col h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); }
.footer-col a { color: var(--c-text-soft); }
.footer-col a:hover { color: var(--c-primary); }

.footer-status li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
}
.footer-status .dot { width: 8px; height: 8px; flex-shrink: 0; }
.footer-status code { font-size: .8em; }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-4) 0;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-meta code { font-size: .8em; }

/* ---------- 17. ANIMATIONS / HOVER STATES ----------
   Content ist immer sichtbar per Default. .reveal/.is-visible sind
   additive Klassen für künftige Animationen — sie verstecken nichts.
*/
.reveal { /* Default: sichtbar */ }
.reveal.is-visible { /* Klassen-Hook, frei für künftige Animationen */ }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .cards-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
  .stats-grid li + li::before { display: none; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --sp-9: 4rem; --sp-8: 3rem; }
  .section { padding: var(--sp-7) 0; }

  .primary-nav {
    position: fixed;
    top: var(--header-h-safe);
    left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h-safe));
    overflow-y: auto;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-3);
    padding-top: calc(var(--sp-3) + env(safe-area-inset-top, 0px));
    gap: 0;
    transform: translateY(-110%);
    transition: transform var(--t-base) var(--ease);
    box-shadow: var(--shadow);
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav a {
    padding: var(--sp-3);
    border-bottom: 1px solid var(--c-border);
  }
  .primary-nav a:last-child { border-bottom: none; }
  .primary-nav a::after { display: none; }

  .menu-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .hero { padding-top: var(--sp-7); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }

  .stats-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .showcase-meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- 19. PRINT ---------- */
@media print {
  .site-header, .hero-bg, .cta-band, .scroll-hint, .site-footer { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .hero { padding: 1cm 0; }
}
