/* ============================================================
   techmacher — Design Tokens & Shared Components
   ============================================================ */
:root {
  --tm-accent: #00FF6C;
  --tm-accent-dim: #00C754;
  --tm-accent-glow: rgba(0, 255, 108, 0.18);
  --tm-bg: #0B0826;
  --tm-bg-elev: #14102E;
  --tm-bg-card: #14102E;
  --tm-fg: #F2EFFE;
  --tm-fg-muted: #9A96B5;
  --tm-fg-dim: #5C588A;
  --tm-line: #1F1B3D;
  --tm-line-strong: #2D2950;
  --tm-font-display: "Inter Tight", system-ui, sans-serif;
  --tm-font-body: "Inter Tight", system-ui, sans-serif;
  --tm-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --tm-pad: clamp(20px, 4vw, 64px);
  --tm-section-y: clamp(80px, 10vw, 160px);
  --tm-r-sm: 4px;
  --tm-r-md: 8px;
  --tm-r-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--tm-bg); color: var(--tm-fg); font-family: var(--tm-font-body); -webkit-font-smoothing: antialiased; }
body { font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--tm-accent); color: #0B0826; }

/* ---------- Type scale ---------- */
.tm-display {
  font-family: var(--tm-font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-size: clamp(48px, 8vw, 128px);
  text-wrap: balance;
}
.tm-h1 { font-family: var(--tm-font-display); font-weight: 500; letter-spacing: -0.035em; line-height: 1; font-size: clamp(36px, 5.5vw, 80px); text-wrap: balance; }
.tm-h2 { font-family: var(--tm-font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(28px, 3.5vw, 52px); text-wrap: balance; }
.tm-h3 { font-family: var(--tm-font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(22px, 2vw, 30px); }
.tm-eyebrow {
  font-family: var(--tm-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tm-fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tm-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--tm-accent);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--tm-accent-glow);
}
.tm-mono { font-family: var(--tm-font-mono); }
.tm-lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--tm-fg-muted); line-height: 1.5; max-width: 60ch; text-wrap: pretty; }
.tm-mono-label { font-family: var(--tm-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tm-fg-dim); }

/* ---------- Layout ---------- */
.tm-container { max-width: 1440px; margin: 0 auto; padding: 0 var(--tm-pad); }
.tm-section { padding-block: var(--tm-section-y); }
.tm-divider { border: 0; border-top: 1px solid var(--tm-line); }

/* ---------- Buttons ---------- */
.tm-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px;
  font-family: var(--tm-font-display); font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.tm-btn--primary { background: var(--tm-accent); color: #0B0826; }
.tm-btn--primary:hover { transform: translateY(-2px); background: #4dffa0; }
.tm-btn--ghost { background: transparent; color: var(--tm-fg); border: 1px solid var(--tm-line-strong); }
.tm-btn--ghost:hover { border-color: var(--tm-accent); color: var(--tm-accent); }
.tm-btn .arrow { transition: transform 0.2s ease; }
.tm-btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Pill / chip ---------- */
.tm-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--tm-line-strong);
  border-radius: 999px;
  font-family: var(--tm-font-mono);
  font-size: 12px;
  color: var(--tm-fg-muted);
}
.tm-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--tm-accent); box-shadow: 0 0 8px var(--tm-accent); animation: tm-pulse 2s ease-in-out infinite; }
@keyframes tm-pulse { 50% { opacity: 0.4; } }

/* ---------- Card ---------- */
.tm-card { background: var(--tm-bg-elev); border: 1px solid var(--tm-line); border-radius: var(--tm-r-md); }

/* ---------- Image placeholder ---------- */
.tm-placeholder {
  position: relative;
  background-color: var(--tm-bg-elev);
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,0.025) 12px 13px);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-r-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--tm-fg-dim);
  font-family: var(--tm-font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tm-placeholder::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px dashed var(--tm-line-strong);
  border-radius: var(--tm-r-sm);
  pointer-events: none;
}
.tm-placeholder span { position: relative; z-index: 1; padding: 6px 10px; background: var(--tm-bg-elev); border-radius: 4px; }

/* ---------- Marquee ---------- */
.tm-marquee {
  display: flex; overflow: hidden; gap: 64px;
  border-block: 1px solid var(--tm-line);
  padding-block: 24px;
  white-space: nowrap;
}
.tm-marquee-track { display: flex; gap: 64px; animation: tm-marquee 40s linear infinite; flex-shrink: 0; padding-right: 64px; }
@keyframes tm-marquee { to { transform: translateX(-100%); } }
.tm-marquee-item { font-family: var(--tm-font-display); font-size: clamp(48px, 7vw, 96px); font-weight: 500; letter-spacing: -0.03em; color: var(--tm-fg); display: inline-flex; align-items: center; gap: 32px; }
.tm-marquee-item::after { content: "\2605"; color: var(--tm-accent); font-size: 0.6em; }

/* ---------- Stats ---------- */
.tm-stat-num { font-family: var(--tm-font-display); font-weight: 500; font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.04em; line-height: 0.9; }
.tm-stat-num sup { font-size: 0.4em; vertical-align: super; color: var(--tm-accent); margin-left: 4px; }
.tm-stat-label { font-family: var(--tm-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tm-fg-muted); margin-top: 8px; }

/* ============================================================
   HEADER (index-three Layout)
   ============================================================ */
.three-header {
  border-bottom: 1px solid var(--tm-line);
  background: var(--tm-bg);
  position: sticky; top: 0; z-index: 50;
}
.three-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px; gap: 24px;
}
.three-logo img { height: 45px; width: auto; display: block; }
.nav-meta { display: flex; gap: 32px; list-style: none; }
.nav-meta a {
  display: inline-flex; gap: 10px; align-items: center;
  color: var(--tm-fg); font-size: 14px;
}
.nav-meta-icon {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--tm-line-strong);
  display: grid; place-items: center; color: var(--tm-accent);
}
.header-actions { display: flex; gap: 16px; align-items: center; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--tm-fg);
  padding: 10px 16px; border: 1px solid var(--tm-line-strong); border-radius: 999px;
}
@media (max-width: 1024px) { .nav-meta { display: none !important; } }

/* ============================================================
   OFFCANVAS MENU
   ============================================================ */
.oc-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s; z-index: 100;
}
.oc-overlay.open { opacity: 1; pointer-events: auto; }
.oc-aside {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  background: var(--tm-bg); border-left: 1px solid var(--tm-line);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 101; display: flex; flex-direction: column; padding: 32px; overflow-y: auto;
}
.oc-aside.open { transform: translateX(0); }
.oc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.oc-head img { height: 32px; }
.oc-close {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--tm-line-strong);
  display: grid; place-items: center;
}
.oc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.oc-link, .oc-toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 16px 0;
  font-family: var(--tm-font-display); font-size: 28px; font-weight: 500;
  letter-spacing: -0.02em; border-bottom: 1px solid var(--tm-line);
  color: var(--tm-fg);
  text-align: left;
}
.oc-toggle .plus { color: var(--tm-accent); font-size: 18px; transition: transform 0.3s; }
.oc-toggle.open .plus { transform: rotate(45deg); }
.oc-sublist {
  list-style: none; max-height: 0; overflow: hidden;
  transition: max-height 0.4s; padding-left: 16px;
}
.oc-sublist.open { max-height: 400px; }
.oc-sublist a { display: block; padding: 10px 0; color: var(--tm-fg-muted); font-size: 15px; }
.oc-foot { margin-top: 32px; }
.oc-cta { width: 100%; justify-content: center; }
.oc-socials { display: flex; gap: 12px; margin-top: 24px; justify-content: center; }
.oc-socials a {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--tm-line-strong);
  display: grid; place-items: center;
  color: var(--tm-fg-muted);
  transition: border-color 0.2s, color 0.2s;
}
.oc-socials a:hover { border-color: var(--tm-accent); color: var(--tm-accent); }
.oc-socials svg { width: 16px; height: 16px; display: block; }

/* Footer social icons */
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--tm-line-strong);
  display: grid; place-items: center;
  color: var(--tm-fg-muted);
  transition: border-color 0.2s, color 0.2s;
}
.footer-socials a:hover { border-color: var(--tm-accent); color: var(--tm-accent); }
.footer-socials svg { width: 16px; height: 16px; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.tm-footer { border-top: 1px solid var(--tm-line); padding-block: var(--tm-section-y) 32px; font-size: 14px; }
.tm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.tm-footer h5 { font-family: var(--tm-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tm-fg-dim); margin-bottom: 16px; font-weight: 500; }
.tm-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tm-footer li a { color: var(--tm-fg-muted); transition: color 0.2s; }
.tm-footer li a:hover { color: var(--tm-accent); }
.tm-footer-brand img { height: 36px; width: auto; display: block; }
.tm-footer-brand p { color: var(--tm-fg-muted); margin-top: 16px; max-width: 320px; font-size: 14px; }
.tm-footer-brand .pill-row { margin-top: 24px; display: flex; gap: 8px; }
.tm-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--tm-line);
  font-family: var(--tm-font-mono); font-size: 12px; color: var(--tm-fg-dim);
  flex-wrap: wrap; gap: 16px;
}
@media (max-width: 768px) { .tm-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ============================================================
   MOBILE-OPTIMIERUNG (≤ 600 px)
   ============================================================ */
@media (max-width: 600px) {
  /* Header — kompakter */
  .three-header-inner { height: 72px; gap: 12px; }
  .three-logo img { height: 36px; }
  .menu-btn { padding: 9px 13px; font-size: 13px; }
  .menu-btn span { display: none; } /* nur Burger-Icon */
  .three-header .tm-btn--primary {
    height: 40px !important; font-size: 13px !important; padding: 0 16px !important;
  }

  /* Off-canvas Submenü-Items größer für Touch */
  .oc-sublist a { padding: 12px 0; font-size: 16px; }

  /* Footer — 1 Spalte bei sehr schmalem Viewport */
  .tm-footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .tm-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tm-footer { padding-block: clamp(48px, 10vw, 160px) 32px; }
}

/* Sehr kleine Phones (≤ 380 px): CTA im Header weglassen, mehr Platz für Logo */
@media (max-width: 380px) {
  .three-header .tm-btn--primary { display: none; }
  .three-logo img { height: 32px; }
  .three-header-inner { height: 64px; gap: 8px; }
}
