/* ============================================
   NOSTRADO MODULE CORPORATE DESIGN
   Einheitliches Design für alle Kursmodule
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    line-height: 1.7;
    font-size: 16px;
}

/* Container - Transparenter Hintergrund fuer nahtloses iframe-Design */
.container {
    max-width: 100%;
    margin: 0;
    background: transparent;
    min-height: 100vh;
}

body {
    background: #f1f5f9 !important;
}

.content {
    padding: 24px 40px;
    background: transparent;
}

/* Header */
.module-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #ffffff;
    padding: 32px 40px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.module-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    z-index: 0;
}

.module-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.module-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

/* Audio Section */
.audio-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(30, 58, 95, 0.4) 100%);
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
    position: relative;
    z-index: 1;
}

.audio-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.audio-icon {
    width: 44px;
    height: 44px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
    font-size: 1.2rem;
}

.audio-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
}

audio {
    width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}

.audio-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

/* Meta Info */
.module-meta {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

.meta-item i {
    color: #d4af37;
    font-size: 1.1rem;
}

/* Content Area - Transparent fuer Portal-Integration */
.content {
    padding: 24px 40px;
    background: transparent;
}

/* Objectives Section */
.objectives {
    background: linear-gradient(135deg, #f0f9ff 0%, #fffbeb 100%);
    border-left: 4px solid #d4af37;
    border-radius: 0 16px 16px 0;
    padding: 28px;
    margin-bottom: 40px;
}

.objectives h3 {
    color: #1e3a5f;
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.objectives h3::before {
    content: '\f14a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #d4af37;
}

.objectives ul {
    list-style: none;
}

.objectives li {
    padding: 12px 0 12px 32px;
    position: relative;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    color: #334155;
}

.objectives li:last-child {
    border-bottom: none;
}

.objectives li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 12px;
    color: #10b981;
}

/* Typography */
h2 {
    font-size: 1.7rem;
    color: #1e3a5f;
    margin: 48px 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #d4af37;
    display: inline-block;
    font-weight: 700;
}

h3 {
    font-size: 1.35rem;
    color: #2c5282;
    margin: 32px 0 16px 0;
    font-weight: 600;
}

h4 {
    font-size: 1.15rem;
    color: #334155;
    margin: 24px 0 12px 0;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    color: #334155;
}

strong {
    color: #1e3a5f;
    font-weight: 600;
}

/* Callout Boxes */
.callout {
    border-radius: 16px;
    padding: 24px 28px;
    margin: 28px 0;
    position: relative;
}

.callout-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid #3b82f6;
}

.callout-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 5px solid #10b981;
}

.callout-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
}

.callout::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 1.8rem;
    opacity: 0.2;
}

.callout-info::before { content: '\f05a'; color: #3b82f6; }
.callout-success::before { content: '\f00c'; color: #10b981; }
.callout-warning::before { content: '\f071'; color: #f59e0b; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

thead {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
}

th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

tbody tr:nth-child(even) {
    background: #f8fafc;
}

tbody tr:hover {
    background: #f1f5f9;
}

/* Lists */
ul, ol {
    margin: 16px 0;
    padding-left: 24px;
}

li {
    margin: 10px 0;
    color: #334155;
}

ul li::marker {
    color: #d4af37;
    font-size: 1.2em;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 24px 0;
}

/* Example Boxes */
.example {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.example h4 {
    color: #1e3a5f;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.example h4::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #d4af37;
}

/* Key Points */
.key-point {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    font-weight: 500;
    color: #1e3a5f;
}

/* Blockquote */
blockquote {
    border-left: 4px solid #d4af37;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #64748b;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #ffffff;
    padding: 32px 40px;
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .module-header {
        padding: 24px;
    }
    
    .module-header h1 {
        font-size: 1.5rem;
    }
    
    .content {
        padding: 24px;
    }
    
    .module-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .objectives {
        padding: 20px;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 12px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
    }
    
    .audio-section {
        display: none;
    }
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 2px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
