* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #0f0a19;
  color: #a855f7;
  font-family: Consolas, monospace;
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 20%, rgba(168, 85, 247, 0.16), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(168, 85, 247, 0.10), transparent 34%),
    #08050f;
  filter: blur(16px);
}

.terminal {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  width: min(1280px, 96vw);
  height: min(86vh, 860px);
  margin: 22px auto;
  padding: 14px 20px 16px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.06),
    0 0 28px rgba(168, 85, 247, 0.06);
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #a5a0ae;
  font-size: 12px;
  user-select: none;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.07);
}

.mac-buttons {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.red {
  background: #ff5f57;
}

.yellow {
  background: #febc2e;
}

.green {
  background: #28c840;
}

.dot:hover {
  filter: brightness(1.08);
  cursor: pointer;
}

.title {
  opacity: 0.9;
  letter-spacing: 0.04em;
}

/* HEADER-BEREICH JETZT ABSOLUT = KLARE POSITIONEN */
.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

.hero-left {
  width: 100%;
}

.ascii {
  margin: 0;
  font-size: 10px;
  line-height: 0.9;
  white-space: pre;
  color: #c084fc;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.08);
}

.main-title {
  margin: 0;
  margin-top: 6px;
  font-size: 52px;
  line-height: 1;
  color: #c084fc;
  letter-spacing: 0.01em;
}

.hero-right {
  width: 100%;
  margin-top: 0;
}

.welcome-title {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 700;
  color: #c084fc;
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(216, 180, 254, 0.2);
  margin: 0 0 12px 0;
}

.hero-right p {
  margin: 0 0 8px 0;
  font-size: 15px;
  line-height: 1.35;
  color: #b98cf7;
}

.label {
  color: #d8b4fe;
  font-weight: 700;
}

.help-hint {
  margin-top: 18px !important;
}

.output {
  flex: 1;
  overflow-y: auto;
  margin-top: 10px;
}

.output-entry {
  margin-bottom: 12px;
}

.command-line {
  color: #c084fc;
  margin-bottom: 6px;
}

.response-line {
  color: #b98cf7;
  line-height: 1.8;
}

.response-line strong {
  color: #d8b4fe;
  font-weight: 700;
}

.response-line a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.response-line a:hover {
  color: #d8b4fe;
  text-decoration: underline;
}

.input-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.prompt {
  white-space: nowrap;
  font-size: 15px;
  color: #b98cf7;
}

input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #b98cf7;
  font: inherit;
  font-size: 15px;
  caret-color: #d8b4fe;
}

.output::-webkit-scrollbar {
  width: 8px;
}

.output::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.28);
  border-radius: 10px;
}

.output::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1100px) {
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-left,
  .hero-right {
    position: static;
    width: 100%;
  }

  .main-title {
    font-size: 44px;
  }

  .ascii {
    font-size: 9px;
  }

  .output {
    max-height: 180px;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .terminal {
    height: auto;
    min-height: calc(100vh - 30px);
  }

  .main-title {
    font-size: 36px;
  }

  .hero-right p,
  .prompt,
  input,
  .output {
    font-size: 14px;
  }
}