*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

:root{
    --blau:#1565C0;
    --blau-dunkel:#0D47A1;
    --cyan:#19A7CE;
    --gruen:#4CAF50;
    --text:#172033;
    --muted:#64748b;
    --linie:#dbe4ef;
    --flaeche:#ffffff;
    --hintergrund:#eef4f8;
}

body{
    background:var(--hintergrund);
    color:var(--text);
    min-height:100vh;
}

body.zugriff-gesperrt{
    overflow:hidden;
}

body.zugriff-gesperrt > header,
body.zugriff-gesperrt > main,
body.zugriff-gesperrt > script{
    filter:blur(8px);
    pointer-events:none;
    user-select:none;
}

.zugriff-overlay{
    position:fixed;
    inset:0;
    z-index:1000;
    display:grid;
    place-items:center;
    padding:24px;
    background:rgba(13,71,161,0.76);
    backdrop-filter:blur(10px);
}

.zugriff-box{
    width:min(430px,100%);
    background:white;
    border:1px solid rgba(219,228,239,0.9);
    border-radius:18px;
    box-shadow:0 24px 60px rgba(15,23,42,0.28);
    padding:30px;
}

.zugriff-box h2{
    margin-top:14px;
    margin-bottom:10px;
}

.zugriff-box p{
    color:var(--muted);
    line-height:1.5;
    margin-bottom:18px;
}

.zugriff-box input{
    width:100%;
    border:2px solid transparent;
    border-radius:12px;
    background:#f8fbff;
    color:var(--text);
    font-size:17px;
    padding:15px;
    outline:none;
    box-shadow:inset 0 0 0 1px var(--linie);
}

.zugriff-box input:focus{
    border-color:var(--cyan);
    background:white;
    box-shadow:0 0 0 4px rgba(25,167,206,0.14);
}

.zugriff-box button{
    width:100%;
    border:0;
    border-radius:12px;
    background:var(--blau);
    color:white;
    cursor:pointer;
    font-size:17px;
    font-weight:bold;
    padding:15px;
    margin-top:14px;
    transition:0.2s;
}

.zugriff-box button:hover{
    background:var(--blau-dunkel);
}

.zugriff-fehler{
    min-height:22px;
    color:#c62828;
    font-weight:bold;
    margin-top:12px;
}

.nachschlagen-widget{
    position:fixed;
    right:24px;
    top:24px;
    z-index:900;
}

.nachschlagen-knopf{
    border:0;
    border-radius:999px;
    background:var(--blau);
    color:white;
    cursor:pointer;
    font-size:16px;
    font-weight:bold;
    padding:14px 20px;
    box-shadow:0 16px 34px rgba(13,71,161,0.28);
    transition:0.2s;
}

.nachschlagen-knopf:hover{
    background:var(--blau-dunkel);
    transform:translateY(-2px);
}

.nachschlagen-fenster{
    position:absolute;
    right:0;
    top:58px;
    display:none;
    width:min(390px,calc(100vw - 32px));
    background:white;
    border:1px solid var(--linie);
    border-radius:18px;
    box-shadow:0 24px 60px rgba(15,23,42,0.22);
    padding:20px;
}

.nachschlagen-widget.offen .nachschlagen-fenster{
    display:block;
}

.nachschlagen-kopf{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}

.nachschlagen-kopf h2{
    font-size:28px;
    margin-bottom:0;
}

.nachschlagen-schliessen{
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:#dbeafe;
    color:var(--blau-dunkel);
    cursor:pointer;
    font-size:24px;
    line-height:1;
}

.nachschlagen-formular{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
}

.nachschlagen-formular input{
    width:100%;
    border:2px solid transparent;
    border-radius:12px;
    background:#f8fbff;
    color:var(--text);
    font-size:16px;
    padding:13px;
    outline:none;
    box-shadow:inset 0 0 0 1px var(--linie);
}

.nachschlagen-formular input:focus{
    border-color:var(--cyan);
    background:white;
    box-shadow:0 0 0 4px rgba(25,167,206,0.14);
}

.nachschlagen-formular button,
.nachschlagen-aktionen button{
    border:0;
    border-radius:12px;
    background:var(--blau);
    color:white;
    cursor:pointer;
    font-weight:bold;
    padding:13px 15px;
}

.nachschlagen-aktionen{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-top:12px;
}

.nachschlagen-aktionen button{
    background:#e8f2ff;
    color:var(--blau-dunkel);
}

.nachschlagen-formular button:hover{
    background:var(--blau-dunkel);
}

.nachschlagen-aktionen button:hover{
    background:#d6eaff;
}

.nachschlagen-hinweis{
    color:var(--muted);
    font-size:14px;
    margin-top:12px;
}

.created-by{
    position:fixed;
    top:24px;
    left:24px;
    z-index:890;
    color:white;
    background:rgba(255,255,255,0.16);
    border:1px solid rgba(255,255,255,0.28);
    border-radius:999px;
    padding:10px 14px;
    font-size:14px;
    font-weight:bold;
    box-shadow:0 12px 26px rgba(13,71,161,0.18);
    backdrop-filter:blur(8px);
}

header{
    background:
        radial-gradient(circle at 18% 18%,rgba(255,255,255,0.24),transparent 28%),
        linear-gradient(135deg,#0D47A1,#1565C0 50%,#19A7CE);
    color:white;
    text-align:center;
    padding:56px 24px 76px;
    border-bottom-left-radius:28px;
    border-bottom-right-radius:28px;
    box-shadow:0 18px 40px rgba(21,101,192,0.25);
}

.hero-inhalt{
    width:min(980px,100%);
    margin:0 auto;
}

.badge,
.eyebrow{
    display:inline-flex;
    align-items:center;
    color:var(--cyan);
    font-size:13px;
    font-weight:800;
    letter-spacing:0;
    text-transform:uppercase;
}

.badge{
    color:white;
    background:rgba(255,255,255,0.18);
    border:1px solid rgba(255,255,255,0.3);
    padding:8px 14px;
    border-radius:999px;
    margin-bottom:18px;
}

header h1{
    font-size:clamp(34px,6vw,58px);
    margin-bottom:10px;
}

header p{
    font-size:clamp(18px,3vw,23px);
    opacity:0.9;
    max-width:720px;
    margin:0 auto;
    line-height:1.5;
}

main{
    width:min(1040px,92%);
    margin:-34px auto 48px;
}

h2{
    margin-bottom:18px;
    color:var(--text);
    font-size:clamp(26px,4vw,36px);
}

.suchbereich,
.bereiche{
    background:rgba(255,255,255,0.94);
    border:1px solid rgba(219,228,239,0.9);
    border-radius:18px;
    box-shadow:0 18px 42px rgba(15,23,42,0.11);
    padding:28px;
}

.bereiche{
    margin-top:26px;
}

.bereich-kopf{
    margin-bottom:8px;
}

.suchbox{
    position:relative;
    margin:8px 0 12px;
}

.suchbox input{
    width:100%;
    border:2px solid transparent;
    border-radius:14px;
    background:#f8fbff;
    color:var(--text);
    font-size:18px;
    padding:18px 54px 18px 18px;
    outline:none;
    box-shadow:inset 0 0 0 1px var(--linie);
    transition:0.2s;
}

.suchbox input:focus{
    border-color:var(--cyan);
    background:white;
    box-shadow:0 0 0 4px rgba(25,167,206,0.14);
}

.suchbox button{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    display:none;
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:#dbeafe;
    color:var(--blau-dunkel);
    font-size:24px;
    line-height:1;
    cursor:pointer;
}

.suchbox button.sichtbar{
    display:block;
}

.such-status{
    color:var(--muted);
    font-size:15px;
    margin-bottom:14px;
}

.such-ergebnisse{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:14px;
}

.such-treffer{
    display:block;
    min-height:142px;
    color:var(--text);
    text-decoration:none;
    background:#f8fbff;
    border:1px solid var(--linie);
    border-left:5px solid var(--gruen);
    border-radius:12px;
    padding:16px;
    transition:0.2s;
}

.such-treffer:hover{
    transform:translateY(-3px);
    background:white;
    box-shadow:0 12px 24px rgba(15,23,42,0.1);
}

.such-treffer span{
    color:var(--blau);
    font-size:13px;
    font-weight:bold;
}

.such-treffer strong{
    display:block;
    margin:8px 0;
    font-size:18px;
}

.such-treffer p,
.keine-treffer{
    color:var(--muted);
    line-height:1.45;
}

.kapitel-liste{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
}

.kapitel{
    display:flex;
    align-items:center;
    min-height:112px;
    background:var(--flaeche);
    color:var(--blau);
    text-decoration:none;
    padding:24px;
    border:1px solid var(--linie);
    border-radius:14px;
    font-size:22px;
    font-weight:bold;
    box-shadow:0 12px 30px rgba(15,23,42,0.08);
    transition:0.3s;
}

.kapitel:hover{
    background:#F8FBFF;
    transform:translateY(-4px);
    border-color:#9DCAFF;
    box-shadow:0 16px 34px rgba(21,101,192,0.16);
}

.karten{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
    margin-top:30px;
}

.karte{
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
    text-align:center;
    text-decoration:none;
    color:#222;
    transition:0.3s;
}

.karte:hover{
    transform:translateY(-8px);
}

.zurueck{
    display:inline-block;
    background:var(--blau);
    color:white;
    text-decoration:none;
    padding:12px 20px;
    border-radius:10px;
    margin-bottom:30px;
    transition:0.3s;
}

.zurueck:hover{
    background:var(--blau-dunkel);
}

details p{
    background:#f5f7fa;
    padding:12px;
    border-radius:8px;
    margin:10px 0;
    cursor:pointer;
    transition:0.3s;
}

details p:hover{
    background:#E3F2FD;
}

details.karte{
    background:white;
    border-radius:15px;
    margin-bottom:15px;
    padding:0;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    overflow:hidden;
}

details.karte summary{
    list-style:none;
    cursor:pointer;
    padding:20px;
    font-size:22px;
    font-weight:bold;
    background:white;
}

details.karte summary:hover{
    background:#E3F2FD;
}

details.karte[open] summary{
    border-bottom:1px solid #ddd;
}

details.karte a{
    display:block;
    padding:15px 20px;
    text-decoration:none;
    color:#222;
    border-bottom:1px solid #eee;
}

details.karte a:hover{
    background:#F5F7FA;
}

.theorie-liste{
    display:flex;
    flex-direction:column;
    gap:20px;
}

@media (max-width:700px){
    header{
        padding:42px 18px 64px;
        border-bottom-left-radius:20px;
        border-bottom-right-radius:20px;
    }

    main{
        width:92%;
        margin-top:-24px;
    }

    .suchbereich,
    .bereiche{
        padding:20px;
        border-radius:14px;
    }

    .suchbox input{
        font-size:16px;
        padding:16px 50px 16px 15px;
    }

    .kapitel{
        min-height:88px;
        font-size:20px;
    }

    .karten{
        grid-template-columns:1fr;
    }

    .nachschlagen-widget{
        right:16px;
        top:16px;
    }

    .created-by{
        top:16px;
        left:16px;
        font-size:13px;
        padding:9px 12px;
    }

    .nachschlagen-fenster{
        top:58px;
    }

    .nachschlagen-formular,
    .nachschlagen-aktionen{
        grid-template-columns:1fr;
    }
}
