/* CMC Puzzles – statische Seite */

@font-face {
  font-family: 'Abel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/abel-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-sans-3.woff2') format('woff2');
}

:root {
  --color-bg: #faf6ee;
  --color-bg-alt: #f1e6d3;
  --color-surface: #ffffff;
  --color-text: #3a2a1c;
  --color-text-muted: #6e5b47;
  --color-border: #e4d5ba;
  --color-accent: #8f2213;
  --color-accent-dark: #6d1a0e;
  --color-accent-contrast: #fffaf3;
  --font-display: 'Abel', Helvetica, Arial, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 14px;
  --shadow-card: 0 6px 20px rgba(58, 42, 28, 0.09);
  --shadow-card-hover: 0 12px 28px rgba(58, 42, 28, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--color-accent-dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.3em; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-accent); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 0.2s ease, transform 0.15s ease;
  border: 2px solid var(--color-accent);
}
.btn:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--color-accent-contrast);
  border: 2px solid var(--color-accent-contrast);
}
.btn--outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

.btn--small { padding: 8px 18px; font-size: 0.92rem; }

.btn--header { flex-shrink: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img { height: 44px; width: auto; }
.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--color-accent); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(20,9,5,0.93) 0%, rgba(20,9,5,0.86) 40%, rgba(20,9,5,0.65) 75%, rgba(20,9,5,0.48) 100%),
    rgba(20,9,5,0.4);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 110px 24px 90px;
  max-width: 720px;
}
.hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
.hero p { color: rgba(255,255,255,0.95); font-size: 1.08rem; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Intro note */
.intro-note {
  background: var(--color-accent-dark);
  color: #fff;
}
.intro-note .container { padding-top: 18px; padding-bottom: 18px; }
.intro-note p { color: rgba(255,255,255,0.95); margin: 0; text-align: center; }
.intro-note strong { color: #fff; }

/* Section head */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }

section { padding: 70px 0; }
.markets { background: var(--color-bg-alt); }
.about { background: var(--color-surface); }

/* Market cards */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.market-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.market-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.market-card h3 { font-size: 1.05rem; color: var(--color-accent-dark); }
.market-card p { font-size: 0.92rem; margin-bottom: 12px; }
.market-card__link { font-weight: 600; color: var(--color-accent); font-size: 0.9rem; }

/* About */
.about__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.about__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.badge { height: 70px; width: auto; margin-top: 20px; }

/* Category / products */
.category { padding-top: 50px; padding-bottom: 10px; }
.category:nth-of-type(even) { background: var(--color-bg-alt); }
.category__head { text-align: center; max-width: 680px; margin: 0 auto 36px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.product-card__image {
  aspect-ratio: 3 / 2;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.product-card__price {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.1rem;
  white-space: nowrap;
}
.product-card__body p { font-size: 0.92rem; flex: 1; }
.product-card__body .btn { align-self: flex-start; margin-top: auto; }

/* Contact */
.contact { background: var(--color-accent-dark); color: #fff; }
.contact h2 { color: #fff; }
.contact p { color: rgba(255,255,255,0.88); }
.contact__inner { max-width: 560px; text-align: left; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { margin-bottom: 6px; color: rgba(255,255,255,0.92); }
.contact-list a { color: #fff; text-decoration: underline; }
.contact .btn { background: #fff; color: var(--color-accent-dark); border-color: #fff; }
.contact .btn:hover { background: var(--color-bg-alt); }

/* Footer */
.site-footer { background: var(--color-text); color: rgba(255,255,255,0.7); padding: 26px 0; }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-nav a { color: rgba(255,255,255,0.85); text-decoration: none; margin-left: 18px; font-size: 0.88rem; }
.footer-nav a:hover { color: #fff; }

/* Legal pages */
.legal-page { padding: 60px 0 90px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { margin-bottom: 0.6em; }
.legal-page h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal-page p, .legal-page li { color: var(--color-text); }
.legal-page a.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; }

@media (max-width: 720px) {
  .main-nav { display: none; }
  .about__inner { grid-template-columns: 1fr; }
  .about__image { max-width: 260px; margin: 0 auto; }
  .hero__content { padding: 80px 20px 60px; }
  section { padding: 50px 0; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .footer-nav a { margin: 0 8px; }
}
