/* m3 Design – baut auf Bootstrap 5.3 auf. Farben zentral über CSS-Variablen. */
@font-face {
    font-family: 'Borel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Borel-Regular.ttf') format('truetype');
}
.schulschrift{
    font-family: 'Borel' !important;
}

:root {
    --m3-primary: #0063a6;
    --m3-accent: #e8730c;
    --m3-soft: #eaf3fa;
    --m3-text: #1d2733;
    --bs-primary: var(--m3-primary);
    --bs-primary-rgb: 0, 99, 166;
    --bs-link-color: var(--m3-primary);
    --bs-link-hover-color: #004a7c;
    --bs-body-color: var(--m3-text);
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.site-primar { --m3-primary: #c25e00; --m3-accent: #0063a6; --m3-soft: #fdf1e5;
    --bs-primary: var(--m3-primary); --bs-primary-rgb: 194, 94, 0; --bs-link-hover-color: #8f4600; }

.btn-primary { --bs-btn-bg: var(--m3-primary); --bs-btn-border-color: var(--m3-primary);
    --bs-btn-hover-bg: #004a7c; --bs-btn-hover-border-color: #004a7c; --bs-btn-active-bg: #004a7c; }
body.site-primar .btn-primary { --bs-btn-hover-bg: #8f4600; --bs-btn-hover-border-color: #8f4600; --bs-btn-active-bg: #8f4600; }
.btn-outline-primary { --bs-btn-color: var(--m3-primary); --bs-btn-border-color: var(--m3-primary);
    --bs-btn-hover-bg: var(--m3-primary); --bs-btn-hover-border-color: var(--m3-primary); --bs-btn-active-bg: var(--m3-primary); }




.m3-header { border-bottom: 1px solid #dde4ea; background: #fff; position: sticky; top: 0; z-index: 1030; }
.m3-header .nav-link.active { font-weight: 600; color: var(--m3-primary); }
.m3-main { min-height: 60vh; }
.m3-footer { background: #1d2733; color: #cdd6df; margin-top: 4rem; }
.m3-footer a { color: #fff; }

/* ---------- Bausteine ---------- */
.m3-hero {padding: 3rem 0; }
.m3-hero img { max-width: min(320px, 70%); height: auto; }
.m3-hero h1 { color: var(--m3-primary); font-weight: 700; }

.m3-section { padding: 0.5rem 0; }
.m3-section h2 { color: var(--m3-primary); margin-bottom: 1rem; }
.m3-section.alt { background: var(--m3-soft); }

.m3-infobox { background: var(--m3-soft);
    border-radius: .5rem; padding: 1.25rem 1.5rem; }
.m3-infobox .m3-label { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem;
    font-weight: 700; color: var(--m3-accent); margin-bottom: .25rem; }

.m3-card { height: 100%; border: 1px solid #dde4ea; border-radius: .75rem; padding: 1.25rem; background: #fff; }
.m3-card h3 { color: var(--m3-primary); font-size: 1.25rem; }

.m3-table th { white-space: nowrap; width: 10rem; color: var(--m3-primary) !important; }

.m3-figure img { width: 100%; height: 350px; object-fit: cover; border-radius: .75rem; }
.m3-figure figcaption { font-size: .85rem; color: #5b6773; margin-top: .4rem; }

.m3-yes, .m3-no, .m3-box { border-radius: .75rem; padding: 1.25rem 1.5rem; height: 100%; }
.m3-box { background: #ecb87b; }
.m3-yes { background: #e8f5ec; border: 1px solid #b9dfc4; }
.m3-no  { background: #fbeaea; border: 1px solid #efbcbc; }
.m3-yes h3 { color: #1e7a3a; font-size: 1.15rem; }
.m3-no h3  { color: #b02a2a; font-size: 1.15rem; }

.m3-details { border: 1px solid #dde4ea; border-radius: .5rem; margin-bottom: .6rem; background: #fff; }
.m3-details summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; color: var(--m3-primary); }
.m3-details > div { padding: 0 1rem 1rem; }

.m3-downloads li { margin-bottom: .4rem; }
.m3-img-text img { width: 100%; border-radius: .75rem; }

@media (max-width: 500px){
    .snap {
        scroll-snap-align: center; width: 80vw;}
    .picture-wall{ overflow-x: scroll; scroll-snap-type: x mandatory;}
}

