/* AGRANA Corporate Design Anpassungen */

/* Hintergrund: Grau */
body {
    background-color: #e5e5e5 !important;
}

#wrapper {
    background-color: #e5e5e5 !important;
}

/* Menüleiste: Rot */
#header {
    background-color: #C8102E !important; /* AGRANA Rot */
    color: #ffffff !important;
    border-bottom: 2px solid #a00d24 !important;
}

#header h1 a {
    color: #ffffff !important;
}

#header h1 a:hover {
    color: #f0f0f0 !important;
}

#header nav.links ul li a {
    color: #ffffff !important;
}

#header nav.links ul li a:hover {
    color: #f0f0f0 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

#header nav.main ul li a {
    color: #ffffff !important;
}

#header nav.main ul li a:hover {
    color: #f0f0f0 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Menu: Rot */
#menu {
    background-color: #C8102E !important;
    color: #ffffff !important;
}

#menu a {
    color: #ffffff !important;
}

#menu a:hover {
    color: #f0f0f0 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Hauptinhalt: Weiß */
#main {
    background-color: #ffffff !important;
}

#main article.post {
    background-color: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

#main article.post header {
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Sidebar: Weiß */
#sidebar {
    background-color: #ffffff !important;
    border-left: 1px solid #d0d0d0 !important;
    padding: 10px !important;
}

#sidebar #intro {
    background-color: #ffffff !important;
    /*border-bottom: 1px solid #e0e0e0 !important;*/
    padding: 0 !important;
}

/* Intro Section Logo - Sidebar */
#sidebar #intro .logo {
    display: block !important;
    width: calc(100% + 20px) !important;
    margin-bottom: 1em !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    position: relative !important;
}

#sidebar #intro .logo:before {
    display: none !important;
}

#sidebar #intro .logo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    transform: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    opacity: 1 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Intro Section Logo - Allgemein (falls außerhalb Sidebar) */
#intro .logo {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1em !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    position: relative !important;
}

#intro .logo:before {
    display: none !important;
    background: none !important;
}

#intro .logo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    transform: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    opacity: 1 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
    margin-left: 0 !important;
}

#sidebar #footer {
    background-color: #ffffff !important;
    padding: 0 !important;
}

/* Buttons: AGRANA Rot */
.button,
input[type="submit"].button,
a.button {
    background-color: #C8102E !important;
    color: #ffffff !important;
    border-color: #a00d24 !important;
}

.button:hover,
input[type="submit"].button:hover,
a.button:hover {
    background-color: #a00d24 !important;
    color: #ffffff !important;
}

.button.primary {
    background-color: #C8102E !important;
    color: #ffffff !important;
}

.button.primary:hover {
    background-color: #a00d24 !important;
}

/* Links: AGRANA Rot */
a {
    color: #C8102E !important;
}

a:hover {
    color: #a00d24 !important;
}

/* Formulare */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
    border-color: #d0d0d0 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    border-color: #C8102E !important;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.2) !important;
}

/* Tabellen */
table {
    border-color: #d0d0d0 !important;
}

table thead {
    background-color: #f5f5f5 !important;
}

table tbody tr:hover {
    background-color: #f9f9f9 !important;
}

/* Boxes für Fehler/Success */
.box {
    border-left: 4px solid #C8102E !important;
}

/* Chart Container */
#chart-view {
    background-color: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    padding: 1em !important;
    border-radius: 4px !important;
}

#chartCanvas {
    background-color: #ffffff !important;
}

/* Tab Buttons */
.tab-button {
    margin-right: 0.5em !important;
}

.tab-button.active {
    background-color: #C8102E !important;
    color: #ffffff !important;
    border-color: #a00d24 !important;
}

.tab-button.active:hover {
    background-color: #a00d24 !important;
}

/* Select Dropdowns */
select.chart-tab-select {
    border-color: #d0d0d0 !important;
}

select.chart-tab-select:focus {
    border-color: #C8102E !important;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.2) !important;
}

/* Form Labels */
label {
    color: #333333 !important;
    font-weight: 600 !important;
}

/* Checkbox und Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #C8102E !important;
}

/* Sort Indicators */
.sort-indicator {
    color: #C8102E !important;
    font-size: 0.8em !important;
}

/* Error/Success Boxes */
.box[style*="background-color: #ffcccc"] {
    background-color: #ffe6e6 !important;
    border-left: 4px solid #C8102E !important;
}

.box[style*="background-color: #ccffcc"] {
    background-color: #e6ffe6 !important;
    border-left: 4px solid #28a745 !important;
}

/* Responsive: Mobile */
@media screen and (max-width: 736px) {
    #header {
        background-color: #C8102E !important;
    }

    #main {
        background-color: #ffffff !important;
    }

    #sidebar {
        background-color: #ffffff !important;
    }

    body {
        background-color: #e5e5e5 !important;
    }
}


#intro .logo img {
    max-height: 150px !important;
}
