/*
Theme Name: Nikolai Webstudio
Theme URI: https://nikolai-records.com
Author: Nikolai Records
Author URI: https://nikolai-records.com
Description: Eigenstaendiges Theme fuer den Nikolai Records Webstudio-Relaunch. Dunkles/Helles Design-System mit Bricolage Grotesque, IBM Plex Sans und IBM Plex Mono. Wird parallel zu Kallyas installiert und erst nach Freigabe aktiviert.
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nikolai-webstudio
*/

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root{
  --bg:#eef1f0;
  --surface:#ffffff;
  --surface-2:#e2e8e6;
  --border:#cdd5d2;
  --teal:#2f7d73;
  --teal-bright:#256a61;
  --amber:#a8672f;
  --text:#161a19;
  --text-muted:#4f5754;
  --text-faint:#828c88;
  --radius:2px;
  --font-display:'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:'IBM Plex Mono', 'Courier New', monospace;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0a0c0c;
    --surface:#121615;
    --surface-2:#191d1c;
    --border:#262b29;
    --teal:#4aa79a;
    --teal-bright:#63c1b3;
    --amber:#c98a4b;
    --text:#f1efea;
    --text-muted:#9ba39f;
    --text-faint:#6b7370;
  }
}
:root[data-theme="dark"]{
  --bg:#0a0c0c;
  --surface:#121615;
  --surface-2:#191d1c;
  --border:#262b29;
  --teal:#4aa79a;
  --teal-bright:#63c1b3;
  --amber:#c98a4b;
  --text:#f1efea;
  --text-muted:#9ba39f;
  --text-faint:#6b7370;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ font-family:var(--font-display); line-height:1.08; margin:0; text-wrap:balance; }
p{ margin:0; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
.eyebrow{
  font-family:var(--font-mono);
  font-size:0.8rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--teal);
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 28px;
  border-radius:var(--radius);
  font-family:var(--font-body);
  font-weight:600;
  font-size:0.95rem;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{ background:var(--teal); color:#04100e; }
.btn-primary:hover{ background:var(--teal-bright); }
.btn-secondary{ background:transparent; color:var(--text); border-color:var(--border); }
.btn-secondary:hover{ border-color:var(--teal); color:var(--teal); }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:40;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text); }
.brand img{ height:36px; width:36px; }
.brand-name{ font-family:var(--font-display); font-weight:700; font-size:1.05rem; }
.main-nav ul{ display:flex; gap:28px; list-style:none; margin:0; padding:0; }
.main-nav a{
  text-decoration:none; font-size:0.95rem; color:var(--text-muted);
  transition:color .15s ease;
}
.main-nav a:hover{ color:var(--text); }
.header-cta{ display:flex; align-items:center; gap:20px; }
.nav-cta-mobile{ display:none; }
.main-nav .nav-cta-mobile, .main-nav .nav-cta-mobile:hover{ color:#04100e; border-bottom:none; }
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:40px; height:40px;
  padding:0;
  background:transparent;
  border:1px solid var(--border);
  border-radius:var(--radius);
  cursor:pointer;
  flex-shrink:0;
}
.nav-toggle-bar{
  display:block;
  width:20px; height:2px;
  background:var(--text);
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:900px){
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .main-nav{
    display:none;
    position:absolute;
    top:100%; left:0; right:0;
    flex-direction:column;
    align-items:flex-start;
    background:var(--bg);
    border-bottom:1px solid var(--border);
    padding:8px 24px 28px;
    max-height:calc(100vh - 76px);
    overflow-y:auto;
  }
  .main-nav.is-open{ display:flex; }
  .main-nav ul{ flex-direction:column; gap:0; width:100%; }
  .main-nav ul li{ width:100%; }
  .main-nav a{ display:block; padding:14px 0; font-size:1.05rem; border-bottom:1px solid var(--border); }
  .main-nav ul li:last-child a{ border-bottom:none; }
  .nav-cta-mobile{ display:inline-flex; margin-top:20px; }
}

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--border);
  padding:56px 0 28px;
  font-size:0.92rem;
  color:var(--text-muted);
}
.footer-grid{
  display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px;
  margin-bottom:32px;
}
.footer-grid h4{ font-family:var(--font-mono); font-size:0.78rem; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); margin-bottom:14px; }
.footer-grid a{ display:block; text-decoration:none; color:var(--text-muted); margin-bottom:8px; }
.footer-grid a:hover{ color:var(--teal); }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  padding-top:20px; border-top:1px solid var(--border);
  font-family:var(--font-mono); font-size:0.8rem;
}
@media (max-width:700px){ .footer-grid{ grid-template-columns:1fr; } }

/* ---------- Hero ---------- */
.hero{ position:relative; overflow:hidden; min-height:clamp(440px, 54vh, 600px); display:flex; align-items:center; }
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background-size:cover; background-position:center 38%;
}
.hero-bg::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,12,12,.82), rgba(10,12,12,.55) 55%, var(--bg) 96%);
}
:root:not([data-theme="dark"]) .hero-bg::after{
  background:linear-gradient(180deg, rgba(10,12,12,.72), rgba(10,12,12,.5) 55%, var(--bg) 96%);
}
.hero-inner{ position:relative; z-index:1; padding:32px 0 48px; color:#f1efea; }
.hero-tags{ font-family:var(--font-mono); font-size:0.8rem; letter-spacing:.06em; text-transform:uppercase; color:var(--teal-bright); margin-bottom:22px; }
.hero h1{ font-size:clamp(2.4rem, 5vw, 3.6rem); font-weight:700; color:#f7f6f2; margin-bottom:22px; }
.hero h1 em{ font-style:normal; color:var(--teal-bright); }
.hero p.lead{ max-width:56ch; color:#c9d0cc; font-size:1.05rem; margin-bottom:32px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.hero-facts{
  display:flex; flex-wrap:wrap; gap:32px; padding-top:24px; border-top:1px solid rgba(255,255,255,.16);
  font-size:0.88rem; color:#c9d0cc;
}
.hero-facts b{ font-family:var(--font-mono); color:#f1efea; font-weight:600; }

/* ---------- Leistungen teaser (Home) ---------- */
.grid-services{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border); border:1px solid var(--border); }
@media (max-width:900px){ .grid-services{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .grid-services{ grid-template-columns:1fr; } }
.service-card{ background:var(--surface); padding:28px; display:flex; flex-direction:column; gap:10px; text-decoration:none; color:var(--text); }
.service-card .icon{ width:34px; height:34px; display:flex; align-items:center; justify-content:center; color:var(--teal); font-size:1.3rem; }
.service-card h3{ font-size:1.08rem; }
.service-card p{ color:var(--text-muted); font-size:0.92rem; }
.service-card.accent{ background:color-mix(in srgb, var(--teal) 10%, var(--surface)); grid-column:span 2; }
@media (max-width:900px){ .service-card.accent{ grid-column:span 1; } }

.section{ padding:80px 0; }
.section-head{ max-width:64ch; margin-bottom:48px; }
.section-head h2{ font-size:clamp(1.8rem,3.2vw,2.4rem); margin:12px 0 14px; }
.section-head p{ color:var(--text-muted); }

/* ---------- Beispiele-Sektion (Webstudio) ---------- */
.examples-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--border); border:1px solid var(--border); margin-bottom:56px; }
@media (max-width:700px){ .examples-grid{ grid-template-columns:1fr; } }
.example-card{ background:var(--surface); display:flex; flex-direction:column; }
.example-preview{ position:relative; aspect-ratio:16/10; overflow:hidden; border-bottom:1px solid var(--border); }
.example-chrome{ position:absolute; top:0; left:0; right:0; height:22px; display:flex; align-items:center; gap:5px; padding:0 9px; z-index:2; }
.example-chrome span{ width:6px; height:6px; border-radius:50%; display:block; }
.example-scene{ position:absolute; inset:22px 0 0 0; }
.example-body{ padding:22px 24px 24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.example-tag{ font-family:var(--font-mono); font-size:0.72rem; letter-spacing:.04em; text-transform:uppercase; color:var(--text-faint); }
.example-card h3{ font-size:1.1rem; }
.example-card p{ color:var(--text-muted); font-size:0.9rem; }
.example-status{ font-family:var(--font-mono); font-size:0.72rem; color:var(--amber); margin-top:10px; padding-top:10px; border-top:1px solid var(--border); }
.example-card.pending .example-preview{ border-style:dashed; border-color:var(--border); }

/* ---------- Intro-Grid (Webstudio) & Video-Grid (Referenzen) — mobile Overflow-Fix 06.09.2026 ---------- */
.intro-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border); border:1px solid var(--border); margin-bottom:56px; }
@media (max-width:700px){ .intro-grid{ grid-template-columns:1fr; } }
.video-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:600px){ .video-grid{ grid-template-columns:1fr; } }

/* ---------- System-Badge (Über uns) — Verlinkung zu RIFF_N_REPS 06.09.2026 ---------- */
.system-badge{ display:inline-flex; align-self:flex-start; align-items:center; gap:8px; font-family:var(--font-mono); font-size:0.78rem; letter-spacing:.04em; text-transform:uppercase; color:var(--amber); text-decoration:none; border:1px solid var(--border); padding:8px 16px; transition:border-color .15s ease, background .15s ease; }
.system-badge:hover{ border-color:var(--amber); background:color-mix(in srgb, var(--amber) 8%, transparent); }


/* ---------- Beispiele-Sektion: klickbare Beispielkarten (06.09.2026) ---------- */
.example-card-link{ color:inherit; text-decoration:none; display:block; border-radius:2px; transition:transform .15s ease, box-shadow .15s ease; }
.example-card-link:hover, .example-card-link:focus-visible{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(0,0,0,.32); }
.example-link-hint{ font-family:var(--font-mono); font-size:0.72rem; letter-spacing:.04em; text-transform:uppercase; color:var(--teal); margin-top:10px; padding-top:10px; border-top:1px solid var(--border); opacity:0; transform:translateY(4px); transition:opacity .15s ease, transform .15s ease; }
.example-card-link:hover .example-link-hint, .example-card-link:focus-visible .example-link-hint{ opacity:1; transform:none; }
