/* ═══════════════════════════════════════════
   INDEX.CSS – Rätsel-aktuell Landingpage
   Spezifische Styles für index.html
   ═══════════════════════════════════════════ */

/* ── CONTAINER ───────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── LOGO BAR ────────────────────────────── */
.logo-bar {
  background: #ddd;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--red-pale);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-bar .logo {
  max-height: 42px;
  width: auto;
}

/* ── HEADER NAVIGATION ────────────────────── */
.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.header-nav a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: color .3s, opacity .3s;
  position: relative;
}
.header-nav a:hover {
  color: var(--red-main);
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-main);
  transition: width .3s;
}
.header-nav a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .header-nav {
    gap: 1rem;
  }
  .header-nav a {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .logo-bar .container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .header-nav {
    gap: 0.75rem;
    justify-content: center;
  }
}

/* ── HERO SECTION ────────────────────────── */
.hero {
  background: var(--red-main);
  color: #fff;
  padding: 3rem 0;
  display: flex;
  align-items: center;
  min-height: 520px;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.hero-image-left img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(25, 25, 25, 0.35), 0 10px 32px rgba(25, 25, 25, 0.2);
  object-fit: cover;
}
.hero-content-right {
  padding-right: 2rem;
}
.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #fff;
}
.btn-large {
  padding: 14px 32px;
  font-size: 17px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  .hero-content-right {
    padding-right: 0;
  }
  .hero h1 { font-size: 40px; }
  .hero-subtitle { font-size: 17px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .btn-large { padding: 12px 24px; font-size: 16px; }
}

/* ── FEATURES (3 Karten) ─────────────────── */
.features {
  padding: 4rem 0;
  background: var(--red-tint);
}
.features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 3rem;
  color: var(--text);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(25,25,25,0.1);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139,0,0,0.15);
}
.feature-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.feature-card h3 {
  font-size: 22px;
  color: var(--red-dark);
  padding: 1.5rem 1.5rem 0.5rem;
}
.feature-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* ── TRUST-BAR ───────────────────────────── */
.trust-bar {
  background: var(--red-main);
  color: #fff;
  padding: 3rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.trust-item {
  padding: 1rem;
}
.trust-number {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.trust-label {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-number { font-size: 24px; }
}

/* ── FLIPBOOK SECTION ────────────────────── */
.flipbook-section {
  padding: 4rem 0;
  text-align: center;
  background: #fff;
}
.flipbook-section h2 {
  font-size: 36px;
  margin-bottom: 1rem;
  color: var(--text);
}
.flipbook-section p {
  font-size: 18px;
  margin-bottom: 2rem;
  color: var(--gray);
}

/* ── MAGAZINE PREVIEW ────────────────────── */
.magazine-preview {
  margin: 2.5rem auto;
  max-width: 500px;
  text-align: center;
}
.magazine-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(25, 25, 25, 0.15);
  object-fit: cover;
  transition: transform .3s, box-shadow .3s;
}
.magazine-preview img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(139, 0, 0, 0.2);
}

/* ── WHY SECTION (5 Rubrik-Karten) ──────── */
.why-section {
  padding: 4rem 0;
  background: var(--red-tint);
}
.why-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 3rem;
  color: var(--text);
}
.rubric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .rubric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rubric-grid { grid-template-columns: 1fr; }
}
.rubric-card {
  background: #fff;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(25,25,25,0.08);
  transition: transform .3s, box-shadow .3s;
}
.rubric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139,0,0,0.12);
}
.rubric-icon {
  font-size: 40px;
  margin-bottom: 0.75rem;
  display: block;
}
.rubric-card h3 {
  font-size: 16px;
  color: var(--red-dark);
  margin-bottom: 0.75rem;
}
.rubric-card p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* ── CTA SECTION ─────────────────────────── */
.cta-section {
  background: var(--red-main);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 36px;
  margin-bottom: 1.5rem;
}
.cta-text {
  font-size: 18px;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: all .3s;
}
.btn-primary {
  background: #fff;
  color: var(--red-main);
  font-weight: 700;
}
.btn-primary:hover {
  background: #f0f0f0;
  color: var(--red-dark);
  transform: translateY(-2px);
}
.btn-flipbook {
  background: var(--red-main);
  color: #fff;
  font-weight: 700;
}
.btn-flipbook:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 2px;
}
.btn-secondary {
  background: #fff;
  color: var(--red-main);
  border: none;
  font-weight: 700;
}
.btn-secondary:hover {
  background: #f0f0f0;
  color: var(--red-dark);
  transform: translateY(-2px);
}
.btn-secondary:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 2px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: stretch;
}
.hero-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  flex: 1;
  min-width: 200px;
}

/* ── TESTIMONIALS ────────────────────────── */
.testimonials-section {
  padding: 4rem 0;
  background: #fff;
}
.testimonials-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 3rem;
  color: var(--text);
}
.carousel-wrapper {
  overflow: hidden;
  border-radius: 12px;
}
.carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.testimonial-card {
  background: #fff;
  border: 2px solid var(--red-pale);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  flex: 0 0 300px;
  scroll-snap-align: start;
}
.testimonial-stars {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.testimonial-author {
  font-weight: 600;
  color: var(--red-dark);
  margin-bottom: 0.5rem;
}
.testimonial-location {
  font-size: 14px;
  color: var(--gray);
}

/* ── FAMILY SECTION ──────────────────────── */
.family-section {
  background: #f5f0f0;
  padding: 4.5rem 1.5rem;
}
.family-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.family-title {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 1.75rem;
  color: var(--text);
  margin: 0 0 0.625rem;
  font-weight: 700;
}
.family-subtitle {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0 0 2.75rem;
  line-height: 1.7;
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.family-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(25, 25, 25, 0.09);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.family-card:not(.family-dim):hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(139, 0, 0, 0.16);
}
.family-dim {
  opacity: 0.75;
}
.family-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.family-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .3s;
}
.family-card:not(.family-dim):hover .family-cover-wrap img {
  transform: scale(1.03);
}
.family-dim .family-cover-wrap img {
  filter: grayscale(25%);
}
.family-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #999;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.family-info {
  padding: 1.125rem 1.25rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.family-mname {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.family-text {
  color: #666;
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.family-btn {
  display: inline-block;
  padding: 0.6875rem 1.375rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: background .2s;
  text-align: center;
  margin-top: 0.625rem;
}
.family-btn:hover {
  opacity: 0.88;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  background: #F0D9D9;
  color: var(--text);
  padding: 52px 5% 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-logo img {
  width: auto;
  height: 34px;
  margin-bottom: 14px;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
  color: var(--text);
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(25, 25, 25, 0.08);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
  padding: 0;
}
.footer-social a:hover {
  background: rgba(25, 25, 25, 0.15);
  color: var(--text);
}
footer h3 {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer ul li {
  margin-bottom: 8px;
  line-height: 1.4;
}
footer ul li a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s;
  opacity: 0.85;
  line-height: 1.4;
}
footer ul li a:hover {
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid rgba(25, 25, 25, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text);
}
.footer-bottom a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
}
.footer-bottom a:hover {
  opacity: 1;
}

@media (max-width: 1024px) {
  .family-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .family-title { font-size: 1.5rem; }
  .rubric-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .rubric-card {
    padding: 1.25rem 0.75rem;
  }
  .rubric-icon { font-size: 36px; }
  .rubric-card h3 { font-size: 15px; }
  .rubric-card p { font-size: 12px; }
}

@media (max-width: 768px) {
  .family-grid {
    grid-template-columns: 1fr;
    gap: 1.125rem;
  }
  .family-section {
    padding: 3.5rem 1.5rem;
  }
  .family-title { font-size: 1.3rem; }
  .rubric-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .rubric-card {
    padding: 1.25rem 0.5rem;
  }
  .rubric-icon { font-size: 32px; }
  .rubric-card h3 { font-size: 14px; }
  .rubric-card p { font-size: 11px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
  .features h2, .why-section h2, .testimonials-section h2 { font-size: 28px; }
  .cta-section h2 { font-size: 28px; }
  .cta-text { font-size: 16px; }
  .btn { padding: 10px 20px; font-size: 15px; }
  .rubric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .rubric-card {
    padding: 1.25rem 0.5rem;
  }
  .rubric-icon { font-size: 28px; }
  .rubric-card h3 { font-size: 13px; }
  .rubric-card p { font-size: 11px; margin-bottom: 0.5rem; }
}

/* ── ACCESSIBILITY: prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .feature-card, .rubric-card, .family-card img, .btn {
    transition: none;
  }
}
