/* ============================================================
   homepage.css — e-linguist Homepage
   Geladen nach colors_and_type.css.
   Bilingual (DE/EN) via lesson-v2-i18n.js.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

/* a-Tag-Default aus colors_and_type.css überschreiben für Buttons und Nav */
.topbar a, .btn, .cat-chip, .footer a, .path .btn { text-decoration: none; }

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.page { min-height: 100vh; }
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section { padding: 96px 0; position: relative; }
.section--paper-2 { background: var(--paper-2); }
.section--sand   { background: var(--sand-50); }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14.5px;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn i { width: 16px; height: 16px; stroke-width: 2; }
.btn-primary { background: var(--honey-400); color: var(--ink); }
.btn-primary:hover { background: var(--honey-500); box-shadow: var(--shadow-honey); }
.btn-primary:active { transform: scale(0.97); background: var(--honey-600); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--paper-2); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 72px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  margin-bottom: 24px;
}
.hero-eyebrow .pill-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--honey-400);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
.hero-lead {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-3);
  max-width: 540px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

/* Kategorien-Chips */
.hero-cats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--ink); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.cat-chip i { width: 15px; height: 15px; color: var(--ink-3); transition: color var(--dur) var(--ease); }
.cat-chip:hover {
  background: var(--honey-100); border-color: var(--honey-400);
  transform: translateY(-1px);
}
.cat-chip:hover i { color: var(--honey-600); }
.cat-chip.more { color: var(--ink-3); }

.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.hero-actions .secondary-link {
  color: var(--ink-3); font-size: 14.5px; font-weight: 500;
  text-decoration: none;
}
.hero-actions .secondary-link:hover { color: var(--honey-600); }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 90px;
  gap: 12px;
  position: relative;
}
@media (max-width: 600px) {
  .bento { grid-auto-rows: 70px; gap: 10px; }
}
.bento-tile {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: var(--card-2);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bento-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento-tile img { width: 100%; height: 100%; object-fit: cover; }
/* Kacheln sind Links: Link-Reset, damit keine Unterstreichung/Link-Farbe entsteht.
   .block-ink (hoehere Spezifitaet) setzt weiterhin paper; Farbwechsel-Hover greift nicht. */
a.bento-tile { color: var(--ink); text-decoration: none; }

/* Tile-Placements (asymmetrisches Bento) */
.bento .t1 { grid-column: 1 / span 4; grid-row: 1 / span 3; }
.bento .t2 { grid-column: 5 / span 2; grid-row: 1 / span 2; }
.bento .t3 { grid-column: 5 / span 2; grid-row: 3 / span 2; }
.bento .t4 { grid-column: 1 / span 2; grid-row: 4 / span 2; }
.bento .t5 { grid-column: 3 / span 2; grid-row: 4 / span 2; }
.bento .t6 { grid-column: 5 / span 2; grid-row: 5 / span 1; }

/* Farbblöcke */
.bento .block-honey { background: var(--honey-300); border-color: var(--honey-400); }
.bento .block-sand  { background: var(--sand-200); border-color: var(--sand-300); }
.bento .block-ink   { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Labels in den Farbtiles */
.bento-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
}
.bento-label .top {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; opacity: 0.7;
}
.bento-label .word {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1; letter-spacing: -0.02em;
}
.bento-label .word.small { font-size: 20px; }
.bento-label .meta { font-size: 12px; opacity: 0.85; }
.bento .stat-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -0.025em;
}

/* Tag auf einem Foto-Tile */
.bento-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(251,250,247,0.95);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.bento-tag.dark { background: rgba(31,27,22,0.85); color: var(--paper); }
.bento-caption {
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  color: var(--paper);
  font-size: 13px; font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
  max-width: 16ch;
}
.section-lead {
  font-size: 18px; line-height: 1.6; color: var(--ink-3);
  max-width: 64ch; margin: 0; text-wrap: pretty;
}

/* ============================================================
   PILLARS (3 Säulen)
   ============================================================ */
.pillars-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) {
  .pillars-head { grid-template-columns: 1fr; gap: 24px; }
}
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--honey-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--honey-700);
}
.pillar-icon i { width: 26px; height: 26px; stroke-width: 1.75; }
.pillar h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 24px; line-height: 1.15; letter-spacing: -0.015em;
  margin: 0;
}
.pillar p {
  margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-3);
}
.pillar-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; color: var(--ink-4); letter-spacing: 0.04em;
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   TRUST / Über Melanie
   ============================================================ */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .trust { grid-template-columns: 1fr; gap: 40px; }
}
.trust-left { display: flex; flex-direction: column; gap: 24px; }
.trust-photo-wrap {
  position: relative;
  width: 220px;
  align-self: start;
}
.trust-photo {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: 999px;
  background: var(--sand-100);
  box-shadow: var(--shadow-md);
  display: block;
}
.trust-photo-card {
  position: absolute; left: calc(100% + 12px); bottom: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.trust-photo-card .badge {
  width: 36px; height: 36px; border-radius: 999px; background: var(--honey-400);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.trust-photo-card .badge i { width: 18px; height: 18px; }
.trust-photo-card .text {
  font-size: 13px; line-height: 1.35; color: var(--ink); font-weight: 500;
}
.trust-photo-card .text small {
  display: block; color: var(--ink-4); font-size: 11.5px; font-weight: 400; margin-top: 2px;
}

.trust-numbers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.tnum {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px 18px 16px;
}
.tnum .n {
  font-family: var(--font-display); font-weight: 600;
  font-size: 36px; line-height: 1; letter-spacing: -0.025em;
  color: var(--ink);
}
.tnum .l {
  font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.35;
}

/* ============================================================
   TESTIMONIALS (eigene Sektion)
   ============================================================ */
.testimonials-head { margin-bottom: 40px; max-width: 720px; }
.testimonials-card { max-width: 820px; margin: 0 auto; }
.trust-quote { display: none; }
.trust-quote.is-active { display: block; }
.trust-quote {
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  border-left: 4px solid var(--honey-400);
  box-shadow: var(--shadow-sm);
}
.trust-quote .q {
  font-size: 16px; line-height: 1.6; color: var(--ink-2);
  font-style: italic;
  margin: 0 0 12px;
}
.trust-quote .who {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-3);
}
.trust-quote .who strong { color: var(--ink); font-weight: 600; }

/* Slider Dots + Arrows */
.tq-nav {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
}
.tq-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--line-2); border: none; cursor: pointer; padding: 0;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.tq-dot.active { background: var(--honey-400); width: 24px; }
.tq-arrows { display: flex; gap: 6px; margin-left: auto; }
.tq-arrow {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); transition: all var(--dur) var(--ease);
}
.tq-arrow:hover { background: var(--paper-2); }
.tq-arrow i { width: 16px; height: 16px; }

/* ============================================================
   CTA — drei Wege
   ============================================================ */
.cta-head { text-align: left; margin-bottom: 56px; max-width: 640px; }

.paths {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 880px) {
  .paths { grid-template-columns: 1fr; }
}
.path {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.path:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.path.is-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.path.is-dark h3 { color: var(--paper); }
/* Produktbild in der hellen Produkt-Kachel: Buch direkt auf der Karte, komplett sichtbar */
.path-media {
  border-radius: 16px;
  background: transparent;
  overflow: hidden;
}
.path-media img {
  width: 100%; height: 240px;
  object-fit: contain;
  display: block;
}
.path-eyebrow {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--honey-600);
  display: flex; align-items: center; gap: 8px;
}
.path.is-dark .path-eyebrow { color: var(--honey-300); }
.path-eyebrow .num {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--honey-400); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 0;
}
.path h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15;
  letter-spacing: -0.02em; margin: 0;
}
.path p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-3); }
.path.is-dark p { color: rgba(251,250,247,0.78); }
.path .price {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 4px;
}
.path .price .amt {
  font-family: var(--font-display); font-weight: 600;
  font-size: 40px; letter-spacing: -0.025em; line-height: 1;
}
.path .price .lvl {
  font-size: 13px; color: var(--ink-4); letter-spacing: 0.04em;
}
.path.is-dark .price .lvl { color: rgba(251,250,247,0.6); }
.path .actions { margin-top: auto; padding-top: 12px; }
.path.is-dark .btn-primary { background: var(--honey-400); color: var(--ink); }

/* Email-Opt-in (Pfad 3) — spannt über volle Breite */
.path-mail {
  grid-column: span 2;
  background: var(--paper-2);
  border: 1px dashed var(--border-strong);
  border-radius: 24px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 24px;
}
@media (max-width: 880px) {
  .path-mail { grid-column: span 1; grid-template-columns: 1fr; }
}
.path-mail .copy h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.path-mail .copy p { margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.5; }

.email-form {
  display: flex; gap: 8px;
  background: var(--card);
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  min-width: 360px;
}
@media (max-width: 720px) { .email-form { min-width: 0; width: 100%; } }
.email-form input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: 14.5px; color: var(--ink); min-width: 0;
}
.email-form input::placeholder { color: var(--ink-5); }
.email-form button { padding: 11px 20px; font-size: 13.5px; }

.email-success {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--honey-100); color: var(--ink);
  font-size: 14px; font-weight: 600;
}
.email-success i { width: 16px; height: 16px; }

/* ============================================================
   WORTART HOVER — Mikro-Delight an ausgewählten Wörtern
   ============================================================ */
.wort {
  position: relative;
  cursor: help;
  border-bottom: 1.5px dotted var(--honey-400);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease);
}
.wort:hover { color: var(--honey-700); }
.wort::after {
  content: attr(data-wortart);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 8px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  font-style: normal;
  z-index: 2;
}
.wort::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--ink);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 2;
}
.wort:hover::after, .wort:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   GOETHE-ZITAT — Idle-Delight
   ============================================================ */
.goethe {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 40;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 16px 36px 14px 18px;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}
.goethe.visible {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.goethe .who {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 10px;
  font-weight: 600;
}
.goethe .close {
  position: absolute; top: 8px; right: 8px;
  background: transparent; border: none; cursor: pointer;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-4);
}
.goethe .close i { width: 14px; height: 14px; }

/* ============================================================
   SCROLL FADE-IN
   ============================================================ */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
}
.fade-in.in { opacity: 1; transform: translateY(0); }
