@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; }
body { font-family: 'Outfit', system-ui, sans-serif; margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: #333; }
.brand { color: #c9a227; font-weight: 600; }
header .brand { color: #d4af37; }
header { background: #1a1a2e; color: #eee; padding: 1rem 2rem; display: flex; align-items: center; gap: 0.75rem; }
.nav-menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(201,162,39,0.4); border-radius: 6px;
  cursor: pointer; color: #eee;
}
.nav-menu-btn:hover { background: rgba(255,255,255,0.15); border-color: #c9a227; }
.nav-menu-btn span { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 1px; }
header nav { flex: 1; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
header nav a { color: #eee; text-decoration: none; }
header nav a:hover { text-decoration: underline; }
header nav a.brand { font-size: 1.25rem; font-weight: 600; }
header nav a.brand:hover { color: #e8c547; }
header nav a.nav-login {
  margin-left: auto;
  color: #d4af37;
  padding: 0.4rem 1rem;
  border: 1px solid #c9a227;
  border-radius: 9999px;
  background: rgba(201, 162, 39, 0.15);
}
header nav a.nav-login:hover { color: #e8c547; background: rgba(201, 162, 39, 0.25); border-color: #e8c547; }
header nav .nav-status { color: rgba(255,255,255,0.9); font-size: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; }
header nav .nav-status:first-of-type { margin-left: 6cm; }
header nav .status-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #2ecc71; }
header nav .nav-logout {
  display: none;
  margin: 0; padding: 0.35rem 0.6rem;
  font-family: inherit; font-size: 0.9rem;
  color: #e74c3c;
  background: transparent;
  border: 1px solid #e74c3c;
  border-radius: 6px;
  cursor: pointer;
}
header nav .nav-logout.nav-logout-visible { display: inline-block; }
header nav .nav-logout:hover { color: #fff; border-color: #c0392b; background: #c0392b; }
.header-gold { height: 3px; background: #c9a227; }
.hashrate-ticker-bar {
  width: 100%;
  padding: 0.4rem 0;
  overflow: hidden;
  background: #0d0d12;
  border-bottom: 1px solid rgba(201,162,39,0.3);
}
.hashrate-ticker-track {
  display: flex;
  width: max-content;
  animation: hashrateScroll 280s linear infinite;
}
.hashrate-ticker-track:hover { animation-play-state: paused; }
.hashrate-ticker-text {
  color: #d4af37;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  padding-right: 2.5rem;
}
@keyframes hashrateScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
main { flex: 1; max-width: 100%; margin: 0; padding: 2rem; }
.home-main { padding: 0; }
.content-wrap {
  width: 100%;
  background: linear-gradient(180deg, #0d0d12 0%, #16161d 30%, #1a1a22 100%);
  position: relative; z-index: 2;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.ticker-bar {
  width: 100%;
  padding: 0.5rem 0;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}
.content-wrap-gold { height: 3px; background: #c9a227; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 280s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-text {
  color: #d4af37;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  padding-right: 3rem;
}
.ticker-pct {
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 0.2em;
}
.ticker-pct.ticker-up { background: #0d5c0d; color: #a8e6a8; }
.ticker-pct.ticker-down { background: #5c0d0d; color: #ffb3b3; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.content-body { display: flex; width: 100%; min-height: 380px; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.terminal-pane {
  flex: 0 0 calc(260px + 1cm);
  overflow: hidden;
  border-right: 1px solid rgba(201,162,39,0.25);
  background: rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  max-height: calc(420px + 4cm);
}
.terminal-pane-right {
  border-right: none;
  border-left: 1px solid rgba(201,162,39,0.25);
}
@media (max-width: 900px) {
  .terminal-pane { display: none; }
}
.terminal-scroll {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.terminal-code {
  padding: 0.75rem 0.6rem 0.5rem;
  margin: 0;
  font-family: 'Consolas', 'Monaco', 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(200,220,200,0.9);
  white-space: pre;
  animation: terminalScroll 40s linear infinite;
}
.terminal-code .t-cmd { color: #d4af37; }
.terminal-code .t-key { color: #7ecfff; }
.terminal-code .t-fn { color: #d7ba7d; }
.terminal-code .t-txt { color: rgba(200,220,200,0.9); }
.terminal-code .t-comment { color: #6a9955; }
.terminal-code .t-ok { color: #4ec9b0; }
@keyframes terminalScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.terminal-code-fast { animation-duration: 28s; }
.terminal-typing {
  padding: 0.4rem 0.6rem 0.75rem;
  font-family: 'Consolas', 'Monaco', 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(200,220,200,0.95);
  border-top: 1px solid rgba(201,162,39,0.2);
  background: rgba(0,0,0,0.4);
  min-height: 1.6em;
}
.terminal-cursor {
  color: #d4af37;
  animation: terminalBlink 0.9s step-end infinite;
  margin-left: 1px;
}
@keyframes terminalBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.home-main .content {
  flex: 1;
  min-width: 0;
  max-width: 800px;
  margin: 0 auto;
  margin-top: -1.5cm;
  padding: 2.5rem 2rem;
  width: 100%;
}

/* Hero mit Slideshow + Animation */
.hero { margin-bottom: 0; position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-slideshow { background: #0d0d12; }
.hero-bg-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-bg-layer.active { opacity: 1; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(13,13,18,0.85) 0%, rgba(13,13,18,0.6) 50%, rgba(201,162,39,0.15) 100%);
  animation: overlayShift 12s ease-in-out infinite alternate;
}
@keyframes overlayShift {
  0% { opacity: 1; }
  100% { opacity: 0.92; }
}
.hero-shine {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, transparent 0%, rgba(201,162,39,0.08) 45%, rgba(201,162,39,0.12) 50%, transparent 55%);
  background-size: 200% 100%;
  animation: shine 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hero-inner { position: relative; z-index: 3; text-align: center; padding: 2rem; }
.hero h1 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 0 40px rgba(201,162,39,0.15);
}
.hero-brand-wrap {
  display: inline-block;
  position: relative;
  padding: 0.15em 0.35em;
}
.hero-brand-wrap::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 0.15em;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(201,162,39,0.25) 0%, rgba(201,162,39,0.08) 40%, transparent 70%);
  animation: heroGlow 4s ease-in-out infinite;
  z-index: -1;
}
.hero-brand-wrap::after {
  content: '';
  position: absolute;
  inset: -8%;
  border-radius: 0.12em;
  border: 1px solid rgba(201,162,39,0.35);
  animation: heroGlow 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes heroGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.hero h1 .brand {
  color: #d4af37;
  font-size: 1em;
  text-shadow: 0 0 30px rgba(201,162,39,0.4), 0 2px 24px rgba(0,0,0,0.6);
}
.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
}
.home-main .content .lead { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.92); margin-bottom: 2rem; font-weight: 400; }
.home-main .content p { line-height: 1.6; color: rgba(255,255,255,0.85); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.service-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(201,162,39,0.2); border-radius: 10px; padding: 1.25rem; }
.service-card h2 { margin: 0 0 0.5rem 0; font-size: 1.1rem; color: #e8d48a; }
.service-card h2::before { content: ''; display: inline-block; width: 4px; height: 1em; background: #c9a227; margin-right: 0.5rem; vertical-align: -0.15em; border-radius: 2px; }
.service-card p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.75); }
/* Seitliches Menü (Slide-in) */
.side-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.side-menu-overlay.is-open { opacity: 1; visibility: visible; }
.side-menu {
  position: fixed; top: 0; left: 0; width: 280px; max-width: 85vw; height: 100%;
  background: #1a1a2e; border-right: 2px solid #c9a227; z-index: 1001;
  transform: translateX(-100%); transition: transform 0.3s ease;
  padding: 1.5rem; box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}
.side-menu.is-open { transform: translateX(0); }
.side-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; padding: 0; font-size: 1.5rem; line-height: 1;
  background: transparent; border: none; color: #eee; cursor: pointer;
}
.side-menu-close:hover { color: #c9a227; }
.side-menu-nav { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 2.5rem; }
.side-menu-nav a {
  color: #eee; text-decoration: none; padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.side-menu-nav a:hover { color: #c9a227; }

.cookie-hinweis {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.5rem;
  background: #1a1a2e;
  border-top: 2px solid #c9a227;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-hinweis.is-hidden { display: none; }
.cookie-hinweis p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 600px;
}
.cookie-hinweis a {
  color: #c9a227;
  text-decoration: underline;
}
.cookie-hinweis a:hover { color: #e8c547; }
.cookie-hinweis-btn {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  background: #c9a227;
  color: #1a1a2e;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.cookie-hinweis-btn:hover { background: #d4af37; color: #0d0d12; }

footer { background: #f5f5f5; padding: 1rem 2rem; text-align: center; font-size: 0.9rem; }
footer a { color: #333; text-decoration: none; }
footer a:hover { text-decoration: underline; }
h2 { font-size: 1.25rem; margin-top: 1.5rem; }

/* Login-Seite */
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; background: #f5f5f5; }
.login-box {
  width: 100%; max-width: 360px;
  padding: 2rem;
  background: #1a1a2e;
  border: 2px solid #c9a227;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.login-box h1 { margin: 0 0 1rem 0; font-size: 1.5rem; color: #eee; text-align: center; }
.login-error { margin: 0 0 1rem 0; padding: 0.5rem; font-size: 0.9rem; color: #e74c3c; text-align: center; background: rgba(231,76,60,0.15); border-radius: 6px; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-form label { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; }
.login-form input {
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #eee;
}
.login-form input::placeholder { color: rgba(255,255,255,0.4); }
.login-form input:focus { outline: none; border-color: #c9a227; }
.login-btn {
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  background: #c9a227;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.login-btn:hover { background: #d4af37; }

/* Kontakt-Formular */
.kontakt-main { flex: 1; padding: 2rem; background: #f5f5f5; }
.kontakt-box {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  background: #1a1a2e;
  border: 2px solid #c9a227;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.kontakt-box h1 { margin: 0 0 0.5rem 0; font-size: 1.5rem; color: #eee; }
.kontakt-intro { margin: 0 0 1.5rem 0; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.kontakt-form { display: flex; flex-direction: column; gap: 1rem; }
.kontakt-form label { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; }
.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #eee;
}
.kontakt-form select { cursor: pointer; }
.kontakt-form select option { background: #1a1a2e; color: #eee; }
.kontakt-form textarea { min-height: 120px; resize: vertical; }
.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.kontakt-form input:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus { outline: none; border-color: #c9a227; }
.kontakt-btn {
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  background: #c9a227;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.kontakt-btn:hover { background: #d4af37; }
.kontakt-danke { margin: 1rem 0 0 0; padding: 0.75rem; color: #2ecc71; text-align: center; background: rgba(46,204,113,0.15); border-radius: 8px; }

/* Pools-Seite (Anmeldung erforderlich) */
.pools-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; background: #f5f5f5; }
.pools-gate {
  max-width: 420px;
  padding: 2rem;
  background: #1a1a2e;
  border: 2px solid #c9a227;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.pools-gate-text { margin: 0 0 1.5rem 0; font-size: 1.1rem; color: #eee; line-height: 1.5; }
.pools-gate-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  background: #c9a227;
  border-radius: 8px;
  text-decoration: none;
}
.pools-gate-btn:hover { background: #d4af37; }
.pools-content { width: 100%; max-width: 900px; margin: 0 auto; padding: 2rem; }
.pools-content-box {
  padding: 2rem;
  background: #1a1a2e;
  border: 2px solid #c9a227;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.pools-header-box {
  padding: 1.25rem 1.5rem;
  background: #1a1a2e;
  border: 2px solid #c9a227;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
}
.pools-header-box h1 { margin: 0 0 0.5rem 0; color: #eee; font-size: 1.5rem; }
.pools-header-box .pools-content-text { margin: 0; color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.pools-content-text { margin: 0; color: rgba(255,255,255,0.9); }
.pools-coin { margin: 1rem 0 0.5rem 0; font-size: 1.1rem; font-weight: 600; color: #c9a227; }
.pools-link-wrap { margin: 1.25rem 0 0.5rem 0; }
.pools-link-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  background: #c9a227;
  border-radius: 8px;
  text-decoration: none;
}
.pools-link-btn:hover { background: #d4af37; }
.pools-content-box .pools-url { margin: 0; color: rgba(255,255,255,0.6); }

/* Rechenzentrum KI-Chat (nur sichtbar wenn angemeldet) */
#auth-content.rechenzentrum-chat-wrap { display: none; }
#auth-content.rechenzentrum-chat-wrap.auth-visible { display: flex !important; }
.rechenzentrum-chat-wrap { width: 100%; max-width: calc(720px + 10cm); margin: 0 auto; padding: 2rem; flex-direction: column; min-height: 400px; }
.rechenzentrum-chat-wrap.auth-visible { display: flex; }
.rechenzentrum-chat-wrap h1 { margin: 0 0 0.5rem 0; color: #333; font-size: 1.35rem; }
.rechenzentrum-intro { margin: 0 0 1rem 0; color: #555; font-size: 0.95rem; }
.rechenzentrum-chat {
  flex: 1;
  min-height: calc(420px + 5cm);
  max-height: calc(65vh + 5cm);
  overflow-y: auto;
  padding: 1rem;
  background: #1a1a2e;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.rechenzentrum-msg { margin-bottom: 1rem; }
.rechenzentrum-msg:last-child { margin-bottom: 0; }
.rechenzentrum-msg-label { font-size: 0.75rem; font-weight: 600; color: #c9a227; display: block; margin-bottom: 0.25rem; }
.rechenzentrum-msg p { margin: 0; color: #eee; line-height: 1.5; font-size: 0.95rem; }
.rechenzentrum-msg-user .rechenzentrum-msg-label { color: #6ab7ff; }
.rechenzentrum-msg-user p { color: #ddd; }
.rechenzentrum-form { display: flex; gap: 0.5rem; align-items: flex-end; }
.rechenzentrum-form textarea {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 8px;
  resize: vertical;
}
.rechenzentrum-send {
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  background: #c9a227;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.rechenzentrum-send:hover { background: #d4af37; }

/* Kundenkonto */
.kundenkonto-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; background: #f5f5f5; }
.kundenkonto-box {
  width: 100%; max-width: 400px;
  padding: 2rem;
  background: #1a1a2e;
  border: 2px solid #c9a227;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.kundenkonto-box h1 { margin: 0 0 1rem 0; font-size: 1.5rem; color: #eee; text-align: center; }
.kundenkonto-welcome { margin: 0 0 1.5rem 0; color: rgba(255,255,255,0.9); text-align: center; }
.kundenkonto-links {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}
.kundenkonto-links .kundenkonto-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.5rem 1rem;
  color: #1a1a2e;
  background: #c9a227;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}
.kundenkonto-link:hover { background: #d4af37; }
.kundenkonto-logout {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #eee;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  cursor: pointer;
}
.kundenkonto-logout:hover { background: rgba(255,255,255,0.1); }
