/*
Theme Name: EnergielenkerTheme_1.4
Theme URI: 
Author: Sarah Valsera Moreno
Author URI: 
Description: Ein Theme angepasst an die Energielenker CI
Version: 1.0
*/

/* Startseite */
/* Slideshow Container */
.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Overlay für besseren Kontrast */
.slideshow::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dunkler Overlay-Effekt */
    z-index: 1;
}

/* Einzelne Slides */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideshow 12s infinite;
}

/* Verschiedene Hintergrundbilder */
.slide1 { background-image: url('images/background.png'); animation-delay: 0s; }
.slide2 { background-image: url('images/background2.jpg'); animation-delay: 4s; }
.slide3 { background-image: url('images/background3.jpg'); animation-delay: 8s; }

/* Animation */
@keyframes slideshow {
    0% { opacity: 0; }
    25% { opacity: 1; }
    50% { opacity: 1; }
    75% { opacity: 0; }
    100% { opacity: 0; }
}

/* Hero-Bereich */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-buttons {
    margin-top: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #849fb3;
}

.burger-button {
    font-size: 1.5em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
}

.menu-hauptnavigation-container > #menu-hauptnavigation > li {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background: rgba(255, 255, 255, 0.3); /* Halbtransparente Buttons */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    border: 2px solid white;
}

.menu-hauptnavigation-container > #menu-hauptnavigation > li > a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu-hauptnavigation-container > #menu-hauptnavigation > li:hover {
    background: rgba(255, 255, 255, 0.6);
}

.menu-hauptnavigation-container > #menu-hauptnavigation > li > a:hover {
    color: black;
}

/* Logo im Header (links) */
.logo-header img {
    width: 150px; /* Größe anpassen */
    height: auto;
    display: block;
    padding: 20px;
}

/* Logo unten rechts (NUR auf der Startseite) */
.logo-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: auto;
    z-index: 3;
}

.logo-bottom-right img {
    width: 100%;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
}

.logo-bottom-right img:hover {
    opacity: 1;
}




/* HTML und Body */
html, body {
    height: 100%; /* Ermöglicht Flexbox auf voller Höhe */
    margin: 0;
    display: flex;
    flex-direction: column;
}

.main-grid {
    position: fixed;
    height: calc(100% - 85px);
    width: calc(100% - 380px);
    left: 380px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Wrapper für den Hauptinhalt */
.wrapper {
    background-color: #f9f9f9;
    margin-top: 150px;
    position: fixed;
}

/* Header */
header {
    background-color: #a6b9c9;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    font-size: 1.2em;
    margin: 0;
}

/* Container-Layout für Sidebar und Hauptinhalt */
.content-grid {
    display: grid;
    grid-template-columns: 380px auto;
}

/* Navigation-Styling */
.topnav {
    background-color: #849fb3; /* Hintergrundfarbe der Navigation */
    overflow: hidden;
    display: flex;
    justify-content: center; /* Menü zentrieren */
    padding: 10px 0;
    border-radius: 18px;
}

.topnav-container {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #849fb3;
    width: 100%;
    display: none;
}

.topnav-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topnav-menu li {
    margin: 0 15px; /* Abstand zwischen den Menüpunkten */
}

.topnav-menu a {
    text-decoration: none; /* Entfernt Unterstreichung */
    color: #fff; /* Textfarbe */
    font-size: 1em;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s, color 0.3s; /* Smooth Hover-Effekt */
    border-radius: 5px;
}

.topnav-menu a:hover {
    background-color: #555; /* Hintergrundfarbe bei Hover */
    color: #f0f0f0; /* Textfarbe bei Hover */
}

/* Standardmäßig Button ausblenden auf Desktop */
.topnav-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
}

.sidenav {
    background-color: rgb(238, 242, 244); /* Hintergrundfarbe der Navigation */
    color: #0073aa;
    display: block;
   /* justify-content: left; /* Menü zentrieren */
    padding: 20px;
    border-left: 2px solid #ccc;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    width: 340px;
    height: calc(100% - 125px);
}

.sidenav-menu {
    list-style: none;
    padding: 0;
    display: block;
}

.sidenav-menu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between; /* Schiebt das Symbol nach rechts */
    align-items: center;
}

.sidenav-menu > .menu-item > a {
    font-weight: bold;
}

.sidenav-menu a {
    text-decoration: none; /* Entfernt Unterstreichung */
    color: #0073aa; /* Textfarbe */
    font-size: 1em;
    padding: 5px;
    display: block;
    transition: background-color 0.3s, color 0.3s; /* Smooth Hover-Effekt */
    border-radius: 5px;
    
}

.sidenav-menu a:hover {
    background-color: #555; /* Hintergrundfarbe bei Hover */
    color: #f0f0f0; /* Textfarbe bei Hover */
}

.sidenav-toggle {
    font-size: 1.5em;
    background: #849fb3;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
}

/* Container für das Suchformular */
.search-form-container {
    margin-left: auto; /* Schiebt das Suchfeld nach rechts */
    padding: 0 15px;
    display: flex;
    align-items: center;
}

/* Suchformular Styling */
.search-form-container form {
    display: flex;
    align-items: center;
}

.search-form-container input[type="text"] {
    padding: 5px 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    outline: none;
}

#searchsubmit {
    width: 20px; /* Breite des Icons */
    height: auto; /* Höhe automatisch */
    cursor: pointer; /* Zeigt an, dass es klickbar ist */
    padding: 5px;
    background-color: #42a496;
    border-radius: 0 5px 5px 0;
}

.search-form-container button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s;
}

.search-form-container button:hover {
    background-color: #005082;
}

/* Hauptinhalt */
.main-content {
    padding: 20px 20px 0px 20px;
    background-color: #fff;
    border-radius: 8px;
    min-height: calc(100% - 24px);
    margin-bottom: -20px;
}

.main-content:after {
    content: "";
    display: block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.zoom-image img {
    transition: 0.3s ease;
    cursor: zoom-in;
}

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 10px #000;
}


/* Footer */
.footer {
    background-color: #2c4451;
    color: #fff;
    text-align: left;
    width: 100%;
    bottom: 0px;
}

/* Footer */
.footer, .main-content:after {
    height: 24px;
}

.footer p {
    margin: 0;
    font-size: 0.9em;
    padding: 0 10px;
}

.footer a {
    color: #fff;
    text-decoration: none;
    padding: inherit;
}

/* Typografie */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Responsives Design */
@media (max-width: 1024px) {
    .main-grid {
        position: relative;
        width: 100%;
        left: 0;
        height: auto;
    }

    .sidenav {
        position: relative;
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 2px solid #ccc;
    }
}

@media (max-width: 768px) {

    body {
        font-size: 90%;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    main {
        padding: 15px;
    }

    .burger-button {
        display: block;
    }

    .topnav-container.open {
        display: block;
    }

    .topnav-menu li {
        margin: 10px 0; /* Abstand vertikal */
    }

    .topnav-toggle {
        display: block;
    }

    .topnav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
    }

    .topnav-menu.open {
        display: flex;
    }

    .search-form-container {
        margin: 10px auto;
        justify-content: center;
    }

    .search-form-container input[type="text"] {
        width: 100%; /* Volle Breite */
    }

    .sidenav {
        width: 100%;
        position: relative;
        height: auto;
        padding: 10px;
    }

    .sidenav-toggle {
        display: block;
        height: 40px;
        width: 40px;
        min-width: 40px;
    }

    .sidenav {
        display: none;
        width: 100%;
    }

    .sidenav.open {
        display: block;
    }

    .main-grid {
        width: 100%;
        left: 0;
    }

    .content-grid {
        grid-template-columns: 1fr; /* Eine Spalte */
    }

    /* .logo-header img {
        width: 100px;
        padding: 10px;
    }
 */
    .logo-bottom-right {
        width: 80px;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        top: 30%;
        transform: translate(-50%, -30%);
    }

    .topnav-menu a {
        font-size: 0.9em;
        padding: 8px;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

.wrapper-flex {
    display: flex;
    flex-flow: row wrap;
}

.wrapper-flex > * {
    flex: 1 100%;
}

.header-flex {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
}

.topnav-flex {
    display: block;
    flex-grow: 5;
}

.body-flex {
    display: flex;
    flex-grow: 1;
    flex-flow: nowrap;
}

.content-flex {
    display: flex;
    flex-flow: row;
}

.sidebar-flex {
    display: block;
}

.wp-element-button {
    border-radius: 28.8px;
    background-color: rgb(151, 186, 126);
    padding: 7.2px 14.4px 7.2px 14.4px;
    color: rgb(255, 255, 255);
    text-decoration: none;
}