/* ==========================================================
   CLAUDE, MAKE NO MISTAKES. – inoffizielle Parodie-Seite
   ========================================================== */

:root {
  --bg: #12100e;
  --bg-2: #181512;
  --surface: #1e1a16;
  --surface-2: #26211b;
  --line: #3a3229;
  --text: #ede6db;
  --muted: #a89e90;
  --faint: #6f665b;
  --accent: #ff9d4d;
  --accent-2: #ffc46b;
  --accent-ink: #1a0f05;
  --good: #8fd18f;
  --bad: #ff7a6b;

  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-meme: "Anton", Impact, "Arial Narrow Bold", sans-serif;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 157, 77, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: var(--accent); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px var(--gutter) 32px;
  text-align: center;
}

.terminal {
  width: 100%;
  max-width: var(--maxw);
  background: #0c0b09;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 157, 77, .04);
  text-align: left;
  overflow: hidden;
}

.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); flex: none; }
.dot:nth-child(1) { background: #e0654f; }
.dot:nth-child(2) { background: #e2b04a; }
.dot:nth-child(3) { background: #6fb36a; }
.terminal__title {
  margin-left: 8px;
  font: 12px/1 var(--font-mono);
  color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}

.terminal__body { padding: clamp(20px, 4vw, 44px); }

.hero__input {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(1.9rem, 7.4vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text);
  overflow-wrap: break-word;
  min-height: 2.2em;
}
.prompt-sign { color: var(--accent); margin-right: .25em; }

.caret {
  display: inline-block;
  width: .55em; height: .9em;
  margin-left: .06em;
  vertical-align: -.08em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.bot {
  margin-top: clamp(18px, 3vw, 30px);
  padding-top: clamp(14px, 2.5vw, 22px);
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: clamp(.86rem, 1.6vw, 1.05rem);
  color: var(--muted);
}
.bot__line { margin: .3em 0; }
.bot__line--first { color: var(--text); font-weight: 700; font-size: 1.12em; }
.bot__tag { color: var(--accent); }

/* hidden-until-animated state (only when JS runs) */
.js-anim .bot__line { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.js-anim .bot__line.is-on { opacity: 1; transform: none; }

.hero__sub {
  margin: clamp(28px, 5vw, 48px) 0 6px;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 600;
  max-width: 34ch;
}
.hero__meta { margin: 0; color: var(--muted); max-width: 52ch; }

.scroll-hint {
  margin-top: 34px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--faint);
  text-decoration: none;
  font: 12px/1 var(--font-mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-hint:hover { color: var(--accent); }
.scroll-hint__arrow { font-size: 22px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- SECTIONS ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) var(--gutter);
}
.section__head { max-width: 680px; margin-bottom: clamp(28px, 5vw, 52px); }
.eyebrow {
  margin: 0 0 10px;
  font: 13px/1 var(--font-mono);
  color: var(--accent);
  letter-spacing: .04em;
}
.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section__lead { margin: 0; color: var(--muted); }

.noscript { color: var(--muted); font-family: var(--font-mono); }

/* ---------- MEME CARDS ---------- */
.cards { display: grid; gap: clamp(22px, 3.5vw, 36px); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
  overflow: hidden;
}
.card__num {
  position: absolute; top: clamp(14px, 2.5vw, 22px); right: clamp(16px, 3vw, 26px);
  font: 12px/1 var(--font-mono);
  color: var(--faint);
}

/* The loud part */
.meme {
  margin: 0 0 6px;
  padding-right: 2.5em;
  font-family: var(--font-meme);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  line-height: .98;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 3px 3px 0 var(--accent-ink), 5px 5px 0 rgba(255, 157, 77, .55);
  overflow-wrap: break-word;
  hyphens: manual;
}
.meme__alt {
  display: block;
  margin-top: .35em;
  font-size: .42em;
  line-height: 1.15;
  color: var(--accent-2);
  text-shadow: 2px 2px 0 var(--accent-ink);
}
.meme__badge {
  display: inline-block;
  margin-left: .25em;
  padding: .05em .3em;
  font-size: .32em;
  vertical-align: middle;
  background: var(--bad);
  color: var(--accent-ink);
  text-shadow: none;
  transform: rotate(-4deg);
  border-radius: 3px;
}

.card__why {
  margin: 18px 0 22px;
  max-width: 62ch;
  font-size: 1.06rem;
  color: var(--text);
}
.card__why::before {
  content: "Warum das nicht hilft: ";
  color: var(--muted);
  font-weight: 600;
}

/* The calm part */
.better {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--good);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.better.is-before { border-left-color: var(--bad); }

.better__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.better__label {
  font: 600 13px/1.2 var(--font-mono);
  color: var(--good);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.better.is-before .better__label { color: var(--bad); }

.better__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.better__code {
  margin: 0;
  padding: 16px;
  font: 14px/1.65 var(--font-mono);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
.better.is-before .better__code { color: var(--muted); }

/* Before/after toggle */
.toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--bg);
}
.toggle button {
  appearance: none; border: 0; background: transparent;
  color: var(--muted);
  font: 500 12px/1 var(--font-mono);
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

/* Buttons */
.copy, .btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: 500 13px/1 var(--font-mono);
  padding: 9px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.copy:hover, .btn:hover { border-color: var(--accent); }
.copy.is-done { background: var(--good); border-color: var(--good); color: #0d1a0d; }
.copy[hidden] { display: none; }

.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* ---------- PROMPT CHECK ---------- */
.checker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 36px);
}
.checker__label { display: block; font: 600 13px/1 var(--font-mono); color: var(--muted); margin-bottom: 10px; }
textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  background: #0c0b09;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font: 15px/1.6 var(--font-mono);
}
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 157, 77, .15); }
textarea::placeholder { color: var(--faint); }

.checker__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.result { margin-top: 28px; display: grid; gap: 24px; }
.result[hidden] { display: none; }

.result__score { text-align: center; }
.result__meter {
  height: 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden;
}
.result__fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--bad), var(--accent) 50%, var(--good));
  background-size: 300px 100%;
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.result__label { margin: 16px 0 0; font: 13px/1.3 var(--font-mono); color: var(--muted); }
.result__pct {
  margin: 0;
  font-family: var(--font-meme);
  font-size: clamp(3.4rem, 12vw, 6rem);
  line-height: 1.05;
  color: var(--accent);
}
.result__comment { margin: 4px auto 0; max-width: 46ch; font-size: 1.08rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 4px 10px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.checks .ico { font: 700 16px/1.4 var(--font-mono); }
.checks .ok .ico { color: var(--good); }
.checks .miss .ico { color: var(--bad); }
.checks strong { font-weight: 600; }
.checks .hint { grid-column: 2; color: var(--muted); font-size: .95rem; }
.checks .found { grid-column: 2; font: 12.5px/1.5 var(--font-mono); color: var(--faint); overflow-wrap: anywhere; }

.penalties:empty { display: none; }
.penalties {
  padding: 12px 14px;
  border: 1px dashed var(--bad);
  border-radius: 10px;
  color: var(--text);
  font-size: .95rem;
}
.penalties code { font-family: var(--font-mono); color: var(--bad); }

.howto { color: var(--muted); font-size: .95rem; }
.howto summary { cursor: pointer; font-family: var(--font-mono); font-size: 13px; }
.howto p { margin: 10px 0 0; max-width: 70ch; }

/* ---------- CHEAT SHEET ---------- */
.sheet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.sheet__item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
}
.sheet__k { font: 700 14px/1.2 var(--font-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.sheet__v { color: var(--muted); font-size: .97rem; line-height: 1.45; }
.better--sheet { border-left-color: var(--accent); }
.better--sheet .better__label { color: var(--accent); }
.sheet__note { margin: 16px 0 0; color: var(--faint); font-size: .95rem; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 110px;
  text-align: center;
  color: var(--muted);
}
.footer p { max-width: 640px; margin: 0 auto 10px; }
.footer__disclaimer strong { color: var(--text); }
.footer__small { font-size: .9rem; color: var(--faint); }
.footer__last { margin-top: 20px !important; }

/* ---------- EASTER EGGS ---------- */
.dash { position: relative; cursor: help; }
.dash::after {
  content: "verdächtig";
  position: absolute;
  left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 12px/1.2 var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, transform .15s;
  z-index: 20;
}
.dash:hover::after, .dash.is-tapped::after { opacity: 1; transform: translateX(-50%); }

.yar { transition: background .4s; border-radius: 3px; }
.yar.is-counted { animation: yarFlash 1.2s ease-out; }
@keyframes yarFlash { 0% { background: rgba(255, 157, 77, .45); } 100% { background: transparent; } }

.yar-counter {
  position: fixed;
  right: 12px; bottom: 12px;
  z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 12px;
  background: rgba(24, 21, 18, .92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 12px/1 var(--font-mono);
  color: var(--muted);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7);
  max-width: calc(100vw - 24px);
}
.yar-counter__num {
  min-width: 26px; text-align: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}
.yar-counter.is-bump .yar-counter__num { animation: bump .45s ease-out; }
@keyframes bump { 40% { transform: scale(1.35); } }

.toast {
  position: fixed;
  left: 50%; top: 16px;
  transform: translate(-50%, calc(-100% - 30px));
  visibility: hidden;
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font: 14px/1.4 var(--font-mono);
  color: var(--text);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .8);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .yar-counter__label { display: none; }
  .yar-counter::before { content: "„abs. right“"; }
  .better__head { padding: 10px 12px; }
  .better__code { font-size: 13px; padding: 14px 12px; }
  .meme { text-shadow: 2px 2px 0 var(--accent-ink), 4px 4px 0 rgba(255, 157, 77, .55); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
