﻿@font-face {
  font-family: 'SF Display Pro';
  src: url('fonts/SFPRODISPLAYTHINITALIC.OTF') format('opentype');
  font-style: italic;
  font-display: swap;
}

/* =========================
   DESIGN-TOKENS (CSS-Variablen)
========================= */

:root {
    /* Primärfarbe (Lila) */
    --clr-primary:          #9c3aa3;
    --clr-primary-dark:     #5b2d8e;
    --clr-primary-hover:    #852f8c;
    --clr-primary-disabled: #cdbbd0;
    --clr-primary-light:    #f3e6f5;
    --clr-primary-border:   #e5d3e7;
    --clr-primary-bg:       #faf7fb;

    /* Erfolg (Grün) */
    --clr-success:          #4fa43c;
    --clr-success-dark:     #2e7d32;
    --clr-success-darker:   #1b5e20;

    /* Fehler (Rot) */
    --clr-error:            #c62828;
    --clr-error-dark:       #b71c1c;

    /* Warnung (Orange/Gelb) */
    --clr-warning:          #f9a825;
    --clr-warning-dark:     #b45000;
    --clr-warning-mid:      #e65100;

    /* Teilweise gelernt */
    --clr-partial:          #caa000;
}

/* =========================
   PUNKTESYSTEM
========================= */

#points-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--clr-primary-light);
    border: 1px solid var(--clr-primary-border);
    border-radius: 12px;
    padding: 10px 24px;
    margin: 0 0 18px 0;
    font-size: 0.95rem;
}

.pts-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.pts-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pts-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-primary-dark);
    min-width: 2ch;
    text-align: center;
    transition: transform 0.15s;
}

.pts-divider {
    width: 1px;
    height: 32px;
    background: var(--clr-primary-border);
}

/* Streak-Farben */
.streak-warm   { color: var(--clr-warning); }
.streak-hot    { color: var(--clr-warning-mid); }
.streak-insane { color: var(--clr-error); animation: pts-pulse 0.6s infinite alternate; }

@keyframes pts-pulse {
    from { transform: scale(1); }
    to   { transform: scale(1.15); }
}

/* Floating +Punkte Anzeige */
.pts-float {
    position: absolute;
    font-size: 1.1rem;
    font-weight: 700;
    pointer-events: none;
    opacity: 1;
    transform: translateY(0) translateX(-50%);
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 9999;
}

.pts-float-correct { color: var(--clr-success-dark); }
.pts-float-wrong   { color: var(--clr-error); }

.pts-float-go {
    opacity: 0;
    transform: translateY(-48px) translateX(-50%);
}

/* =========================
   ERFOLGS-SCREEN (nach E-Mail-Versand)
========================= */

#success-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 32px 16px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#success-screen.success-screen-visible {
    opacity: 1;
    transform: scale(1);
}

.success-screen-inner {
    text-align: center;
    max-width: 480px;
    background: #fff;
    border: 1.5px solid var(--clr-success);
    border-radius: 20px;
    padding: 48px 36px 40px;
    box-shadow: 0 8px 32px rgba(79, 164, 60, 0.15);
}

.success-checkmark {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 16px;
    animation: success-pop 0.5s cubic-bezier(.17,.67,.35,1.4) both;
}

@keyframes success-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.success-title {
    font-size: 1.6rem;
    color: var(--clr-success-dark);
    margin: 0 0 10px;
}

.success-msg {
    color: #555;
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.success-email {
    color: #555;
    font-size: 0.9rem;
    background: var(--clr-primary-light);
    border-radius: 8px;
    padding: 8px 14px;
    margin: 0 0 24px;
    display: inline-block;
}

.success-btn {
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}

.success-btn:hover { background: var(--clr-primary-hover); }

/* =========================
   GRUNDLAYOUT
========================= */

body{
    margin:0;
    font-family: "Century Gothic", Arial, Helvetica, sans-serif;
    background:#e5e5e5;
    color:#333;
}

/* =========================
   WRAPPER
========================= */

.wrapper{
    max-width:1100px;
    width:100%;
    margin:30px auto;
    background:white;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    box-sizing:border-box;
}

/* =========================
   HEADER
========================= */

.header img{
    width:100%;
    display:block;
}

/* =========================
   NAVIGATION
========================= */

.mainmenu{
    background:#f5f5f5;
    padding:12px 20px;
    border-bottom:1px solid #ddd;
    font-size:14px;
}
.mainmenu a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.mainmenu a:hover {
    text-decoration: underline;
}

#lb-lang-switcher {
    float: right;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

#lb-lang-switcher span {
    padding: 1px 4px;
    border-radius: 3px;
    color: #666;
    transition: color 0.15s;
}

#lb-lang-switcher span:hover {
    color: #333;
}

.lb-lang-active {
    font-weight: 700;
    color: #7c2d87 !important;
}

/* =========================
   HAUPTBEREICH
========================= */

.main{
    padding:40px;
}

/* =========================
   ÜBERSCHRIFTEN
========================= */

h1{
    color:#000000;
    margin-bottom:30px;
  font-family: "Century Gothic", Arial, Helvetica, sans-serif;
}

h2{
 font-family: "Century Gothic", Arial, Helvetica, sans-serif;
    margin:10px 0;
}

h3{
 font-family: "Century Gothic", Arial, Helvetica, sans-serif;
    margin-top:0;
}

/* =========================
   DASHBOARD
========================= */

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.dashboard-card{
    background:#fafafa;
    padding:30px;
    border-radius:10px;
    border:1px solid #eee;
    text-align:center;
    cursor:pointer;
    transition:all 0.2s ease;
}

.dashboard-card:hover{
    transform:translateY(-4px);
    box-shadow:0 6px 16px rgba(0,0,0,0.08);
}

.dashboard-card p{
    font-size:14px;
    color:#666;
}

.dashboard-card-disabled{
    opacity:0.75;
}

/* =========================
   BUTTONS
========================= */

button{
    padding:10px 18px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-size:14px;
}

button:hover{
    opacity:0.9;
}

button:disabled{
    opacity:0.7;
    cursor:not-allowed;
}

/* =========================
   SETS SEITE
========================= */

#sets-list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:20px;
    margin-bottom:30px;
}

.set-card{
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-radius:10px;
    padding:20px;
    transition:all 0.2s ease;
}

.set-card:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 16px rgba(0,0,0,0.08);
}

.set-buttons{
    margin-top:15px;
    display:flex;
    gap:10px;
}

.set-buttons button{
    flex:1;
}

/* =========================
   SETAUSWAHL (SPIELE)
========================= */

#game-title{
    text-align:center;
    margin-bottom:25px;
	
	    word-break: normal;
    overflow-wrap: normal;

    /* erlaubt automatischen Zeilenumbruch */
    white-space: normal;
}

.selection-info{
    background:#fafafa;
    border:1px solid #ececec;
    border-radius:10px;
    padding:16px 18px;
    margin-bottom:18px;
}

.selection-info p{
    margin:6px 0;
}

.mode-banner{
    background:var(--clr-primary-light);
    border:1px solid #d9bfdc;
    color:#6f2a74;
    border-radius:10px;
    padding:14px 16px;
    margin-bottom:18px;
    font-weight:600;
}

.homework-options{
    background:var(--clr-primary-bg);
    border:1px solid #e8d8eb;
    border-radius:10px;
    padding:20px;
    margin-bottom:20px;
}

.homework-options h2{
    margin-top:0;
    margin-bottom:10px;
}

.homework-options-text{
    margin-bottom:14px;
    color:#666;
}

.goal-option{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:12px;
    cursor:pointer;
}

.goal-option input[type="radio"]{
    width:auto;
    margin:2px 0 0 0;
}

.goal-option span{
    line-height:1.4;
}

/* Scrollbereich */

#sets-scroll-container{
    max-height:420px;
    overflow-y:auto;
    padding:10px;
    background:#f5f5f5;
    border-radius:8px;
}

/* Grid mit mehreren Karten nebeneinander */

#sets-container{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
    gap:14px;
}

/* einzelne Set-Karte */

#sets-container .set-card{
    background:white;
    border:1px solid #e0e0e0;
    border-radius:8px;
    padding:14px 16px;

    display:flex;
    align-items:center;
    gap:12px;

    cursor:pointer;
    transition:all 0.15s ease;
}

.set-card-info{
    flex:1;
    min-width:0;
}

.set-word-count{
    display:inline-block;
    font-size:12px;
    color:#888;
    margin-top:2px;
}

/* Hover */

#sets-container .set-card:hover{
    border-color:var(--clr-primary);
    background:var(--clr-primary-bg);
}

/* ausgewählt */

#sets-container .set-card.selected{
    border-color:var(--clr-primary);
    background:var(--clr-primary-light);
    border-left:4px solid var(--clr-primary);
}

/* Checkbox links */

#sets-container input[type="checkbox"]{
    width:18px;
    height:18px;
    margin:0;
    cursor:pointer;
    flex-shrink:0;
}

/* Setname */

#sets-container .set-card span{
    flex:1;
    font-size:15px;
    line-height:1.3;
}

/* =========================
   VIRTUELLE FILTER-KARTEN
========================= */

/* Section-Labels spannen die volle Grid-Breite */
.sets-section-label {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #aaa;
    margin: 6px 0 2px;
}

.filter-card-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.filter-new     { border-left: 3px solid var(--clr-error); }
.filter-partial { border-left: 3px solid var(--clr-warning); }
.filter-learned { border-left: 3px solid var(--clr-success); }

.filter-new.selected     { background: #fff0f0; border-color: var(--clr-error); }
.filter-partial.selected { background: #fffbea; border-color: var(--clr-warning); }
.filter-learned.selected { background: #f0faf0; border-color: var(--clr-success); }

/* Startbutton */

#start-game-btn{
    margin-top:25px;
    width:100%;
    padding:13px;
    font-size:15px;
    font-weight:600;

    background:var(--clr-primary);
    color:white;

    border:none;
    border-radius:8px;

    cursor:pointer;
    transition:background 0.15s ease;
}

#start-game-btn:hover:not(:disabled){
    background:var(--clr-primary-hover);
}

/* deaktiviert */

#start-game-btn:disabled{
    background:var(--clr-primary-disabled);
    cursor:not-allowed;
}

/* Infotext */

.empty-info{
    margin:0;
    padding:20px;
    text-align:center;
    color:#666;
}

/* =========================
   SPIELE
========================= */

.game-mode-info{
    background:var(--clr-primary-bg);
    border:1px solid var(--clr-primary-border);
    border-radius:10px;
    padding:16px 18px;
    margin-bottom:18px;
}

.game-mode-badge{
    display:inline-block;
    background:var(--clr-primary);
    color:white;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    margin-bottom:10px;
}

.game-goal-text{
    font-weight:600;
    margin-bottom:6px;
}

.game-goal-progress{
    color:#666;
}

.card{
    background:#fafafa;
    padding:40px;
    border-radius:10px;
    text-align:center;
    margin-bottom:25px;
}

.word{
    font-size:32px;
}

.answer{
    font-size:24px;
    color:var(--clr-success);
    margin-top:10px;
    min-height:32px;
}

.buttons{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
}

/* =========================
   Fortschrittsseite
========================= */

.progress-card{
    background:white;
    padding:25px;
    margin-bottom:20px;
    border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.progress-bar{
    width:100%;
    height:20px;
    background:#eee;
    border-radius:10px;
    overflow:hidden;
    margin:10px 0;
}

.progress-fill{
    height:100%;
    background:var(--clr-success);
    transition:width 0.5s;
}

.progress-stats{
    margin-top:10px;
}

.learned{
    color:var(--clr-success-dark);
    font-weight:600;
}

.partial{
    color:var(--clr-partial);
    font-weight:600;
}

.new{
    color:var(--clr-error);
    font-weight:600;
}

/* =========================
   SCHWIERIGE WÖRTER
========================= */

.difficult-card{
    background:#fafafa;
    padding:12px;
    border-radius:6px;
    margin-bottom:10px;
}

/* =========================
   FORMULARE
========================= */

input, textarea{
    width:100%;
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
    margin-bottom:10px;
}

/*  =========================
    MULTIPLE CHOICE
=========================*/
.answers{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-top:20px;
}

.mc-answer{
    padding:15px;
    font-size:16px;
    border:none;
    background:#f4f4f4;
    cursor:pointer;
    border-radius:6px;
    transition:0.2s;
}

.mc-answer:hover{
    background:#e5e5e5;
}

/*CREATE SET*/
/* =========================
   Vokabel Liste
========================= */

.add-row{
    margin-top:15px;
    margin-bottom:10px;
}

#vocab-scroll-container{
    max-height:320px;
    overflow-y:auto;
    margin-top:12px;
}

.vocab-entry{
    display:grid;
    grid-template-columns:1fr 1fr 36px;
    gap:12px;
    margin-bottom:10px;
    align-items:start;
}

.vocab-entry input{
    padding:8px 10px;
    border:1px solid #ccc;
    border-radius:4px;
    font-size:14px;
    height:36px;
    box-sizing:border-box;
}

/* =========================
   Löschen Button
========================= */

.delete-btn{
    height:36px;
    width:36px;
    background:#e5e5e5;
    border:none;
    border-radius:4px;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
}

.delete-btn:hover{
    background:#d6d6d6;
}

/* =========================
   Buttons unter der Liste
========================= */

.vocab-controls{
    margin-top:15px;
}

.form-buttons{
    margin-top:25px;
    display:flex;
    gap:10px;
}

.form-actions{
    margin-top:0;
    display:flex;
    gap:15px;
}

/* =========================
   ZUORDNUNGSSPIEL
========================= */

.memory-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-top:30px;
}

.memory-card{
    background:#fafafa;
    border:1px solid #ddd;
    padding:20px;
    border-radius:6px;
    text-align:center;
    font-size:18px;
    cursor:pointer;
    transition:all 0.2s;
}

.memory-card:hover{
    background:#f2f2f2;
}

.memory-card.selected{
    border:2px solid var(--clr-primary);
}

.memory-card.correct{
    background:#dff5df;
    border-color:var(--clr-success);
}

.memory-card.wrong{
    background:#ffdede;
    border-color:#d9534f;
}


/*SEND PROGRESS*/
.toggle-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:12px;
}

.switch{
    position:relative;
    display:inline-block;
    width:62px;
    height:34px;
}

.switch input{
    opacity:0;
    width:0;
    height:0;
    margin:0;
}

.slider{
    position:absolute;
    cursor:pointer;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color:#d0d0d0;
    transition:.25s;
    border-radius:34px;
}

.slider:before{
    position:absolute;
    content:"";
    height:26px;
    width:26px;
    left:4px;
    bottom:4px;
    background-color:white;
    transition:.25s;
    border-radius:50%;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

.switch input:checked + .slider{
    background-color:var(--clr-primary);
}

.switch input:checked + .slider:before{
    transform:translateX(28px);
}

#overall-summary-hint{
    margin:0;
    color:#666;
    font-size:14px;
}


/**/
.game-mode-info{
    background:var(--clr-primary-bg);
    border:1px solid var(--clr-primary-border);
    border-radius:10px;
    padding:16px 18px;
    margin-bottom:18px;
}

.game-mode-badge{
    display:inline-block;
    background:var(--clr-primary);
    color:white;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    margin-bottom:10px;
}

.game-goal-text{
    font-weight:600;
    margin-bottom:6px;
}

.game-goal-progress{
    color:#666;
    margin-top:4px;
}

.typing-input-wrap{
    margin-top:20px;
}

#typing-answer{
    max-width:420px;
    margin:0 auto 12px auto;
    display:block;
    font-size:18px;
    text-align:center;
}

.typing-feedback{
    min-height:28px;
    font-size:18px;
    margin-top:10px;
}

.typing-correct{
    color:var(--clr-success-dark);
    font-weight:600;
}

.typing-wrong{
    color:var(--clr-error);
    font-weight:600;
}

.summary-buttons{
    margin-top:20px;
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
}

.primary-btn{
    background:var(--clr-primary);
    color:white;
}

/*EXAM SIMULTAION*/

.exam-page{
    max-width:100%;
}

.exam-help-text{
    color:#666;
    margin-bottom:18px;
}

.exam-writing-row{
    display:grid;
    grid-template-columns:200px 1fr 220px;
    gap:20px;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.exam-writing-word{
    font-size:22px;
}

.exam-writing-answer input{
    margin:0;
}

.exam-writing-result{
    font-size:14px;
    color:#666;
}

.exam-mc-task{
    padding:18px 0;
    border-bottom:1px solid #eee;
}

.exam-mc-word{
    font-size:20px;
    margin-bottom:12px;
}

.exam-mc-options{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.exam-mc-option{
    display:flex;
    align-items:center;
    gap:10px;
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-radius:8px;
    padding:10px 12px;
}

.exam-mc-option input{
    width:auto;
    margin:0;
}

.exam-mc-result{
    margin-top:10px;
    font-size:14px;
}

.exam-matching-wrap{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    margin-top:20px;
}

.exam-matching-column h3{
    margin-bottom:12px;
}

.exam-match-item{
    background:#fafafa;
    border:1px solid #ddd;
    border-radius:8px;
    padding:12px 14px;
    margin-bottom:10px;
    cursor:pointer;
    transition:all 0.15s ease;
}

.exam-match-item:hover{
    background:var(--clr-primary-light);
    border-color:var(--clr-primary);
}

.exam-match-item.active{
    border-color:var(--clr-primary);
    background:var(--clr-primary-light);
}

.exam-match-item.assigned{
    border-left:4px solid var(--clr-primary);
}

.exam-match-main{
    font-size:16px;
    font-weight:600;
}

.exam-match-sub{
    font-size:13px;
    color:#666;
    margin-top:4px;
}

.exam-info-line{
    margin-top:14px;
    color:#555;
    font-size:14px;
}

.exam-correct-row{
    background:#eef8ee;
    border-radius:8px;
    padding:8px 10px;
}

.exam-wrong-row{
    background:#fff0f0;
    border-radius:8px;
    padding:8px 10px;
}

.exam-match-result-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:10px;
}

.exam-result-icon{
    font-weight:700;
    min-width:20px;
    text-align:right;
}

/*EXAM PDF*/
.exam-pdf-sheet{
    background:white;
    padding:20px;
    border:1px solid #ddd;
    border-radius:8px;
    box-shadow:none;
}

.exam-pdf-header{
    margin-bottom:20px;
    padding-bottom:15px;
    border-bottom:2px solid #eee;
}

.exam-pdf-header h2{
    margin-top:0;
    margin-bottom:12px;
}

.exam-pdf-section{
    margin-top:20px;
}

.exam-mc-selected{
    border:2px solid var(--clr-primary) !important;
    background:var(--clr-primary-light) !important;
}

.exam-mc-correct-answer{
    box-shadow: inset 0 0 0 2px var(--clr-success);
}

/* =========================
   SET-DETAIL MODAL
========================= */

.detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: background 0.2s ease;
    padding: 16px;
    box-sizing: border-box;
}

.detail-overlay.detail-visible {
    background: rgba(0,0,0,0.48);
}

.detail-modal {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 540px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    transform: scale(0.93);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.detail-overlay.detail-visible .detail-modal {
    transform: scale(1);
    opacity: 1;
}

.detail-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.detail-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.detail-modal-subtitle {
    font-size: 0.82rem;
    color: #999;
    margin: 0 0 18px;
}

.detail-close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    padding: 0 4px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.detail-close-btn:hover { color: #555; }

.detail-word-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-word-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #efefef;
    font-size: 0.92rem;
}

.detail-word-row.status-new     { border-left: 4px solid var(--clr-error); }
.detail-word-row.status-partial { border-left: 4px solid var(--clr-warning); }
.detail-word-row.status-learned { border-left: 4px solid var(--clr-success); }

.detail-word-text {
    font-weight: 600;
    color: #222;
    word-break: break-word;
}

.detail-word-translation {
    color: #555;
    word-break: break-word;
}

.detail-word-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
    font-size: 0.78rem;
}

.detail-stat-correct { color: var(--clr-success-dark); font-weight: 600; }
.detail-stat-wrong   { color: var(--clr-error);        font-weight: 600; }

.detail-empty {
    text-align: center;
    color: #aaa;
    padding: 32px 0;
    font-size: 0.95rem;
}

.detail-open-btn {
    margin-top: 14px;
    background: none;
    border: 1px solid var(--clr-primary-border);
    border-radius: 6px;
    color: var(--clr-primary-dark);
    font-size: 13px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.detail-open-btn:hover {
    background: var(--clr-primary-light);
    border-color: var(--clr-primary);
}

/* =========================
   TOAST NOTIFICATIONS
========================= */

#toast-container{
    position:fixed;
    bottom:28px;
    right:28px;
    z-index:9999;
    display:flex;
    flex-direction:column;
    gap:10px;
    pointer-events:none;
}

.toast{
    padding:13px 20px;
    border-radius:8px;
    font-family:"Century Gothic",Arial,Helvetica,sans-serif;
    font-size:14px;
    font-weight:500;
    color:#fff;
    max-width:340px;
    box-shadow:0 4px 16px rgba(0,0,0,0.18);
    opacity:0;
    transform:translateY(12px);
    transition:opacity 0.25s ease,transform 0.25s ease;
    pointer-events:none;
}

.toast.toast-visible{
    opacity:1;
    transform:translateY(0);
}

.toast-success{ background:var(--clr-success-dark); }
.toast-error  { background:var(--clr-error); }
.toast-warning{ background:var(--clr-warning-dark); }
.toast-info   { background:var(--clr-primary-dark); }

/* =========================
   BUTTON LOADING STATE
========================= */

.btn-loading{
    position:relative;
    color:transparent !important;
    pointer-events:none;
}

.btn-loading::after{
    content:'';
    position:absolute;
    top:50%; left:50%;
    width:16px; height:16px;
    margin:-8px 0 0 -8px;
    border:2px solid rgba(255,255,255,0.4);
    border-top-color:#fff;
    border-radius:50%;
    animation:btn-spin 0.7s linear infinite;
}

@keyframes btn-spin{
    to{ transform:rotate(360deg); }
}

/* =========================
   PASSWORD STRENGTH
========================= */

.pw-strength-bar{
    height:4px;
    border-radius:2px;
    margin-top:-6px;
    margin-bottom:10px;
    transition:width 0.3s,background 0.3s;
    width:0;
}

.pw-strength-label{
    font-size:12px;
    margin-top:-8px;
    margin-bottom:10px;
    min-height:16px;
}

/* =========================
   CONFIRM MODAL
========================= */

.confirm-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:10000;
    transition:background 0.2s ease;
}

.confirm-overlay.confirm-visible{
    background:rgba(0,0,0,0.45);
}

.confirm-box{
    background:#fff;
    border-radius:10px;
    padding:28px 32px;
    max-width:360px;
    width:90%;
    box-shadow:0 8px 32px rgba(0,0,0,0.18);
    transform:scale(0.92);
    opacity:0;
    transition:transform 0.2s ease,opacity 0.2s ease;
}

.confirm-overlay.confirm-visible .confirm-box{
    transform:scale(1);
    opacity:1;
}

.confirm-msg{
    margin:0 0 20px;
    font-size:15px;
    line-height:1.5;
    color:#333;
}

.confirm-actions{
    display:flex;
    gap:10px;
    justify-content:flex-end;
}

.confirm-ok{
    background:var(--clr-error);
    color:#fff;
    border:none;
    border-radius:6px;
    padding:9px 20px;
    font-size:14px;
    cursor:pointer;
    font-family:inherit;
}

.confirm-ok:hover{ background:var(--clr-error-dark); }

.confirm-cancel{
    background:#e5e5e5;
    color:#333;
    border:none;
    border-radius:6px;
    padding:9px 20px;
    font-size:14px;
    cursor:pointer;
    font-family:inherit;
}

.confirm-cancel:hover{ background:#d6d6d6; }

/* =========================
   RESPONSIVE / MOBILE
========================= */

@media (max-width: 768px) {
    body { background: white; }

    .wrapper {
        margin: 0;
        box-shadow: none;
    }

    .main {
        padding: 16px;
    }

    .mainmenu {
        font-size: 13px;
        padding: 10px 16px;
        line-height: 1.8;
    }

    /* Spiele: 2-spaltig → 1-spaltig */
    .answers {
        grid-template-columns: 1fr;
    }

    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Prüfungs-Zuordnung */
    .exam-writing-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .exam-matching-wrap {
        grid-template-columns: 1fr;
    }

    .exam-mc-options {
        grid-template-columns: 1fr;
    }

    /* Formulare */
    .vocab-entry {
        grid-template-columns: 1fr 1fr 36px;
        gap: 6px;
    }

    .form-buttons,
    .form-actions,
    .summary-buttons {
        flex-direction: column;
    }

    .form-buttons button,
    .form-actions button,
    .summary-buttons button {
        width: 100%;
    }

    /* Toast unten zentriert auf Mobile */
    #toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        align-items: center;
    }

    .toast {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
}


/* Angebot: Kacheln untereinander, als Link */
.dashboard-grid.dashboard-list{
    grid-template-columns:1fr;
}

a.dashboard-card{
    display:block;
    color:inherit;
    text-decoration:none;
}

/* Kachel mit Bild links, Text rechts */
a.dashboard-card-bild{
    display:grid;
    grid-template-columns:min(380px,55%) 1fr;
    padding:5px 30px 5px 5px;
    align-items:center;
    gap:25px;
    text-align:left;
}

a.dashboard-card-bild img{
    width:100%;
    max-width:100%;
    height:auto;
    justify-self:start;
}

/* Mathebox-Bild etwas kleiner */
a.dashboard-card-bild img[src*="mathebox"]{
    width:340px;
}

/* Cleverbox-Logo etwas weiter links */
a.dashboard-card-bild img[src*="cleverbox"]{
    margin-left:-15px;
    width:calc(100% + 15px);
    max-width:none;
}

/* =========================
   CLEVERBOX-FARBEN + INFO-KARTEN (Inhaltsseiten)
========================= */

:root {
    --clr-brand:        #4b5ba7;
    --clr-brand-dark:   #36448a;
    --clr-brand-light:  #eceef8;
    --clr-brand-border: #d3d8ee;
}

.mainmenu a:hover{
    color:var(--clr-brand);
}

.main p{
    line-height:1.6;
}

.main p a{
    color:var(--clr-brand);
}

.info-card{
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-left:3px solid var(--clr-brand);
    border-radius:10px;
    padding:20px 24px;
    margin-bottom:20px;
    transition:all 0.2s ease;
}

.info-card:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 16px rgba(0,0,0,0.08);
}

.info-card h2{
    margin-top:0;
    color:var(--clr-brand-dark);
}

.info-card p{
    margin:0;
    color:#555;
}

a.dashboard-card:hover{
    background:var(--clr-brand-light);
    border-color:var(--clr-brand-border);
}

a.dashboard-card h3{
    color:var(--clr-brand-dark);
}
/* =========================
   SEITENSPEZIFISCHE LAYOUTS
========================= */

.lead{
    font-size:1.05rem;
    color:#555;
    margin-bottom:28px;
}

/* Für Lehrkräfte: Schritte nebeneinander */
.steps{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:28px;
}

.step{
    background:var(--clr-brand-light);
    border:1px solid var(--clr-brand-border);
    border-radius:10px;
    padding:22px;
}

.step h2{
    margin:12px 0 8px;
    font-size:1.1rem;
    color:var(--clr-brand-dark);
}

.step p{
    margin:0;
    color:#555;
}

.step-nr{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:var(--clr-brand);
    color:#fff;
    font-weight:700;
}

/* Neuigkeiten: Zeitleiste */
.news-list{
    border-left:3px solid var(--clr-brand-border);
    margin-left:6px;
}

.news-item{
    display:flex;
    gap:24px;
    padding:0 0 28px 24px;
    position:relative;
}

.news-item::before{
    content:"";
    position:absolute;
    left:-10px;
    top:4px;
    width:15px;
    height:15px;
    border-radius:50%;
    background:var(--clr-brand);
}

.news-date{
    flex:0 0 110px;
    font-size:0.85rem;
    font-weight:700;
    color:var(--clr-brand);
    padding-top:3px;
}

.news-body h2{
    margin:0 0 6px;
    font-size:1.15rem;
}

.news-body p{
    margin:0;
}

/* FAQ: Aufklappbare Fragen */
.faq-item{
    border:1px solid #e5e5e5;
    border-radius:10px;
    background:#fafafa;
    margin-bottom:12px;
    overflow:hidden;
}

.faq-item summary{
    cursor:pointer;
    padding:16px 20px;
    font-weight:700;
    color:var(--clr-brand-dark);
}

.faq-item[open] summary{
    background:var(--clr-brand-light);
}

.faq-item p{
    margin:0;
    padding:16px 20px;
}

/* Team: Personen nebeneinander */
.team-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.team-card{
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-radius:10px;
    padding:28px;
    text-align:center;
}

.team-card h2{
    margin:14px 0 4px;
    color:var(--clr-brand-dark);
}

.team-role{
    margin:0 0 12px;
    font-size:0.9rem;
    font-weight:700;
    color:var(--clr-brand);
}

.team-photo{
    width:110px;
    height:110px;
    margin:0 auto;
    border-radius:50%;
    background:var(--clr-brand-light);
    border:2px dashed var(--clr-brand-border);
    color:var(--clr-brand);
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Kontakt: Text links, Karte rechts */
.contact-layout{
    display:grid;
    grid-template-columns:1.3fr 1fr;
    gap:30px;
    align-items:start;
}

.contact-layout h2{
    margin-top:0;
}

.info-card-sub{
    margin-top:18px;
}

@media (max-width:700px){
    .contact-layout{
        grid-template-columns:1fr;
    }
    .news-item{
        flex-direction:column;
        gap:4px;
    }
}

/* Impressum und Datenschutz */
.legal-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-bottom:20px;
}

.legal-grid .info-card{
    margin-bottom:0;
}

.legal-wide{
    grid-column:1 / -1;
}

.legal-label{
    margin:0 0 6px !important;
    font-size:0.8rem;
    text-transform:uppercase;
    letter-spacing:0.06em;
    color:var(--clr-brand) !important;
    font-weight:700;
}

.legal-text h2,
.legal-text h3{
    color:var(--clr-brand-dark);
    margin:28px 0 8px;
}

.legal-text ul{
    line-height:1.6;
}

@media (max-width:700px){
    .legal-grid{
        grid-template-columns:1fr;
    }
}
/* Vision: Leitsatz und drei Säulen */
.vision-quote{
    margin:0 0 24px;
    padding:28px 32px;
    background:var(--clr-brand-light);
    border-left:5px solid var(--clr-brand);
    border-radius:10px;
    font-size:1.4rem;
    line-height:1.5;
    color:var(--clr-brand-dark);
}

.pillars{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    margin-bottom:28px;
}

.pillar{
    text-align:center;
    padding:26px 20px;
    border-radius:10px;
    border:1px solid var(--clr-brand-border);
    border-top:4px solid var(--clr-brand);
    background:#fafafa;
}

.pillar h2{
    margin:0 0 8px;
    font-size:1.4rem;
    color:var(--clr-brand);
}

.pillar p{
    margin:0;
    color:#555;
}
/* Angebotskacheln: Text mit Abstand zum Rand, Titel näher am Text */
a.dashboard-card-bild > div{
    padding:20px 0;
}

a.dashboard-card-bild h3{
    margin:0 0 6px;
}

a.dashboard-card-bild p{
    margin:0;
}
/* Unterrichtsmaterialien */
.material-filter{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:24px;
}

.material-chip{
    padding:6px 16px;
    border-radius:20px;
    border:1px solid var(--clr-brand-border);
    background:#fff;
    font-size:0.9rem;
    color:var(--clr-brand-dark);
}

.material-chip-active{
    background:var(--clr-brand);
    border-color:var(--clr-brand);
    color:#fff;
}

.material-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:20px;
    margin-bottom:28px;
}

.material-card{
    display:flex;
    flex-direction:column;
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-radius:10px;
    padding:20px;
    transition:all 0.2s ease;
}

.material-card:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 16px rgba(0,0,0,0.08);
}

.material-tag{
    align-self:flex-start;
    padding:3px 10px;
    border-radius:12px;
    background:var(--clr-brand-light);
    color:var(--clr-brand-dark);
    font-size:0.75rem;
    font-weight:700;
}

.material-card h2{
    margin:12px 0 8px;
    font-size:1.05rem;
    color:var(--clr-brand-dark);
}

.material-card p{
    margin:0 0 16px;
    font-size:0.9rem;
    color:#555;
    flex:1;
}

.material-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.material-type{
    font-size:0.8rem;
    font-weight:700;
    color:#888;
}

.material-download{
    padding:8px 14px;
    border-radius:6px;
    background:var(--clr-brand);
    color:#fff;
    font-size:0.85rem;
    text-decoration:none;
}

.material-download:hover{
    background:var(--clr-brand-dark);
}
/* Materialien: Filter-Buttons und Status */
button.material-chip{
    cursor:pointer;
    font-family:inherit;
}

button.material-chip:hover{
    background:var(--clr-brand-light);
}

button.material-chip-active:hover{
    background:var(--clr-brand);
}

.material-status{
    color:#777;
    margin:0 0 24px;
}

/* Admin-Seite */
.admin-card{
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-left:3px solid var(--clr-brand);
    border-radius:10px;
    padding:20px 24px;
    margin-bottom:28px;
}

.admin-card h2{
    margin-top:0;
    color:var(--clr-brand-dark);
}

.admin-card label{
    display:block;
    margin-bottom:14px;
    font-size:0.9rem;
    font-weight:700;
    color:#444;
}

.admin-card input[type="text"],
.admin-card input[type="url"],
.admin-card input[type="password"],
.admin-card input[type="file"],
.admin-card textarea{
    display:block;
    width:100%;
    box-sizing:border-box;
    margin-top:6px;
    font-weight:400;
}

.admin-card .admin-check,
.admin-card .admin-check input{
    font-weight:400;
}

.admin-row{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
}

.admin-row label{
    flex:1 1 220px;
}

.admin-btn{
    background:var(--clr-brand);
    color:#fff;
}

.admin-btn:hover{
    background:var(--clr-brand-dark);
    opacity:1;
}

.admin-btn-sec{
    background:var(--clr-brand-light);
    color:var(--clr-brand-dark);
}

.admin-btn-sec:hover{
    background:var(--clr-brand-border);
}

.admin-btn-danger{
    background:#f8e1e1;
    color:var(--clr-error-dark);
}

.admin-btn-danger:hover{
    background:#f1c9c9;
}

.admin-msg{
    padding:12px 16px;
    border-radius:8px;
    margin-bottom:20px;
    background:#e6f4e6;
    color:var(--clr-success-darker);
}

.admin-msg-error{
    background:#fbe4e4;
    color:var(--clr-error-dark);
}

.admin-table-wrap{
    overflow-x:auto;
}

.admin-table{
    width:100%;
    border-collapse:collapse;
}

.admin-table th,
.admin-table td{
    text-align:left;
    padding:10px 12px;
    border-bottom:1px solid #e5e5e5;
}

.admin-table th{
    color:var(--clr-brand-dark);
    font-size:0.85rem;
}
/* Quiz-Editor (Admin) */
.quiz-editor{
    margin:18px 0;
    padding:16px;
    border:1px dashed var(--clr-brand-border);
    border-radius:10px;
    background:#fff;
}

.quiz-editor h3{
    margin:0 0 6px;
    color:var(--clr-brand-dark);
}

.quiz-hint{
    margin:0 0 12px;
    font-size:0.85rem;
    color:#777;
}

.quiz-frage{
    border:1px solid #e5e5e5;
    border-left:3px solid var(--clr-brand);
    border-radius:8px;
    padding:12px;
    margin-bottom:14px;
    background:#fafafa;
}

.quiz-frage-kopf{
    display:flex;
    gap:10px;
    margin-bottom:10px;
}

.quiz-frage-kopf input{
    flex:1;
}

.quiz-antwort{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
}

.quiz-antwort .qa-text{
    flex:1;
    margin-top:0;
}

.quiz-antwort .qa-richtig{
    width:auto;
    margin:0;
}

.quiz-x{
    padding:6px 12px;
}

/* Quiz abspielen */
.quiz-box,
.quiz-ende{
    max-width:720px;
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-left:3px solid var(--clr-brand);
    border-radius:10px;
    padding:24px;
}

.quiz-progress{
    height:8px;
    background:var(--clr-brand-light);
    border-radius:4px;
    overflow:hidden;
    margin-bottom:10px;
}

.quiz-progress-fill{
    height:100%;
    width:0;
    background:var(--clr-brand);
    transition:width 0.3s ease;
}

.quiz-count{
    margin:0 0 6px;
    font-size:0.85rem;
    color:var(--clr-brand);
    font-weight:700;
}

.quiz-box h2{
    margin-top:0;
    color:var(--clr-brand-dark);
}

.quiz-optionen{
    margin:14px 0;
}

.quiz-option{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    margin-bottom:8px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    cursor:pointer;
}

.quiz-option:hover{
    border-color:var(--clr-brand);
}

.quiz-option input{
    width:auto;
    margin:0;
}

.quiz-option-richtig{
    background:#e6f4e6;
    border-color:var(--clr-success);
}

.quiz-option-falsch{
    background:#fbe4e4;
    border-color:var(--clr-error);
}

.quiz-feedback{
    margin:0 0 14px;
    font-weight:700;
}

.quiz-feedback-ok{
    color:var(--clr-success-dark);
}

.quiz-feedback-fail{
    color:var(--clr-error-dark);
}

.quiz-score{
    font-size:1.3rem;
    color:var(--clr-brand-dark);
}

.quiz-link{
    display:inline-block;
    text-decoration:none;
    padding:10px 18px;
    border-radius:6px;
    font-size:14px;
}
/* Drag and Drop (Zuordnung) */
.dnd-pool{
    min-height:64px;
    padding:10px;
    margin-bottom:16px;
    border:2px dashed var(--clr-brand-border);
    border-radius:10px;
    background:#fff;
}

.dnd-inhalt{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    min-height:36px;
}

.dnd-ziele{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:14px;
}

.dnd-ziel{
    padding:10px;
    border:2px solid var(--clr-brand-border);
    border-radius:10px;
    background:var(--clr-brand-light);
}

.dnd-ziel-titel{
    margin-bottom:8px;
    font-weight:700;
    color:var(--clr-brand-dark);
}

.dnd-zone.dnd-over{
    border-color:var(--clr-brand);
    background:#dfe3f5;
}

.dnd-chip{
    padding:8px 14px;
    border:1px solid #ccc;
    border-radius:20px;
    background:#fff;
    cursor:grab;
    user-select:none;
    box-shadow:0 1px 3px rgba(0,0,0,0.08);
}

.dnd-chip.dnd-dragging{
    opacity:0.5;
}

.dnd-chip.dnd-gewaehlt{
    border-color:var(--clr-brand);
    background:var(--clr-brand);
    color:#fff;
}

.dnd-chip.dnd-richtig{
    background:#e6f4e6;
    border-color:var(--clr-success);
    cursor:default;
}

.dnd-chip.dnd-falsch{
    background:#fbe4e4;
    border-color:var(--clr-error);
    cursor:default;
}

.quiz-dnd{
    border-left-color:var(--clr-warning);
}

.quiz-dnd strong{
    display:block;
    margin:12px 0 6px;
}

.quiz-antwort select{
    flex:0 0 40%;
}
/* Materialkarten als Links */
a.material-card{
    color:inherit;
    text-decoration:none;
}

.material-formate{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.material-format{
    padding:2px 8px;
    border-radius:4px;
    background:#eee;
    color:#555;
    font-size:0.75rem;
    font-weight:700;
}

.material-open{
    color:var(--clr-brand);
    font-size:0.85rem;
    font-weight:700;
}

/* Detailseite eines Materials */
.material-detail{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
    align-items:start;
}

.material-detail h2{
    margin-top:0;
    color:var(--clr-brand-dark);
}

.material-vorschau-box{
    border:1px solid #e5e5e5;
    border-radius:10px;
    background:#fafafa;
    overflow:hidden;
    min-height:120px;
    padding:0;
}

.material-vorschau-box .material-status{
    padding:20px;
    margin:0;
}

.material-frame{
    display:block;
    width:100%;
    height:640px;
    border:0;
}

.material-bild{
    display:block;
    max-width:100%;
    height:auto;
    margin:0 auto;
}

.material-formate-liste{
    list-style:none;
    margin:0;
    padding:0;
}

.material-format-zeile{
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-left:3px solid var(--clr-brand);
    border-radius:10px;
    padding:14px 16px;
    margin-bottom:12px;
}

.material-format-text strong{
    display:block;
    color:var(--clr-brand-dark);
}

.material-format-text span{
    display:block;
    font-size:0.8rem;
    color:#777;
    word-break:break-all;
}

.material-format-aktionen{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.material-download-sec{
    background:var(--clr-brand-light);
    color:var(--clr-brand-dark);
}

.material-download-sec:hover{
    background:var(--clr-brand-border);
}

@media (max-width:800px){
    .material-detail{
        grid-template-columns:1fr;
    }
    .material-frame{
        height:480px;
    }
}
/* Bilder in Drag-and-Drop-Fragen */
.dnd-chip-bild{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
    padding:8px;
    border-radius:10px;
}

.dnd-chip-bild img{
    display:block;
    max-width:120px;
    max-height:100px;
    border-radius:6px;
    pointer-events:none;
}

.dnd-chip-bild span{
    font-size:0.8rem;
}

.dnd-chip-bild.dnd-gewaehlt span{
    color:#fff;
}

.quiz-antwort{
    flex-wrap:wrap;
}

.qi-vorschau{
    height:44px;
    width:auto;
    border-radius:6px;
    border:1px solid #ddd;
}
/* Bilder überall im Quiz */
.quiz-bild-gross{
    display:block;
    max-width:100%;
    max-height:320px;
    margin:0 0 14px;
    border-radius:8px;
}

.quiz-option-bild{
    max-width:140px;
    max-height:110px;
    border-radius:6px;
}

.dnd-ziel-bild{
    display:block;
    max-width:100%;
    max-height:110px;
    margin-top:6px;
    border-radius:6px;
}

.quiz-bildzeile{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-bottom:10px;
    font-size:0.85rem;
    color:#555;
}
.quiz-bild-gross[hidden]{
    display:none;
}

/* Material-Detailseite: Beschreibungstext statt Ansicht */
.material-beschreibung{
    padding:22px 24px;
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-left:3px solid var(--clr-brand);
    border-radius:10px;
    line-height:1.7;
    white-space:pre-line;
}
/* Lehrerkonto, Lobby */
.konto-form{
    max-width:520px;
}

.konto-form label{
    display:block;
}

.konto-form input[type="text"],
.konto-form input[type="email"],
.konto-form input[type="password"]{
    display:block;
    width:100%;
    box-sizing:border-box;
    margin-top:6px;
    font-weight:400;
}

.konto-check{
    display:flex !important;
    gap:10px;
    align-items:flex-start;
    font-weight:400 !important;
    font-size:0.85rem !important;
}

.konto-check input{
    margin-top:3px;
    width:auto;
}

.honig{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    opacity:0;
}

.konto-hinweis{
    margin-bottom:24px;
}

.lobby-karte h3{
    margin:0 0 4px;
    color:var(--clr-brand-dark);
}

.lobby-karte p{
    margin:0 0 10px;
}

.lobby-link{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:8px 0 12px;
}

.lobby-link input{
    flex:1 1 260px;
    padding:8px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:0.9rem;
}

.lobby-knoepfe{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.lobby-form{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.lobby-form input{
    flex:1 1 200px;
    padding:8px;
    border:1px solid #ddd;
    border-radius:6px;
}

.lobby-ergebnis{
    margin-top:10px;
}

.ergebnis-tabelle th,
.ergebnis-tabelle td{
    white-space:nowrap;
}

.erg-ok{
    color:var(--clr-success-dark);
    font-weight:700;
}

.erg-falsch{
    color:var(--clr-error);
    font-weight:700;
}
/* Menü: Konto-Bereich rechts */
.mainmenu{
    display:flow-root;
}

.menu-konto{
    float:right;
    margin-left:20px;
    font-weight:700;
}

.menu-name{
    color:var(--clr-brand-dark);
}

[hidden]{
    display:none !important;
}

@media (max-width:700px){
    .menu-konto{
        float:none;
        display:block;
        margin:0 0 6px;
    }
}
/* Menü: Konto-Bereich rechts */
.mainmenu{
    display:flow-root;
}

.menu-konto{
    float:right;
    margin-left:20px;
    font-weight:700;
}

.menu-name{
    color:var(--clr-brand-dark);
}

[hidden]{
    display:none !important;
}

@media (max-width:700px){
    .menu-konto{
        float:none;
        display:block;
        margin:0 0 6px;
    }
}
/* Admin: Auswahlfelder */
.admin-card select{
    display:block;
    width:100%;
    box-sizing:border-box;
    margin-top:6px;
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
    background:#fff;
    font-family:inherit;
    font-size:0.95rem;
    font-weight:400;
}
.quiz-bildzeile select,
.quiz-antwort select{
    display:inline-block;
    width:auto;
    margin-top:0;
}
/* Materialkarten ohne Beschreibung: Fußzeile mit Abstand nach oben */
.material-footer{
    margin-top:auto;
    padding-top:14px;
}
/* Externe Links im Admin */
.link-editor{
    margin:18px 0;
    padding:16px;
    border:1px dashed var(--clr-brand-border);
    border-radius:10px;
    background:#fff;
}

.link-zeile .lk-titel{
    flex:1 1 220px;
    margin-top:0;
}

.link-zeile .lk-url{
    flex:2 1 280px;
    margin-top:0;
}
.link-zeile .lk-untertitel{
    flex:1 1 200px;
    margin-top:0;
}
/* Aussage mit eigenen Begriffen und Reihenfolge-Frage (Admin) */
.quiz-bildzeile input[type="text"]{
    flex:1 1 140px;
    margin-top:0;
    padding:8px;
    border:1px solid #ddd;
    border-radius:6px;
}

.qr-nr{
    display:inline-block;
    min-width:26px;
    font-weight:700;
    color:var(--clr-brand);
}

.qr-zeile .qr-text{
    flex:1 1 200px;
    margin-top:0;
}

.quiz-reihe strong{
    display:block;
    margin:12px 0 6px;
}

/* Reihenfolge-Frage (Spiel) */
.reihe-liste{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:14px 0;
}

.reihe-eintrag{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 12px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    cursor:grab;
    user-select:none;
}

.reihe-eintrag.reihe-dragging{
    opacity:0.5;
}

.reihe-nr{
    flex:0 0 auto;
    min-width:28px;
    font-weight:700;
    color:var(--clr-brand);
}

.reihe-inhalt{
    flex:1 1 auto;
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.reihe-inhalt img{
    max-width:120px;
    max-height:90px;
    border-radius:6px;
    pointer-events:none;
}

.reihe-knoepfe{
    display:flex;
    gap:4px;
}

.reihe-knoepfe button{
    padding:6px 10px;
    background:var(--clr-brand-light);
    color:var(--clr-brand-dark);
}

.reihe-richtig{
    background:#e6f4e6;
    border-color:var(--clr-success);
    cursor:default;
}

.reihe-falsch{
    background:#fbe4e4;
    border-color:var(--clr-error);
    cursor:default;
}
/* Materialseite: Beschreibung oben, verfügbare Materialien als Karten darunter */
.material-formate-titel{
    margin:28px 0 12px;
    color:var(--clr-brand-dark);
}

.material-formate-liste{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:14px;
}

.material-formate-liste .material-format-zeile{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    margin-bottom:0;
}
/* Links, die wie Buttons aussehen: Schrift darf nie die Farbe des Buttons haben
   (die allgemeine Linkfarbe in Absätzen würde sie sonst überschreiben) */
.main a.admin-btn,
.main p a.admin-btn{
    color:#fff;
    text-decoration:none;
}

.main a.admin-btn:hover,
.main p a.admin-btn:hover{
    color:#fff;
}

.main a.admin-btn.admin-btn-sec,
.main p a.admin-btn.admin-btn-sec{
    color:var(--clr-brand-dark);
}

.main a.admin-btn.admin-btn-sec:hover{
    color:var(--clr-brand-dark);
}

.main a.material-download,
.main p a.material-download{
    color:#fff;
    text-decoration:none;
}

.main a.material-download.material-download-sec,
.main p a.material-download.material-download-sec{
    color:var(--clr-brand-dark);
}
/* Anzeigenamen der Dateien im Admin */
.datei-zeile{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    padding:8px 0;
    border-bottom:1px solid #eee;
}

.datei-zeile .datei-name{
    flex:1 1 200px;
    font-size:0.85rem;
    font-weight:400;
    color:#555;
    word-break:break-all;
}

.datei-zeile input[type="text"]{
    flex:1 1 220px;
    margin-top:0;
    padding:8px;
    border:1px solid #ddd;
    border-radius:6px;
}
.datei-knoepfe{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:center;
}

.datei-knoepfe a.admin-btn{
    display:inline-block;
    text-decoration:none;
}
/* Kleine Info zum Lehrerkonto (Registrierung) */
.konto-info{
    max-width:520px;
    margin:0 0 20px;
    padding:12px 16px;
    background:var(--clr-brand-light);
    border:1px solid var(--clr-brand-border);
    border-radius:10px;
    font-size:0.85rem;
    color:#444;
}

.konto-info strong{
    display:block;
    margin-bottom:4px;
    color:var(--clr-brand-dark);
}

.konto-info p{
    margin:0 0 6px;
    line-height:1.5;
}

.konto-info p:last-child{
    margin-bottom:0;
}
/* Verlauf der Downloads je Tag (Admin) */
.verlauf-zeile{
    display:flex;
    align-items:center;
    gap:10px;
    padding:2px 0;
    font-size:0.8rem;
}

.verlauf-tag{
    flex:0 0 48px;
    color:#777;
}

.verlauf-balken{
    flex:1 1 auto;
    display:flex;
    height:12px;
    background:#f0f1f6;
    border-radius:6px;
    overflow:hidden;
}

.verlauf-dl{
    background:var(--clr-brand);
}

.verlauf-an{
    background:var(--clr-brand-border);
}

.verlauf-zahl{
    flex:0 0 190px;
    color:#555;
}
/* Landingpage logoprima+ (heft.html) */
.heft-hero{
    padding:28px 30px;
    margin-bottom:24px;
    background:var(--clr-brand-light);
    border:1px solid var(--clr-brand-border);
    border-left:5px solid var(--clr-brand);
    border-radius:12px;
}

.heft-hero h1{
    margin:12px 0 10px;
    color:var(--clr-brand-dark);
    line-height:1.25;
}

.heft-hero .lead{
    margin-bottom:18px;
}

.heft-cta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:14px;
    margin:0;
}

.heft-cta .admin-btn{
    padding:14px 28px;
    font-size:16px;
}

.heft-sub{
    font-size:0.85rem;
    color:#555;
}

.heft-cta-unten{
    margin:8px 0 24px;
}

.heft-fakten{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:16px;
    margin-bottom:28px;
}

.heft-fakt{
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-top:4px solid var(--clr-brand);
    border-radius:10px;
    padding:18px;
    text-align:center;
}

.heft-fakt strong{
    display:block;
    font-size:2rem;
    line-height:1.1;
    color:var(--clr-brand);
}

.heft-fakt span{
    display:block;
    margin-top:6px;
    font-size:0.9rem;
    color:#555;
}

.heft-vorschau{
    margin-bottom:28px;
}

.heft-vorschau h2,
.heft-titel{
    color:var(--clr-brand-dark);
}

.heft-vorschau-bilder{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
    margin-top:12px;
}

.heft-vorschau figure{
    margin:0;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:10px;
    padding:10px;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
}

.heft-vorschau img{
    display:block;
    width:100%;
    height:auto;
    border-radius:4px;
}

.heft-vorschau figcaption{
    margin-top:8px;
    font-size:0.8rem;
    color:#777;
    text-align:center;
}

.heft-klein{
    font-size:0.85rem;
    color:#777;
}

@media (max-width:700px){
    .heft-hero{
        padding:20px 18px;
    }
}
/* logoprima+: Heft-Titelbild links neben dem blauen Kasten */
.heft-oben{
    display:flex;
    align-items:center;
    gap:28px;
    margin-bottom:24px;
}

.heft-oben .heft-hero{
    flex:1 1 auto;
    margin-bottom:0;
}

.heft-cover{
    flex:0 0 auto;
    width:260px;
    max-width:36%;
    height:auto;
    border-radius:4px;
    box-shadow:0 14px 32px rgba(0,0,0,0.28), 0 2px 6px rgba(0,0,0,0.18);
    transform:rotate(-2deg);
}

@media (max-width:760px){
    .heft-oben{
        flex-direction:column;
    }
    .heft-cover{
        width:220px;
        max-width:70%;
        transform:none;
    }
}
/* Seiten ohne Menü (Landingpage, Lobby): dünne Linie unter dem Kopfbild als sauberer Abschluss */
.header.header-linie{
    border-bottom:4px solid var(--clr-brand);
}