/* ===== N-developing – Professionelles Design-System ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font-family: inherit; cursor: pointer; }
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
input, textarea, select { font-family: inherit; }

:root {
  /* Code Theme – IDE/VS Code inspired */
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --bg-card: #21262d;
  --bg-card-hover: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #3fb950;
  --accent-hover: #56d364;
  --accent-soft: rgba(63, 185, 80, 0.15);
  --accent-blue: #58a6ff;
  --accent-purple: #a371f7;
  --accent-orange: #d29922;
  --border: #30363d;
  --border-subtle: #21262d;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Nav – Horizontal & Redesigned ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 0 28px;
  min-height: 58px;
  background:
    radial-gradient(900px 180px at 50% -40%, rgba(63, 185, 80, 0.12), transparent 60%),
    rgba(14, 19, 27, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(48, 54, 61, 0.75);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.site-nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.site-nav-bg {
  display: none;
}
.site-nav-code {
  display: none;
}
.site-nav .logo {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: color 0.2s;
}
.site-nav .logo:hover { color: #e2e8f0; text-decoration: none; }

.logo-cursor {
  color: var(--accent);
  font-weight: 500;
  margin-right: 5px;
  display: inline-block;
  animation: logo-bounce 2.6s ease-in-out infinite;
  transition: transform 0.2s;
}
.site-nav .logo:hover .logo-cursor {
  animation: logo-bounce-fast 0.5s ease-in-out infinite;
}

.logo-text {
  background: linear-gradient(90deg, #f8fafc 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.3s;
}
.site-nav .logo:hover .logo-text {
  background: linear-gradient(90deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-blink {
  color: var(--accent);
  margin-left: 1px;
  animation: logo-blink 1.1s step-end infinite;
  opacity: 1;
}

@keyframes logo-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes logo-bounce {
  0%, 100% { transform: translateX(0); }
  30%      { transform: translateX(3px); }
  60%      { transform: translateX(-1px); }
}
@keyframes logo-bounce-fast {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.site-nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
  border: 1px solid rgba(48, 54, 61, 0.7);
  background: rgba(13, 17, 23, 0.5);
}
.site-nav-links a:hover {
  color: var(--text);
  border-color: rgba(63, 185, 80, 0.5);
  background: rgba(63, 185, 80, 0.08);
}
.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav-actions::before {
  content: '';
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(63, 185, 80, 0.35), transparent);
  margin-right: 6px;
  opacity: 0.8;
}
.site-nav-login {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  border: 1px solid rgba(48, 54, 61, 0.75);
  background: rgba(13, 17, 23, 0.5);
}
.site-nav-login:hover {
  color: var(--text);
  border-color: rgba(63, 185, 80, 0.5);
  background: rgba(63, 185, 80, 0.08);
}
.site-nav-cta {
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0d1117;
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.98), rgba(63, 185, 80, 0.82));
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, filter 0.2s;
  margin-left: 14px;
  position: relative;
  box-shadow: 0 6px 20px rgba(63, 185, 80, 0.28);
}
.site-nav-cta::before {
  display: none;
}
.site-nav-cta:hover {
  background: var(--accent-hover);
  color: #0d1117;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(63, 185, 80, 0.34);
  filter: saturate(1.05);
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.site-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* ===== Footer – Hauptbereich ===== */
.site-footer {
  margin-top: auto;
  padding: 42px 24px 10px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(1200px 220px at 50% -10%, rgba(63, 185, 80, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(16, 21, 29, 0.98));
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.site-footer-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(48, 54, 61, 0.7);
  background: rgba(13, 17, 23, 0.45);
}
.site-footer-links a:hover {
  color: var(--text);
  border-color: rgba(63, 185, 80, 0.45);
  background: rgba(63, 185, 80, 0.08);
}
.site-footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.9;
  letter-spacing: 0.01em;
}
.site-footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
  margin-top: 6px;
}

/* ===== N-developing two-line brand logo ===== */
.site-nav .logo.logo-nd {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
}
.logo-nd-name {
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(90deg, #f8fafc 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.3s;
}
.site-nav .logo.logo-nd:hover .logo-nd-name {
  background: linear-gradient(90deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.logo-nd-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

/* ===== Legal Bar – ganz unten (Impressum, Datenschutz) ===== */
.site-legal {
  padding: 6px 24px 20px;
  background: transparent;
  border-top: none;
}
.site-legal-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.site-legal a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.9;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.site-legal a:hover {
  color: var(--text);
  opacity: 1;
  border-color: rgba(48, 54, 61, 0.8);
  background: rgba(13, 17, 23, 0.5);
}

.site-legal-sep {
  opacity: 0.5;
  margin: 0 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 2px 12px rgba(63, 185, 80, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(63, 185, 80, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(63, 185, 80, 0.1);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(63, 185, 80, 0.2);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover {
  background: initial;
  box-shadow: initial;
}

/* ===== Layout (Innen-Seiten) ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  width: 100%;
  animation: storeFadeIn 0.4s var(--ease-out) both;
}
.page-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.page-lead { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; line-height: 1.65; }
.login-hint { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.login-form { max-width: 400px; }

/* ===== Responsive Nav ===== */
@media (max-width: 768px) {
  .site-nav { padding: 14px 20px; flex-wrap: wrap; }
  .site-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
  background: rgba(15, 20, 28, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    padding: 16px 20px;
  }
  .site-nav-menu.is-open {
    display: flex;
  }
  .site-nav-menu .site-nav-links {
    flex-direction: column;
    gap: 0;
  }
  .site-nav-menu .site-nav-links a {
    display: block;
    padding: 11px 12px;
    border: 1px solid rgba(48, 54, 61, 0.75);
    margin-bottom: 8px;
    border-radius: 10px;
  }
  .site-nav-menu .site-nav-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .site-nav-actions::before { display: none; }
  .site-nav-menu .site-nav-login {
    width: 100%;
    text-align: center;
    border-radius: 10px;
  }
  .site-nav-cta { display: none; }
  .site-nav-menu.is-open ~ .site-nav-cta,
  .site-nav-cta.mobile-visible { display: inline-block; margin: 12px 20px 0 0; }
  .site-nav-toggle { display: flex; }

  .site-footer {
    padding: 32px 16px 8px;
  }
  .site-legal {
    padding: 4px 16px 16px;
  }
  .site-footer-links {
    gap: 10px;
    margin-bottom: 12px;
  }
  .site-legal-inner {
    gap: 8px;
  }
}
