/*
Theme Name: Moodle LTI Container Theme (Refreshed)
Description: Ein modernes, minimalistisches Theme zur ansprechenden Einbettung von Moodle-Kursen via LTI.
Author: Denis Kuziel
Version: 1.1
Layout: Fullwidth / Clean UI Optimized
*/

/* --- CSS Variablen & Resets --- */
:root {
    --primary-color: #0056b3; /* Modernes Moodle-Blau */
    --secondary-color: #f4f6f9; /* Heller Hintergrund */
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;
    --shadow-subtle: 0 4px 6px rgba(0,0,0,0.05);
    --transition-fast: 0.2s ease-in-out;
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family-base);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Allgemeine UI-Elemente (z.B. für index.php) --- */
.site-header {
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
}

.site-title a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

.site-title a:hover {
    color: #003d80;
}

.main-content {
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.entry-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.entry-content p {
    margin-bottom: 1rem;
}

/* --- LTI Container Optimierung (page-lti-container.php) --- */
.lti-container-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.lti-header-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Verhindert das Schrumpfen */
    box-shadow: var(--shadow-subtle);
    z-index: 10;
}

.lti-header-bar .course-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.lti-iframe-container {
    flex-grow: 1; /* Nimmt den restlichen Platz ein */
    position: relative;
    width: 100%;
    overflow: hidden;
}

.lti-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    /* Optional: Weicher Übergang beim Laden */
    opacity: 0;
    animation: fadeInIfram var(--transition-fast) forwards;
    animation-delay: 0.1s;
}

@keyframes fadeInIframe {
    to { opacity: 1; }
}
