/* ==========================================================
   Schützenvereinigung Alt-Handschuhsheim – Stylesheet
   Plain CSS, no framework. Colours taken from the club crest.
   ========================================================== */

:root {
    --green: #14532d;
    --green-dark: #0b3a1d;
    --green-tint: #eef5f0;
    --link: #1a6b38;
    --text: #1f2a24;
    --muted: #5b6b62;
    --line: #dde5df;
    --bg: #fafbfa;
    --card: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 40, 24, .06), 0 4px 16px rgba(16, 40, 24, .06);
    --max: 1120px;
    --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

/* Default size for inline icons; specific components override this below */
svg[aria-hidden="true"] { width: 1.1em; height: 1.1em; vertical-align: -.15em; flex: none; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--green-dark); }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: 1.6rem; margin-top: 1.6em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: #fff; padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; }

/* ---------- Header / navigation ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--header-h); gap: 16px;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
    line-height: 1.2;
}
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; }
.brand small { display: block; font-weight: 400; font-size: .78rem; opacity: .85; }

.nav-toggle {
    display: none;
    background: transparent; color: #fff;
    border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px;
    padding: 8px 10px; cursor: pointer; line-height: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
    display: block; padding: 8px 12px; border-radius: 6px;
    color: #fff; text-decoration: none; font-size: .95rem;
}
.site-nav a:hover { background: var(--green-dark); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--green-dark); box-shadow: inset 0 -2px 0 #fff; }

@media (max-width: 860px) {
    .js .nav-toggle { display: block; }
    .js .site-nav { display: none; }
    .js .site-nav.open { display: block; }
    .site-header .container { flex-wrap: wrap; }
    .site-nav { width: 100%; padding-bottom: 12px; }
    .site-nav ul { flex-direction: column; }
    .site-nav a { padding: 12px; font-size: 1rem; }
}

/* ---------- Hero (start page) ---------- */

.hero {
    position: relative;
    min-height: min(70vh, 620px);
    display: flex; align-items: flex-end;
    color: #fff;
    background: var(--green-dark);
    overflow: hidden;
}
.hero-slides img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.hero-slides img.active { opacity: 1; }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6, 30, 15, .85) 0%, rgba(6, 30, 15, .35) 55%, rgba(6, 30, 15, .1) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 48px; }
.hero h1 { color: #fff; margin-bottom: .2em; }
.hero p.lead { font-size: 1.15rem; max-width: 40em; opacity: .95; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 24px; padding: 0; list-style: none; font-size: .98rem; }
.hero .facts li::before { content: "•"; margin-right: 8px; color: #b9e0c5; }

@media (prefers-reduced-motion: reduce) {
    .hero-slides img { transition: none; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 8px;
    font: inherit; font-size: .97rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    border: 2px solid var(--green); background: var(--green); color: #fff;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-dark); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Page head ---------- */

.page-head { background: var(--green-tint); border-bottom: 1px solid var(--line); padding: 36px 0 28px; margin-bottom: 36px; }
.page-head h1 { margin-bottom: .15em; }
.page-head .subtitle { color: var(--muted); font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

.section { padding: 48px 0; }
.section-title { margin-top: 0; }
.prose { max-width: 46em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.card .btn, .card .btn-row { margin-top: auto; align-self: flex-start; }
.card-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--green-tint); color: var(--green);
    display: grid; place-items: center; margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }

/* Info box (training times etc.) */
.info {
    background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green);
    border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow);
}
.info h2, .info h3 { margin-top: 0; }
.times { list-style: none; padding: 0; margin: 0 0 12px; }
.times li { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.times li:last-child { border-bottom: 0; }
.times strong { min-width: 7.5em; }
.note { color: var(--muted); font-size: .95rem; margin: 0; }

.two-col { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Pricing ---------- */

.price-card { text-align: center; padding: 0; overflow: hidden; }
.price-card header { padding: 20px 24px 8px; }
.price-card h2 { font-size: 1.15rem; margin: 0; }
.price { font-size: 2.8rem; font-weight: 700; color: var(--green-dark); line-height: 1.1; margin: 8px 0 0; }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-card ul { list-style: none; margin: 16px 0 0; padding: 0; text-align: left; }
.price-card li { padding: 10px 24px; border-top: 1px solid var(--line); }
.price-card footer { padding: 20px 24px 24px; border-top: 1px solid var(--line); margin-top: auto; }
.price-card.featured { border: 2px solid var(--green); }
.price-card.featured header { background: var(--green); color: #fff; padding-bottom: 16px; }
.price-card.featured h2 { color: #fff; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.2); padding: 2px 8px; border-radius: 99px; margin-bottom: 6px; }

/* ---------- Club / ranges ---------- */

.person { display: flex; gap: 20px; align-items: center; }
.person img { width: 110px; height: auto; border-radius: 8px; }
.person h3 { margin: 0; }
.person p { margin: 0; color: var(--muted); }

.range { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; margin-bottom: 40px; }
.range img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (min-width: 860px) {
    .range { grid-template-columns: 1.3fr 1fr; }
    .range:nth-of-type(even) img { order: 2; }
}
.range h3 { margin-top: 0; }

/* ---------- Contact ---------- */

.map-consent {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); background: var(--green-tint);
    min-height: 360px; display: grid; place-items: center; text-align: center; padding: 24px;
}
.map-consent p { max-width: 30em; color: var(--muted); font-size: .95rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; margin-bottom: 4px; }
form input, form textarea {
    width: 100%; font: inherit; color: inherit;
    padding: 10px 12px; border: 1px solid #b9c6bd; border-radius: 8px; background: #fff;
}
form textarea { min-height: 180px; resize: vertical; }
form input:focus, form textarea:focus { border-color: var(--green); outline: 3px solid rgba(20, 83, 45, .2); }
form .user-invalid, form input:user-invalid, form textarea:user-invalid { border-color: #b3261e; }
.form-status { margin: 0 0 16px; padding: 12px 16px; border-radius: 8px; }
.form-status:empty { display: none; }
.form-status.ok { background: #e6f4ea; color: #14532d; border: 1px solid #a8d5b5; }
.form-status.error { background: #fdecea; color: #8a1c13; border: 1px solid #f1b0aa; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-dark); color: #d7e4db; margin-top: 64px; padding: 44px 0 24px; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { width: 52px; height: 52px; flex: none; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 16px; font-size: .85rem; }

/* ---------- Cookie notice ---------- */

.cookie-note {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    max-width: 520px; margin-left: auto;
    background: #fff; color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    padding: 14px 16px; font-size: .9rem;
    display: flex; gap: 12px; align-items: center;
}
.cookie-note p { margin: 0; flex: 1; }
.cookie-note button {
    flex: none; border: 0; background: var(--green-tint); color: var(--green-dark);
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.cookie-note[hidden] { display: none; }

/* ---------- Legal text (Datenschutz) ---------- */
.legal h3 { font-size: 1.1rem; }
.legal p { overflow-wrap: anywhere; }
