/* ============================================================
   ai.noclone.de — Stylesheet
   Aesthetic: Dark Terminal / Cyberpunk Green
   ============================================================ */

/* --- Fonts & Base --- */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Syne:wght@400;600;700;800&family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg:         #070c0a;
  --bg-2:       #0a1208;
  --bg-3:       #0d1a0d;
  --bg-4:       #111f11;
  --border:     #0f1f0f;
  --border-2:   #1a2e1a;
  --border-3:   #254025;
  --green:      #00ff88;
  --green-dim:  #00aa55;
  --green-dark: #005533;
  --green-ghost:#001f0f;
  --text:       #c8e8c8;
  --text-muted: #6a9e6a;
  --text-dim:   #4a7a4a;
  --mono:       'Share Tech Mono', monospace;
  --sans:       'Syne', sans-serif;
  --radius:     2px;
  --radius-lg:  4px;
  --max-w:      1180px;
  --transition: 180ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Scanlines overlay --- */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-family: var(--sans); font-weight: 800; color: var(--text); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { line-height: 1.75; color: var(--text-muted); }
a  { color: var(--green); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }
code, pre { font-family: var(--mono); }

.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.label.accent { color: var(--green-dim); }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,12,10,.95);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-prefix { color: var(--text-muted); }
.logo-n3     { color: var(--green-dark); }
.logo-ai     { color: var(--green); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}
.nav-link {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 0.5px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
}
.nav-link:hover,
.nav-link.nav-active {
  color: var(--green);
  border-color: var(--border-2);
  background: var(--bg-2);
  opacity: 1;
}

/* Desktop: actions rechts, Toggle + Portal nebeneinander */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-nav {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--green);
  border: 0.5px solid var(--green);
  padding: 7px 16px;
  border-radius: var(--radius);
  letter-spacing: 1px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-nav:hover {
  background: var(--green);
  color: var(--bg);
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--green);
}

/* --- Header Ticker --- */
.header-ticker {
  overflow: hidden;
  border-top: 0.5px solid var(--border);
  padding: 5px 0;
  background: var(--bg-2);
}
.ticker-inner {
  display: inline-flex;
  gap: 24px;
  white-space: nowrap;
  /* Start von ganz rechts: translateX(100vw) → translateX(-100%) */
  animation: ticker 35s linear infinite;
  will-change: transform;
}
@keyframes ticker {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}
.tick-item {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tick-sep { color: var(--border-3); font-family: var(--mono); font-size: .65rem; }
.tick-dot, .status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
.tick-dot.offline, .status-dot.offline { background: #e24b4a; animation: none; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: 1px;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-primary {
  background: var(--green);
  color: var(--bg);
  font-weight: 700;
}
.btn-primary:hover { background: #00cc66; opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 0.5px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--green-dim); color: var(--green-dim); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 0.5px solid var(--border);
}
.btn-ghost:hover { color: var(--green); border-color: var(--green-dark); opacity: 1; }

.btn-danger { background: #a32d2d; color: #f7c1c1; }
.btn-sm { padding: 7px 16px; font-size: .7rem; }
.btn-lg { padding: 14px 32px; font-size: .9rem; }

/* --- Cards --- */
.card {
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-2); }
.card-accent { border-left: 2px solid var(--green); }

/* --- Grid layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .4;
  pointer-events: none;
}
.hero-bg-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00ff8808 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--green-dim);
  border: 0.5px solid var(--green-dark);
  background: var(--green-ghost);
  padding: 5px 12px;
  border-radius: var(--radius);
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.hero-title { color: #e8ffe8; margin-bottom: 16px; }
.hero-title em { color: var(--green); font-style: normal; }
.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 0.5px solid var(--border);
}
.hero-stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green);
  font-family: var(--mono);
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- Service Cards --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bg-2);
  padding: 28px;
  position: relative;
  transition: background var(--transition);
  text-decoration: none;
  display: block;
  color: inherit;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover { background: var(--bg-3); opacity: 1; }
.service-card:hover::before { transform: scaleX(1); }

.svc-icon { font-size: 1.5rem; margin-bottom: 16px; color: var(--green-dim); }
.svc-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: .5px; }
.svc-desc { font-family: var(--mono); font-size: .75rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }
.svc-tag {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-2);
  color: var(--text-dim);
}
.svc-tag.new { color: var(--green); border-color: var(--green-dark); background: var(--green-ghost); }
.svc-arrow {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--text-dim);
  transition: all var(--transition);
}
.service-card:hover .svc-arrow { color: var(--green); transform: translate(3px,-3px); }

/* --- Code Block --- */
.code-block {
  background: #040804;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 2;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  white-space: pre-wrap;   /* umbrechen statt abschneiden */
  word-break: break-all;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-3);
  border-bottom: 0.5px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-dim);
}
.code-dot { width: 8px; height: 8px; border-radius: 50%; }
.cd-red { background: #e24b4a; } .cd-yellow { background: #ef9f27; } .cd-green { background: #639922; }
.code-block .c-g { color: var(--green); }
.code-block .c-b { color: #44aaff; }
.code-block .c-y { color: #ffaa00; }
.code-block .c-m { color: #aa66ff; }
.code-block .c-r { color: #ff6666; }
.code-block .c-dim { color: var(--text-dim); }

/* --- Terminal / Chat --- */
.terminal {
  background: #040804;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-3);
  border-bottom: 0.5px solid var(--border);
}
.terminal-body { padding: 20px; font-family: var(--mono); font-size: .8rem; min-height: 200px; }
.terminal-prompt { color: var(--green); }
.terminal-line { color: var(--text-muted); margin-bottom: 4px; }
.terminal-output { color: var(--green-dim); margin-left: 16px; margin-bottom: 4px; }

/* --- Chat Interface --- */
.chat-window {
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
}
.chat-header {
  padding: 14px 20px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--green-dark);
  background: var(--green-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--green);
}
.chat-name { font-weight: 700; font-size: .9rem; }
.chat-status { font-family: var(--mono); font-size: .65rem; color: var(--green-dim); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.chat-msg { display: flex; gap: 10px; }
.chat-msg.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 0.5px solid var(--border-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--text-dim);
  background: var(--bg-3);
}
.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.6;
  border: 0.5px solid var(--border);
  background: var(--bg-3);
  color: var(--text-muted);
}
.chat-msg.user .msg-bubble {
  background: var(--green-ghost);
  border-color: var(--green-dark);
  color: var(--text);
}
.msg-bubble.ai-bubble { color: var(--green-dim); }

.chat-input-area {
  padding: 16px 20px;
  border-top: 0.5px solid var(--border);
  display: flex;
  gap: 10px;
}
.chat-input {
  flex: 1;
  background: var(--bg-3);
  border: 0.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--green-dark); }
.chat-input::placeholder { color: var(--text-dim); }
.chat-send {
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--bg);
  font-family: var(--mono);
  font-size: .8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.chat-send:hover { background: #00cc66; }
.chat-send:disabled { opacity: .4; cursor: not-allowed; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg-3);
  border: 0.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--green-dark); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { min-height: 120px; resize: vertical; font-family: var(--mono); }
select.form-control { cursor: pointer; }
.form-hint { font-family: var(--mono); font-size: .65rem; color: var(--text-dim); margin-top: 4px; }

/* --- Textarea code editor --- */
.code-editor {
  font-family: var(--mono) !important;
  font-size: .8rem !important;
  min-height: 200px;
  background: #040804 !important;
  border-color: var(--border) !important;
  color: var(--green-dim) !important;
}

/* --- Tags / Badges --- */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: var(--radius);
}
.badge-green  { background: var(--green-ghost); color: var(--green); border: 0.5px solid var(--green-dark); }
.badge-muted  { background: var(--bg-3); color: var(--text-dim); border: 0.5px solid var(--border); }
.badge-yellow { background: #2a1f00; color: #ef9f27; border: 0.5px solid #3a2f00; }
.badge-red    { background: #1a0a0a; color: #e24b4a; border: 0.5px solid #2a1010; }

/* --- Result / Output box --- */
.result-box {
  background: #040804;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.8;
  color: var(--green-dim);
  min-height: 100px;
  white-space: pre-wrap;
  word-break: break-word;
}
.result-box.loading { color: var(--text-dim); }
.result-box.error   { color: #e24b4a; border-color: #2a1010; }

/* --- Section headers --- */
.section-head { margin-bottom: 48px; }
.section-head .label { margin-bottom: 8px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { max-width: 560px; }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}
.price-card {
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.price-card.featured {
  border-color: var(--green-dark);
  background: var(--bg-3);
  position: relative;
}
.price-recommended {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: 1px;
  background: var(--green);
  color: var(--bg);
  padding: 3px 14px;
  border-radius: var(--radius);
}
.price-tier {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-amount.featured-price { color: var(--green); }
.price-period { font-family: var(--mono); font-size: .7rem; color: var(--text-dim); margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  gap: 8px;
}
.price-features li::before { content: '▸'; color: var(--green); flex-shrink: 0; }

/* --- Docs --- */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.docs-sidebar { position: sticky; top: 80px; }
.docs-nav-group { margin-bottom: 24px; }
.docs-nav-title {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.docs-nav-link {
  display: block;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--text-muted);
  padding: 5px 10px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
  transition: all var(--transition);
}
.docs-nav-link:hover, .docs-nav-link.active {
  color: var(--green);
  border-color: var(--green);
  opacity: 1;
}
.docs-content h2 { color: var(--green-dim); margin: 40px 0 16px; font-size: 1.3rem; }
.docs-content h3 { color: var(--text-muted); margin: 28px 0 10px; font-size: 1rem; }
.docs-content p  { font-size: .9rem; margin-bottom: 16px; }

/* --- Page heroes (sub-pages) --- */
.page-hero {
  padding: 60px 0 48px;
  border-bottom: 0.5px solid var(--border);
  background:
    linear-gradient(180deg, var(--green-ghost) 0%, transparent 100%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--border) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--border) 40px);
}
.page-hero .label { margin-bottom: 12px; }
.page-hero h1 { margin-bottom: 12px; word-break: break-word; overflow-wrap: break-word; }
.page-hero p { font-size: 1rem; max-width: 580px; }
.page-hero { overflow: hidden; }

/* --- Demo page tabs --- */
.demo-tabs { display: flex; gap: 2px; margin-bottom: 28px; border-bottom: 0.5px solid var(--border); padding-bottom: 0; }
.demo-tab {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.demo-tab:hover  { color: var(--green-dim); }
.demo-tab.active { color: var(--green); border-bottom-color: var(--green); }

/* --- Alerts --- */
.alert {
  font-family: var(--mono);
  font-size: .8rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 0.5px solid;
  margin-bottom: 20px;
}
.alert-success { background: #001f0f; border-color: var(--green-dark); color: var(--green-dim); }
.alert-error   { background: #1a0a0a; border-color: #a32d2d; color: #f09595; }
.alert-info    { background: #001520; border-color: #0c447c; color: #85b7eb; }

/* --- Loading spinner --- */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border-2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Split layout --- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* --- Misc --- */
.text-green  { color: var(--green); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }  .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* --- Footer --- */
.site-footer {
  border-top: 0.5px solid var(--border);
  margin-top: 80px;
  background: var(--bg-2);
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 60px;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.footer-logo em { color: var(--green-dark); font-style: normal; }
.footer-tagline { font-family: var(--mono); font-size: .7rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.fbadge { font-family: var(--mono); font-size: .6rem; border: 0.5px solid var(--border-2); color: var(--text-dim); padding: 2px 8px; border-radius: var(--radius); }
.footer-nav { display: flex; gap: 40px; }
.footer-heading { font-family: var(--mono); font-size: .65rem; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 12px; font-weight: 400; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-family: var(--mono); font-size: .75rem; color: var(--text-dim); }
.footer-col ul li a:hover { color: var(--green-dim); opacity: 1; }
.footer-status { min-width: 180px; }
.status-items { display: flex; flex-direction: column; gap: 8px; }
.status-item { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .7rem; color: var(--text-dim); }
.status-val { margin-left: auto; color: var(--green-dim); }
.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding: 16px 24px;
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy, .footer-powered, .footer-version {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--text-dim);
}
.footer-powered a { color: var(--green-dim); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links { display: none; }

  /* Mobile Layout: Logo links | auto-spacer | ☀️ Toggle | ☰ Hamburger */
  .nav-container {
    gap: 0;
    justify-content: flex-start;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 0.5px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 16px 24px;
    gap: 4px;
    z-index: 99;
  }
  /* nav-actions: spacer zwischen Logo und rechter Seite */
  .nav-actions {
    margin-left: auto;
    gap: 6px;
  }
  /* Portal-Button auf Mobile ausblenden */
  .nav-actions .btn-nav { display: none; }
  /* Toggle immer sichtbar */
  .nav-actions .theme-toggle { display: flex; }

  /* Hamburger direkt nach nav-actions */
  .nav-toggle {
    display: flex;
    margin-left: 4px;
  }

  .site-header { position: relative; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .split-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 0 48px; }
  .hero-stats { gap: 24px; }
  .section { padding: 48px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile Fixes (≤ 768px)
   ═══════════════════════════════════════════════════════════ */

/* Basis: kein horizontales Overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
/* Textelemente umbrechen statt überlaufen */
p, li, td, th, span, a, label {
  overflow-wrap: break-word;
  word-break: break-word;
}
/* Code-Blöcke scrollen horizontal */
pre, .code-block {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre;
}
/* Bilder und Medien nie breiter als Container */
img, video, iframe, embed, object, svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {

  /* ── Container & Layout ── */
  .container { padding: 0 16px; }
  .section    { padding: 40px 0; }

  /* ── Headings — Überlauf verhindern ── */
  h1, h2, h3 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }

  /* ── Hero ── */
  .hero { padding: 48px 0 36px; }
  .hero-title { font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.15; }
  .hero-sub   { font-size: .88rem; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-cta   { flex-wrap: wrap; }

  /* ── Ticker ── */
  .ticker-track { animation-duration: 20s; }

  /* ── Service-Grid ── */
  .service-grid { grid-template-columns: 1fr; gap: 12px; }

  /* ── Demo-Tabs: horizontal scroll ── */
  .demo-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    gap: 0;
  }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: .65rem;
  }

  /* ── Terminal Cards ── */
  .terminal-card, .tc-body { overflow-x: hidden; }
  .tc-title { font-size: .65rem; letter-spacing: 1px; }

  /* ── Code-Blöcke ── */
  .code-block {
    font-size: .72rem;
    white-space: pre-wrap;
    word-break: break-all;
  }
  pre { overflow-x: auto; white-space: pre-wrap; }

  /* ── Docs / Split Layout ── */
  .docs-layout, .split-layout, .admin-grid-2 {
    grid-template-columns: 1fr;
  }
  .docs-sidebar { position: static; width: 100%; }

  /* ── Pricing Grid ── */
  .pricing-grid { grid-template-columns: 1fr; }

  /* ── Page Hero ── */
  .page-hero { padding: 48px 0 32px; }
  .page-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* ── Dienst-Seiten: Tabs ── */
  .service-tabs-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* ── Forms ── */
  .form-row { flex-direction: column; }
  .form-control { font-size: .85rem; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
  .footer-status { display: none; } /* Status-Bar auf Mobile verstecken */

  /* ── Tabellen ── */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── Buttons ── */
  .btn-group { flex-direction: column; width: 100%; }
  .btn-group .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  h1 { font-size: clamp(1.4rem, 8vw, 2rem); }

  /* Kein Tab-Text außer dem aktiven */
  .demo-tab:not(.active) { opacity: .7; }

  /* Section-Title auf kleinen Screens */
  .section-title { font-size: clamp(1.3rem, 7vw, 1.8rem); }

  /* Ticker ggf. deaktivieren */
  .ticker { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   LOGO — Dark/Light Switching
   logo.png      = buntes Logo (für LIGHT theme)
   logo_dark.png = helles/weißes Logo (für DARK theme)
   ═══════════════════════════════════════════════════════════ */
.nav-logo { display:flex; align-items:center; }
.logo-img  { height:36px; width:auto; display:none; }
.logo-text-fallback { display:inline; }

/* Dark theme → weißes/helles Logo (logo_dark.png) */
[data-theme="dark"]  .logo-img-dark    { display:none;  }
[data-theme="dark"]  .logo-img-light   { display:block; }
[data-theme="dark"]  .logo-text-fallback { display:none; }

/* Light theme → buntes farbiges Logo (logo.png) */
[data-theme="light"] .logo-img-dark    { display:block; }
[data-theme="light"] .logo-img-light   { display:none;  }
[data-theme="light"] .logo-text-fallback { display:none; }

/* ── Theme-Toggle Button ── */
.theme-toggle {
  background: none;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-muted);
  transition: border-color .2s, background .2s;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--green-dim); background: var(--bg-2); }
.theme-icon-dark  { display:inline; }
.theme-icon-light { display:none;   }
[data-theme="light"] .theme-icon-dark  { display:none;   }
[data-theme="light"] .theme-icon-light { display:inline; }


/* ═══════════════════════════════════════════════════════════
   LIGHT THEME — angepasst an neues Logo (Blau/Lila/Navy)
   Farbpalette: #0f1b3d Navy · #2563eb Blau · #7c3aed Lila
   ═══════════════════════════════════════════════════════════ */
[data-theme="light"] {
  /* Basis */
  --bg:        #f0f4ff;
  --bg-2:      #e8edf8;
  --bg-3:      #dde4f5;
  --border:    #c5d0ea;
  --border-2:  #a8b8df;

  /* Text */
  --text:      #0f1b3d;
  --text-muted:#2d4080;
  --text-dim:  #4a5fa8;

  /* Akzent — Blau statt Grün (passend zum Logo) */
  --green:      #2563eb;
  --green-dim:  #3b72f0;
  --green-dark: #1d4ed8;
  --green-ghost:rgba(37,99,235,.08);

  /* Spezifische Überschreibungen */
  --max-w: 1200px;
}

/* Body & Hintergrund */
[data-theme="light"] body         { background: var(--bg); color: var(--text); }
[data-theme="light"] .scanlines   { display: none; }

/* Header */
[data-theme="light"] .site-header { background: rgba(240,244,255,.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
[data-theme="light"] .header-ticker { background: #0f1b3d; }
[data-theme="light"] .tick-item,
[data-theme="light"] .tick-sep    { color: #93aee8; }

/* Nav */
[data-theme="light"] .nav-link    { color: var(--text-muted); }
[data-theme="light"] .nav-link:hover { color: var(--green); }
[data-theme="light"] .btn-nav     { background: var(--green); color: #fff; }
[data-theme="light"] .nav-logo    { color: var(--text); }

/* Hero */
[data-theme="light"] .hero              { background: linear-gradient(135deg, #e8edf8 0%, #dde4f5 100%); }
[data-theme="light"] .hero-bg-grid      { opacity: .06; }
[data-theme="light"] .hero-bg-glow      { background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.15) 0%, transparent 70%); }
[data-theme="light"] .hero-badge        { background: rgba(37,99,235,.1); border-color: rgba(37,99,235,.3); color: #2563eb; }
[data-theme="light"] .hero-title        { color: #0f1b3d; }
[data-theme="light"] .hero-title em     { color: #2563eb; }
[data-theme="light"] .hero-lead         { color: #2d4080; }
[data-theme="light"] .hero-stat-val     { color: #2563eb; }
[data-theme="light"] .hero-stat-label   { color: #4a5fa8; }

/* Cards & Panels */
[data-theme="light"] .terminal-card,
[data-theme="light"] .service-card      { background: #fff; border-color: var(--border); box-shadow: 0 2px 12px rgba(15,27,61,.06); }
[data-theme="light"] .tc-header         { background: #0f1b3d; }
[data-theme="light"] .tc-title          { color: #93aee8; }

/* Buttons */
[data-theme="light"] .btn-primary       { background: #2563eb; color: #fff; border-color: #2563eb; }
[data-theme="light"] .btn-primary:hover { background: #1d4ed8; }
[data-theme="light"] .btn-outline       { border-color: #2563eb; color: #2563eb; }
[data-theme="light"] .btn-outline:hover { background: #2563eb; color: #fff; }

/* Labels & Accents */
[data-theme="light"] .label.accent      { color: #7c3aed; }
[data-theme="light"] .section-title     { color: #0f1b3d; }

/* Code-Blöcke */
[data-theme="light"] .code-block        { background: #1e2a4a; border-color: #374e8a; color: #c5d3f0; }
[data-theme="light"] .code-header       { background: #0f1b3d; border-color: #374e8a; color: #93aee8; }

/* Footer */
[data-theme="light"] footer             { background: #0f1b3d; }
[data-theme="light"] .footer-bottom     { background: #080e22; }
[data-theme="light"] .footer-bottom-inner { color: #4a5fa8; }

/* Pricing */
[data-theme="light"] .price-card        { background: #fff; border-color: var(--border); }
[data-theme="light"] .price-card.featured { border-color: #2563eb; background: #eff5ff; }

/* Ticker-Dot */
[data-theme="light"] .tick-dot.online   { background: #22c55e; }

/* Scrollbar */
[data-theme="light"] {
  scrollbar-color: var(--border-2) var(--bg-2);
}

/* ── Light Theme Fonts: Montserrat + Poppins ── */
[data-theme="light"] {
  --sans: 'Montserrat', sans-serif;
  --body-font: 'Poppins', sans-serif;
}
[data-theme="light"] body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}
[data-theme="light"] .nav-link,
[data-theme="light"] .btn-nav,
[data-theme="light"] .hero-stat-label,
[data-theme="light"] .hero-badge,
[data-theme="light"] .label,
[data-theme="light"] .footer-heading {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0;
}
[data-theme="light"] p,
[data-theme="light"] li,
[data-theme="light"] .hero-lead,
[data-theme="light"] .svc-desc,
[data-theme="light"] .page-hero p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}
[data-theme="light"] .hero-stat-val {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}
/* Mono bleibt für Code und Terminal */
[data-theme="light"] code,
[data-theme="light"] pre,
[data-theme="light"] .code-block,
[data-theme="light"] .form-control,
[data-theme="light"] .result-box,
[data-theme="light"] .tick-item,
[data-theme="light"] .tick-sep,
[data-theme="light"] .demo-tab,
[data-theme="light"] .badge,
[data-theme="light"] .fbadge {
  font-family: 'Share Tech Mono', monospace;
}
