/* Globale Hintergrundgestaltung */
html, body {
    background: url('/images/background_03.jpg') no-repeat center center fixed; /* Fixiertes Hintergrundbild */
    background-size: cover; /* Hintergrundbild skaliert auf gesamte Fläche */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%; /* Erforderlich für das Hintergrundbild */
    overflow-x: hidden; /* Verhindert horizontalen Scrollbalken */
}

/* Header */
header {
    position: relative;
    background: transparent; /* Kein zusätzliches Hintergrundbild */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	color: #ffffff;
    z-index: 1;
    padding-top: 60px; /* Platz für fixierte Navigation */
    min-height: auto; /* Keine Mindesthöhe */
}

/* Überschriften Styling */

/* h1: Große Überschrift */
h1 {
    color: white; /* Weiße Schriftfarbe */
    font-family: Arial, sans-serif; /* Schriftart */
    font-size: 22px; /* Schriftgröße für h1 */
    margin: 20px 0; /* Vertikaler Abstand */
}

/* h2: Mittlere Überschrift */
h2 {
    color: white; /* Weiße Schriftfarbe */
    font-family: Arial, sans-serif; /* Schriftart */
    font-size: 18px; /* Schriftgröße für h2 */
    margin: 15px 0; /* Vertikaler Abstand */
}

/* h3: Kleine Überschrift */
h3 {
    color: white; /* Weiße Schriftfarbe */
    font-family: Arial, sans-serif; /* Schriftart */
    font-size: 14px; /* Schriftgröße für h3 */
    margin: 10px 0; /* Vertikaler Abstand */
}

/* Link */
a {
    color: #e0e0e0; /* Link-Farbe */
    text-decoration: none; /* Entfernt die Standard-Unterstreichung */
    display: inline-block; /* Hebt den Link hervor */
    transition: color 0.3s, background-color 0.3s; /* Gleiche Übergänge */
    border-radius: 5px; /* Runde Ecken */
}

a:hover {
    color: #ff9800; /* Farbe bei Hover */
    background-color: rgba(255, 152, 0, 0.1); /* Hintergrund bei Hover */
}

/* Styling für alle <li>-Elemente */
li {
    color: white; /* Weiße Schriftfarbe */
    font-family: Arial, sans-serif; /* Schriftart Arial */
    font-size: 16px; /* Optional: Schriftgröße */
    line-height: 1.5; /* Optional: Zeilenhöhe für bessere Lesbarkeit */
    margin-bottom: 10px; /* Optional: Abstand zwischen den Listenpunkten */
}

/* Fixierte Navigation */
nav.main-navigation {
    position: fixed; /* Fixiert die Navigation oben */
    top: 0;
    left: 50%; /* Startpunkt der Navigation von der Mitte */
    transform: translateX(-50%); /* Verschiebt die Navigation um die Hälfte ihrer Breite zurück */
    width: 70%; /* Breite der Navigation */
    background-color: rgba(31, 31, 31, 0.8); /* Transparenter Hintergrund */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Stellt sicher, dass die Navigation im Vordergrund bleibt */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s, background-color 0.3s;
}

nav ul li a:hover {
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
    border-radius: 5px;
}

/* Dropdown Menü Styling */
nav ul li .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Direkt unter dem Hauptmenü */
    left: 0;
    background-color: #1f1f1f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    border-radius: 5px;
    min-width: 150px;
}

nav ul li:hover .dropdown-menu {
    display: block;
}

nav ul li .dropdown-menu a {
    color: #e0e0e0;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
}

nav ul li .dropdown-menu a:hover {
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
    border-radius: 5px;
}

/* Main Content */
main {
    padding: 20px;
    text-align: center;
    min-height: calc(100vh - 80px); /* Passt Höhe für Header/Footer an */
}

/* Tabellen */
table {
    margin: auto;
    border-collapse: separate; /* Ermöglicht Zellenabstand */
    border-spacing: 3px; /* Abstand zwischen den Zellen */
    width: 60%;
    text-align: left;

}

td, th {
    border: 1px solid rgba(255, 255, 255, 0.1); /* Transparenter Rahmen */
    padding: 10px;
}

th {
    background-color: rgba(31, 31, 31, 0.99); /* Dunkler transparenter Hintergrund */
    color: #fff;
}

td {
    background-color: rgba(31, 31, 31, 0.9); /* 75% sichtbar, 25% transparent */
    color: #e0e0e0; /* Text bleibt lesbar */
    transition: background-color 0.3s; /* Sanfter Übergang bei Hover */
}

tr:nth-child(even) td {
    background-color: rgba(31, 31, 31, 0.8); /* Etwas hellerer Hintergrund für gerade Zeilen */
}

tr:hover td {
    background-color: rgba(31, 31, 31, 0.99); /* Hover-Effekt mit Farbänderung */
}

/* Link in Tabellen */
table a {
    color: #e0e0e0; /* Link-Farbe */
    text-decoration: none; /* Entfernt die Standard-Unterstreichung */
    display: inline-block; /* Hebt den Link hervor */
    transition: color 0.3s, background-color 0.3s; /* Gleiche Übergänge */
    border-radius: 5px; /* Runde Ecken */
}

table a:hover {
    color: #ff9800; /* Farbe bei Hover */
    background-color: rgba(255, 152, 0, 0.1); /* Hintergrund bei Hover */
}


/* Footer */
footer {
    background-color: #1f1f1f;
    text-align: center;
    padding: 10px 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
}

footer p {
    margin: 0;
}

/* Kachel-Design */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Flexible Spalten mit Mindestbreite */
    gap: 30px; /* Abstand zwischen den Bildern */
    margin: 20px auto;
    width: 70%; /* Galeriebreite */
    box-sizing: border-box;
}

.gallery-item {
    position: relative;
    overflow: hidden; /* Verhindert Überschuss */
    width: 100%; /* Nimmt die gesamte Breite ein */
    aspect-ratio: 1 / 1; /* Kachelformat im Verhältnis 1:1 */
    border-radius: 8px; /* Runde Ecken */
    cursor: pointer;
    border: 2px solid #1f1f1f; /* Rahmen */
    transition: border-color 0.3s;
}

.gallery-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Füllt die Kachel aus, ohne Verzerrung */
    display: block;
}

.gallery-item:hover {
    border-color: #ff9800;
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.modal img:hover {
    transform: scale(1.05);
}

.modal:target {
    display: flex;
}

/* Image Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(0, 128, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 1010; /* Höherer Z-Index für Sichtbarkeit */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; /* Einheitliche Größe */
    height: 40px; /* Einheitliche Größe */
}

.arrow-left {
    left: 5%; /* Links ausgerichtet */
}

.arrow-right {
    right: 5%; /* Rechts ausgerichtet */
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    color: black;
}
}

/* Code Container */

.code-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
	background-color: #1e1e1e !important;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

pre {
    margin: 0;
    white-space: pre-wrap; /* Zeilenumbrüche erlauben */
    word-wrap: break-word; /* Lange Zeilen umbrechen */
}

.code-preview {
    max-height: 250px; /* Initiale Höhe */
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 10px;
    font-family: monospace;
    white-space: pre-wrap; /* Zeilenumbruch für lange Zeilen */
    word-wrap: break-word;
	text-align: left; /* Links ausgerichtet */
}

.code-container.expanded .code-preview {
    max-height: 100%; /* Maximale Höhe bei Erweiterung */
}

/* Copy Button */

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #4caf50;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: #45a049;
}

.toggle-btn {
    width: auto; /* Passt die Breite an den Inhalt an */
    margin: 10px auto; /* Zentriert den Button */
    display: block;
    padding: 10px;
    text-align: center;
    background-color: #282828;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.toggle-btn:hover {
    background-color: #3a3a3a;
}


/* Login Button Styling */
.login-button {
    position: absolute; /* Platzierung im Header */
    top: 10px; /* Abstand vom oberen Rand */
    right: 10px; /* Abstand vom rechten Rand */
    padding: 10px 20px; /* Größere Fläche für Klick */
    background-color: #4caf50; /* Grün */
    border: none; /* Kein Rahmen */
    border-radius: 4px; /* Abgerundete Ecken */
    cursor: pointer; /* Zeiger beim Hover */
}

.login-button a {
    color: #ffffff; /* Weißer Text */
    text-decoration: none; /* Unterstreichung entfernen */
    font-size: 16px; /* Schriftgröße */
    font-weight: bold; /* Optional: Fett */
}

.login-button:hover {
    background-color: #45a049; /* Dunkleres Grün beim Hover */
}

.login-button a:hover {
    color: #ffffff; /* Text bleibt beim Hover weiß */
}


/* Login Container Styling */
.login-container {
    margin-top: 30px; /* Abstand von oben */
    margin-left: 30px; /* Abstand von links */
}


/* Logout Button Styling */
.logout-button {
    position: absolute; /* Platzierung im Header */
    top: 10px; /* Abstand vom oberen Rand */
    right: 10px; /* Abstand vom rechten Rand */
    padding: 10px 20px; /* Größere Fläche für Klick */
    background-color: red; /* Rot */
    border: none; /* Kein Rahmen */
    border-radius: 4px; /* Abgerundete Ecken */
    cursor: pointer; /* Zeiger beim Hover */
}

.logout-button a {
    color: #ffffff; /* Weißer Text */
    text-decoration: none; /* Unterstreichung entfernen */
    font-size: 16px; /* Schriftgröße */
    font-weight: bold; /* Optional: Fett */
}

.logout-button:hover {
    background-color: darkred; /* Anders Rot beim Hover */
	color: #ffffff; /* Text bleibt beim Hover weiß */
}

.logout-button a:hover {
    color: #ffffff; /* Text bleibt beim Hover weiß */
}


/* Logout Container Styling */
.logout-container {
    margin-top: 0px; /* Abstand von oben */
    margin-left: 30px; /* Abstand von links */
}

/* Copy Button */

.button {
    
    padding: 5px 10px;
    background-color: #4caf50;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button:hover {
    background-color: #45a049;
}