/*
Theme Name: ServiceDock — Coming Soon
Theme URI: https://www.servicedock.at
Author: ServiceDock / Bash
Description: Schlankes Single-Page-Theme das während der Bauphase auf servicedock.at läuft. Zeigt unter ALLEN URLs die selbe Coming-Soon-Seite mit Orbit-Hero, Wordmark, Slogan und Light/Dark-Toggle. Im Hintergrund kann WP normal weiter aufgesetzt werden — sobald fertig, einfach auf das volle „ServiceDock Pro"-Theme wechseln.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: servicedock-comingsoon
*/

/* ============ DESIGN-SYSTEM (aus shared.css portiert) ============ */
:root, html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f6f6f6;
  --bg-3: #ececec;
  --line: rgba(15,15,17,0.08);
  --line-2: rgba(15,15,17,0.16);
  --fg: #0f0f11;
  --fg-dim: #585b63;
  --fg-mute: #9a9da5;
  --nav-bg: rgba(255,255,255,0.78);
  --card-shadow: 0 4px 14px -6px rgba(15,15,17,0.08);
  --core-shadow: 0 30px 80px -20px rgba(15,15,17,0.10), 0 0 0 8px rgba(15,15,17,0.02);
  --btn-primary-hover: #2a2a2e;
  --core-bg: #ffffff;
  --accent-ink: #ffffff;
}
html[data-theme="dark"] {
  --bg: #0a0b0f;
  --bg-2: #111319;
  --bg-3: #1a1d26;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.16);
  --fg: #f4f5f7;
  --fg-dim: #a8aebb;
  --fg-mute: #6a7180;
  --nav-bg: rgba(10,11,15,0.72);
  --card-shadow: 0 4px 14px -6px rgba(0,0,0,0.6);
  --core-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 8px rgba(255,255,255,0.02);
  --btn-primary-hover: #ffffff;
  --core-bg: #15171f;
  --accent-ink: #0a0b0f;
}
:root {
  --orange: #ff7514;
  --orange-2: #ff8d3e;
  --accent: var(--orange);
  --accent-2: var(--fg-dim);
  --accent-glow: rgba(255,117,20,0.18);
  --accent-soft: rgba(255,117,20,0.08);
  --accent-line: rgba(255,117,20,0.30);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: 'Space Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; transition: background 0.3s ease, color 0.3s ease; }
body { overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ============ TOP BAR (Logo + Theme-Toggle) ============ */
.cs-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  animation: fadeDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cs-logo {
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 17px;
  color: var(--fg);
  transition: opacity 0.2s ease;
}
.cs-logo:hover { opacity: 0.85; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 44px; flex-shrink: 0; color: var(--fg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-logo:hover .logo-mark { transform: scale(1.04); }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.wordmark {
  font-family: 'Archivo Narrow', 'Space Grotesk', sans-serif;
  font-weight: 700; letter-spacing: -0.02em; font-size: 19px; color: var(--fg);
  display: inline-flex; align-items: baseline;
}
.wordmark .light { font-weight: 700; color: var(--orange); }
.wordmark .dot { color: var(--orange); }

.btn-icon {
  width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--fg-dim);
  border: 1px solid var(--line-2);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-icon:hover {
  color: var(--orange); background: var(--accent-soft);
  border-color: var(--accent-line);
  transform: rotate(20deg);
}
.btn-icon svg { width: 18px; height: 18px; }
html[data-theme="dark"]  .theme-icon-light { display: none; }
html[data-theme="light"] .theme-icon-dark  { display: none; }
:root .theme-icon-dark { display: none; }

/* ============ HERO ============ */
.cs-hero {
  flex: 1;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 32px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
}
.hero-eyebrow {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--fg-dim);
  margin-bottom: 28px;
}
.hero-eyebrow {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-eyebrow .live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-glow); transform: scale(1); }
  50%      { box-shadow: 0 0 0 8px transparent;        transform: scale(1.15); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cs-h1 {
  position: relative; z-index: 2;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.02; letter-spacing: -0.04em; font-weight: 600;
  margin: 0 0 20px; max-width: 1100px;
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cs-h1 .serif {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  color: var(--orange); opacity: 0.95;
}
.cs-sub {
  position: relative; z-index: 2;
  max-width: 600px; font-size: 18px; line-height: 1.5;
  color: var(--fg-dim); margin: 0 0 36px;
  animation: fadeUp 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cs-sub a { color: var(--orange) !important; transition: opacity 0.2s; text-decoration-color: var(--accent-line) !important; }
.cs-sub a:hover { opacity: 0.7; }

/* ============ ORBIT ============ */
.hero-orbit-stage {
  position: relative;
  width: min(560px, 80vw); height: min(560px, 80vw);
  margin: 28px auto 0;
  animation: fadeUp 1.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.orbit-ring {
  position: absolute; inset: 0; border: 1px solid var(--line-2);
  border-radius: 50%; animation: spin 40s linear infinite;
}
.orbit-ring.r2 { inset: 12%; border-color: var(--accent-line); animation-duration: 24s; animation-direction: reverse; }
.orbit-ring.r3 { inset: 26%; border-color: var(--accent-soft); animation-duration: 30s; }
.orbit-ring.r4 { inset: 40%; border-color: var(--accent-line); animation-duration: 18s; animation-direction: reverse; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.orbit-core {
  position: absolute; inset: 50%; width: 0; height: 0;
  display: flex; align-items: center; justify-content: center;
}
.orbit-core::before {
  /* Orange Glow-Halo hinter dem Core */
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 240px; height: 240px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  animation: breathe 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1.0; transform: translate(-50%, -50%) scale(1.12); }
}
.orbit-core-inner {
  position: absolute; transform: translate(-50%,-50%);
  width: 140px; height: 140px; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 36%, var(--core-bg) 0%, var(--bg-2) 100%);
  box-shadow: var(--core-shadow);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.orbit-core-inner svg {
  width: 60px; height: 60px;
  color: var(--fg);
  opacity: 0.88;
  flex-shrink: 0;
}

/* ============ ORBIT BEADS ============ */
/* Spinning arm from center — bead pushed to ring radius via calc() */
.orbit-bead-wrap {
  position: absolute;
  inset: 50%;
  width: 0; height: 0;
  pointer-events: none;
}
.orbit-bead {
  position: absolute;
  left: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px 4px var(--accent-glow);
  display: block;
}
/* Each bead-wrap matches its ring speed & direction */
.orbit-bead-wrap.bw1  { animation: spin 40s linear infinite; }
.orbit-bead-wrap.bw1  .orbit-bead { top: calc(-0.5  * min(560px, 80vw)); }

.orbit-bead-wrap.bw1b { animation: spin 40s linear infinite; animation-delay: -20s; }
.orbit-bead-wrap.bw1b .orbit-bead { top: calc(-0.5 * min(560px, 80vw)); background: var(--fg-mute); box-shadow: none; width: 7px; height: 7px; left: -3.5px; }

.orbit-bead-wrap.bw2  { animation: spin 24s linear infinite reverse; }
.orbit-bead-wrap.bw2  .orbit-bead { top: calc(-0.38 * min(560px, 80vw)); background: var(--fg-dim); box-shadow: 0 0 8px 2px var(--accent-glow); }

.orbit-bead-wrap.bw3  { animation: spin 30s linear infinite; animation-delay: -8s; }
.orbit-bead-wrap.bw3  .orbit-bead { top: calc(-0.24 * min(560px, 80vw)); }

/* ============ FOOTER ============ */
.cs-footer {
  padding: 22px 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--fg-mute);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.03em;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cs-footer a { color: var(--fg-mute); transition: color 0.2s; }
.cs-footer a:hover { color: var(--orange); }

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .cs-topbar  { padding: 16px 20px; }
  .cs-hero    { padding: 24px 20px 40px; }
  .wordmark   { font-size: 16px; }
  .logo-mark  { width: 64px; height: 36px; }
  .hero-eyebrow { font-size: 11px; }
  .cs-sub     { font-size: 16px; }
  .cs-footer  { padding: 20px; font-size: 11px; }
  .hero-orbit-stage { margin-top: 16px; }
}
