/* ==========================================================================
   styles.css - Unabhaengiger Ratgeber fuer Lottogewinner
   Elegantes Navy & Gold Design
   ========================================================================== */

:root {
  --navy: #041222;
  --navy-light: #102d4c;
  --gold: #c5a880;
  --gold-light: #f1d486;
  --paper: #fbf9f4;
  --white: #ffffff;
  --text: #222222;
  --muted: #555555;
  --danger: #922e2e;
  --shadow: 0 10px 30px rgba(4, 18, 34, 0.08);
}

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

img {
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 20px 0;
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.home-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
}

.brand {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--white);
}

.header-img-link {
  display: inline-block;
  line-height: 0;
}

.header-picture {
  max-height: 50px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
}

.page {
  max-width: 780px;
  margin: 40px auto;
  padding: 0 20px;
}

.not-a-lotto-site-banner {
  max-width: 780px;
  margin: 0 auto 30px;
  padding: 14px 18px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 6px;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--shadow);
}

.not-a-lotto-site-banner strong {
  color: #b30000;
  font-weight: 800;
}

/* Kurzer Einführungsfilm */
.video-bereich {
  max-width: 780px;
  margin: 0 auto 34px;
}

.video-bereich video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.video-sources {
  margin: 9px 4px 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
}

.dream-line {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 10px;
}

h1 {
  font-size: 2.2rem;
  color: var(--navy);
  margin: 15px 0;
  line-height: 1.2;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.warning-line {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--navy);
  background: rgba(197, 168, 128, 0.1);
  padding: 12px;
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  display: inline-block;
}

.intro-copy {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.hope-heading {
  font-size: 1.4rem;
  color: var(--navy);
  margin-top: 0;
}

.market-limit {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
  color: var(--muted);
}

.market-limit strong {
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}

.clarification-box {
  max-width: 780px;
  margin: 0 auto 30px;
  padding: 18px 22px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid #d9d5ca;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 5px 16px rgba(4, 18, 34, 0.05);
}

.lotto-selector-box {
  max-width: 780px;
  margin: 30px auto 40px;
  padding: 24px;
  background: var(--white);
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
  text-align: center;
}

.lotto-selector-box p {
  margin: 0 0 20px;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-align: center;
}

.button-row-spaced {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.choice-button-30 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  color: var(--navy);
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.choice-button-30:hover,
.choice-button-30:focus-visible {
  color: var(--white);
  background: var(--navy);
}

.knowledge-gap {
  font-weight: bold;
  color: var(--navy);
  font-size: 1.1rem;
  margin: 40px 0 20px;
  text-align: center;
}

.chapters {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.chapter-card {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid rgba(197, 168, 128, 0.3);
  transition: transform 150ms ease, border-color 150ms ease;
}

.chapter-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.letter {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--navy);
  background: var(--paper);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-right: 20px;
  flex-shrink: 0;
}

.chapter-card h2 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--navy);
  flex-grow: 1;
}

.open-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #8a6840;
  white-space: nowrap;
  margin-left: 15px;
}

.course-note {
  background: var(--navy);
  color: var(--white);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 40px;
  border-top: 4px solid var(--gold);
}

.course-note strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--gold);
}

.timing-answer {
  display: block;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.easy-line {
  display: block;
  font-size: 0.95rem;
  color: #e0e0e0;
  font-weight: 500;
}

.external-cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: -20px auto 40px;
  text-align: center;
}

.btn-gold-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: var(--gold);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.3);
  transition: background-color 160ms ease, transform 160ms ease;
}

.btn-gold-action:hover,
.btn-gold-action:focus-visible {
  background-color: #d4bc98;
  transform: translateY(-2px);
  color: var(--navy);
}

/* Kapitel A bis D und Impressum */
.chapter-page {
  padding: 56px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
}

.chapter-page h1 {
  max-width: none;
  margin: 0 0 28px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}

.chapter-intro {
  max-width: 780px;
  margin: 0 0 38px;
  font-size: 1.15rem;
}

.legal-note {
  max-width: 850px;
  margin: 0 0 34px;
  padding: 20px 22px;
  background: #fff7dc;
  border-left: 5px solid var(--gold);
}

.questions {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: warning;
}

.questions li {
  counter-increment: warning;
  position: relative;
  margin: 0 0 14px;
  padding: 20px 22px 20px 72px;
  background: var(--white);
  border: 1px solid #d9d5ca;
  border-radius: 9px;
  box-shadow: 0 5px 16px rgba(4, 18, 34, 0.07);
  font-weight: 700;
}

.questions li::before {
  content: counter(warning);
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy);
  background: var(--gold-light);
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
}

.chapter-summary {
  margin: 34px 0;
  padding: 24px;
  background: #ebe7db;
  border-radius: 10px;
}

.chapter-summary h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.3rem;
}

.chapter-page .knowledge-gap {
  margin: 34px 0 20px;
  font-size: 1.35rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 64px;
}

.top-actions {
  margin: 24px 0 26px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  color: var(--white);
  background: var(--navy-light);
}

.button-next {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.button-next:hover,
.button-next:focus-visible {
  color: var(--navy);
  background: #d4bc98;
}

.button-buy {
  margin-left: auto;
  color: var(--white);
  background: var(--danger);
  border-color: var(--danger);
}

.button-buy:hover,
.button-buy:focus-visible {
  background: #752323;
}

.buy-wrap {
  flex: 1 0 100%;
  margin-left: 0;
  text-align: center;
}

.buy-wrap .button-buy {
  width: 100%;
  margin-left: 0;
}

.delivery-note {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}

.imprint-page {
  max-width: 720px;
  margin-bottom: 42px;
  padding: 28px;
  background: var(--white);
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
}

.imprint-page p {
  margin: 0 0 1em;
}

.author-credentials {
  margin: 30px 0;
  padding: 20px;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid #d9d5ca;
  border-bottom: 1px solid #d9d5ca;
  border-radius: 8px;
}

.books-picture-link {
  display: inline-block;
  line-height: 0;
}

.books-picture {
  display: block;
  width: 180px;
  height: 68px;
  margin: 0 auto 8px;
  object-fit: cover;
  object-position: center;
}

.author-credentials p {
  margin: 6px 0;
}

.author-credentials a {
  color: var(--navy);
  font-weight: 700;
}

.site-footer {
  text-align: center;
  padding: 30px 20px;
  background: #020911;
  color: #888888;
  font-size: 0.85rem;
  border-top: 1px solid #112233;
}

.imprint-link {
  color: var(--gold);
  text-decoration: none;
}

.imprint-link:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid #8a6840;
  outline-offset: 3px;
}

/* Handyansicht */
@media (max-width: 680px) {
  .site-header {
    padding: 12px 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
    padding: 0 14px;
  }

  .home-link {
    align-self: center;
  }

  .brand {
    font-size: 1rem;
    line-height: 1.25;
  }

  .header-img-link {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 360px);
  }

  .header-picture {
    width: 100%;
    max-height: 58px;
    object-fit: contain;
  }

  .page {
    margin: 24px auto 30px;
    padding: 0 14px;
  }

  .not-a-lotto-site-banner {
    margin-bottom: 24px;
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .video-bereich {
    margin-bottom: 28px;
  }

  .video-bereich video {
    border-radius: 8px;
  }

  .hero {
    margin-bottom: 30px;
  }

  .dream-line {
    font-size: 1.35rem;
    line-height: 1.35;
  }

  h1 {
    font-size: 1.85rem;
  }

  .lead,
  .warning-line {
    font-size: 1.05rem;
  }

  .warning-line {
    display: block;
  }

  .intro-copy {
    padding: 21px 18px;
  }

  .clarification-box {
    padding: 16px;
  }

  .lotto-selector-box {
    margin: 26px auto 34px;
    padding: 20px 14px;
  }

  .button-row-spaced {
    gap: 10px;
  }

  .choice-button-30 {
    flex: 1 1 95px;
    padding: 12px 8px;
    white-space: nowrap;
  }

  .knowledge-gap {
    margin-top: 32px;
  }

  .chapter-card {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    align-items: center;
    padding: 16px;
  }

  .letter {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-right: 12px;
  }

  .chapter-card h2 {
    grid-column: 2;
    font-size: 1.05rem;
  }

  .open-label {
    grid-column: 2;
    margin: 7px 0 0;
    color: #8a6840;
  }

  .course-note {
    padding: 22px 16px;
  }

  .timing-answer {
    font-size: 1.15rem;
  }

  .external-cta-container {
    margin-top: -18px;
  }

  .chapter-page {
    padding-top: 30px;
  }

  .chapter-page h1 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .questions li {
    padding: 18px 16px 18px 62px;
  }

  .questions li::before {
    left: 16px;
  }

  .page-actions {
    align-items: stretch;
  }

  .button,
  .button-buy {
    width: 100%;
    margin-left: 0;
  }

  .buy-wrap {
    width: 100%;
    margin-left: 0;
  }

  .imprint-page {
    padding: 22px 18px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 0.92rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  .choice-button-30 {
    font-size: 0.92rem;
  }
}
