/* ============================================================
   YORY MEDIA — main.css
   Design System: Variablen, Reset, Typografie, Layout
   ============================================================ */

/* Fraunces entfernt — Area Normal für alle Headings */

/* ── Self-hosted Fonts ────────────────────────────────────── */
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/Area Normal Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/Area Normal SemiBold.otf') format('opentype');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/Area Normal Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Variablen ────────────────────────────────────────────── */
:root {
  --bg:           #FFFFFF;
  --bg-2:         #f7f3ff;
  --bg-card:      #FFFFFF;
  --bg-card-alt:  #f0ebff;
  --violet:       #5A467D;
  --violet-light: #7a64a0;
  --flieder:      #B588F2;
  --flieder-dim:  rgba(181,136,242,0.12);
  --gold:         #F2D188;
  --gold-dim:     rgba(242,209,136,0.15);
  --rot:          #E72A3D;
  --text:         #111111;
  --text-muted:   #555555;
  --text-dim:     #888888;
  --border:       rgba(0,0,0,0.12);
  --border-hover: rgba(0,0,0,0.25);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-pill:  999px;
  --max-w:        1100px;
  --font-h:       'Area Normal', system-ui, sans-serif;
  --font-b:       'Area Normal', system-ui, sans-serif;
  --transition:   .2s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 18px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typografie ───────────────────────────────────────────── */
h1, h2  {
  font-family: var(--font-h);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
}

h3,h4{
  font-family: var(--font-h);
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}
/* Feste Grössen — jede Ebene identisch auf allen Seiten */
h1 { font-size: 3.2rem; font-weight: 800; }
h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.75; font-size: 1rem; }
em { font-style: italic; }

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; overflow-wrap: break-word; hyphens: auto; }
}

.text-gold   { color: var(--gold); }
.text-flieder{ color: var(--flieder); }
.text-muted  { color: var(--text-muted); }
.italic      { font-style: italic; }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: 100px 0; }
.section-sm{ padding: 72px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ── Section Label (h3, gold) ─────────────────────────────── */
.section-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero .section-kicker { color: rgba(255,255,255,0.95); }

/* ── Kicker / Label ───────────────────────────────────────── */
p.kicker,
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #B570D8;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 14px;
}

/* ── Buttons — Comic-Stil: schwarzer Rahmen, eckig-rund ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1.5px solid #1a1228;
  background: transparent;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 700;
  color: #1a1228;
  transition: all .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover {
  box-shadow: 4px 4px 0 rgba(26,18,40,0.2);
  transform: translate(-2px, -2px);
}
/* Primär: Gold-Füllung mit schwarzem Rahmen */
.btn-primary {
  background: linear-gradient(105deg, var(--gold) 40%, #fff8dc 50%, var(--gold) 60%);
  background-size: 400% auto;
  background-position: 0% center;
  border-color: #1a1228;
  color: #1a1228;
  animation: goldShimmer 8s ease-in-out infinite;
}
.btn-primary:hover {
  box-shadow: 4px 4px 0 rgba(26,18,40,0.2);
  transform: translate(-2px, -2px);
}
/* Outline: kein Hintergrund, schwarzer Rahmen */
.btn-outline {
  background: transparent;
  border-color: #1a1228;
  color: #1a1228;
}
/* Im Hero: weisser Rahmen auf Lila */
.hero .btn-outline {
  border-color: #fff;
  color: #fff;
}
.page-hero .btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.85);
}
.hero .btn-outline:hover,
.page-hero .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  box-shadow: 4px 4px 0 rgba(255,255,255,0.4);
  transform: translate(-2px, -2px);
}
/* Gold: Goldener Hintergrund mit schwarzem Text */
.btn-gold {
  background: var(--gold);
  border-color: #1a1228;
  color: #1a1228;
  font-weight: 700;
}
.btn-gold:hover {
  background: #f5da99;
  box-shadow: 4px 4px 0 rgba(26,18,40,0.2);
  transform: translate(-2px, -2px);
}
/* Ghost: Text mit Pfeil */
.btn-ghost {
  padding: 13px 4px;
  border: none;
  background: transparent;
  color: #D888F2;
  font-size: 15px;
  font-weight: 700;
}
.btn-ghost:hover { box-shadow: none; transform: none; color: var(--violet); }
.btn-ghost::after { content: ' →'; transition: margin .2s ease; }
.btn-ghost:hover::after { margin-left: 6px; }

/* ── Selbsttest ───────────────────────────────────────────── */
.selftest-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}
.selftest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #f8f7ff;
  border: 1.5px solid #e0dbf5;
  border-radius: 12px;
  transition: border-color .2s ease;
}
.selftest-item.answered-ja  { border-color: var(--flieder); background: #ede6ff; }
.selftest-item.answered-nein { border-color: var(--rot); background: #fff5f5; }
.selftest-question { font-size: 0.95rem; color: var(--text); flex: 1; }
.selftest-btns { display: flex; gap: 8px; flex-shrink: 0; }
.selftest-btn {
  padding: 6px 18px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.selftest-btn:hover { border-color: var(--flieder); color: var(--flieder); }
.selftest-btn.active-ja  { background: var(--flieder); border-color: var(--flieder); color: #fff; }
.selftest-btn.active-nein { background: var(--rot); border-color: var(--rot); color: #fff; }
.selftest-cta {
  margin: 28px 0;
  padding: 22px 28px;
  background: var(--gold-dim);
  border: 1.5px solid transparent;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 620px;
  transition: border-color .3s ease, background .3s ease;
}
.selftest-cta.highlighted {
  background: #ede6ff;
  border-color: var(--flieder);
}
.selftest-cta p {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin: 0;
}
.selftest-benefits { max-width: 620px; }

/* ── Referenzen ─────────────────────────────────────────── */
.ref-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #f8f7ff;
  border: 1.5px solid #e0dbf5;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.ref-featured:hover { box-shadow: 0 6px 28px rgba(90,70,125,0.13); border-color: var(--flieder); }
.ref-featured-img { height: 400px; overflow: hidden; border-radius: 16px 0 0 16px; }
.ref-featured-img img { width: 100%; height: 100%; object-fit: cover; object-fit: cover; object-position: top center; display: block; box-shadow: inset 0 -20px 40px rgba(0,0,0,0.04); }
.ref-featured-content { padding: 32px 32px 32px 0; }
.ref-quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  border-left: 3px solid var(--flieder);
  padding-left: 14px;
  margin: 0 0 8px;
}
.ref-quote-author { font-size: 0.85rem; color: var(--text-muted); }
.ref-card {
  background: #fff;
  border: 1.5px solid #e0dbf5;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.ref-card:hover { box-shadow: 0 4px 20px rgba(90,70,125,0.1); border-color: var(--flieder); }
.ref-card-img { height: 180px; overflow: hidden; background: #ede6ff; }
.ref-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ref-card-body { padding: 16px 18px 20px; }
.ref-card-text { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

@media (max-width: 768px) {
  .ref-featured { grid-template-columns: 1fr; }
  .ref-featured-content { padding: 24px; }
  .ref-featured-img { min-height: 200px; }
}

/* ── Card Sub-Links (Hover-Beschreibung) ──────────────────── */
.card-sublink {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  padding: 5px 0;
}
.card-sublink-title {
  color: var(--flieder);
  font-size: 0.9rem;
  transition: color .2s ease;
  white-space: nowrap;
}
.card-sublink:hover .card-sublink-title { color: var(--violet); }
.card-sublink-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0;
  white-space: nowrap;
  transition: opacity .25s ease;
}
.card-sublink:hover .card-sublink-sub { opacity: 1; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1.5px solid #1a1228;
  border-radius: 14px;
  padding: 28px;
  transition: all .15s ease;
  box-shadow: 4px 4px 0 rgba(181,136,242,0.45);
  overflow-wrap: break-word;
}
.card:hover {
  box-shadow: 4px 4px 0 rgba(181,136,242,0.45);
}

.card-sm {
  background: #fff;
  border: 1.5px solid #1a1228;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 3px 3px 0 rgba(181,136,242,0.45);
  transition: all .15s ease;
}
.card-sm:hover {
  box-shadow: 4px 4px 0 rgba(181,136,242,0.45);
  transform: translate(-1px, -1px);
}

/* ── Tags / Pills ─────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(216,136,242,0.12);
  color: #B570D8;
  border: 1.5px solid #D888F2;
  margin-bottom: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag-gold {
  background: rgba(242,209,136,0.2);
  color: #8a6000;
  border-color: var(--gold);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Highlight Box ────────────────────────────────────────── */
.highlight-box {
  background: var(--violet);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.highlight-box h2, .highlight-box h3 { color: #fff; }
.highlight-box p { color: rgba(255,255,255,0.8); }

/* ── Section Accent ───────────────────────────────────────── */
.section-accent {
  background: #f1f3fa;
}
.section-accent h2 { color: var(--text); }
.section-accent h3 { color: var(--gold); }

/* ── Section Gold ─────────────────────────────────────────── */
.section-gold {
  background: #F2D188;
  position: relative;
}
.section-gold .section-otter {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 240px;
  pointer-events: none;
}
.section-gold .section-otter img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .section-gold .section-otter { width: 160px; }
}
@media (max-width: 768px) {
  .section-gold .section-otter { display: none; }
}

/* ── Step Row ─────────────────────────────────────────────── */
.step-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: #D888F2;
  font-family: var(--font-b);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  min-width: 36px;
}
.step-content h3,
.step-content h4 { margin-bottom: 4px; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.step-content p  { font-size: 0.9rem; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--flieder); }
.faq-icon {
  font-size: 20px;
  color: var(--flieder);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-answer {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 18px; }
.faq-item.open .faq-icon   { transform: rotate(45deg); }

/* ── Referenz-Card ────────────────────────────────────────── */
.ref-card {
  background: #fff;
  border: 1.5px solid #1a1228;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 4px 4px 0 rgba(181,136,242,0.45);
  transition: all .15s ease;
}
.ref-card:hover {
  box-shadow: 4px 4px 0 rgba(181,136,242,0.45);
  transform: translate(-2px, -2px);
}
.ref-result {
  font-size: 14px;
  color: var(--flieder);
  font-weight: 500;
  margin-top: 8px;
}
.ref-result::before { content: '→ '; }

/* ── Score Row ────────────────────────────────────────────── */
.score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.score-label { font-size: 14px; font-weight: 500; min-width: 130px; }
.score-dots  { display: flex; gap: 6px; }
.score-dot   { width: 12px; height: 12px; border-radius: 50%; background: var(--bg-card-alt); }
.score-dot.green  { background: #3DB87A; }
.score-dot.amber  { background: #E8A020; }
.score-dot.red    { background: var(--rot); }
.score-note  { font-size: 13px; color: var(--text-muted); }

/* ── Preis-Box ────────────────────────────────────────────── */
.price-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.price-row:last-child { border-bottom: none; background: var(--flieder-dim); }
.price-label { color: var(--text); }
.price-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.price-val   { font-weight: 500; color: var(--flieder); white-space: nowrap; }

/* ── Animationen ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s cubic-bezier(.22,.68,0,1.2) both; }
.fade-up-1 { animation-delay: .12s; }
.fade-up-2 { animation-delay: .24s; }
.fade-up-3 { animation-delay: .36s; }
.fade-up-4 { animation-delay: .48s; }

/* Scroll-Reveal für Sektionselemente */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Otter schwebt sanft */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
.otter-float { animation: float 5s ease-in-out infinite; }

/* Hero-Gradient atmet */
@keyframes heroBreath {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Btn-Primary Shimmer */
@keyframes goldShimmer {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.gap-16 { gap: 16px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ── Grid-Varianten ───────────────────────────────────────── */
.grid-2-center { align-items: center; gap: 64px; }
.grid-2-top    { align-items: start; gap: 64px; }

/* ── Karten-Modifier ──────────────────────────────────────── */
.card-violet { border-color: var(--violet-light); }

/* ── Profil-Komponenten ───────────────────────────────────── */
.profile-stack { display: flex; flex-direction: column; gap: 16px; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
  color: #fff;
}
.profile-name { margin-bottom: 3px; }
.profile-desc { font-size: 0.85rem; }
.diff-point {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  padding-left: 1.6em;
  text-indent: -1.6em;
}

/* ── Bewegung reduzieren ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
}
