/* Styles of the landing page, the blog and the legal pages (loaded after design/static/design.css). */

/* Landing page (GET / for visitors) */

.hero { text-align: center; padding: 2rem 1rem 1.4rem; max-width: 60rem; margin: 0 auto; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.01em; }
.hero-lead { font-size: 1.1rem; color: var(--muted); margin: 0 auto 1.6rem; max-width: 38rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: .9rem; }
/* hero with text on the left and a screenshot on the right; stacked on narrow screens (ADR 0118) */
.hero.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center;
  text-align: left; max-width: none; padding: 2rem 0 1.6rem; }
/* the heading stays on one line next to the screenshots: its size follows the column width */
.hero-split h1 { white-space: nowrap; font-size: clamp(1.6rem, 3.1vw - .25rem, 2.4rem); }
.hero-split .hero-lead { margin-left: 0; }
.hero-split .hero-actions { justify-content: flex-start; margin-bottom: 1.6rem; } /* the same space as above the button */
@media (max-width: 900px) {
  .hero.hero-split { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; padding-top: 1.5rem; }
  .hero-split h1 { white-space: normal; font-size: clamp(1.8rem, 5vw, 2.7rem); }
  .hero-split .hero-lead { margin-left: auto; }
  .hero-split .hero-actions, .hero-split .trust { justify-content: center; }
  .hero-split .trust { flex-direction: column; align-items: center; } /* one point per line, centred */
}
.trust { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; padding: 0; margin: 0 0 .7rem; font-weight: 600; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: .3rem; }
.trust .icon { color: var(--accent); font-size: 1.15rem; vertical-align: 0; }
.shot { margin: 0; }
/* hero carousel: one screenshot per slide, swipe with scroll snap, dots below */
.hero-carousel { min-width: 0; }
.carousel-track { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1600 / 964; display: flex; align-items: center; justify-content: center;
  padding: 0 0 18px; box-sizing: content-box; } /* room for the shadow */
.carousel-slide.shot img { width: auto; max-width: 100%; max-height: 100%; }
/* phone screenshots in a phone frame, only on narrow screens; desktop screenshots only on wide ones */
.hero-carousel.phone { display: none; }
.hero-carousel.phone .carousel-slide { aspect-ratio: auto; }
.hero-carousel.phone .carousel-slide.shot img { width: min(100%, 280px); max-height: none; border: 6px solid #1e293b; border-radius: 22px; }
@media (max-width: 900px) { .hero-carousel.desktop { display: none; } .hero-carousel.phone { display: block; } }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .2rem; }
.carousel-dot { width: .6rem; height: .6rem; padding: 0; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; }
.carousel-dot[aria-current] { background: var(--accent); }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
/* the three evaluations, each with a screenshot */
.highlights { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); margin: 1rem 0 1.25rem; }
@media (max-width: 1000px) { .highlights { grid-template-columns: 1fr; } }
.highlights .card { margin-bottom: 0; }
.highlight { display: flex; flex-direction: column; }
/* the screenshot below the text, at the bottom of the card, the same height in all three */
.highlight .shot { margin-top: auto; padding-top: 1rem; aspect-ratio: 5 / 2; display: flex; align-items: center; box-sizing: content-box; }
.highlight-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; } /* heading next to the icon, centred to it */
.highlight h2 { margin: 0; position: relative; top: 2px; } /* capitals centred to the icon box */
.highlight p { margin: 0; }
.highlight p + p { margin-top: .5rem; }
/* the other features as a compact list */
.more-features h2 { margin-top: 0; }
.feature-list { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
@media (max-width: 1000px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; }
.feature-list li > .icon { color: var(--accent); font-size: 1.4rem; vertical-align: 0; flex: none; }
.feature-list strong { display: block; margin-bottom: .15rem; }
.feature-list .muted { font-size: .95rem; }
/* "So funktioniert's" in three steps */
.steps { margin: 3rem 0 1.25rem; } /* double space above the section headings */
.steps > h2, .faq > h2 { margin: 0 0 .75rem; }
.step-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
@media (max-width: 800px) { .step-list { grid-template-columns: 1fr; } }
.step-list .card { margin-bottom: 0; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; }
.step-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem; } /* heading next to the number, centred to it */
.step h3 { margin: 0; position: relative; top: 1px; } /* capitals centred to the number */
.step p { margin: 0; }
/* shooting range operators: the planned API (ADR 0115) */
.ranges { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.ranges-text { flex: 1 1 20rem; }
.ranges h2 { margin: 0; position: relative; top: 1px; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; } /* next to the icon like the highlights, chip centred to the heading */
.ranges p { margin: 0; }
.badge-soon { display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  line-height: 1.5; white-space: nowrap; position: relative; top: -.045rem; /* centred to the capitals of the heading */ color: var(--accent); border: 1px solid var(--accent); }
/* questions and answers */
.faq { margin: 3rem 0 1.25rem; }
.faq-item { margin-bottom: .6rem; padding-top: .85rem; padding-bottom: .85rem; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: .6rem 0 0; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta h2 { margin-bottom: .25rem; }
.cta p { margin: 0; }

/* Privacy policy and imprint: full-width card like every other box, text uses the full width too */
.legal h2 { margin-top: 1.6rem; }
.legal h3 { font-size: 1rem; margin: 1.1rem 0 .4rem; }
.legal p, .legal ul { line-height: 1.55; }
.legal li { margin-bottom: .35rem; }
.placeholder { color: var(--danger); font-weight: 600; }

/* Blog (ADR 0109): list of articles (also on the landing page) and the article, readable line length */
.blog-head { margin: 0 0 1.25rem; }
.blog-head h1 { margin: .2rem 0 .4rem; }
.blog-head p { margin: 0; }
.blog-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 1.25rem; }
.blog-list .card { margin-bottom: 0; display: flex; flex-direction: column; }
/* Blog page: one article below the other, newest first, as wide as the cards of the other app pages (e.g. Schießbuch) */
.blog-list.blog-stack { grid-template-columns: 1fr; }
.blog-teaser h2, .blog-teaser h3 { margin: 0 0 .3rem; font-size: 1.15rem; line-height: 1.3; }
.blog-teaser h2 a, .blog-teaser h3 a { color: var(--text); }
.blog-teaser h2 a:hover, .blog-teaser h3 a:hover { color: var(--accent); }
.blog-teaser p { margin: 0 0 .6rem; line-height: 1.5; }
.blog-more { margin-top: auto; display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; }
.blog-more .icon, .blog-back .icon, .landing-blog-head .icon { font-size: 1.1em; vertical-align: 0; }
.blog-article h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; margin: .4rem 0 .4rem; }
.blog-article p, .blog-article li { font-size: 1.02rem; line-height: 1.65; }
.blog-article table { margin: 1rem 0; }
.blog-figure { margin: 1.5rem auto; text-align: center; }
.blog-figure.mobile { max-width: 320px; }
.blog-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.blog-figure figcaption { margin-top: .5rem; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.blog-back { margin: 0; }
.blog-back a { display: inline-flex; align-items: center; gap: .25rem; }
.landing-blog { margin: 3rem 0 0; }
.landing-blog-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.landing-blog-head h2 { margin: 0; }
.landing-blog-head a { display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; }
