/* Basis-Styling */
/* Basis-Styling für alle Elemente */
* {
    margin: 0;                    /* Entfernt Standard-Margen aller Elemente */
    padding: 0;                   /* Entfernt Standard-Innenabstände */
    box-sizing: border-box;       /* Berechnet Breite/Höhe inklusive Padding und Border */
}

html {
  height: 100%;
}


@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.eot');
    src: url('fonts/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/Roboto-Regular.woff2') format('woff2'),
        url('fonts/Roboto-Regular.woff') format('woff'),
        url('fonts/Roboto-Regular.ttf') format('truetype'),
        url('fonts/Roboto-Regular.svg#Roboto-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

p {
    margin: 5px;
    margin-bottom: 20px;
}

ul {
    list-style: none;
}

ul li {
    color: white;
}

ul.Personal_Data_List_CV_Panel li {
    color: #566970;
}
ul li ul li {
    color: #566970 ;
}

h2 {
    margin-bottom: 10px;            /* Außenabstand Unten */
    color: #566970;
	font-weight: 300;
}

a {
    text-decoration: none;         /* Entfernt Unterstrich */
    color: #566970;                /* Link Farbe */
}

ul li ul li:hover {
    background-color: #566970;  /* Farbe bein Hovern der Listen punkte (Projekte) */
    color: white;
    
}

ul li ul li:hover a {
    background-color: #566970;  /* Farbe bein Hovern der Listen punkte (Projekte) */
    color: white;
}



footer {
    height: 30px;                   /* Höhen mass */
    background-color: rgba(255, 255, 255, .9);       /* Hintergrundfarbe Weiß mit Alpha wert */
}

footer a {
    margin: 0 10px;
}

body {
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-size: 18px;
	color: #555;
    line-height: 1.8;                  /* Legt den Zeilenabstand auf das 1.6-fache der Schriftgröße fest */
    background-image: url("Bilder/code.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}





/* Container für maximale Breite und zentrierte Ausrichtung */
.base_div {
    max-width: 1200px;           /* Begrenzt die maximale Breite auf 1200 Pixel */
    margin: 50px auto;              /* Zentriert den Container mittels Auto-Margin */
}

/* Navigationselement mit Flexbox-Layout */
nav {
    height: 10px;                /* Setzt eine feste Höhe von 10 Pixeln */
    background-color: rgba(255, 255, 255, 1);  /* Weiße Hintergrundfarbe für die Navigation */
    position: relative;          /* Relative Positionierung für z-index */
    z-index: 2;                  /* Legt die Überlagerungsreihenfolge fest */
	box-shadow: 0px 0px 18px 5px rgba(0,0,0,0.3);
}


/* Hauptinhalt-Bereich mit Flexbox und Mindesthöhe */
.MainContent {
    display: flex;               /* Aktiviert Flexbox-Layout */
    min-height: calc(100vh - 120px); /* Minimale Höhe berechnet aus Viewport-Höhe */
    position: relative;          /* Relative Positionierung für z-index */
	_z-index: 1;
	overflow: hidden;
}

/* Portfolio-Spalten-Styling mit Hover-Effekten */
.div_portfolio {
    display: flex;               /* Aktiviert Flexbox-Layout */
    flex-direction: column;      /* Spaltet Elemente in Spalten an */
    background-color: rgba(255, 255, 255, .9); /* Türkise Hintergrundfarbe */
    padding: 20px 30px;              /* Innenabstände */
    text-align: center;         /* Zentrierte Textausrichtung */
    flex-shrink: 0;             /* Verhindert Zusammenziehung */

    width: 250px;               /* Standardbreite */
    transition: all 0.5s ease-out; /* Übergangseffekt bei Breitenänderung */
    _position: relative;         /* Relative Positionierung für z-index */
    _z-index: 20;                /* Legt die Überlagerungsreihenfolge fest */
}

/* Portfolio-Container mit minimaler Breite */
.Portfolio_Container {
    display: flex;               /* Flexbox-Layout aktivieren */
    flex-shrink: 0;             /* Zusammenziehung verhindern */
    width: 250px;               /* Standardbreite setzen */
    _position: relative;         /* Relative Positionierung für z-index */
    _z-index: 20;                /* Überlagerungsreihenfolge festlegen */
}

/* Hover-Effekt für Portfolio-Spalte */
.div_portfolio:hover,
.div_portfolio.active {
    _width: 350px;               /* Erweiterte Breite beim Hover oder aktiv */
    background-color: rgba(255, 255, 255, 1);
}

    .div_portfolio > ul > li > ul > li {
    cursor: pointer;            /* Zeigt Handzeiger als Mauscursor */
    }


/* Portfolio-Listenelemente Styling */
.div_portfolio > ul > li  {
    padding: 10px;              /* Innenabstand von 10 Pixeln */
    background: #566970;        /* Hintergrundfarbe */
    margin-bottom: 10px;         /* Abstand nach unten */
    border-radius: 8px;         /* Abrundete Ecken */
    transition: background-color 0.3s ease; /* Sanfter Übergang der Hintergrundfarbe */
}

/* Hover-Effekt für Listenelemente */
.div_portfolio > ul > li:hover {
    background: #46575f;        /* Ändert die Hintergrundfarbe beim Hover */
}

/* Projektlisten-Styling mit Übergangseffekten */
.Projekt_List {
    max-height: 0;              /* Initial ausgeklappt */
    opacity: 0;                 /* Unsichtbar */
    list-style: none;          /* Entfernt Standard-Aufzählungspunkte */
    background: white;          /* Weiße Hintergrundfarbe */
    border-radius: 0 0 4px 4px; /* Abrundete Ecken unten */
    transition: all 0.8s ease-in-out; /* Sanfter Übergang aller Eigenschaften */
}

/* Aktive Zustand der Projektliste */
.div_portfolio:hover .Projekt_List,
.div_portfolio.active .Projekt_List {
    max-height: 200px;          /* Maximale Höhe beim Öffnen */
    opacity: 1;                 /* Durchsichtigkeit */
}

/* Hauptinhalt-Bereich mit flexibler Größe und zentrierter Ausrichtung */
main {
    background-color: rgba(255, 255, 255, 1);    /* Hintergrundfarbe mit Alpha Kanal */
    padding: 20px;              /* Innenabstände */
    display: flex;              /* Flexbox-Layout aktivieren */
    align-items: center;        /* Vertikale Zentrierung */
    _position: relative;         /* Relative Positionierung für z-index */
    _z-index: 2;                 /* Überlagerungsreihenfolge festlegen */
    flex-direction: column;     /* Spaltet Elemente in Spalten an */
    
}

/* Content-Bereich mit abgerundeten Ecken und Schatten */
.content {
    height: 100%;               /* Volle Höhe nutzen */
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0); /* Grauer Farbverlauf */
    border-radius: 8px;         /* Leicht abgerundete Ecken */
    padding: 20px;              /* Innenabstände */
}

.CV_Foto {
    border-radius: 8px;
    border-color: #806a59;
    border-width: 2px;
    border-style: solid;
}

/* CV-Spalten-Styling mit minimaler Breite und Zentrierung */
.div_CV {
    text-align: center;          /* Text zentrieren */
    background-color: rgba(255, 255, 255, .9); /* Hellblaue Hintergrundfarbe */
    min-width: 250px;           /* Minimale Breite festlegen */
    padding: 20px;              /* Innenabstände */
}

/* Rechtes Panel mit Übergangseffekt */
.CV_panel_content {
    position: absolute;
    right: -950px;
    top: 0;
    width: 90vw;
    max-width: 950px;
    min-width: 280px;
    transition: right 0.8s ease-out;
    background-color: #fff;
    z-index: 30;
    height: 100%;
}


#rightPanelBtn {
    margin-top: 10px; 
    background-color: #806a59; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer;
    min-width:200px ;
    min-height: 40px;
    font-size:medium ;
}

/* Aktiver Zustand des rechten Panels */
.CV_panel_content.active {
    right: 0;               /* Öffne das Panel (Position wird auf 0 gesetzt) */
}

/* Schließen-Button im Panel */
.CV_panel_content .close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

/* Hover-Effekt für den Schließen-Button */
.CV_panel_content .close-button:hover {
    color: #000;
}



/* Responsive Design für Bildschirmbreiten unter 768px */
@media (max-width: 900px) {
    .MainContent {
        flex-direction:column-reverse ;   /* Spaltenlayout auf mobile Geräten */
    }
    
    .Portfolio_Container {
        display: contents;
    }
    .div_portfolio, .div_CV {
        width: 100% !important;  /* Volle Breite nutzen */
        min-width: 100%;         /* Minimale Breite auf 100% setzen */
    }
    
    .div_portfolio ul {
        min-width: 200px;
        align-self: center;
    }

    nav {
        flex-direction: column;   /* Navigation vertikal anordnen */
        height: auto;            /* Automatische Höhenanpassung */
        padding: 10px;           /* Reduzierte Innenabstände */
    }
    
    nav button {
        margin: 5px 0;           /* Reduzierter vertikaler Abstand */
        width: 100%;             /* Volle Breite nutzen */
    }

    .CV_panel_content.active {
        width: -moz-available;               /* Öffne das Panel auf 300 Pixel */
    }
}

