/* Schriftart „Ubuntu“ global einbinden */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');

/* Globale Grundeinstellungen */
body, html {
    margin: 0;
    padding: 0;
    background-color: #121212; /* Dunkler Hintergrund für Dark Mode */
    color: #f0f0f0; /* Helle Standardschriftfarbe */
    font-family: 'Ubuntu', sans-serif; /* Schriftart auf Ubuntu setzen */
    height: 100%; /* Für Full-Height Layouts */
    display: flex;
    flex-direction: column;
}

/* Überschriften-Stil */
h1, h2, h3, h4, h5, h6 { /* Alle Überschriften hinzugefügt */
    color: #ffffff;
    margin-bottom: 20px;
    margin-top: 25px; /* Etwas mehr Abstand nach oben */
}

/* Link-Stil */
a {
    color: #4aa3ff; /* Helle Blautöne */
    font-weight: bold;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: #6cb8ff; /* Hellere Farbe beim Hover */
}

/* Gemeinsamer Haupt-Layout-Container */
/* Für die Webseite wird dieser eher als flexibler Inhaltspuffer genutzt, nicht als umschließende "Karte" für die ganze Seite */
.container {
    max-width: 1200px; /* Breite für Webseiten-Inhalt */
    margin: 0 auto; /* Zentrierung */
    padding: 20px; /* Allgemeines Padding für Inhalt */
    flex-grow: 1; /* Lässt den Container den verfügbaren Platz ausfüllen */
    /* Hintergrund, Border, Box-Shadow vom Ticketsystem-Container hier bewusst entfernt,
       da der Hauptinhalt der Webseite meist direkt auf dem Body-Hintergrund liegt.
       Bei Bedarf können diese für spezifische Sektionen oder Cards wieder hinzugefügt werden. */
}

/* Spezifische Anpassung für den Login-Container (aus Ticketsystem beibehalten) */
.login-container { /* Wird für index.php und admin/login.php verwendet */
    max-width: 400px; /* Kleinere Breite für Login-Formulare */
    margin: 80px auto; /* Zentrierung und mehr vertikaler Abstand */
    padding: 20px; /* Etwas weniger Padding */
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Logo zentrieren und Abstand definieren (aus Ticketsystem beibehalten) */
.logo-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}
.logo-container img {
    max-width: 300px;
    height: auto;
}

/* Beschriftungen für Formulare (aus Ticketsystem beibehalten) */
label {
    display: block;
    margin: 15px 0 5px;
    color: #e0e0e0;
}

/* Eingabefelder und Auswahlmenüs (aus Ticketsystem beibehalten) */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 5px;
    box-sizing: border-box; /* Stellt sicher, dass Padding nicht die Breite erhöht */
}

/* Speziell für input[type="file"] (aus Ticketsystem beibehalten) */
input[type="file"] {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
}

/* Button-Stil (aus Ticketsystem beibehalten) */
button, a.button { /* a.button hinzugefügt, um Konsistenz zu gewährleisten */
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px; /* Standard-Abstand nach oben */
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none; /* Für Links, die wie Buttons aussehen */
    display: inline-block; /* Für Links, um nebeneinander zu sein */
    text-align: center; /* Textzentrierung im Button */
    transition: background-color 0.2s ease; /* Sanfter Übergang */
}
button:hover, a.button:hover {
    background-color: #5aa0f0;
    text-decoration: none;
}

/* Fehlermeldungen (aus Ticketsystem beibehalten) */
.error {
    color: #ff6b6b;
    background-color: #3a1e1e;
    border: 1px solid #ff6b6b;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Erfolgsmeldungen (aus Ticketsystem beibehalten) */
.success {
    color: #6eff6e;
    background-color: #1e3a1e;
    border: 1px solid #6eff6e;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Tabellenstil (aus Ticketsystem beibehalten) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 15px;
}

/* Tabellenzellen (aus Ticketsystem beibehalten) */
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #f0f0f0;
}

/* Tabellenkopf (aus Ticketsystem beibehalten) */
th {
    background-color: #2c2c2c;
    font-size: 16px;
    color: #ffffff;
}

/* Status-Indikator-Kreise (aus Ticketsystem beibehalten) */
.status-indikator {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.status-offen {
    background-color: #ff4d4d; /* Rot */
}
.status-in_bearbeitung {
    background-color: #ffd11a; /* Gelb */
}
.status-geschlossen {
    background-color: #33cc33; /* Grün */
}

/* Für Buttons am oberen Rand des Containers (z.B. Dashboard) */
.header-buttons, .top-buttons {
    text-align: right;
    margin-bottom: 20px;
    margin-top: 10px;
}

.header-buttons .button, .top-buttons .button {
    margin-left: 10px;
    margin-top: 0; /* Überschreibt den generellen button margin-top */
}

/* Anpassung für Aktionen in Tabellenzeilen (aus Ticketsystem beibehalten) */
td.actions {
    white-space: nowrap; /* Verhindert Umbruch bei Action-Buttons */
}
td.actions .button {
    margin-top: 0; /* Keine doppelten margins */
    margin-left: 5px; /* Abstand zwischen den Action-Buttons */
    padding: 6px 12px; /* Kleinere Buttons in der Tabelle */
    font-size: 0.9em;
}

/* Button Group (für Buttons nebeneinander am Ende von Formularen) */
.button-group {
    margin-top: 20px; /* Abstand zum oberen Element */
    display: flex; /* Buttons nebeneinander */
    gap: 15px; /* Abstand zwischen den Buttons */
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleineren Bildschirmen */
}
.button-group button, .button-group a.button {
    margin-top: 0; /* Überschreibt den allgemeinen button margin-top */
}
/* Style für "Zurück" Buttons in Button Groups */
.button-group .button[style*="background-color: #555"] { /* Spezieller Selektor, um den Override zu treffen */
    background-color: #555 !important;
}
.button-group .button[style*="background-color: #555"]:hover {
    background-color: #777 !important;
}


/* Für Listen von Kommentaren und Protokollen (aus Ticketsystem beibehalten) */
ul {
    list-style: none; /* Entfernt die Standardaufzählungszeichen */
    padding: 0;
    margin-top: 15px;
}
ul li {
    background-color: #2a2a2a; /* Hintergrund für einzelne Einträge */
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    word-wrap: break-word; /* Lange Texte umbrechen */
}
ul li em {
    color: #bbb; /* Farbe für Datum/Uhrzeit */
    font-size: 0.9em;
    display: block; /* Datum in eigener Zeile */
    margin-top: 5px;
}

/* Footer-Styling (aus Ticketsystem beibehalten) */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px; /* Abstand zum Hauptinhalt */
    color: #888;
    font-size: 0.9em;
    background-color: #1e1e1e; /* Oder passend zum Hintergrund */
    border-top: 1px solid #2a2a2a;
    width: 100%; /* Stellt sicher, dass der Footer die volle Breite einnimmt */
    box-sizing: border-box; /* Padding wird in die Breite eingerechnet */
}
footer .container {
    max-width: 1200px; /* Passend zum Hauptcontainer */
    margin: 0 auto;
    padding: 0; /* Kein zusätzliches Padding im Footer-Container */
}

/* Styling für den Lösch-Button (aus Ticketsystem beibehalten) */
.delete-button {
    display: inline-flex; /* Macht es einfacher, das Symbol zu zentrieren */
    justify-content: center;
    align-items: center;
    width: 30px; /* Quadratisch */
    height: 30px; /* Quadratisch */
    background-color: #dc3545; /* Rot */
    color: white;
    border: none;
    border-radius: 4px; /* Leicht abgerundete Ecken */
    text-decoration: none; /* Keine Unterstreichung */
    font-size: 1.2em; /* Größe des Symbols */
    line-height: 1; /* Zeilenhöhe anpassen für bessere Zentrierung */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.delete-button:hover {
    background-color: #c82333; /* Dunkleres Rot beim Hover */
}

/* Spezifischer Wrapper für Formularseiten (aus Ticketsystem beibehalten) */
.form-wrapper {
    max-width: 700px; /* Die gewünschte Breite für das Formular */
    margin: 40px auto; /* Zentriert den Wrapper und gibt vertikalen Abstand */
    background-color: #1e1e1e; /* Hintergrundfarbe wie dein .container */
    padding: 30px; /* Polsterung innen */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 0 15px rgba(0,0,0,0.4); /* Schatten */
    flex-grow: 1; /* Damit es den verfügbaren Platz ausfüllt */
}

/* ============================================================= */
/* NEUE STYLES FÜR DIE WEBSITE-STRUKTUR (helsystem.de) */
/* ============================================================= */

/* Header & Navigation für die Webseite */
header {
    background-color: #1e1e1e; /* Dunklerer Hintergrund für den Header */
    padding: 15px 0;
    border-bottom: 1px solid #2a2a2a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header .container { /* Header-Container soll die volle Breite des Headers nutzen */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Passend zum main .container */
    margin: 0 auto;
    padding: 0 20px; /* Nur links/rechts Padding im Header-Container */
}

.logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff; /* Logo-Text in Weiß */
    text-decoration: none;
    padding: 0; /* Standard-Padding entfernen */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px; /* Abstand zwischen Navigationselementen */
}

nav ul li a {
    color: #f0f0f0; /* Navigationslinks in Hellgrau */
    font-weight: normal; /* Normales Gewicht für Navigationslinks */
    font-size: 1.1em;
    padding: 5px 0;
    position: relative; /* Für Underline-Effekt */
}

nav ul li a:hover {
    color: #4aa3ff; /* Blauer Hover-Effekt */
    text-decoration: none; /* Keine Unterstreichung beim Hover, da wir einen eigenen Effekt machen */
}

/* Optional: Underline-Effekt für Navigation */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #4aa3ff;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}


/* Hero Section (Startseite) */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/img/hero-background.jpg') no-repeat center center/cover; /* Platzhalterbild */
    text-align: center;
    padding: 100px 20px;
    color: white;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero .button {
    font-size: 1.2em;
    padding: 15px 30px;
}

/* About Us Section */
.about-us, .services-overview, .contact-cta, .service-detail {
    background-color: #1e1e1e; /* Hintergrund wie der Ticketsystem-Container */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    margin-bottom: 40px; /* Abstand zwischen den Sektionen */
}

.about-us h2, .services-overview h2, .contact-cta h2, .service-detail h2 {
    text-align: center;
    margin-bottom: 30px;
}

.about-us p {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

/* Service Grid (Startseite) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsives Grid */
    gap: 30px; /* Abstand zwischen den Kacheln */
    margin-top: 30px;
}

.service-item {
    background-color: #2a2a2a; /* Etwas hellerer Hintergrund für Kacheln */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    transform: translateY(-5px); /* Leichter Schwebe-Effekt */
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.service-item h3 {
    color: #4aa3ff; /* Blaue Überschriften für Service-Items */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.service-item p {
    font-size: 1em;
    line-height: 1.5;
    color: #ccc;
}

/* Contact CTA Section */
.contact-cta {
    text-align: center;
    padding: 50px 20px;
    background-color: #2a2a2a; /* Hintergrund für den CTA-Bereich */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    margin-bottom: 40px;
}

.contact-cta h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: white;
}

.contact-cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.contact-cta .button {
    font-size: 1.1em;
    padding: 12px 25px;
    background-color: #4aa3ff; /* Primärfarbe für den CTA-Button */
}
.contact-cta .button:hover {
    background-color: #6cb8ff;
}

/* Service Details (für leistungen.php) */
.service-detail {
    margin-bottom: 30px;
    text-align: left; /* Text linksbündig */
}

.service-detail h2 {
    text-align: left; /* Überschrift linksbündig */
    color: #4aa3ff; /* Blaue Überschriften für Dienstleistungsdetails */
    font-size: 2em;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.service-detail p, .service-detail ul {
    line-height: 1.6;
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.service-detail ul {
    list-style: disc; /* Normale Aufzählungszeichen */
    padding-left: 25px;
}

.service-detail ul li {
    background-color: transparent; /* Entfernt Hintergrund von Listenelementen */
    padding: 5px 0;
    margin-bottom: 0;
    border-radius: 0;
    word-wrap: normal;
}


/* Downloads Section (downloads.php) */
.downloads ul {
    list-style: square; /* Quadratische Aufzählungszeichen */
    padding-left: 20px;
    margin-top: 20px;
}

.downloads ul li a {
    font-weight: normal; /* Normale Schrift für Download-Links */
    font-size: 1.1em;
    display: block; /* Jeder Link in eigener Zeile */
    padding: 8px 0;
    border-bottom: 1px dashed #333; /* Gestreifte Linie */
}
.downloads ul li:last-child a {
    border-bottom: none; /* Keine Linie beim letzten Element */
}


/* Impressum & DSGVO (dsgvo-impressum.php) */
.legal-content h2, .legal-content h3 {
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p, .legal-content ul, .legal-content ol {
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 20px;
}
.legal-content ul, .legal-content ol {
    padding-left: 25px;
}
.legal-content li {
    margin-bottom: 8px;
    background-color: transparent; /* Entfernt Hintergrund von Listenelementen */
    padding: 0;
    border-radius: 0;
}


/* Responsive Design Anpassungen */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    .hero h1 {
        font-size: 2.0em;
    }
    .hero p {
        font-size: 1.1em;
    }
    .service-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf kleinen Bildschirmen */
    }
    .container, .form-wrapper {
        padding: 20px;
        margin: 20px auto;
    }
    .about-us, .services-overview, .contact-cta, .service-detail {
        padding: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .button-group {
        flex-direction: column;
    }
    .button-group button, .button-group a.button {
        width: 100%;
    }
}