/* style.css – Lese-Lotse-Portal */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4fbf6;
    color: #143222;
}

header {
    background: #5bbf7a;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

header img.logo {
    height: 50px;
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 1.6rem;
}

main {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px 40px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.card h2, .card h3 {
    margin-top: 0;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

button, .btn-link, input[type="submit"] {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    background: #39a96b;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn-link:hover, input[type="submit"]:hover {
    background: #2e8b57;
}

select, textarea, input[type="text"], input[type="number"], input[type="password"] {
    width: 100%;
    padding: 8px;
    margin: 4px 0 10px;
    border-radius: 8px;
    border: 1px solid #cbd5d1;
    font-family: inherit;
    font-size: 0.95rem;
}

textarea {
    min-height: 80px;
}

.notice {
    padding: 10px 12px;
    border-radius: 8px;
    background: #e0f7ec;
    border-left: 4px solid #39a96b;
    margin-bottom: 10px;
}

nav.top-nav {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

nav.top-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Whiteboard-Modus */

.whiteboard-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.whiteboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.whiteboard-toolbar button {
    border-radius: 16px;
    padding: 6px 12px;
}

#text-content {
    font-size: 1.4rem;
    line-height: 1.6;
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed #a0b8a9;
    min-height: 200px;
    background: #f9fff9;
}

/* Markierungsfarben */

.highlight-important {
    background: #fff89a;
}

.highlight-unimportant {
    background: #e0e7ff;
}

.highlight-person {
    background: #ffd6e7;
}

.highlight-place {
    background: #c7f5ff;
}

/* Leselotse / Arbeitslotse Schritte */

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.step-list input[type="checkbox"] {
    margin-top: 4px;
}

.step-text {
    flex: 1;
}

/* Urkunde */

.certificate {
    text-align: center;
    padding: 40px 20px;
    border: 5px solid #39a96b;
    border-radius: 20px;
    background: #ffffff;
}

.certificate h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.certificate h3 {
    font-size: 1.8rem;
    margin: 10px 0;
}

.certificate p {
    font-size: 1.1rem;
}

.print-hidden {
    display: inline-block;
}

/* Druckansicht */

@media print {
    header, nav.top-nav, .btn-row, .print-hidden {
        display: none !important;
    }
    body {
        background: #ffffff;
    }
    main {
        max-width: 100%;
        margin: 0;
        padding: 0 10mm 10mm;
    }
    .card {
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 10px;
    }
}

/* Responsiv */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    nav.top-nav {
        margin-left: 0;
    }
    #text-content {
        font-size: 1.1rem;
    }
}


/* Lesetext-Kasten */

.lesetext-box {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 15px;
    border-radius: 12px;
    background: #f9fff9;
    border: 1px solid #cbe7d2;
    white-space: pre-wrap;
}

/* kleiner Motivationsbereich */

.motivation-box {
    background: #fff7e6;
    border-left: 4px solid #ffb347;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}


header img.monster {
    height: 60px;
    width: auto;
}

.progress-container {
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e5efe8;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #39a96b;
    transition: width 0.2s ease-out;
}


.whiteboard-toolbar button.btn-important {
    background: #fff89a;
    color: #444;
}

.whiteboard-toolbar button.btn-unimportant {
    background: #e0e7ff;
    color: #222;
}

.whiteboard-toolbar button.btn-person {
    background: #ffd6e7;
    color: #222;
}

.whiteboard-toolbar button.btn-place {
    background: #c7f5ff;
    color: #222;
}

.whiteboard-toolbar button.btn-clear {
    background: #f3f3f3;
    color: #333;
    border: 1px solid #ccc;
}
