/* ============================================================
   CLUEFORGE — LANDING PAGE STYLES
   ============================================================ */

:root {
  --accent:       #d4622a;
  --accent-hover: #b84f1f;
  --accent-light: #fae8dc;
  --text:         #1e1208;
  --text-muted:   #7a6055;
  --bg:           #fffdf9;
  --bg-light:     #f7f0e8;
  --border:       #e8d8c8;
  --radius:       12px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui:      'Lato', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes badgePop {
  0%   { transform: scale(0.7) rotate(-6deg); opacity: 0; }
  70%  { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent-hover);
  color: #fff;
  border-color: var(--accent-hover);
  box-shadow: 0 3px 0 #9a3f18;
}
.btn--primary:hover { background: #9a3f18; border-color: #9a3f18; }
.btn--primary:active { box-shadow: none; transform: translateY(2px); }

.btn--sm  { font-size: 13px; padding: 8px 16px; }
.btn--lg  { font-size: 17px; padding: 14px 32px; border-radius: 14px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.site-logo__icon {
  font-size: 22px;
  color: var(--accent);
}
.site-logo__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.site-logo__text strong { color: var(--accent); font-style: normal; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav__link:hover { color: var(--accent); }

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
}
.lang-select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 28px 5px 10px;
  cursor: pointer;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a6055' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color 0.15s;
}
.lang-select:hover { border-color: var(--accent); }
.lang-select:focus { outline: none; border-color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__kicker {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-hover);
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease both;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeInUp 0.5s 0.12s ease both;
}
.hero__headline em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 36px;
  animation: fadeInUp 0.5s 0.24s ease both;
}

.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; animation: fadeInUp 0.5s 0.38s ease both; }
.hero__cta-hint { font-size: 12px; color: var(--text-muted); }

/* Hero Visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.6s 0.15s ease both;
}

.hero__mockup {
  position: relative;
  animation: float 4s 0.75s ease-in-out infinite;
}

.mock-grid {
  background: #d4a87a;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(100, 50, 10, 0.18), 0 4px 12px rgba(100, 50, 10, 0.10);
}

.mock-grid__inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}

.mock-row { display: flex; gap: 3px; }

.mc {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: #fffdf9;
  border: 1.5px solid #c8a07a;
}
.mc--b { background: #2d1f14; border-color: #2d1f14; }
.mc--s { background: #fce9b4; border-color: #d4962a; }

.mock-sol-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff9f3;
  border: 1.5px solid #e0c9b0;
  border-radius: 8px;
}
.mock-sol-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.mock-sol-boxes { display: flex; gap: 5px; }
.msb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.msb span {
  font-size: 9px;
  font-weight: 700;
  color: #8b5a00;
  display: block;
  text-align: center;
}
.msb::after {
  content: '';
  display: block;
  width: 22px;
  height: 2.5px;
  background: #8b5e3c;
  border-radius: 2px;
}

.hero__badge {
  position: absolute;
  top: -16px;
  right: -20px;
  background: var(--accent-hover);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(184, 79, 31, 0.35);
  white-space: nowrap;
  animation: badgePop 0.5s cubic-bezier(.34,1.56,.64,1) 0.65s both;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 80px 0;
}
.section--light { background: var(--bg-light); }

.section__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}
.section__sub {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 52px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   ANLASS CARDS
   ============================================================ */
.anlass-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.anlass-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.anlass-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(100, 50, 10, 0.12);
}

.anlass-card__icon { font-size: 36px; margin-bottom: 12px; display: block; }
.anlass-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.anlass-card__text { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(212, 98, 42, 0.3);
  flex-shrink: 0;
}

.step__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step__text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.step__connector {
  flex-shrink: 0;
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: 26px;
  position: relative;
}
.step__connector::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--border);
}

/* ============================================================
   DESIGN PREVIEWS
   ============================================================ */
.design-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.design-card {
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s;
}
.design-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.design-card--klassik { background: #f8f8f8; border-color: #d0d0d0; }
.design-card--romantik { background: #fff4f6; border-color: #f0c8d4; }
.design-card--warm    { background: #fff8f3; border-color: #e8c8a8; }

.design-card__grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 16px;
  align-items: center;
}
.dc-row { display: flex; gap: 3px; }
.dc {
  width: 26px;
  height: 26px;
  border-radius: 4px;
}

.design-card--klassik  .dc { background: #fff; border: 1px solid #c0c0c0; }
.design-card--klassik  .dc.dc--b { background: #1a1a1a; }
.design-card--klassik  .dc.dc--s { background: #e8e8e8; border-color: #aaa; }

.design-card--romantik .dc { background: #fff7f8; border: 1px solid #e8c4cc; }
.design-card--romantik .dc.dc--b { background: #3d1f2a; }
.design-card--romantik .dc.dc--s { background: #f7d4dc; border-color: #c97a8a; }

.design-card--warm     .dc { background: #fffdf9; border: 1px solid #c8a07a; }
.design-card--warm     .dc.dc--b { background: #2d1f14; }
.design-card--warm     .dc.dc--s { background: #fce9b4; border-color: #d4962a; }

.design-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.design-card--klassik  .design-card__name { color: #1a1a1a; }
.design-card--romantik .design-card__name { color: #8b2252; }
.design-card--warm     .design-card__name { color: #2d1f14; }

.design-card__desc { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.section--cta {
  background: var(--text);
  text-align: center;
}
.cta-inner { max-width: 620px; }
.cta__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}
.site-footer__logo .site-logo__icon { color: rgba(212, 98, 42, 0.7); }
.site-footer__logo .site-logo__text { color: rgba(255,255,255,0.5); }
.site-footer__logo strong { color: rgba(212, 98, 42, 0.8); }
.site-footer__nav { display: flex; gap: 20px; }
.site-footer__nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer__nav a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner        { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero__sub          { margin-left: auto; margin-right: auto; }
  .hero__cta          { align-items: center; }
  .hero__visual       { order: -1; }
  .anlass-cards       { grid-template-columns: 1fr 1fr; }
  .steps              { flex-direction: column; align-items: center; gap: 24px; }
  .step__connector    { width: 2px; height: 32px; }
  .step__connector::after {
    right: -4px; top: auto; bottom: -5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--border);
    border-bottom: none;
  }
  .design-previews    { grid-template-columns: 1fr; max-width: 320px; }
  .site-footer__inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
  .anlass-cards       { grid-template-columns: 1fr; }
  .site-nav__link     { display: none; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 56px 0; }
}
