/* Bootstrap Fallback - Minimal grid & components when CDN fails */
/* Bilke Web- und Softwareentwicklung */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; background: #f8fafc; color: #1e293b; }
img { max-width: 100%; height: auto; }

.container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.row > * { margin-bottom: 1rem; }
.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-md-3, .col-md-4, .col-md-6, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-10 { padding-right: 15px; padding-left: 15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
}

/* Navbar */
.navbar { display: flex; flex-wrap: wrap; padding: 0.5rem 1rem; position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }
.navbar-dark { background-color: #212529 !important; }
.navbar-brand { font-weight: 700; font-size: 1.2rem; padding-right: 1rem; }
.navbar-brand, .navbar-nav .nav-link { color: rgba(255,255,255,.9) !important; text-decoration: none; }
.navbar-nav { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.navbar-nav .nav-link { padding: 0.5rem 1rem; }
.navbar-toggler { display: none; padding: 0.25rem 0.75rem; font-size: 1.25rem; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 0.25rem; color: rgba(255,255,255,.9); cursor: pointer; }
.navbar-toggler-icon {
    display: inline-block; width: 1.5em; height: 0.15em;
    background: currentColor;
    box-shadow: 0 0.4em 0 currentColor, 0 0.8em 0 currentColor;
}
@media (max-width: 991px) {
  .navbar-toggler { display: block; }
  .navbar-collapse { display: none; width: 100%; }
  .navbar-collapse.show { display: flex !important; }
  .navbar-nav { flex-direction: column; }
}
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; }
  .ms-auto { margin-left: auto !important; }
}

/* Buttons */
.btn { display: inline-block; font-weight: 600; text-align: center; text-decoration: none; padding: 0.5rem 1rem; border: 1px solid transparent; border-radius: 0.375rem; cursor: pointer; transition: all 0.2s; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.125rem; }
.btn-primary { color: #fff; background-color: #0d6efd; border-color: #0d6efd; }
.btn-success { color: #fff; background-color: #198754; border-color: #198754; }
.btn-light { color: #000; background-color: #f8f9fa; border-color: #f8f9fa; }
.btn-outline-primary { color: #0d6efd; border-color: #0d6efd; background: transparent; }
.btn-outline-light { color: #f8f9fa; border-color: #f8f9fa; background: transparent; }
.btn-outline-secondary { color: #6c757d; border-color: #6c757d; background: transparent; }
.btn-outline-dark, .btn-outline-info, .btn-outline-success, .btn-outline-warning { }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background: #fff; border: 1px solid rgba(0,0,0,.125); border-radius: 0.5rem; }
.card-body { flex: 1 1 auto; padding: 1.5rem; }
.card-title { margin-bottom: 0.5rem; font-weight: 600; }
.card-text { margin-bottom: 1rem; }
.card-img-top { width: 100%; border-radius: 0.5rem 0.5rem 0 0; }

/* Badge */
.badge { display: inline-block; padding: 0.35em 0.65em; font-size: 0.75em; font-weight: 600; line-height: 1; text-align: center; text-decoration: none; border-radius: 0.375rem; }
.bg-primary { background-color: #0d6efd !important; }
.bg-success { background-color: #198754 !important; }
.bg-warning { background-color: #ffc107 !important; color: #000 !important; }
.bg-light { background-color: #f8f9fa !important; color: #000 !important; }
.bg-info { background-color: #0dcaf0 !important; color: #000 !important; }
.bg-dark { background-color: #212529 !important; }
.bg-secondary { background-color: #6c757d !important; }

/* Utilities */
.border-0 { border: 0 !important; }
.border-danger { border-color: #dc3545 !important; }
.border-success { border-color: #198754 !important; }
.border-primary { border-color: #0d6efd !important; }
.text-center { text-align: center !important; }
.text-white { color: #fff !important; }
.text-primary { color: #0d6efd !important; }
.text-success { color: #198754 !important; }
.text-danger { color: #dc3545 !important; }
.text-muted { color: #6c757d !important; }
.text-dark { color: #212529 !important; }
.bg-light { background-color: #f8f9fa !important; }
.bg-dark { background-color: #212529 !important; }
.bg-primary { background-color: #0d6efd !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }
.overflow-hidden { overflow: hidden !important; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.d-block { display: block !important; }
.d-inline-flex { display: inline-flex !important; }
.rounded-circle { border-radius: 50% !important; }
.fw-bold { font-weight: 700 !important; }
.fw-normal { font-weight: 400 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-0, .mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.fs-6 { font-size: 1rem !important; }
.h2 { font-size: 2rem; font-weight: 600; }
.h3 { font-size: 1.75rem; font-weight: 600; }
.h4 { font-size: 1.5rem; font-weight: 600; }
.display-3 { font-size: 3.5rem; font-weight: 700; }
.lead { font-size: 1.25rem; font-weight: 400; }
.small { font-size: 0.875em; }
.btn-close { background: transparent; border: 0; font-size: 1.5rem; font-weight: 700; }
.alert { padding: 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.375rem; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075) !important; }
