/*Farbpalette*/
:root {
    --fsr-darkred: #490007;
    --fsr-red: #700c15;
    --fsr-lightred: #ff7d7d;
    --fsr-muted: #753d3c;
    --card-bg: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

/* Äußere Isolation */
.u-global-wrapper.ueberuns-bereich {
    display: block !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 1.5rem auto !important;
    font-family: 'Roboto', Arial, sans-serif !important;
}

.u-global-wrapper.ueberuns-bereich * {
    box-sizing: border-box !important;
}

/* HEADER */
.u-global-wrapper .ueberuns-header {
    background-color: var(--fsr-darkred) !important;
    color: white !important;
    padding: 1.2rem 1.5rem !important;
    box-shadow: 0 4px 15px rgba(73, 0, 7, 0.2) !important;
    border-bottom: 4px solid var(--fsr-red) !important;
    margin-bottom: 2rem !important;
    border-radius: 12px !important;
}

.u-global-wrapper .u-header-container {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.u-global-wrapper .u-fsr-logo {
    width: 70px !important;
    height: 70px !important;
    border-radius: 8px !important;
    border: 2px solid white !important;
    object-fit: cover !important;
}

.u-global-wrapper .ueberuns-h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.2rem 0 !important;
    color: white !important;
}

.u-global-wrapper .ueberuns-p {
    font-size: 1rem !important;
    margin: 0 !important;
    opacity: 0.9 !important;
    color: #f1f5f9 !important;
}

/* SEKTIONS-TITEL */
.u-global-wrapper .u-section-title {
    font-size: 1.5rem !important;
    color: var(--fsr-darkred) !important;
    border-left: 5px solid var(--fsr-red) !important;
    padding-left: 0.75rem !important;
    margin: 2rem 0 1.2rem 0 !important;
    font-weight: 700 !important;
}

/* 3x3 GRID */
.u-global-wrapper .u-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.u-global-wrapper .u-member-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.u-global-wrapper .u-member-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px rgba(73, 0, 7, 0.1) !important;
}

.u-global-wrapper .u-img-box {
    width: 100% !important;
    height: 250px !important;
    background: #f1f5f9 !important;
}

.u-global-wrapper .u-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.u-global-wrapper .u-info-box {
    padding: 1.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.u-global-wrapper .u-info-box h3 {
    margin: 0 0 0.3rem 0 !important;
    font-size: 1.25rem !important;
    color: var(--fsr-darkred) !important;
}

.u-global-wrapper .u-subject {
    font-weight: bold !important;
    font-size: 0.9rem !important;
    color: var(--fsr-muted) !important;
    margin-bottom: 0.1rem !important;
}

.u-global-wrapper .u-semester {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin-bottom: 1rem !important;
}

.u-global-wrapper .u-tasks-desc {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    border-top: 1px dashed var(--border-color) !important;
    padding-top: 0.8rem !important;
    color: #334155 !important;
}

.u-global-wrapper .u-mail-icon {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    transition: background 0.2s, transform 0.2s !important;
    z-index: 10 !important;
}

.u-global-wrapper .u-mail-icon:hover {
    background: var(--fsr-red) !important;
    transform: scale(1.1) !important;
}

.u-global-wrapper .u-mail-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: var(--fsr-red) !important;
}

.u-global-wrapper .u-mail-icon:hover svg {
    fill: white !important;
}

/* EDDY STECKBRIEF BOX */
.u-global-wrapper .u-eddy-showcase-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffbfb 100%) !important;
    border: 2px solid var(--fsr-red) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    position: relative !important;
    margin-bottom: 3rem !important;
    box-shadow: 0 4px 12px rgba(112, 12, 21, 0.05) !important;
}

.u-global-wrapper .u-eddy-badge {
    position: absolute !important;
    top: -12px !important;
    left: 20px !important;
    background-color: var(--fsr-red) !important;
    color: white !important;
    padding: 0.2rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.u-global-wrapper .u-eddy-flex {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
}

.u-global-wrapper .u-eddy-img-wrapper {
    width: 110px !important;
    height: 110px !important;
    background: white !important;
    border-radius: 50% !important;
    border: 1px solid var(--border-color) !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.u-global-wrapper .u-eddy-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.u-global-wrapper .u-eddy-details h3 {
    margin: 0 0 0.2rem 0 !important;
    font-size: 1.5rem !important;
    color: var(--fsr-darkred) !important;
}

.u-global-wrapper .u-eddy-sub {
    margin: 0 0 0.8rem 0 !important;
    font-style: italic !important;
    color: var(--fsr-muted) !important;
    font-size: 0.95rem !important;
}

.u-global-wrapper .u-eddy-text p {
    margin: 0.3rem 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

/* AUFGABEN */
.u-global-wrapper .u-section-intro {
    font-size: 1.05rem !important;
    margin-bottom: 1.5rem !important;
    color: #334155 !important;
}

.u-global-wrapper .u-tasks-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
}

.u-global-wrapper .u-task-item {
    background-color: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
}

.u-global-wrapper .u-task-icon {
    font-size: 2.2rem !important;
    margin-bottom: 0.8rem !important;
}

.u-global-wrapper .u-task-item h4 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.15rem !important;
    color: var(--fsr-darkred) !important;
}

.u-global-wrapper .u-task-item p {
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #475569 !important;
}

/*EDDY IN DER ECKE*/
.u-global-wrapper .u-eddy-companion {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    z-index: 999999 !important; 
    pointer-events: none !important;
}

.u-global-wrapper .u-eddy-companion img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 125px !important; 
    width: auto !important;
    min-height: 105px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
    transform: scaleX(-1) !important; /* Blick nach links */
    cursor: pointer !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.u-global-wrapper .u-eddy-companion:hover img {
    transform: scaleX(-1) translateY(-3px) scale(1.03) !important;
}

/*SPRECHBLASE*/
.u-global-wrapper .u-eddy-speech-bubble {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    background: white !important;
    border: 2px solid var(--fsr-muted) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    font-weight: bold !important;
    max-width: 240px !important;
    margin-right: 14px !important;        
    margin-bottom: 25px !important;       
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    color: #1e293b !important;
    font-family: sans-serif !important;
    text-align: left !important;
}

.u-global-wrapper .u-eddy-speech-bubble::after, 
.u-global-wrapper .u-eddy-speech-bubble::before {
    content: '' !important;
    position: absolute !important;
    right: -10px !important;              
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-style: solid !important;
}

.u-global-wrapper .u-eddy-speech-bubble::before {
    border-width: 8px 0 8px 10px !important;
    border-color: transparent transparent transparent var(--fsr-muted) !important;
    right: -12px !important;
}

.u-global-wrapper .u-eddy-speech-bubble::after {
    border-width: 7px 0 7px 9px !important;
    border-color: transparent transparent transparent white !important;
    right: -9px !important;
}

/* EIGENE EINBRINGUNG */
.u-global-wrapper .u-join-card {
    background-color: var(--bg-light) !important; 
    color: black !important;
    padding: 2rem !important;
    border-radius: 12px !important;
	border: 1px solid var(--border-color) !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    box-shadow: 0 4px 12px rgba(117, 61, 60, 0.15) !important;
    text-align: left !important;
    border-left: 6px solid var(--fsr-darkred) !important; 
}


.u-global-wrapper .u-join-card ul {
    margin: 1rem 0 0 0 !important;
    padding-left: 3.03rem !important; 
    list-style-type: none !important; 
}

.u-global-wrapper .u-join-card ul li {
    position: relative !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.05rem !important; 
    line-height: 1.6 !important;
    color: black !important;
}

.u-global-wrapper .u-join-card ul li::before {
    content: "•" !important;
    color: var(--fsr-red) !important; 
    font-weight: bold !important;
    display: inline-block !important;
    width: 1.2rem !important;
    margin-left: -1.2rem !important;
}

/*EMAIL POPUP*/
.u-global-wrapper .u-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100000 !important;
}

.u-global-wrapper .u-modal-card {
    background: white !important;
    padding: 2.5rem 2rem 2rem 2rem !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 450px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
    position: relative !important;
    text-align: center !important;
}

.u-global-wrapper .u-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 20px !important;
    font-size: 2rem !important;
    font-weight: bold !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: color 0.2s !important;
}

.u-global-wrapper .u-modal-close:hover {
    color: var(--fsr-red) !important;
}

.u-global-wrapper .u-modal-card h2 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.4rem !important;
    color: var(--fsr-darkred) !important;
}

.u-global-wrapper .u-modal-address {
    font-size: 1.1rem !important;
    font-weight: bold !important;
    color: var(--fsr-muted) !important;
    background: #f8fafc !important;
    padding: 0.6rem !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 1.5rem !important;
    word-break: break-all !important;
}

.u-global-wrapper .u-modal-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.u-global-wrapper .u-modal-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    border: none !important;
    transition: background 0.2s, color 0.2s, transform 0.1s !important;
    text-decoration: none !important;
    width: 100% !important;
}

.u-global-wrapper .u-modal-btn svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentcolor !important;
}

.u-global-wrapper .u-btn-mail {
    background: var(--fsr-red) !important;
    color: white !important;
}

.u-global-wrapper .u-btn-mail:hover {
    background: var(--fsr-darkred) !important;
}

.u-global-wrapper .u-btn-copy {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

.u-global-wrapper .u-btn-copy:hover {
    background: #cbd5e1 !important;
}

.u-global-wrapper .u-modal-btn:active {
    transform: scale(0.98) !important;
}

/*AUFGABEN STICHPUNKTE*/
.u-global-wrapper .u-tasks-list {
    margin: 0 !important;
    padding-left: 1.1rem !important; 
    list-style-type: none !important;
}

.u-global-wrapper .u-tasks-list li {
    position: relative !important;
    margin-bottom: 0.4rem !important;
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    color: #334155 !important;
}

.u-global-wrapper .u-tasks-list li::before {
    content: "•" !important;
    color: var(--fsr-red) !important;
    font-weight: bold !important;
    display: inline-block !important;
    width: 1rem !important;
    margin-left: -1rem !important;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 950px) {
    .u-global-wrapper .u-cards-grid,
    .u-global-wrapper .u-tasks-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .u-global-wrapper .u-eddy-companion { height: 105px !important; }
.u-global-wrapper .u-eddy-companion img { height: 100px !important; }
.u-global-wrapper .u-eddy-speech-bubble { display: none !important; }
}

@media (max-width: 650px) {
    .u-global-wrapper .u-cards-grid,
    .u-global-wrapper .u-tasks-grid {
        grid-template-columns: 1fr !important;
    }
    .u-global-wrapper .u-eddy-flex {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
}