/* helgepeters.de – Ballistik Pro */
:root {
  --paper: #F4F5F3;
  --surface: #FFFFFF;
  --ink: #1E2529;
  --steel: #56636B;
  --line: #D5DADC;
  --brass: #A07E33;
  --brass-text: #7D6020;
  --brass-soft: #EFE6D1;
  --target-dark: #1E2529;
  --target-light: #FFFFFF;
  --f-head: "Avenir Next Condensed", "Bahnschrift SemiCondensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--f-body);
  --bs-link-color-rgb: 125, 96, 32;
  --bs-link-hover-color-rgb: 30, 37, 41;
  --bs-border-color: var(--line);
  --bs-focus-ring-color: rgba(160, 126, 51, .35);
}
[data-bs-theme="dark"] {
  --paper: #13171A;
  --surface: #1B2125;
  --ink: #E5E8E9;
  --steel: #9CA8AE;
  --line: #2D363B;
  --brass: #D2AC5A;
  --brass-text: #D9B76C;
  --brass-soft: #2E2817;
  --target-dark: #0E1113;
  --target-light: #E5E8E9;
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 217, 183, 108;
  --bs-link-hover-color-rgb: 229, 232, 233;
  --bs-border-color: var(--line);
  --bs-secondary-bg: var(--surface);
  --bs-tertiary-bg: var(--surface);
}

/* Sprachumschaltung */
html[lang="de"] [data-l="en"],
html[lang="en"] [data-l="de"] { display: none !important; }

html, body { overflow-x: clip; }
body { font-family: var(--f-body); background: var(--paper); color: var(--ink); line-height: 1.6; }
h1, h2, h3, .navbar-brand { font-family: var(--f-head); }
.text-muted-2 { color: var(--steel); }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: var(--surface); padding: .5rem 1rem; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Navigation */
.site-nav { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.navbar-brand { font-weight: 700; font-size: 1.25rem; color: var(--ink) !important; letter-spacing: .01em; }
.brand-sub { font-weight: 500; color: var(--steel); margin-left: .25rem; }
@media (max-width: 420px) { .brand-sub { display: none; } }
.site-nav .nav-link { color: var(--ink); font-weight: 500; }
.site-nav .nav-link:hover { color: var(--brass-text); }
.navbar-toggler { border-color: var(--line); }
[data-bs-theme="dark"] .navbar-toggler-icon { filter: invert(1); }
.lang-switch { display: inline-flex; margin: .5rem 0 .5rem .75rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.btn-lang { border: 0; background: transparent; color: var(--steel); font-size: .8rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; }
html[lang="de"] .btn-lang[data-set-lang="de"],
html[lang="en"] .btn-lang[data-set-lang="en"] { background: var(--ink); color: var(--paper); }
@media (max-width: 767.98px) { .lang-switch { margin-left: 0; align-self: flex-start; } }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.hero-title { font-size: clamp(3.25rem, 9vw, 6.5rem); font-weight: 700; line-height: .95; letter-spacing: -.015em; margin-bottom: 1.25rem; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 34ch; color: var(--ink); }
.hero-note { color: var(--steel); max-width: 52ch; font-size: .95rem; margin-top: 1.75rem; }
.soon { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.soon-item { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.1rem .7rem .9rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 6px; }
.soon-item svg { width: 26px; height: 26px; color: var(--steel); flex: none; }
.soon-item strong { display: block; font-family: var(--f-head); font-size: 1.1rem; line-height: 1.1; }
.soon-item span { display: block; font-size: .85rem; color: var(--brass-text); font-weight: 600; }

/* Zielscheibe */
.target-wrap { margin: 0; max-width: 460px; margin-inline: auto; }
.target { width: 100%; height: auto; display: block; }
.rings circle { stroke-width: .6; }
.r-light { fill: var(--target-light); stroke: var(--target-dark); }
.r-dark { fill: var(--target-dark); stroke: var(--target-light); stroke-opacity: .55; }
.r-x { fill: none; stroke: var(--target-light); stroke-opacity: .55; }
.rings circle:first-child { fill: var(--target-light); }
.numbers text { font: 600 6px var(--f-body); fill: var(--target-dark); text-anchor: middle; dominant-baseline: middle; }
.numbers text.inv { fill: var(--target-light); opacity: .75; }
.shots circle { transform-box: fill-box; transform-origin: center; fill: #F4F5F3; stroke: var(--brass); stroke-width: 1; opacity: 0; animation: hit .25s ease-out forwards; animation-delay: calc(.35s + var(--i) * .22s); }
.spread { fill: none; stroke: var(--brass); stroke-width: .9; stroke-dasharray: 2.5 2; opacity: 0; animation: show .6s ease-out 2.4s forwards; }
.mpi { stroke: var(--brass); stroke-width: .9; opacity: 0; animation: show .6s ease-out 2.4s forwards; }
.target-wrap figcaption { text-align: center; color: var(--steel); font-size: .85rem; margin-top: .75rem; }
@keyframes hit { from { opacity: 0; transform: scale(1.8); } to { opacity: 1; transform: scale(1); } }
@keyframes show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .shots circle, .spread, .mpi { animation: none; opacity: 1; }
}

/* Abschnitte */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
.section-intro { max-width: 62ch; margin-bottom: 2.5rem; }
.narrow { max-width: 720px; }

/* Neuerungen */
.news { margin: 0; }
.news > div { padding: 1.1rem 0 1.1rem 2.25rem; border-top: 1px solid var(--line); position: relative; }
.news > div:last-child { border-bottom: 1px solid var(--line); }
.news > div::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--brass); box-shadow: inset 0 0 0 3.5px var(--paper), inset 0 0 0 8px var(--brass); }
.news dt { font-family: var(--f-head); font-size: 1.25rem; font-weight: 600; }
.news dd { margin: .25rem 0 0; color: var(--steel); max-width: 60ch; }
.tag { display: inline-block; font-family: var(--f-body); font-size: .72rem; font-weight: 600; color: var(--brass-text); background: var(--brass-soft); border-radius: 4px; padding: .1rem .45rem; vertical-align: .2em; margin-left: .35rem; }

/* Funktionen */
.features { border-top: 1px solid var(--line); }
.feature { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .feature { padding: 2rem 2.5rem 2rem 0; }
  .feature:nth-child(even) { padding: 2rem 0 2rem 2.5rem; border-left: 1px solid var(--line); }
}
.feature h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: .5rem; }
.feature p { color: var(--steel); margin-bottom: .75rem; max-width: 62ch; }
.shot-link { border: 0; background: none; padding: 0; color: var(--brass-text); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.shot-link:hover { color: var(--ink); }
.shot-body { position: relative; text-align: center; padding: .5rem 3.25rem 1rem; }
.shot-img { max-width: 100%; max-height: 78vh; width: auto; height: auto; }
.shot-count { color: var(--steel); font-size: .85rem; font-variant-numeric: tabular-nums; }
.shot-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.6rem; line-height: 1; padding: 0 0 .2rem; }
.shot-nav:hover { border-color: var(--brass); color: var(--brass-text); }
.shot-nav.prev { left: .5rem; } .shot-nav.next { right: .5rem; }
.shot-nav[hidden] { display: none; }
@media (max-width: 575.98px) { .shot-body { padding: .5rem .5rem 3.75rem; } .shot-nav { top: auto; bottom: .75rem; transform: none; } .shot-nav.prev { left: calc(50% - 3rem); } .shot-nav.next { right: calc(50% - 3rem); } }
.modal-content { background: var(--surface); color: var(--ink); }

/* Rechner */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2rem); }
.calc .form-label { font-weight: 600; font-size: .9rem; }
.calc .form-control, .calc .form-select { font-variant-numeric: tabular-nums; background-color: var(--paper); border-color: var(--line); color: var(--ink); }
.calc .form-control:focus, .calc .form-select:focus { border-color: var(--brass); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.calc .unit { max-width: 9.5rem; }
.calc .is-invalid { border-color: #B3412F; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.75rem; border-top: 1px solid var(--line); }
.res { padding: 1.1rem 1rem 0 0; }
.res + .res { padding-left: 1rem; border-left: 1px solid var(--line); }
.res-label { display: block; font-size: .85rem; color: var(--steel); font-weight: 600; }
.res output { font-family: var(--f-head); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.res small output { font-family: var(--f-body); font-size: inherit; font-weight: 600; }
.res .unit-t { margin-left: .3rem; color: var(--steel); font-weight: 600; }
.res small { display: block; color: var(--steel); font-size: .82rem; margin-top: .15rem; }
.res .sep { display: inline-block; width: .75rem; }
@media (max-width: 575.98px) {
  .results { grid-template-columns: 1fr; }
  .res + .res { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1rem; }
}

/* Kontakt + Footer */
.btn-brass { background: var(--brass); color: #1A1A14; border: 0; font-weight: 600; padding: .65rem 1.3rem; }
.btn-brass:hover, .btn-brass:focus-visible { background: var(--ink); color: var(--paper); }
.mail-line { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.mail-text { color: var(--steel); }
.site-footer { padding: 1.75rem 0; font-size: .875rem; color: var(--steel); }
.link-btn { border: 0; background: none; padding: 0; color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
section[id], header[id] { scroll-margin-top: 4.5rem; }