/* styles.css (M04 – FRAGEDESIGN · Referenz-Farbwelt)
   Look: warmes Greige/Sand + Salbei + Terracotta + Gold
*/
:root{
  /* =========================
     M04 – FRAGEDESIGN
     Referenz: warm, hell, salbei, terracotta
     ========================= */

  /* Core */
  --bg: #f4efe7;                 /* Sand/Greige */
  --fg: #1f1b19;                 /* warmes Schwarz */
  --muted: rgba(31,27,25,.70);

  /* Palette (aus Referenz abgeleitet) */
  --sand:   #f4efe7;             /* Hintergrund */
  --mist:   #e7dfd3;             /* weiche Fläche */
  --clay:   #d6b29a;             /* peachy band */
  --terra:  #b36448;             /* terracotta headline */
  --sage:   #5f775f;             /* salbei CTA */
  --gold:   #d6ad4d;             /* heart/highlight */

  /* Rollen */
  --accent:  var(--terra);       /* Titel */
  --accent2: var(--sage);        /* Buttons */
  --signal:  var(--gold);        /* Marker */
  --paper:   rgba(255,255,255,.58);

  /* UI */
  --panel:   rgba(255,255,255,.62);
  --panel2:  rgba(231,223,211,.55);
  --stroke:  rgba(31,27,25,.12);
  --stroke2: rgba(179,100,72,.22);

  --radius: 18px;
  --shadow: 0 18px 55px rgba(22,16,12,.18);
  --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: warmes, leichtes Studio-Licht */
  background:
    radial-gradient(900px 720px at 22% 12%, rgba(179,100,72,.16), transparent 58%),
    radial-gradient(980px 760px at 86% 18%, rgba(95,119,95,.16), transparent 60%),
    radial-gradient(980px 820px at 50% 112%, rgba(214,178,154,.24), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(244,239,231,.92)),
    var(--bg);
}

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(179,100,72,.16), rgba(255,255,255,.62));
  border: 1px solid var(--stroke);
  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 var(--stroke);
  background: linear-gradient(145deg, rgba(255,255,255,.60), rgba(255,255,255,.35));
  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(--accent2);
  box-shadow: 0 0 0 7px rgba(95,119,95,.14);
}

/* HERO */
.hero{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 14px 0 10px;
}

.kicker{
  margin:0 0 8px;
  color: rgba(31,27,25,.66);
  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(179,100,72,.18);
}

.lead{
  margin: 0;
  font-size: var(--lead);
  color: rgba(31,27,25,.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 var(--stroke);
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.38));
  color: rgba(31,27,25,.82);
  font-weight: 900;
  font-size: .92rem;
}

.ctaRow{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Buttons (Referenz: salbei) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(95,119,95,.45);
  background: linear-gradient(145deg, rgba(95,119,95,.26), rgba(255,255,255,.46));
  box-shadow: var(--shadow);
  font-weight: 950;
  color: #1c1a18;
}
.btn:hover{ filter: brightness(1.02); text-decoration:none; }

.btn.secondary{
  border-color: rgba(179,100,72,.30);
  background: linear-gradient(145deg, rgba(179,100,72,.14), rgba(255,255,255,.52));
}

/* TOC */
.toc{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.toc a{
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.34));
  color: rgba(31,27,25,.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(214,178,154,.16), 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(31,27,25,.74);
  margin: 10px 0 0;
  max-width: 70ch;
}
.muted{ color: rgba(31,27,25,.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 */
.card{
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.38));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.card.earth{
  border-color: rgba(95,119,95,.22);
  background: linear-gradient(145deg, rgba(231,223,211,.62), rgba(255,255,255,.40));
}

.card.soft{
  border-color: rgba(179,100,72,.18);
  background: linear-gradient(145deg, rgba(214,178,154,.22), rgba(255,255,255,.44));
}

.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(179,100,72,.18), transparent 64%);
  transform: rotate(16deg);
  pointer-events:none;
}

.divider{ height: 1px; background: rgba(31,27,25,.10); margin: 14px 0; }

.chip{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(179,100,72,.22);
  color: rgba(31,27,25,.86);
  width: fit-content;
  background: linear-gradient(145deg, rgba(179,100,72,.10), rgba(255,255,255,.50));
  font-weight: 950;
  font-size: .86rem;
}
.chip.is-hook{
  border-color: rgba(95,119,95,.30);
  background: linear-gradient(145deg, rgba(95,119,95,.10), rgba(255,255,255,.52));
}

.cardText{ margin: 10px 0 0; color: rgba(31,27,25,.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(31,27,25,.74); font-weight: 650; }

.miniGrid{ display:grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.mini{
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.40));
  border-radius: 16px;
  padding: 12px;
}
.mini.earth{
  border-color: rgba(95,119,95,.22);
  background: linear-gradient(145deg, rgba(231,223,211,.56), rgba(255,255,255,.42));
}
.miniTitle{ font-weight: 950; margin-bottom: 6px; }
.miniText{ margin:0; color: rgba(31,27,25,.74); font-weight: 700; }

.bullets{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(31,27,25,.74);
  font-weight: 650;
}
.bullets li{ margin: 8px 0; }

/* Steps / Rows */
.steps{ margin-top: 10px; display:grid; gap: 10px; }

.row{
  display:grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.40));
  border-radius: 16px;
  padding: 12px;
}
.num{
  width: 48px; height: 48px;
  border-radius: 16px;
  display:grid; place-items:center;
  border: 1px solid rgba(179,100,72,.22);
  background: linear-gradient(145deg, rgba(179,100,72,.10), rgba(255,255,255,.56));
  font-weight: 1000;
  color: var(--fg);
}
.rowBody p{ margin: 6px 0 0; color: rgba(31,27,25,.74); font-weight: 650; }
.rowMeta{ margin-top: 10px; color: rgba(31,27,25,.74); font-weight: 750; font-size: .92rem; }

.badge{
  display:inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(214,173,77,.40);
  background: linear-gradient(145deg, rgba(214,173,77,.14), rgba(255,255,255,.50));
  font-weight: 950;
}

/* Example / Callout */
.example{
  margin-top: 10px;
  border: 1px dashed rgba(179,100,72,.28);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.45);
}
.exampleLabel{
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(31,27,25,.70);
  margin-bottom: 6px;
}
.example p{ margin:0; color: var(--fg); font-weight: 850; }

.callout{
  margin-top: 12px;
  border: 1px solid rgba(95,119,95,.24);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(95,119,95,.10), rgba(255,255,255,.52));
}
.callout.signal{
  border-color: rgba(179,100,72,.22);
  background: linear-gradient(145deg, rgba(179,100,72,.10), rgba(255,255,255,.52));
}
.calloutTitle{ font-weight: 950; margin-bottom: 6px; color: var(--fg); }
.calloutText{ margin: 0 0 8px; color: rgba(31,27,25,.74); font-weight: 650; }
.calloutText:last-child{ margin-bottom:0; }

/* Fields */
.field{ display:block; margin: 12px 0; }
.field span{ display:block; font-weight: 900; color: rgba(31,27,25,.78); margin-bottom: 6px; }

input, textarea{
  width: 100%;
  font: inherit;
  border-radius: 14px;
  border: 1px solid rgba(31,27,25,.14);
  background: rgba(255,255,255,.62);
  padding: 12px 12px;
  outline: none;
  box-shadow: 0 10px 30px rgba(22,16,12,.06);
}
textarea{ resize: vertical; min-height: 120px; }

input:focus, textarea:focus{
  border-color: rgba(95,119,95,.42);
  box-shadow:
    0 0 0 6px rgba(95,119,95,.12),
    0 16px 40px rgba(22,16,12,.08);
}

.hint{
  margin: 10px 0 0;
  color: rgba(31,27,25,.70);
  font-weight: 650;
}

/* Output */
.output{
  display:grid;
  gap: 10px;
}
.block{
  border: 1px solid rgba(31,27,25,.12);
  background: rgba(255,255,255,.58);
  border-radius: 16px;
  padding: 12px;
}
.blockTitle{
  font-weight: 950;
  color: rgba(31,27,25,.84);
  margin-bottom: 6px;
}
.q{
  margin: 8px 0;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(179,100,72,.16);
  background: linear-gradient(145deg, rgba(214,178,154,.18), rgba(255,255,255,.52));
  font-weight: 800;
}
.q small{
  display:block;
  margin-top: 6px;
  font-weight: 700;
  color: rgba(31,27,25,.70);
}

/* 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(31,27,25,.12);
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.40));
  margin: 8px 0;
  cursor: pointer;
  user-select: none;
}
.tick input{ margin-top: 3px; accent-color: var(--accent2); }
.tick span{ color: rgba(31,27,25,.74); font-weight: 750; }

/* Module list */
.module-list{ list-style:none; padding:0; margin:0; display:grid; gap: 10px; }
.module-list a{
  display:block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31,27,25,.12);
  background: linear-gradient(145deg, rgba(255,255,255,.60), rgba(255,255,255,.36));
  text-decoration:none;
}
.module-list a:hover{ filter: brightness(1.02); }
.module-list strong{ font-weight: 950; color: var(--fg); }
.module-list span{ display:block; margin-top:2px; color: rgba(31,27,25,.72); font-size:.95rem; font-weight:700; }
.module-list .is-current a{
  border-color: rgba(95,119,95,.26);
  background: linear-gradient(145deg, rgba(95,119,95,.10), rgba(255,255,255,.46));
}

/* Bundle */
.bundleCard{
  border: 1px solid rgba(31,27,25,.12);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(231,223,211,.62), rgba(255,255,255,.40));
  box-shadow: var(--shadow);
  padding: 16px;
  display:grid;
  gap: 14px;
}
.bundleBullets{ margin: 12px 0 0; padding-left: 18px; color: rgba(31,27,25,.74); font-weight: 750; }
.bundleCTA{
  border: 1px solid rgba(179,100,72,.18);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(214,178,154,.18), rgba(255,255,255,.46));
}
.bundleTitle{ font-weight: 950; color: var(--fg); }
.bundleNote{ color: rgba(31,27,25,.74); font-weight: 750; margin-top: 4px; }
.bigBtn{ width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 16px; }
.bundleFine{ margin-top: 10px; color: rgba(31,27,25,.72); font-weight: 650; font-size: .95rem; }

/* Footer (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(31,27,25,.10);
}
.footTitle{ font-weight: 950; color: var(--fg); }
.footText{ color: rgba(31,27,25,.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(31,27,25,.12);
  background: linear-gradient(145deg, rgba(179,100,72,.12), rgba(255,255,255,.58));
}
.footerLine{ font-weight: 950; color: var(--fg); }
.footerLinks{
  margin-top: 4px;
  color: rgba(31,27,25,.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(31,27,25,.70);
  font-size: .9rem;
  padding: 10px 0 0;
  border-top: 1px solid rgba(31,27,25,.08);
}

/* Desktop */
@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; }
  .bundleCard{ grid-template-columns: 1.05fr .95fr; align-items:center; }
}

/* LIGHT/DARK Toggle (optional) */
[data-theme="dark"]{
  --bg: #121015;
  --fg: #f4efe7;
  --muted: rgba(244,239,231,.70);
  --panel: rgba(255,255,255,.08);
  --panel2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.14);
  --stroke2: rgba(214,178,154,.22);

  body{
    background:
      radial-gradient(900px 720px at 22% 12%, rgba(179,100,72,.24), transparent 58%),
      radial-gradient(980px 760px at 86% 18%, rgba(95,119,95,.22), transparent 60%),
      radial-gradient(980px 820px at 50% 112%, rgba(214,178,154,.18), transparent 62%),
      linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.52)),
      var(--bg);
    color: var(--fg);
  }

  .pill,.card,.row,.module-list a,.bundleCard,.bundleCTA,.tick,.ghost{
    border-color: rgba(255,255,255,.14);
    color: var(--fg);
  }

  input, textarea{
    color: var(--fg);
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.16);
  }

  .cardText,.big,.lead,.tag,.kicker,.muted,.hint,.tiny,.footText,.footerLinks span{
    color: rgba(244,239,231,.78);
  }
}
