:root {
    --fsr-darkred: #490007;
    --fsr-red: #700c15;
    --fsr-lightred: #ff7d7d;
    --fsr-muted: #753d3c;
    --card-bg: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

.st-global-wrapper.studium-bereich {
    display: block !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 1.5rem auto !important;
    font-family: 'Roboto', Arial, sans-serif !important;
}

.st-global-wrapper.studium-bereich * {
    box-sizing: border-box !important;
}

/* HEADER */
.st-global-wrapper .studium-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;
}

.st-global-wrapper .st-header-container {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.st-global-wrapper .st-fsr-logo {
    width: 70px !important;
    height: 70px !important;
    border-radius: 8px !important;
    border: 2px solid white !important;
}

.st-global-wrapper .studium-h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.2rem 0 !important;
    color: white !important;
}

.st-global-wrapper .studium-p {
    font-size: 1rem !important;
    margin: 0 !important;
    opacity: 0.9 !important;
    color: #f1f5f9 !important;
}

/* CARDS GRID (Zweispaltig) */
.st-global-wrapper .st-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
}

.st-global-wrapper .st-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.75rem !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
}

.st-global-wrapper .st-card-title {
    font-size: 1.35rem !important;
    color: var(--fsr-darkred) !important;
    margin: 0 0 0.75rem 0 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 0.5rem !important;
}

.st-global-wrapper .st-card-intro {
    font-size: 1.05rem !important;
    color: #64748b !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
}

/* LINK-LISTEN STYLING WITH LARGER FONTS */
.st-global-wrapper .st-link-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.st-global-wrapper .st-link-list li {
    margin-bottom: 1.25rem !important;
}

.st-global-wrapper .st-link-list li:last-child {
    margin-bottom: 0 !important;
}

.st-global-wrapper .st-link-list a {
    font-size: 1.2rem !important;
    color: var(--fsr-red) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-bottom: 0.2rem !important;
}

.st-global-wrapper .st-link-list a:hover {
    color: var(--fsr-darkred) !important;
    text-decoration: underline !important;
}

.st-global-wrapper .st-link-desc {
    margin: 0 !important;
    font-size: 1.02rem !important;
    color: #334155 !important;
    line-height: 1.5 !important;
}

/* --- AKKORDEON STYLING (FORMS) --- */
.st-global-wrapper .st-accordion-item {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    margin-bottom: 0.75rem !important;
    overflow: hidden !important;
    background: var(--bg-light) !important;
}

.st-global-wrapper .st-accordion-btn {
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    background: #ffffff !important;
    border: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--fsr-darkred) !important;
    text-align: left !important;
    transition: background 0.2s !important;
}

.st-global-wrapper .st-accordion-btn:hover {
    background: #fff5f5 !important;
}

.st-global-wrapper .st-accordion-btn .st-arrow {
    font-size: 0.8rem !important;
    transition: transform 0.2s ease !important;
    color: var(--fsr-muted) !important;
}

/* Aktiv-Klasse für gedrehten Pfeil */
.st-global-wrapper .st-accordion-item.active .st-arrow {
    transform: rotate(180deg) !important;
}

.st-global-wrapper .st-accordion-content {
    padding: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.25s ease-out, padding 0.25s ease !important;
    background: #ffffff !important;
    border-top: 1px solid transparent !important;
}

.st-global-wrapper .st-accordion-item.active .st-accordion-content {
    padding: 1.25rem !important;
    max-height: 500px !important; /* Genug Platz für den Text */
    border-top: 1px solid var(--border-color) !important;
}

.st-global-wrapper .st-accordion-content p {
    margin: 0 0 0.75rem 0 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
}

.st-global-wrapper .st-accordion-content ul, 
.st-global-wrapper .st-accordion-content ol {
    margin: 0 0 1.25rem 0 !important;
    padding-left: 1.2rem !important;
}

.st-global-wrapper .st-accordion-content li {
    font-size: 1.02rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.4rem !important;
    color: #334155 !important;
}

/* DOWNLOAD BUTTON IM INHALT */
.st-global-wrapper .st-btn-download {
    display: inline-block !important;
    background-color: var(--fsr-red) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    font-weight: bold !important;
    transition: background 0.2s !important;
}

.st-global-wrapper .st-btn-download:hover {
    background-color: var(--fsr-darkred) !important;
}

/* EDDY COMPANION */
.st-global-wrapper .eddy-companion {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;               
    display: flex !important;
    align-items: flex-end !important;     
    z-index: 99999 !important;
    background: transparent !important;
    height: 130px !important;             
}

.st-global-wrapper .eddy-companion img {
    height: 125px !important;
    width: auto !important;
    transform: scaleX(-1) !important;     
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.15)) !important; 
    flex-shrink: 0 !important;
    order: 2 !important;                  
}

.st-global-wrapper .eddy-speech-bubble {
    position: relative !important;
    background: white !important;
    border: 2px solid var(--fsr-muted) !important;
    padding: 0.7rem 1rem !important;
    border-radius: 12px !important;
    font-size: 1.0rem !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    max-width: 240px !important;
    margin-right: 12px !important;        
    margin-bottom: 40px !important;       
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    color: #1e293b !important;
    order: 1 !important;                  
}

.st-global-wrapper .eddy-speech-bubble::after, 
.st-global-wrapper .eddy-speech-bubble::before {
    content: '' !important;
    position: absolute !important;
    right: -10px !important;              
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-style: solid !important;
}

.st-global-wrapper .eddy-speech-bubble::before {
    border-width: 8px 0 8px 10px !important;
    border-color: transparent transparent transparent var(--fsr-muted) !important;
    right: -12px !important;
}

.st-global-wrapper .eddy-speech-bubble::after {
    border-width: 7px 0 7px 9px !important;
    border-color: transparent transparent transparent white !important;
    right: -9px !important;
}

@media (max-width: 768px) {
    .st-global-wrapper .eddy-speech-bubble { display: none !important; }
    .st-global-wrapper .eddy-companion img { height: 100px !important; }
    .st-global-wrapper .eddy-companion { height: 105px !important; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .st-global-wrapper .st-cards-grid {
        grid-template-columns: 1fr !important;
    }
}