html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: beige;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAy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4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.anmelden {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

/* eigene Button style */
.btn-mein {
    border-radius: 50px;
}

/* Zusätzlich zu: btn btn-primary / btn-success / btn-danger usw. */
/* 1. DIE ÄUßERE PYRAMIDENKANTE (Der hellere, schräge Außenrand) */
.btn-game {
    position: relative;
    padding: 3px; /* Bestimmt die Breite des sichtbaren Außenrandes */
    border: none;
    border-radius: 50px; /* Erzeugt die perfekte Pillenform */
    /* Holt die Bootstrap-Farbe und hellt sie für die Außenkante auf */
    background: linear-gradient(to bottom, var(--bs-btn-bg) 10%, rgba(0, 0, 0, 0.35) 100%);
    background-color: var(--bs-btn-bg);
    filter: brightness(1.15); /* Lässt den äußeren Rand heller strahlen */
    /* Dunkler 3D-Boden unter dem gesamten Button */
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: inline-block;
    overflow: visible;
    transition: transform 0.1s ease, box-shadow 0.05s ease;
}

    /* 2. DIE INNERE TASTENFLÄCHE (Das tiefere Bett) */
    .btn-game .btn-game-key {
        padding: 3px 10px;
        border-radius: 46px; /* Leicht kleiner als der Container für parallele Rundung */
        letter-spacing: 0.5px;
        color: #ffffff !important;
        font-size: 0.875rem;
        /* Text-Schatten nach unten-rechts für den 3D-Effekt der Schrift */
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
        /* Basis-Farbe wird nach unten hin für die Tiefe abgedunkelt */
        background: linear-gradient(to top, var(--bs-btn-bg) 0%, rgba(0, 0, 0, 0.25) 100%);
        background-color: var(--bs-btn-bg);
        /* Erzeugt den dunklen Spalt (Vertiefung) zwischen Außenrand und Taste */
        box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.2), /* Schattenkante oben */
        inset 0 -2px 4px rgba(255, 255, 255, 0.2); /* Minimaler Lichtreflex unten */
    }

    /* HOVER-EFFEKT */
    .btn-game:hover {
        filter: brightness(1.25);
        /* Dunkler 3D-Boden unter dem gesamten Button */
        box-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.4), 0 2px 3px rgba(0, 0, 0, 0.5);
        transform: translateY(1px);
    }

    /* KLICK-EFFEKT: Die innere Taste sackt im Gehäuse ab */
    .btn-game:active .btn-game-key {
        box-shadow: inset 0 6px 10px rgba(0, 0, 0, 0.65), inset 0 -1px 2px rgba(255, 255, 255, 0.1);
    }

    /* Der äußere Container drückt sich flach auf den Boden */
    .btn-game:active {
        transform: translateY(4px);
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.4);
    }


/* kleine Displays */
@media (max-width: 640px) {
    footer {
        font-size: 0.875rem;
    }

    .anmelden {
        font-size: 1rem;
        font-weight: bold;
        color: #007bff;
    }

    .btn {
        font-size: 1.2rem;
    }
}

@media (max-width: 991px) {

    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        border-top: 1px solid black;
    }

    .responsive-table table, .responsive-table tbody, .responsive-table tr {
        display: block;
    }

        .responsive-table tbody th {
            display: block;
            font-weight: bold;
        }

    .responsive-table td {
        display: block;
        min-width: 30%;
        /*padding: 2em 2em;*/
        text-align: left;
        border-bottom: none;
    }

    .displaySMnone {
        display: none !important;
    }

    .responsive-table td.datum::before {
        content: "Datum: ";
        font-weight: bold;
    }

    .responsive-table td.zaehlernr::before {
        content: "Zählernummer: ";
        font-weight: bold;
    }

    .responsive-table td.zaehler::before {
        content: "Z\00e4 hler: ";
        font-weight: bold;
    }

    .responsive-table td.wohnung::before {
        content: "Wohnung: ";
        font-weight: bold;
    }

    .responsive-table td.ableser::before {
        content: "Ableser: ";
        font-weight: bold;
    }

    .responsive-table td.nummer::before {
        content: "Nummer: ";
        font-weight: bold;
    }

    .responsive-table td.id-nummer::before {
        content: "ID-Nummer: ";
        font-weight: bold;
    }

    .responsive-table td.name::before {
        content: "Name: ";
        font-weight: bold;
    }

    .responsive-table td.stand::before {
        content: "Stand: ";
        font-weight: bold;
    }

    .responsive-table td.status::before {
        content: "Status: ";
        font-weight: bold;
    }

    .responsive-table td.bezeichnung::before {
        content: "Bezeichnung: ";
        font-weight: bold;
    }

    .responsive-table td.bemerkung::before {
        content: "Bemerkung: ";
        font-weight: bold;
    }

    .responsive-table td.strasse::before {
        content: "Strasse: ";
        font-weight: bold;
    }

    .responsive-table td.bewohnt::before {
        content: "bewohnt: ";
        font-weight: bold;
    }

    .responsive-table td.ort::before {
        content: "Ort: ";
        font-weight: bold;
    }

    .responsive-table td.beschreibung::before {
        content: "Beschreibung: ";
        font-weight: bold;
    }

    .responsive-table td.pruefung::before {
        content: "Pr\00FC fung: ";
        font-weight: bold;
    }

    .responsive-table td.naechstepruefung::before {
        content: "N\00E4 chste Pr\00FC fung: ";
        font-weight: bold;
    }

    .responsive-table td.inordnung::before {
        content: "Inordnung: ";
        font-weight: bold;
    }

    .responsive-table td.pruefdatum::before {
        content: "Pr\00FC fdatum: ";
        font-weight: bold;
    }

    .responsive-table td.pruefer::before {
        content: "Pr\00FC fer: ";
        font-weight: bold;
    }

    .responsive-table td.pruefpunkt::before {
        content: "Pr\00FC fpunkt: ";
        font-weight: bold;
    }

    .responsive-table td.gebaeude::before {
        content: "Geb\00E4 ude: ";
        font-weight: bold;
    }

    .responsive-table td.standort::before {
        content: "Standort: ";
        font-weight: bold;
    }

    .responsive-table td.benutzer::before {
        content: "Benutzer: ";
        font-weight: bold;
    }

    .responsive-table td.besitzer::before {
        content: "Besitzer: ";
        font-weight: bold;
    }

    .responsive-table td.rollen::before {
        content: "Rollen: ";
        font-weight: bold;
    }

    .responsive-table td.rolle::before {
        content: "Rolle: ";
        font-weight: bold;
    }

    .responsive-table td.zuweisen::before {
        content: "zuweisen: ";
        font-weight: bold;
    }

    .responsive-table td.aktionen::before {
        content: "Aktionen: ";
        font-weight: bold;
    }

    .responsive-table td.inventar::before {
        content: "Inventar: ";
        font-weight: bold;
    }

    .responsive-table td.zugewiesenAm::before {
        content: "zugewiesen am: ";
        font-weight: bold;
    }

    .responsive-table td.zugewiesenVon::before {
        content: "zugewiesen von: ";
        font-weight: bold;
    }

    .responsive-table td.menge::before {
        content: "Menge: ";
        font-weight: bold;
    }

    .responsive-table td.zustand::before {
        content: "Zustand: ";
        font-weight: bold;
    }

    .responsive-table td.geraet::before {
        content: "Ger\00E4 t / Objekt: ";
        font-weight: bold;
    }

    .responsive-table td.geraetetyp::before {
        content: "Ger\00E4 tetyp: ";
        font-weight: bold;
    }

    .responsive-table td.stockwerk::before {
        content: "Stockwerk/Zimmer: ";
        font-weight: bold;
    }

    .responsive-table td.zurueckVon::before {
        content: "zur\00FC ckgenommen von: ";
        font-weight: bold;
    }

    .responsive-table td.zurueckAm::before {
        content: "zur\00FC ckgenommen am: ";
        font-weight: bold;
    }

    .responsive-table td.intervall::before {
        content: "Intervall: ";
        font-weight: bold;
    }

    .responsive-table td.zugehoerigkeit::before {
        content: "Zugehörigkeit: ";
        font-weight: bold;
    }

    .responsive-table td.emailconfirmed::before {
        content: "Email bestätigt: ";
        font-weight: bold;
    }

    .responsive-table td.email::before {
        content: "Email: ";
        font-weight: bold;
    }

    .responsive-table td.einbau::before {
        content: "Einbau: ";
        font-weight: bold;
    }

    .responsive-table td.ausbau::before {
        content: "Ausbau: ";
        font-weight: bold;
    }

    .responsive-table td.code::before {
        content: "Code: ";
        font-weight: bold;
    }

    .responsive-table td.type::before {
        content: "Type: ";
        font-weight: bold;
    }

    .responsive-table td.titel::before {
        content: "Titel: ";
        font-weight: bold;
    }

    .responsive-table td.anzahl::before {
        content: "Anzahl Fragen: ";
        font-weight: bold;
    }

    .responsive-table td.kategorie::before {
        content: "Kategorie: ";
        font-weight: bold;
    }

    .responsive-table td.priority::before {
        content: "Priorität: ";
        font-weight: bold;
    }

    .responsive-table td.gemeldetam::before {
        content: "Gemeldet am: ";
        font-weight: bold;
    }

    .responsive-table td.melder::before {
        content: "Melder: ";
        font-weight: bold;
    }

    dd {
        background-color: ghostwhite;
    }

    .btn-fill {
        flex: 1 1 auto !important;
    }
}