/* === NUR GLOBALE SACHEN HIER DEFENIEREN === */

/* === IMPORTS === */
@import './disabled-cards.css';

/* === ROOT / VARIABLES === */
:root {
    --color-primary: #0d6efd;   /* Bootstrap Blau */
    --color-secondary: #6c757d; /* Bootstrap Grau */
    --color-success: #198754;   /* Grün */
    --color-danger: #dc3545;    /* Rot */
    --color-warning: #ffc107;   /* Gelb */
    --color-info: #0dcaf0;      /* Cyan */
    --color-dark: #212529;      /* Dunkelgrau */

    /* Projekt-spezifische Farben */
    --color-brand: #005baa;     /* Corporate Blau Beispiel */
    --color-accent: #ff6600;    /* Akzent Orange Beispiel */
}

/* === BASE / GLOBAL === */
html, body {
    height: 100%;
}

html {
    overflow-y: scroll;          /* Scrollbar immer sichtbar */
    scrollbar-gutter: stable;    /* moderner Standard */
}

body {
    display: flex;
    flex-direction: column;
    /* Bootstrap Scrollbar-Gap neutralisieren */
    --bs-scrollbar-gutter: 0 !important;
}

main {
    flex: 1;
}

/* === HEADER === */
.app-hero {
    position: relative;

    background-image: url('../images/header.webp');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;

    padding-bottom: 140px;
}

.app-header {
    position: relative;
    z-index: 2;
}

/* inner header (Layout)*/
.app-header-inner {
    min-height: 80px;
    padding-top: 20px;
}

/* logo */
/*.app-header-logo {*/
/*    max-height: 60px;*/
/*    object-fit: contain;*/
/*}*/

.app-header-logo {
    max-height: 60px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    padding: 4px 8px;
}

/* Logut Button */
.app-header-logout {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    transition: all 0.2s ease;
}

.app-header-logout:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* === CONTENT === */
.app-content {
    margin-top: 50px;
}


/* === FOOTER === */
footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === Bootstrap Fixes === */
/* Verhindert Content-Verschieben bei Modal/Offcanvas */
body.modal-open,
body.offcanvas-open {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* === Breadcrumb === */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
    padding: 0 0.4rem;
}
.breadcrumb a:hover {
    color: #0d6efd;
}

/* === Impersonate-Banner === */
.impersonate-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    border-radius: 0;
    font-size: 0.95rem;
    background-color: #fff3cd !important; /* Bootstrap Warning-Farbe */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.35s ease-out;
}

/* Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Body-Offset für fixed Banner – nur wenn Impersonate aktiv */
body.impersonating {
    padding-top: 44px; /* Platz schaffen, damit Banner nichts verdeckt */
}

/* Button im Banner */
.impersonate-banner .btn {
    border-color: rgba(0,0,0,0.2);
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.impersonate-banner .btn:hover {
    background-color: #f8f9fa;
    border-color: rgba(0,0,0,0.3);
    color: #000;
}
