/* Name: public/assets/css/stadion.css – Gestaltung der Stadionverwaltung */

:root {
    --stadion-gruen: #005f30;
    --stadion-gruen-dunkel: #004623;
    --stadion-gruen-hell: #e6f0eb;
    --stadion-rot: #d6243e;
    --stadion-lila: #771973;
    --stadion-orange: #ffae36;
    --stadion-hellblau: #41c2ea;
    --stadion-text: #1c1c1c;
    --stadion-text-leise: #5b6660;
    --stadion-linie: #d9dfdb;

    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --bs-body-color: var(--stadion-text);
    --bs-body-bg: #ffffff;
    --bs-link-color: var(--stadion-gruen);
    --bs-link-color-rgb: 0, 95, 48;
    --bs-link-hover-color: var(--stadion-gruen-dunkel);
    --bs-link-hover-color-rgb: 0, 70, 35;
    --bs-border-color: var(--stadion-linie);
    --bs-primary: var(--stadion-gruen);
    --bs-primary-rgb: 0, 95, 48;
    --bs-danger: var(--stadion-rot);
    --bs-danger-rgb: 214, 36, 62;
    --bs-focus-ring-color: rgba(65, 194, 234, 0.45);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.55;
}

/* Laufbahnlinien in den fünf Stadionfarben */
.bahnen {
    display: flex;
    height: 6px;
}

.bahnen span {
    flex: 1;
}

.bahnen span:nth-child(1) { background: var(--stadion-gruen); }
.bahnen span:nth-child(2) { background: var(--stadion-hellblau); }
.bahnen span:nth-child(3) { background: var(--stadion-orange); }
.bahnen span:nth-child(4) { background: var(--stadion-rot); }
.bahnen span:nth-child(5) { background: var(--stadion-lila); }

.kopfzeile {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--stadion-linie);
}

.logo {
    height: 52px;
    width: auto;
}

.inhalt {
    flex: 1;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.fusszeile {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--stadion-text-leise);
    border-top: 1px solid var(--stadion-linie);
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--stadion-text);
}

h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.einleitung {
    color: var(--stadion-text-leise);
    max-width: 40rem;
    margin-bottom: 2rem;
}

/* Schaltflächen */
.btn {
    font-weight: 600;
    border-radius: 0.375rem;
    padding: 0.55rem 1.25rem;
}

.btn-primary {
    --bs-btn-bg: var(--stadion-gruen);
    --bs-btn-border-color: var(--stadion-gruen);
    --bs-btn-hover-bg: var(--stadion-gruen-dunkel);
    --bs-btn-hover-border-color: var(--stadion-gruen-dunkel);
    --bs-btn-active-bg: var(--stadion-gruen-dunkel);
    --bs-btn-active-border-color: var(--stadion-gruen-dunkel);
    --bs-btn-disabled-bg: var(--stadion-gruen);
    --bs-btn-disabled-border-color: var(--stadion-gruen);
}

.btn-outline-secondary {
    --bs-btn-color: var(--stadion-text);
    --bs-btn-border-color: var(--stadion-linie);
    --bs-btn-hover-bg: var(--stadion-gruen-hell);
    --bs-btn-hover-color: var(--stadion-text);
    --bs-btn-hover-border-color: var(--stadion-gruen);
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus {
    border-color: var(--stadion-hellblau);
    box-shadow: 0 0 0 0.25rem rgba(65, 194, 234, 0.45);
    outline: 0;
}

/* Formulare */
.form-label {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form-text {
    color: var(--stadion-text-leise);
}

.formular {
    max-width: 36rem;
}

/* Hinweise */
.alert {
    border-radius: 0.375rem;
    border-width: 0 0 0 4px;
}

.alert-danger {
    --bs-alert-bg: #fbe9ec;
    --bs-alert-color: #7a1022;
    --bs-alert-border-color: var(--stadion-rot);
}

.alert-warning {
    --bs-alert-bg: #fff4e2;
    --bs-alert-color: #6b4200;
    --bs-alert-border-color: var(--stadion-orange);
}

.alert-success {
    --bs-alert-bg: var(--stadion-gruen-hell);
    --bs-alert-color: var(--stadion-gruen-dunkel);
    --bs-alert-border-color: var(--stadion-gruen);
}

/* Schrittfolge des Installers */
.schritte {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    counter-reset: schritt;
}

.schritte li {
    counter-increment: schritt;
    position: relative;
    padding: 0.5rem 0 0.5rem 2.75rem;
    color: var(--stadion-text-leise);
}

.schritte li::before {
    content: counter(schritt);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid var(--stadion-linie);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: #ffffff;
}

.schritte li.erledigt::before {
    content: '✓';
    border-color: var(--stadion-gruen);
    background: var(--stadion-gruen);
    color: #ffffff;
}

.schritte li.aktuell {
    color: var(--stadion-text);
    font-weight: 700;
}

.schritte li.aktuell::before {
    border-color: var(--stadion-gruen);
    color: var(--stadion-gruen);
}

@media (min-width: 992px) {
    .schritte {
        position: sticky;
        top: 2rem;
    }

    .schritte li + li::after {
        content: '';
        position: absolute;
        left: calc(1rem - 1px);
        top: -0.5rem;
        height: 1rem;
        border-left: 2px solid var(--stadion-linie);
    }
}

/* Prüfliste */
.pruefliste {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    max-width: 44rem;
    border-top: 1px solid var(--stadion-linie);
}

.pruefliste li {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    gap: 0 0.5rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--stadion-linie);
}

.pruefliste .zeichen {
    font-weight: 700;
    grid-row: span 2;
}

.pruefliste .ok .zeichen { color: var(--stadion-gruen); }
.pruefliste .fehlt .zeichen { color: var(--stadion-rot); }

.pruefliste .bezeichnung {
    font-weight: 600;
}

.pruefliste .hinweis {
    font-size: 0.875rem;
    color: var(--stadion-text-leise);
}

.pruefliste .fehlt .hinweis {
    color: #7a1022;
}

/* Zusammenfassung */
.zusammenfassung {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1.5rem;
    max-width: 36rem;
    margin-bottom: 2rem;
}

.zusammenfassung dt {
    font-weight: 600;
}

.zusammenfassung dd {
    margin: 0;
    word-break: break-word;
}

/* Kopfzeile mit Navigation */
.kopfzeile-innen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.logo-verweis {
    display: inline-block;
}

.hauptnavigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 2rem;
}

.hauptnavigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hauptnavigation ul a {
    display: inline-block;
    padding: 0.35rem 0;
    font-weight: 600;
    color: var(--stadion-text);
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.hauptnavigation ul a:hover {
    color: var(--stadion-gruen);
}

.hauptnavigation ul a.aktiv {
    color: var(--stadion-gruen);
    border-bottom-color: var(--stadion-gruen);
}

.angemeldet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.angemeldet form {
    margin: 0;
}

.angemeldet-name {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: right;
}

.angemeldet-rolle {
    font-weight: 400;
    color: var(--stadion-text-leise);
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.875rem;
}

.btn-outline-danger {
    --bs-btn-color: var(--stadion-rot);
    --bs-btn-border-color: var(--stadion-rot);
    --bs-btn-hover-bg: var(--stadion-rot);
    --bs-btn-hover-border-color: var(--stadion-rot);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: var(--stadion-rot);
    --bs-btn-active-border-color: var(--stadion-rot);
}

/* Seitenaufbau */
.seitenkopf {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.zurueck {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

h2,
.abschnitt-titel {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.abschnitt {
    padding-top: 1.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--stadion-linie);
}

.hinweis-unten {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--stadion-text-leise);
}

/* Kacheln der Übersicht */
.kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
    max-width: 52rem;
}

.kachel {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem;
    border: 1px solid var(--stadion-linie);
    border-left: 4px solid var(--stadion-gruen);
    border-radius: 0.375rem;
    color: var(--stadion-text);
    text-decoration: none;
}

.kachel:hover {
    background: var(--stadion-gruen-hell);
    color: var(--stadion-text);
}

.kachel-titel {
    font-weight: 700;
    font-size: 1.05rem;
}

.kachel-text {
    font-size: 0.9375rem;
    color: var(--stadion-text-leise);
}

/* Tabellen */
.tabelle {
    --bs-table-hover-bg: var(--stadion-gruen-hell);
}

.tabelle thead th {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--stadion-text-leise);
    white-space: nowrap;
}

.tabelle tr.gesperrt td {
    color: var(--stadion-text-leise);
}

.status-hinweis {
    display: block;
    font-size: 0.8125rem;
    color: #6b4200;
}

.rolle {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.rolle-administrator { background: #f3e6f2; color: var(--stadion-lila); }
.rolle-organisator   { background: var(--stadion-gruen-hell); color: var(--stadion-gruen-dunkel); }
.rolle-trainer       { background: #e3f6fc; color: #0b5d78; }
.rolle-extern        { background: #fff4e2; color: #6b4200; }

/* Vereine und Teams */
.werkzeugleiste {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.werkzeugleiste-innen {
    margin-bottom: 0;
}

.leer-hinweis {
    color: var(--stadion-text-leise);
    font-style: italic;
}

.optional {
    font-weight: 400;
    color: var(--stadion-text-leise);
}

.status-leise {
    color: var(--stadion-text-leise);
    font-size: 0.875rem;
}

span.status-hinweis.status-leise {
    color: var(--stadion-text-leise);
}

.farbpunkt {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    vertical-align: -0.05rem;
}

.einfache-liste {
    padding-left: 1.1rem;
    margin: 0;
}

.einfache-liste li + li {
    margin-top: 0.35rem;
}

.teamauswahl {
    padding: 1rem 1.1rem;
    border: 1px solid var(--stadion-linie);
    border-radius: 0.375rem;
}

.teamauswahl legend {
    float: none;
    width: auto;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.teamauswahl[hidden] {
    display: none;
}

.teamgruppe + .teamgruppe {
    margin-top: 0.85rem;
}

.teamgruppe-titel {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--stadion-gruen);
    border-color: var(--stadion-gruen);
}

.form-check-input:focus {
    border-color: var(--stadion-hellblau);
    box-shadow: 0 0 0 0.25rem rgba(65, 194, 234, 0.45);
}

.form-control-color {
    width: 100%;
    max-width: 6rem;
}

/* Ressourcen */
.tabelle tr.zeile-uebergeordnet td:first-child {
    font-weight: 600;
}

.einrueckung {
    display: inline-block;
    width: 1.5rem;
    margin-left: 0.25rem;
    color: var(--stadion-text-leise);
}

@media (max-width: 767.98px) {
    .angemeldet-name {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
