/**
 * Theme Name: mareike-theme
 * Theme URI: https://repos.contelli.de/themes/mareike-theme/info.json
 * Author: Thomas Günther
 * Author URI: https://www.contelli.de/
 * Description: Theme für mareike gestützte Webseiten.
 * Version: 2.0
 * License: GPLv3
 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
 * Tags: custom-theme, responsive-layout
 * Text Domain: mareike-theme
**/

@font-face {
    font-family: "Aleo";
    src: url(assets/fonts/Aleo-Light.ttf);
}

@font-face {
    font-family: "Immenhausen";
    src: url(assets/fonts/Immenhausen-Regular.ttf);
}

body {
    font-family: Aleo;
    margin: 0;
    padding: 0;
    background-color: #FAFAFB;
}
h1,h2,h3,jh4,h5,h6,h7,h8 {
    font-family: Immenhausen;
}

.blue-header {
    background:
            radial-gradient(circle at 20% 40%, rgba(255,255,255,0.15), transparent 70%),
            radial-gradient(circle at 80% 30%, rgba(0, 80, 255, 0.25), transparent 70%),
            radial-gradient(circle at 60% 80%, rgba(0, 120, 255, 0.25), transparent 70%),
            linear-gradient(135deg, #0d47a1, #1976d2 60%, #2196f3);
    color: white;
    display: flex;
    align-items: center;
    padding: 2rem;
    border-radius: 0 0 2rem 2rem; /* optional: abgerundete Ecken unten */
    height: 200px;
}



.mainnav_link {
    padding: 5px 15px;
    border-radius: 5px;
    background-color: #ffffff;
    color: #000000 !important;
}

.mainnav_link:hover {
    background-color: #1d4899;
    color: #ffffff !important;
    cursor: pointer;
}

/* Hauptcontainer */
#main-container {
    position: relative;
    flex-direction: column; /* Die erste Zeile für den Header */
    background-color: #ffffff;
    top: 0px;
    border-left-style: solid;
    border-left-width: 0.5px;
    border-color: #ecf0f1;
    left: -20px;
    padding: 5px 30px;

}

.main-not-loggedin {
    border-left-style: solid;
    border-left-width: 0.5px;
    border-color: #ecf0f1;
    margin-bottom: 60px;
    position: relative;
    top: 60px !important;
    left: -41px;
    padding-bottom: 40px;
    background-color: #FAFAFB !important;
}

.main-not-loggedin div {
    background-color: #FFFFFF !important;
    padding: 10px;
}

/* Box um den gesamten Inhalt */
#container-box {
    width: 97vw;
    margin: 0 auto; /* Zentriert die Box */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Schatten für 3D-Effekt */
    border-radius: 10px; /* Leichte Rundung der Ecken */
}

header {
    height: 50px; /* Höhe anpassen */
    background: #ffffff;
}

.wrapper {
    display: flex;
    flex-flow: row wrap;
    font-weight: bold;
    text-align: center;

}

.wrapper > * {
    padding: 10px;
    flex: 1 100%;
}

.footer {
    background: #666666;
}

.footer table {
    width: 100%;
}

.footer td {
    color: #ffffff;
}

.footer td:first-child {
    width: 30%;
    text-align: left;
}

#page-title {

}

#page-title h1 {
    color: #606060 !important;
    font-size: 36pt;
}

.main {
    text-align: left;
    background: deepskyblue;
    flex: auto;
}

.navigation {
    flex-grow: 1 !important;
    text-align: left;
    padding: 0;
    background-color: #ffffff;

}

.content {
    border-left-style: solid;
    border-left-width: 0.5px;
    border-color: #ecf0f1;
    flex-grow: 5 !important;
    padding: 0;
    background-color: #FAFAFB !important;
    text-align: left !important;
}

@media all and (min-width: 600px) {
    .aside { flex: 1 0 0; }
}

@media all and (min-width: 800px) {
    .main    { flex: 3 0px; }
    .aside-1 { order: 1; }
    .main    { order: 2; }
    .aside-2 { order: 3; }
    .footer  { order: 4; }
}

header div {
    top: -20px !important;
    position: relative;
    padding-left: 20px;
    color: #ffffff;
}

/* Header-Styling */
sub-header {
    background-color: #f1c40f; /* Gelber Header */
    height: 110px;
    min-height: 110px;
    display: flex;
    align-items: center; /* Zentriert das Logo vertikal */
    padding-left: 20px;
    padding-right: 0px; /* Rechts-Padding hinzufügen für Platz */
}

sub-header div {
    top: -30px !important;
    position: relative;
    width: 100%; /* Volle Breite */
    text-align: right; /* Rechts ausrichten */
    color: #ffffff;
}

.main_framework {
    position: relative;
    top: 31px !important;

}

#header-nav{
    position: relative;
    top: -125px !important;
    text-align: right;

}

/* Link-Stil für die Navigationsmenü im Header */
header nav a {
    color: #ffffff !important;
    text-decoration: none; /* Entfernt die Unterstreichung */
    padding: 10px 15px; /* Innenabstand für bessere Lesbarkeit */
}

/* Hover-Effekt für die Header-Navigation */
header nav a:hover {
    color: #2c3e50; /* Dunklere Schrift beim Hover */
}

header nav a:visited {
    color: #ffffff !important;
}

/* Logo-Styling */
header img {
    position: relative;;
    left: 50px;
    top: 30px !important;
    width: 120px; height: 75px !important;
}

/* Container für Sidebar und Hauptinhalt */
#content-container {
    padding-left: 40px;
    height: calc(100vh - 200px);
    overflow: auto;
    background-color: #fafafb;

}

#content-container-loggedin {
    background-color: #FAFAFB;
    padding-left: 40px;
    height: calc(100vh - 475px);
    overflow: auto;
    margin-top: 250px;
}

/* Sidebar-Styling */
#sidebar {
    width: 100%; /* Breite der Sidebar */
    background-color: #ffffff; /* Weißer Hintergrund */
    border-right: 1px solid #ecf0f1; /* Trennlinie zwischen Sidebar und Hauptinhalt */
    overflow-y: auto; /* Ermöglicht Scrollen in der Sidebar */
    padding-top: 10px;
    overflow-x: hidden;
}

/* Hauptinhalt-Styling */
#main-content {

}

#sidebar ul {
    list-style: none;
    width: calc(100% + 40px) !important;
    position: relative;
    left: -40px;
    top: -30px;
}

/* Link-Stil für die Navigationsmenü */
#sidebar a {
    color: #b6b6b6; /* Graue Schrift für Menüelemente */
    background-color: #ffffff; /* Weißer Hintergrund für Menüelemente */
    padding: 10px 15px; /* Innenabstand für bessere Lesbarkeit */
    display: block; /* Links untereinander anordnen */
    text-decoration: none; /* Entfernt die Unterstreichung */
    width: calc(100% - 15px);
    padding: 0 8px;
}

/* Hover-Effekt für die Navigationsmenüelemente */
#sidebar a:hover {
    background-color: #1d4899;
    color: #ffcb04; /* Dunklere Schrift beim Hover */
}

/* Aktives Menüelement */
#sidebar .current-menu-item a {
    background-color: rgba(29, 72, 153, 0.65);
    color: rgba(255, 203, 4, 0.72); /* Dunklere Schrift beim Hover */
}

/* Stile für den Inhalt */
h1 {
    color: #2c3e50; /* Dunkelgraue Schrift für Titel */
}

#registration_form {
    width: 100%
}

.menu {
    width: 390px !important;
}

.menu li a {
    padding: 20px 10px !important;
}

#registerform {
    position: relative;
    width: 768px;
    left: -200px !important;
}

.register input[type="text"],
.register input[type="password"],
.register input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.register input[type="submit"] {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.register input[type="submit"]:hover {
    background: #005177;
}

fieldset {
    border-color: #e0e0e0;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    line-height: 2;
}

#wpadminbar {
    display: none;
}

#hamburger-icon {
    cursor: pointer;
    display: none; /* Standardmäßig nicht sichtbar */
    flex-direction: column;
    gap: 5px;
}

#hamburger-icon span {
    background-color: #2c3e50;
    height: 3px;
    width: 30px;
}

#mobile-nav {
    display: none; /* Standardmäßig versteckt */
    flex-direction: column;
}

#hamburger-icon {
    display: none;
}

@media (max-width: 800px) {
    #main-content {
        width: 300px;
    }



    #sidebar {
        width: 10px;
    }

    /* Hamburger-Icon wird bei kleineren Bildschirmen sichtbar */
    #hamburger-icon {
        display: inline-flex;
        position: absolute;
        left: 20px;
        width: 30px;
        top: 90px !important;
        background-color: #ffffff;
        border-style: solid;
        border-width: 1px;
        border-color: #c0c0c0;
        box-shadow: 2px 2px 5px #909090;

    }

    /* Sidebar verschwindet bei kleineren Bildschirmen */
    #desktop-sidebar {
        display: none;
    }

    /* Mobile Navigation sichtbar bei aktivem Hamburger-Menü */
    #mobile-nav {
        display: none;
        flex-direction: column;
        background-color: #ffffff;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    #mobile-nav ul {
        width: 100%;
        text-align: left !important;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #mobile-nav ul li {
        text-align: left !important;
    }

    #mobile-nav a {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #ecf0f1;
    }

    #header-nav {
        position: absolute;
        left: -60px;
    top: 0 !important;
    }
}

#registration_form {
    width: 80% !important;
    border-style: solid;
    border-width: 1px;
    border-color: #d0d0d0;
    margin: 10px auto;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #c0c0c0;
    font-family: Aleo;
}

#registration_form input[type="text"],
#registration_form input[type="email"],
#registration_form input[type="password"] {
    width: 95%;
    font-size: 18pt;
    padding: 10px;
}

.button {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}

.button:hover {
    background-color: #1d4899;
    color: #ffffff;
    cursor: pointer;
}

#main-content {
    background-color: #ffffff !important;
}

.notice-success {
    padding: 10px 40px;
    position: relative;
    top: 150px;
    margin: auto;
    font-weight: bold;
    width: 1500px;
    z-index: 1000;
    background-color: #94e18a;
    color: #3a8930;
    border-style: solid;
    border-radius: 10px;
    box-shadow: 5px 5px 10px #c0c0c0;
}

.widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 2fr));
    gap: 24px;
    padding: 24px;
    background-color: #FAFAFB;
    margin-top: -80px;
}

.widgets div {
    margin-top: 25px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);

}

.mareike-theme-widget-table tr td,
.mareike-theme-widget-table tr th
{
    font-size: 9pt;
    padding: 5px  !important;
}

.mareike-theme-widget-table {
    border-spacing: 0 0; /* 0px horizontal, 10px vertikal */
    border-collapse: separate;
}

.mareike-theme-widget-table tr th a,
.mareike-theme-widget-table tr th a:visited,
.mareike-theme-widget-table tr td a,
.mareike-theme-widget-table tr td a:visited
{
    text-decoration: none;
    color: #0a7aff;
}

.footer-link,
.footer-link:visited {
    color: #ffffff;
}

#page-logo {
    width: 175px;
    height: 120px;
    text-align: center;
    padding-left: 45px;
}

#page-logo img {
    width: 100%;
    height: 90%;
}