/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Montserrat:wght@700&display=swap');

/* Variablen für ein konsistentes Farbschema */
:root {
    --primary-color: #121212;
    --accent-color: #007BFF;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --footer-text: rgba(255, 255, 255, 0.7);
}

/* Globales Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sorgt dafür, dass der Footer immer unten bleibt */
}

/* Layout Zentrierung */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Header & Navigation */
header {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}


/* --- Dropdown Navigations-Styles --- */

/* Der Container für das Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Der Dropdown-Button (Konto) */
.dropbtn {
    cursor: pointer;
}

/* Der versteckte Inhalt (Submenu) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 8px;
    margin-top: 10px;
    left: 50%;
    transform: translateX(-50%); /* Zentriert das Menü unter dem Button */
    overflow: hidden;
}

/* Links innerhalb des Dropdowns */
.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.95rem;
    transition: background 0.3s;
}

/* Hover-Effekt für die Links im Submenu */
.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--accent-color);
}

/* Zeige das Menü beim Hovern über den .dropdown Container */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Kleiner Pfeil-Indikator Animation (optional) */
.dropdown:hover .dropbtn {
    color: var(--accent-color);
}

/* Der versteckte Inhalt (Submenu) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 8px;
    top: 100%; /* Positioniert das Menü direkt unter dem Button-Container */
    left: 50%;
    transform: translateX(-50%);
    overflow: visible; /* Wichtig für das Pseudo-Element */
    margin-top: 10px; /* Der optische Abstand */
}

/* Die "unsichtbare Brücke" - Verhindert das Schließen beim Drüberfahren */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -15px; /* Reicht in die Lücke bis zum Button hoch */
    left: 0;
    width: 100%;
    height: 15px;
    display: block;
}




/* Responsive Anpassung für Mobile */
@media (max-width: 600px) {
    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        background-color: #f9f9f9;
        display: block; /* Auf Handy direkt anzeigen oder via JS togglen */
        width: 100%;
    }
}


/* Content-Bereich & Karten-Design */
.content-wrapper {
    padding: 3rem 0;
    flex: 1; /* Nimmt den verfügbaren Platz ein */
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    text-align: center;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Scroll-up Button */
#scrollBtn {
    display: none; /* Wird via JS eingeblendet */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#scrollBtn:hover {
    background-color: #0056b3;
    transform: translateY(-5px);
}

/* Footer & rechtliche Navigation */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2.5rem 0;
    margin-top: auto;
}

.footer-nav {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 8px;
    }

    .content-wrapper {
        padding: 1.5rem 0;
    }

    .card {
        padding: 1.5rem;
    }
}

/* --- Erweiterte Formular-Styles --- */

.form-card {
    max-width: 700px;
    margin: 40px auto;
    padding: 50px !important;
    text-align: center;
}

.form-card h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Große, zentrierte Eingabefelder */
.form-card input {
    font-size: 1.1rem !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.form-card input:focus {
    border-color: var(--accent-color) !important;
    outline: none;
    box-shadow: 0 0 8px rgba(0,123,255,0.2);
    transform: translateY(-1px);
}

/* Auswahlfelder */
.form-card select {
    font-size: 1.1rem !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    width: 100%;
    background-color: white;
    cursor: pointer;
    text-align-last: center; /* Zentriert den ausgewählten Text im Dropdown */
    transition: all 0.3s ease;
}

.form-card select:focus {
    border-color: var(--accent-color) !important;
    outline: none;
    box-shadow: 0 0 8px rgba(0,123,255,0.2);
}

/* --- Erweiterte Styles für lockeres Design, z.B. in profile.php verwendet --- */
.info-box-blue {
    background-color: #e8f4fd;
    border: 1px solid #3498db;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.info-box-blue strong {
    color: #2980b9;
    display: block;
    margin-bottom: 3px;
}

.info-box-blue p {
    margin: 0;
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.4;
}

.section-header-cool {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdfdfd;
    padding: 12px 18px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.section-header-cool h3 {
    margin: 0 !important;
    font-size: 1.2rem !important;
    color: #444;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    text-transform: none !important;
}

.icon-circle {
    background: var(--accent-color);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-outline-edit {
    cursor: pointer;
    display: inline-block;
    width: auto;
    font-size: 0.85rem;
    padding: 12px 25px;
    background-color: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-outline-edit:hover {
    background-color: #f0f0f0 !important;
    border-color: #ccc !important;
}

.pref-select-error {
    border: 2px solid #d9534f !important;
    background-color: #fff5f5 !important;
}




/* Captcha Box */
.captcha-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    display: inline-block;
    width: 100%;
    border: 1px dashed #ccc;
}

.captcha-box label {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.captcha-box input {
    max-width: 200px;
    margin: 0 auto;
    display: block;
    background: white;
}

/* Großer Aktions-Button */
.btn-massive {
    padding: 20px !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
    background-color: var(--accent-color) !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    text-decoration: none;
    display: block;
    width: 100%;
}

.btn-massive:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Anpassung für schmale Screens */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
    .form-card {
        padding: 25px !important;
    }
}

/* --- Profil-spezifische Styles --- */
.profile-pic-container {
    margin-bottom: 2rem;
    text-align: center;
}

.profile-img-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.custom-textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1.1rem;
    resize: vertical;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 8px rgba(0,123,255,0.2);
}

/* --- Header Profilbild Miniatur --- */
.user-info-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-right: 1px solid #eee;
    margin-right: 10px;
}

.nav-profile-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-color);
}

/* Anpassung für mobile Endgeräte Profilbild Miniatur*/
@media (max-width: 600px) {
    .user-info-nav {
        border-right: none;
        margin-right: 0;
        justify-content: center;
        margin-bottom: 10px;
    }
}

/* Container für den Cropper zum Verschieben des Profilbildes */
.cropper-area {
    max-width: 400px;
    height: 400px;
    margin: 0 auto 20px auto;
    background-color: #f7f7f7;
    border: 2px dashed #ddd;
    overflow: hidden;
}

/* Sorgt dafür, dass die Auswahl im Cropper kreisförmig erscheint */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

/* Verstecke das originale Input-Feld, wir nutzen den Button */
#profile_pic {
    display: none;
}

/* Markierung für fehlerhafte Felder */
.input-error {
    border: 2px solid #d9534f !important;
    background-color: #fff6f6 !important;
}

/* --- Member Discovery & Matching Styles --- */

.member-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 2rem;
}

.member-card {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    /* Sanfter Schatten als Basis */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #eee;
    
    /* Die magische Zeile: Längere Zeit & komplexe Kurve für "Premium-Feeling" */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Verhindert leichtes Ruckeln in einigen Browsern */
    will-change: transform; 
}

.member-card:hover {
    /* Etwas weiter nach oben (8px statt 5px) für mehr Tiefe */
    transform: translateY(-8px);
    
    /* Der Schatten wird weicher und breiter, wenn die Karte "näher" am Auge ist */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Matching Score Badge (Prozent) */
.match-score-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Profilbild Bereich */
.member-image-wrapper {
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blur-image {
    filter: blur(8px);
    transform: scale(1.1);
}

/* Member Info Bereich */
.member-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.member-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.member-looking-for {
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    margin-left: 6px;
    font-family: 'Inter', sans-serif;
}

.member-age {
    font-weight: bold;
    color: #555;
}

.member-location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

/* Merkmale & Details */
.member-details-mini { 
	height: 75px; 
	font-size: 0.82rem; 
	margin-bottom: 10px; 
	border-bottom: 1px solid #fafafa; 
	line-height: 1.4;
	color: #444; 
}

.member-details-mini span {
    margin-right: 10px;
    display: inline-block;
}


/* Neuer Footer-Bereich für Vorlieben und Buttons */
.member-card-footer {
    padding: 0 15px 15px 15px;
}

.pref-tag-container {
    height: 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    overflow: hidden;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
    align-content: flex-start;
}

/* Bereich für Begleitpersonen auf exakt 3 Zeilen fixieren */
.extra-persons-matching {
    height: 85px;
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow-y: auto;
}

/* Vorlieben-Container auf exakt 2 Reihen fixieren */
.pref-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    height: 80px; /* Fixe Höhe für exakt 2 Reihen Tags */
    overflow: hidden; /* Schneidet Überhang ab, um Card-Breite zu schützen */
    padding-top: 15px;
    margin-bottom: 20px;
    border-top: 1px solid #f0f0f0;
    align-content: flex-start; /* Tags starten oben */
}

/* Die Tags selbst etwas kompakter machen */
.pref-tag {
    font-size: 0.68rem;
    padding: 3px 8px;
    background: #f1f1f1;
    border-radius: 4px;
    white-space: nowrap;
}

/* Sicherstellen, dass die Info-Sektion (Name/Skill/Ort) auch eine Basis-Höhe hat */
.member-info-top { 
	height: 85px; 
	margin-bottom: 5px; 
	overflow: hidden; 
}

/* Begleitpersonen im Matching */

.companion-header {
    font-size: 0.65rem;
    color: #007BFF;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 3px;
    text-align: center;
}

.companion-entry {
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.companion-entry:last-child { border-bottom: none; }

.extra-persons-matching { 
    height: 120px; /* Etwas mehr Platz für die detaillierten Begleiter */
    margin-bottom: 15px; 
    padding: 10px; 
    background: #f9f9f9; 
    border: 1px solid #f0f0f0; 
    border-radius: 8px; 
    overflow-y: auto; 
}

.extra-person-tag {
    font-size: 0.75rem;
    color: #444;
    background: #fff;
    padding: 4px 0;
    border-bottom: 1px solid #fafafa;
}

.extra-person-tag:last-child {
    border-bottom: none;
}

/* Vorlieben Tags */
.pref-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.pref-tag {
    background: #e7f3fe;
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.pref-tag.match {
    background: #28a745;
    color: white;
}


/* Responsive Anpassung */
@media (max-width: 600px) {
    .member-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .member-card {
        max-width: 100%; /* Auf Mobilgeräten volle Breite nutzen */
    }
}


/* --- Card Action Buttons --- */
.member-actions {
    padding: 0;
}

/* Merkliste Button (schmal & über die volle Breite) */
.btn-watchlist {
    font-size: 0.8rem;
    padding: 6px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: block;
    text-decoration: none;
    color: #666;
    transition: background 0.3s;
}

.btn-watchlist:hover { background: #f0f0f0; }

/* Container für die beiden unteren Buttons */
.action-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* Gemeinsame Styles für die großen Buttons */
.btn-later, .btn-view-now {
    flex: 1;
    padding: 14px 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
}

/* Später Button (Links) */
.btn-later {
    background-color: #f1f1f1;
    color: #555;
    border: 1px solid #eee;
}

.btn-later:hover {
    background-color: #e5e5e5;
}

/* Jetzt ansehen Button (Rechts - Akzent) */
.btn-view-now {
    background-color: var(--accent-color);
    color: white;
}

.btn-view-now:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,123,255,0.2);
}

/* Formatierung des Suchfilters */

.filter-card-mini {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 30px;
    width: 320px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .filter-card-mini {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }
}

.filter-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.filter-group {
    margin-bottom: 15px;
    text-align: left;
}

.filter-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary-color);
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    cursor: pointer;
    background-color: var(--white);
    transition: border-color 0.3s;
}

.filter-select:focus {
    border-color: var(--accent-color);
    outline: none;
}

.btn-filter-submit {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.btn-filter-submit:hover {
    background-color: #0056b3;
}

.btn-filter-reset {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    vertical-align: middle;
}

.btn-filter-reset:hover {
    text-decoration: underline;
}

/* Chat Modal Styles */


.inline-chat-modal {
    display: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.inline-chat-modal .chat-header {
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inline-chat-modal .chat-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.inline-chat-modal .chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.9rem;
    background: #f9f9f9;
}

.inline-chat-modal .chat-input-area {
    display: flex;
    gap: 8px;
}

/* Gemeinsames Design für alle Chat-Eingaben (Modal & Karten) */
.chat-input-area {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* Das Textfeld */
.chat-input-area textarea, 
.chat-input-area .chat-mini-input {
    flex-grow: 1;
    resize: none;
    height: 60px !important; /* Fixe Höhe wie im Modal */
    padding: 10px;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
    line-height: 1.4;
}

/* Der Senden-Button (Papierflieger) */
.chat-input-area button,
.chat-input-area .btn-send-mini {
    background-color: var(--accent-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    width: 45px !important; /* Etwas breiter für den Look */
    height: 60px !important; /* Exakt so hoch wie das Textfeld */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    padding: 0 !important;
}

.chat-input-area button:hover,
.chat-input-area .btn-send-mini:hover {
    background-color: #0056b3 !important;
    transform: scale(1.02);
}

.chat-input-area button svg,
.chat-input-area .btn-send-mini svg {
    display: block;
}



.inline-chat-modal .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inline-chat-modal .chat-messages .message {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.3;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

.inline-chat-modal .chat-messages .sent {
    align-self: flex-end;
    background-color: var(--accent-color);
    color: white;
    border-bottom-right-radius: 3px;
}

.inline-chat-modal .chat-messages .received {
    align-self: flex-start;
    background-color: #e0e0e0;
    color: #333;
    border-bottom-left-radius: 3px;
}

.chat-partners-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.chat-partners-list li {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 15px;
    background: white;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.chat-partners-list li:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.partner-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

/* Ergänzung für Emojis */
.emoji-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.emoji-bar span {
    cursor: pointer;
    font-size: 1.3rem;
    transition: transform 0.2s;
}

.emoji-bar span:hover {
    transform: scale(1.3);
}

/* Fix für Textarea in der Card-Ansicht */
.chat-mini-input {
    flex-grow: 1;
    height: 50px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    resize: none;
    font-family: inherit;
}

/* Styling für die Lese-Häkchen */
.message.sent .read-status {
    color: rgba(255, 255, 255, 0.9); /* Weißlich in blauen Blasen */
}

.message.received .read-status {
    color: #888; /* Grau falls sie jemals bei empfangenen Nachrichten stünden */
}

/* Optional: Animation beim Erscheinen der Nachrichten */
.message {
    animation: fadeInChat 0.2s ease-in;
}

@keyframes fadeInChat {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.unread-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4757; /* Signalrot */
    color: white;
    
    /* Größe & Schrift */
    font-size: 1.1rem;        /* Vorher 0.75rem (~60% größer) */
    font-weight: 800;         /* Extra Fett für bessere Lesbarkeit */
    padding: 6px 12px;        /* Mehr Platz um die Zahl */
    min-width: 35px;          /* Verhindert, dass es bei einstelligen Zahlen zu schmal wird */
    height: 35px;             /* Passend zur Breite für einen schönen Kreis/Pille */
    
    /* Design-Details */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;      /* Schöne runde Kanten */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4); /* Tieferer Schatten */
    z-index: 10;
    border: 2px solid white;  /* Weißer Kontrastrand */
    
    /* Animation beim Erscheinen */
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
