/* =========================================================
   zebolein.de — Dark Maker Theme
   ========================================================= */

/* Self-hosted Fonts (kein Google-CDN, keine Drittanbieter-Verbindung) */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-v24-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-v24-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0d10;
  --bg-elev: #12151a;
  --bg-elev-2: #181c22;
  --border: #262b33;
  --text: #e6e8eb;
  --text-dim: #9aa2ad;
  --text-faint: #656d78;
  --accent: #ff7a1a;      /* Filament-Orange */
  --accent-hover: #ff8f3d;
  --accent-2: #35d0c0;    /* Kühles Akzent-Cyan */
  --success: #4ade80;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 8px 30px rgba(0,0,0,0.35);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,122,26,0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(53,208,192,0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #14110d;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { color: var(--text-dim); margin: 0 0 1em; }
code, .mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,13,16,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--mono);
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #b8460e);
  color: #14110d;
  font-size: 1rem;
}
.primary-nav { display: flex; gap: 28px; }
.primary-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.primary-nav a:hover,
.primary-nav a.active { color: var(--text); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px; height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  background: rgba(53,208,192,0.1);
  border: 1px solid rgba(53,208,192,0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}
.hero .lead {
  font-size: 1.15rem;
  max-width: 60ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a1206; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { margin-bottom: 40px; max-width: 65ch; }
.section-head .kicker {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

/* ---------- Project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s ease, transform .15s ease;
}
.card.is-live { border-color: rgba(255,122,26,0.35); }
.card:hover { transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}
.badge.live { color: var(--success); border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.08); }
.badge.planned { color: var(--text-faint); }
.card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.card p { margin-bottom: 8px; flex-grow: 1; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); background: var(--bg-elev-2); padding: 3px 8px; border-radius: 6px; }
.card-link { font-weight: 600; color: var(--accent); font-size: 0.9rem; }

/* ---------- Feature list ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255,122,26,0.12);
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.feature h4 { font-size: 1rem; margin-bottom: 6px; }
.feature p { font-size: 0.92rem; margin: 0; }

/* ---------- Tech stack pills ---------- */
.stack-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

/* ---------- Screenshot placeholder ---------- */
.shot-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.gallery-item:hover { border-color: rgba(255,122,26,0.4); transform: translateY(-2px); }
.gallery-link { display: block; cursor: zoom-in; }
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top;
}
.gallery-item figcaption {
  padding: 12px 16px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,7,9,0.92);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.lightbox-caption {
  color: var(--text);
  margin: 18px 0 0;
  max-width: 70ch;
  text-align: center;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Roadmap / timeline ---------- */
.timeline { border-left: 2px solid var(--border); padding-left: 24px; display: flex; flex-direction: column; gap: 22px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,122,26,0.15);
}
.timeline-item.done::before { background: var(--success); box-shadow: 0 0 0 4px rgba(74,222,128,0.15); }
.timeline-item h4 { margin-bottom: 4px; font-size: 1rem; }
.timeline-item p { margin: 0; font-size: 0.92rem; }

/* ---------- Code block ---------- */
.codebox {
  background: #0d1013;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #b6f0c7;
}
.codebox .muted { color: var(--text-faint); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(255,122,26,0.12), rgba(53,208,192,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { margin-bottom: 6px; }
.cta-banner p { margin: 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 72ch; padding: 64px 24px 96px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 1.15rem; margin-top: 2em; }
.legal .todo {
  background: rgba(255,122,26,0.1);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text);
  margin: 10px 0 24px;
}

/* ---------- PDF embed ---------- */
.pdf-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  height: 75vh;
  min-height: 480px;
}
.pdf-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .logo-mark { margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; margin-top: 10px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-dim); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between;
  color: var(--text-faint); font-size: 0.82rem;
  padding: 28px 0 32px;
  flex-wrap: wrap; gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .primary-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    display: none;
    gap: 4px;
  }
  .primary-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 64px 0 48px; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  section { padding: 56px 0; }
}
