/* widget/widget-style.css */

/* Globale Stile */
* {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f0f0f0; /* Helles Grau als Hintergrund */
}

/* Overlay für Verdunkelung */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

/* Widget-Container */
.widget-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s ease-out;
}

/* Widget-Button */
.widget-button {
    background-color: #eac625; /* Hellerer Hintergrund für besseren Kontrast */
    color: #000; /* Schwarze Schriftfarbe für besseren Kontrast */
    border: 0;
    padding: 15px 10px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    width: 40px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: 500;
    border-top-left-radius: 15px;
    z-index: 1001;
    position: relative;
    outline: none; /* Entfernt den Standard-Fokus-Umriss */
}

.widget-button:hover,
.widget-button:focus {
    background-color: #ccc; /* Etwas dunklerer Farbton bei Hover/Fokus */
}

/* Animation der Sprechblase */
.speech-bubble {
    font-size: 18px;
    margin-bottom: 10px;
    animation: bubble-float 2s infinite alternate; /* Geänderte Animation */
    color: #555; /* Grundfarbe der Sprechblase */
    filter: hue-rotate(0deg); /* Startwert für hue-rotate */
}

@keyframes bubble-float {
    0% {
        transform: translateY(0);
        opacity: 0.8;
        filter: hue-rotate(0deg); /* Keine Farbtonrotation */
    }
    50% {
        filter: hue-rotate(120deg); /* Grüne Farbtonrotation (ungefähr) */
    }
    100% {
        transform: translateY(-5px);
        opacity: 1;
        filter: hue-rotate(240deg); /* Blaue Farbtonrotation (ungefähr) */
    }
}


/* Rotierter Text */
.rotated-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 500;
}

/* Kontaktkarte */
.contact-card {
    width: 0;
    overflow: hidden;
    background-color: #eee; /* Hellerer Hintergrund für bessere Lesbarkeit */
    border-radius: 0 5px 5px 0;
    border-top-left-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: width 0.4s ease-out;
    color: #000; /* Schwarze Schriftfarbe */
    position: relative;
    z-index: 1000;
}

/* Kontaktinhalt */
.contact-content {
    width: 300px;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

/* Tabs */
.tabs {
    display: flex;
    background-color: #ddd; /* Hellerer Hintergrund */
    border-top-left-radius: 15px;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    font-weight: 500;
    color: #000; /* Schwarze Schriftfarbe */
    transition: all 0.3s;
    border: none; /* Entferne Rahmen */
    background-color: transparent; /* Transparenter Hintergrund */
}

.tab.active {
    background-color: #eee; /* Etwas dunklerer Farbton für aktiven Tab */
    font-weight: 700;
}

.tab:hover,
.tab:focus {
    background-color: #ccc; /* Farbton beim Hovern oder im Fokus */
}

/* Tab-Inhalt */
.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Kontaktinformationen */
.contact-info {
    text-align: center;
}

.contact-heading {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #000; /* Schwarze Schriftfarbe */
}

.contact-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
    border: 3px solid #000; /* Schwarzer Rahmen */
}

.contact-name {
    font-size: 20px;
    font-weight: 700;
    margin: 5px 0;
}

.contact-position {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.contact-details {
    text-align: left;
    margin: 15px 0;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.05); /* Leichter Hintergrund */
    padding: 15px;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.contact-details p {
    margin: 8px 0;
    color: #000; /* Schwarze Schriftfarbe */
}

.contact-details a {
    color: #000; /* Schwarze Schriftfarbe */
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.5); /* Dunklere gestrichelte Linie */
    transition: all 0.2s;
}

.contact-details a:hover {
    border-bottom: 1px solid #000; /* Durchgezogene Linie beim Hovern */
}

/* Kontaktformular */
.contact-form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #000; /* Schwarze Schriftfarbe */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Datei-Upload Styles */
.file-upload {
    background-color: #fff;
    border: 0.75px dashed #777; /* Durchgehender Rahmen 0.75 */
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #000;
}

.file-upload:hover,
.file-upload:focus {
    background-color: #f0f0f0;
    border-color: #555; /* Dunklerer Rahmen bei Hover/Fokus */
}

.file-upload.active {
    border-style: solid;
    background-color: #f0f0f0;
}

.file-upload-icon {
    font-size: 48px;
    color: #555;
    margin-bottom: 10px;
}

.file-upload-text {
    color: #333;
    margin-bottom: 10px;
}

.file-upload-input {
    display: none;
}

.file-upload-hint {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Dateiliste Styles */
.file-list {
    margin-top: 15px;
    max-height: 150px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 4px;
    padding: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    margin-right: 10px;
    color: #555;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.file-remove {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 18px;
    padding: 0 5px;
    transition: color 0.2s;
}

.file-remove:hover,
.file-remove:focus {
    color: #333;
}

/* Submit-Button */
.submit-btn {
    background-color: #444;
    color: #fff;
    border: 0;
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    font-weight: 700;
    transition: all 0.3s;
}

.submit-btn:hover,
.submit-btn:focus {
    background-color: #333;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Erfolgsmeldung */
.success-message {
    display: none;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 200, 0, 0.1);
    border-radius: 5px;
    margin-top: 15px;
    color: #000; /* Schwarze Schriftfarbe */
}

/* Fehlermeldung */
.error-message {
    display: none;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 5px;
    margin-top: 15px;
    color: #000; /* Schwarze Schriftfarbe */
}

/* Fortschrittsbalken für Upload */
.upload-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background-color: #555;
    width: 0%;
    transition: width 0.3s;
}
