:root {
  --kirvx-bg: #05070a;
  --kirvx-green: #47F138;
  --kirvx-grey: #c9c9c9;
}

/* ============================================================
   TERMINAL SECTION WRAPPER (Background + Layout)
   ============================================================ */
.kirvx-terminal-section {
  position: relative;
  width: 100%;
  min-height: 620px;       /* SECTION KLEINER */
  height: auto;
  padding: 60px 0;         /* statt 0 */
  background:
    radial-gradient(circle at 0% 0%, rgba(71, 241, 56, 0.22) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(71, 241, 56, 0.18) 0, transparent 60%),
    var(--kirvx-bg);
  display: flex;
  align-items: center;     /* Terminal mittig vertikal */
  justify-content: flex-end;
  overflow: hidden;
}

/* ============================================================
   SECTION TITLE – NEU
   ============================================================ */
.terminal-section-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "StackSansNotch", Inter, sans-serif;
  font-size: 46px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: white;
  opacity: 0;
  animation: terminalTitleIn 0.8s ease-out forwards;
}

@keyframes terminalTitleIn {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================================
   LEFT: FULL-HEIGHT POSEIDON IMAGE — OPTIMIERT
   ============================================================ */
.terminal-image-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 42%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.terminal-image {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: left;
  filter: brightness(0.85);
  user-select: none;
}

/* ============================================================
   3-COLUMN TERMINAL LAYOUT (NICHT MEHR GENUTZT)
   ============================================================ */
.terminal-layout {
  position: relative;
  display: grid;
  grid-template-columns: 36% 22% 42%;
  width: 100%;
  height: 100vh;
  z-index: 2;
}

/* ============================================================
   MIDDLE: TITLE BLOCK
   ============================================================ */
.terminal-title-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-main-heading {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: white;
  opacity: 0;
  transform: translateY(18px);
  animation: terminalTitleIn 0.9s ease-out forwards;
}

/* ============================================================
   RIGHT: TERMINAL SHELL CORE
   ============================================================ */

.terminal-shell {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-right: 200px;    /* <<< NEUER ABSTAND – FIX */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03),
      rgba(0, 0, 0, 0.9)
  );
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  backdrop-filter: blur(20px);
  color: #f4f4f4;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(22px) scale(0.99);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.kirvx-terminal-section.is-visible .terminal-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================================
   TERMINAL HEADER
   ============================================================ */

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top left, rgba(71, 241, 56, 0.14), transparent 65%);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.terminal-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #000000, #555555);
}

.terminal-shell.terminal-light .terminal-theme-toggle {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.8);
}

.terminal-shell.terminal-light .theme-dot {
  background: linear-gradient(135deg, #ffffff, #e3e3e3);
}

/* ============================================================
   LOGIN NOTE (POST-IT STYLE)
   ============================================================ */

.terminal-login-note {
  position: absolute;
  top: -6px;
  right: 18px;
  width: 190px;
  background: #fff9c4;
  color: #3a3a2a;
  border-radius: 8px;
  padding: 10px 12px 12px;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: rotate(2deg);
  transform-origin: top right;
  z-index: 5;
  font-size: 12px;
  pointer-events: none;
}

/* ============================================================
   TERMINAL BODY
   ============================================================ */

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #47F138;
    border-radius: 999px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #3ac32c;
}



.terminal-body {
  padding: 22px 22px 10px;
  min-height: 260px;
  max-height: 260px;
  overflow-y: auto;
  font-family: "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 14px;
}

.terminal-line {
  margin-bottom: 6px;
  white-space: pre;
}

.terminal-line-muted {
  color: rgba(255, 255, 255, 0.52);
}

.terminal-line-error {
  color: #ff6b81;
}

.terminal-line-prompt {
  color: var(--kirvx-green);
}

/* ============================================================
   INPUT
   ============================================================ */

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "JetBrains Mono", monospace;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font: inherit;
  caret-color: var(--kirvx-green);
}

/* ============================================================
   FOOTER
   ============================================================ */

.terminal-footer {
  padding: 8px 18px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.terminal-command {
  color: var(--kirvx-green);
}

/* ============================================================
   RESPONSIVE FIXES
   ============================================================ */

@media (max-width: 1350px) {
  .terminal-layout {
    grid-template-columns: 40% 20% 40%;
  }
}

@media (max-width: 1100px) {
  .terminal-layout {
    grid-template-columns: 0% 100% 0%;
  }

  .terminal-image-wrap {
    display: none;
  }

  .terminal-title-box {
    display: none;
  }
}

@media (max-width: 600px) {
  .terminal-shell {
    border-radius: 14px;
  }

  .terminal-title {
    display: none;
  }
}
