/* styles.css (M03 – FEHLERDESIGN · Farbschema nach Referenzbild)
   Look: Rebel Pink + Soft Coral + Warm Buttercream + Muted Mustard
   Replace: komplette Datei 1:1
*/
:root{
  /* =========================
     M03 – FEHLERDESIGN
     Referenz-Look (Rebel Pink Warm Accents)
     ========================= */

  /* Core (hell, weich, „milky“) */
  --bg: #0b0b0f;
  --fg: #2a1f24;
  --muted: rgba(42,31,36,.70);

  /* Palette (aus deinem M03 Bild) */
  --rebel:   #E65CA8; /* Rebel Pink */
  --coral:   #F29A8E; /* Soft Coral */
  --cream:   #F6E7C6; /* Warm Buttercream */
  --mustard: #D1A33A; /* Muted Mustard */

  /* Rollen */
  --accent:  var(--rebel);   /* Headlines / Signal */
  --accent2: var(--mustard); /* Highlights / Icon */
  --soft:    var(--coral);   /* Secondary UI */
  --paper:   var(--cream);   /* Karten / Inputs */

  /* UI tokens */
  --panel:  rgba(246,231,198,.55);
  --panel2: rgba(242,154,142,.18);
  --stroke: rgba(42,31,36,.14);
  --stroke2:rgba(230,92,168,.28);

  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,.22);
  --max: 1120px;

  --h1: clamp(2.2rem, 4.6vw, 3.35rem);
  --h2: clamp(1.55rem, 2.4vw, 2.1rem);
  --lead: clamp(1.05rem, 1.25vw, 1.2rem);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  line-height: 1.5;

  /* Referenz: rosa/mauve glow + milky peach */
  background:
    radial-gradient(1100px 820px at 14% 14%, rgba(230,92,168,.38), transparent 58%),
    radial-gradient(980px 760px at 86% 18%, rgba(242,154,142,.34), transparent 60%),
    radial-gradient(980px 820px at 50% 112%, rgba(246,231,198,.42), transparent 62%),
    radial-gradient(780px 620px at 92% 78%, rgba(209,163,58,.22), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.92));
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.wrap{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip{
  position:absolute; left:-999px; top:10px;
  background: var(--fg);
  color: #fff;
  padding:10px 12px;
  border-radius: 12px;
  z-index: 50;
}
.skip:focus{ left: 12px; }

/* TOP */
.top{ padding: 18px 0 26px; }

.brandline{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 18px;
}

.brandLeft{ display:flex; gap: 12px; align-items:center; }

.mark{
  width: 44px; height: 44px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(230,92,168,.22), rgba(246,231,198,.70));
  border: 1px solid rgba(42,31,36,.14);
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.brandtext{ display:flex; flex-direction:column; gap:2px; }
.brand{ font-weight: 950; letter-spacing: .02em; }
.tag{ font-size: .92rem; color: var(--muted); }

.topActions{ display:flex; gap:10px; align-items:center; flex-wrap: wrap; }

.ghost{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(42,31,36,.14);
  background: linear-gradient(145deg, rgba(246,231,198,.55), rgba(255,255,255,.40));
  backdrop-filter: blur(10px);
  cursor: pointer;
  user-select: none;
}
.ghost:hover{ filter: brightness(1.02); text-decoration:none; }
.ghostText{ font-weight: 900; font-size: .95rem; }

.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(230,92,168,.14);
}

/* HERO */
.hero{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 14px 0 10px;
}

.kicker{
  margin:0 0 8px;
  color: rgba(42,31,36,.72);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .80rem;
}

h1{
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--h1);
  line-height: 1.03;
}

.h1Accent{
  color: var(--accent);
  text-shadow: 0 20px 90px rgba(230,92,168,.18);
}

.lead{
  margin: 0;
  font-size: var(--lead);
  color: rgba(42,31,36,.74);
  max-width: 62ch;
}
.lead strong{ color: var(--fg); font-weight: 950; }

.microProof{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(42,31,36,.14);
  background: linear-gradient(145deg, rgba(246,231,198,.55), rgba(255,255,255,.42));
  color: rgba(42,31,36,.80);
  font-weight: 900;
  font-size: .92rem;
}

.ctaRow{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Buttons (Referenz: „Analysieren“ wirkt coral/pink) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(230,92,168,.40);
  background: linear-gradient(145deg, rgba(242,154,142,.48), rgba(230,92,168,.18));
  box-shadow: var(--shadow);
  font-weight: 950;
  color: #2a1f24;
}
.btn:hover{ filter: brightness(1.02); text-decoration:none; }

.btn.secondary{
  border-color: rgba(42,31,36,.16);
  background: linear-gradient(145deg, rgba(246,231,198,.70), rgba(255,255,255,.50));
}

/* TOC */
.toc{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.toc a{
  padding: 10px 12px;
  border: 1px solid rgba(42,31,36,.14);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(246,231,198,.55), rgba(255,255,255,.42));
  color: rgba(42,31,36,.86);
  font-weight: 900;
  font-size: .92rem;
}
.toc a:hover{ text-decoration:none; filter: brightness(1.02); color: var(--fg); }

/* Sections */
.main{ padding-bottom: 44px; }
.section{ padding: 34px 0; }

.section.alt{
  background:
    linear-gradient(180deg, transparent, rgba(242,154,142,.10), transparent);
}

.sectionHead{ display:flex; flex-direction:column; gap: 8px; margin-bottom: 14px; }
h2{ margin: 0; font-size: var(--h2); line-height: 1.15; }
h3{ margin: 0 0 8px; font-size: 1.05rem; letter-spacing: .01em; font-weight: 950; }

.big{
  font-size: 1.08rem;
  color: rgba(42,31,36,.74);
  margin: 10px 0 0;
  max-width: 70ch;
}
.muted{ color: rgba(42,31,36,.70); font-weight: 650; }

.grid2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items:start;
}
.cards3{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Cards (milky) */
.card{
  border: 1px solid rgba(42,31,36,.14);
  background: linear-gradient(145deg, rgba(246,231,198,.68), rgba(255,255,255,.62));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card.earth{
  border-color: rgba(209,163,58,.32);
  background: linear-gradient(145deg, rgba(209,163,58,.20), rgba(246,231,198,.64));
}

.card.soft{
  border-color: rgba(230,92,168,.28);
  background: linear-gradient(145deg, rgba(242,154,142,.22), rgba(246,231,198,.62));
}

.glow{ position: relative; overflow:hidden; }
.glow::before{
  content:"";
  position:absolute;
  inset:-140px -140px auto auto;
  width: 420px; height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(230,92,168,.20), transparent 64%);
  transform: rotate(16deg);
  pointer-events:none;
}

.divider{ height: 1px; background: rgba(42,31,36,.12); margin: 14px 0; }

.chip{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(230,92,168,.30);
  color: rgba(42,31,36,.86);
  width: fit-content;
  background: linear-gradient(145deg, rgba(230,92,168,.10), rgba(246,231,198,.52));
  font-weight: 950;
  font-size: .86rem;
}
.chip.is-hook{
  border-color: rgba(209,163,58,.40);
  background: linear-gradient(145deg, rgba(209,163,58,.16), rgba(246,231,198,.56));
}

.cardText{ margin: 10px 0 0; color: rgba(42,31,36,.74); font-weight: 650; }

.metric{ display:flex; gap: 12px; align-items:flex-start; }
.metricNum{
  font-weight: 1000;
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.metricTxt{ color: rgba(42,31,36,.74); font-weight: 650; }

.miniGrid{ display:grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.mini{
  border: 1px solid rgba(42,31,36,.14);
  background: linear-gradient(145deg, rgba(246,231,198,.62), rgba(255,255,255,.58));
  border-radius: 16px;
  padding: 12px;
}
.mini.earth{
  border-color: rgba(209,163,58,.34);
  background: linear-gradient(145deg, rgba(209,163,58,.16), rgba(246,231,198,.58));
}
.miniTitle{ font-weight: 950; margin-bottom: 6px; }
.miniText{ margin:0; color: rgba(42,31,36,.74); font-weight: 700; }

.bullets{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(42,31,36,.74);
  font-weight: 650;
}
.bullets li{ margin: 8px 0; }

/* Steps */
.steps{ margin-top: 10px; display:grid; gap: 10px; }
.step{
  border: 1px solid rgba(42,31,36,.14);
  background: linear-gradient(145deg, rgba(246,231,198,.60), rgba(255,255,255,.56));
  border-radius: 14px;
  padding: 12px;
}
.stepTitle{ font-weight: 950; margin-bottom: 6px; color: var(--fg); }
.step p{ margin:0; color: rgba(42,31,36,.74); font-weight: 700; }

/* Rows */
.stack{ display:flex; flex-direction:column; gap: 10px; }
.row{
  display:grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  border: 1px solid rgba(42,31,36,.14);
  background: linear-gradient(145deg, rgba(246,231,198,.62), rgba(255,255,255,.58));
  border-radius: 16px;
  padding: 12px;
}
.num{
  width: 48px; height: 48px;
  border-radius: 16px;
  display:grid; place-items:center;
  border: 1px solid rgba(230,92,168,.28);
  background: linear-gradient(145deg, rgba(242,154,142,.30), rgba(246,231,198,.62));
  font-weight: 1000;
  color: var(--fg);
}
.rowBody p{ margin: 6px 0 0; color: rgba(42,31,36,.74); font-weight: 650; }
.rowMeta{ margin-top: 10px; color: rgba(42,31,36,.74); font-weight: 750; font-size: .92rem; }

.badge{
  display:inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(209,163,58,.40);
  background: linear-gradient(145deg, rgba(209,163,58,.16), rgba(246,231,198,.56));
  font-weight: 950;
}

/* Examples / Callouts */
.example{
  margin-top: 10px;
  border: 1px dashed rgba(230,92,168,.34);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.40);
}
.exampleLabel{
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(42,31,36,.72);
  margin-bottom: 6px;
}
.example p{ margin:0; color: var(--fg); font-weight: 850; }

.callout{
  margin-top: 12px;
  border: 1px solid rgba(230,92,168,.26);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(242,154,142,.16), rgba(246,231,198,.56));
}
.callout.signal{
  border-color: rgba(209,163,58,.34);
  background: linear-gradient(145deg, rgba(209,163,58,.12), rgba(246,231,198,.56));
}
.calloutTitle{ font-weight: 950; margin-bottom: 6px; color: var(--fg); }
.calloutText{ margin: 0 0 8px; color: rgba(42,31,36,.74); font-weight: 650; }
.calloutText:last-child{ margin-bottom:0; }

/* Checklist */
.checkGrid{ display:grid; grid-template-columns: 1fr; gap: 12px; }
.tick{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(42,31,36,.14);
  background: linear-gradient(145deg, rgba(246,231,198,.62), rgba(255,255,255,.56));
  margin: 8px 0;
  cursor: pointer;
  user-select: none;
}
.tick input{ margin-top: 3px; accent-color: var(--accent); }
.tick span{ color: rgba(42,31,36,.74); font-weight: 750; }

/* Footer (gleich lassen – reused überall) */
.foot{ padding: 28px 0 10px; }
.footGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px 0 10px;
  border-top: 1px solid rgba(42,31,36,.12);
}
.footTitle{ font-weight: 950; color: var(--fg); }
.footText{ color: rgba(42,31,36,.74); margin-top: 4px; font-weight: 850; }

.footerBrand{ display:flex; gap: 12px; align-items:center; margin-top: 12px; }
.footerMark{
  width: 44px; height: 44px;
  display:grid; place-items:center;
  border-radius: 14px;
  border: 1px solid rgba(42,31,36,.14);
  background: linear-gradient(145deg, rgba(230,92,168,.14), rgba(246,231,198,.62));
}
.footerLine{ font-weight: 950; color: var(--fg); }
.footerLinks{
  margin-top: 4px;
  color: rgba(42,31,36,.74);
  font-weight: 900;
  font-size: .95rem;
}
.footerLinks a{ text-decoration: underline; text-underline-offset: 3px; }
.sep{ margin: 0 10px; opacity: .6; }

.tiny{
  color: rgba(42,31,36,.70);
  font-size: .9rem;
  padding: 10px 0 0;
  border-top: 1px solid rgba(42,31,36,.10);
}

/* Layout */
@media (min-width: 860px){
  .hero{ grid-template-columns: 1.05fr .95fr; gap: 18px; align-items:start; }
  .grid2{ grid-template-columns: 1.05fr .95fr; gap: 18px; }
  .cards3{ grid-template-columns: repeat(3, 1fr); }
  .checkGrid{ grid-template-columns: 1fr 1fr; }
  .footGrid{ grid-template-columns: 1fr 1fr 1fr; }
}
