/* =========================================================
   Design tokens
   ========================================================= */
:root {
    --navy: #12264a; /* headings */
    --blue-text: #3a5a8a; /* body / lead text */
    --accent: #2b74c4; /* icons, links */
    --accent-soft: #e4eefa; /* icon circles */
    --rule: #9cc2ea; /* small divider line */

    --card: #ffffff;
    --card-border: #e3ebf5;
    --green-soft: #eff7f2; /* "Using the model in class" card */
    --green-badge: #dcefe3;

    --shadow: 0 10px 30px rgba(28, 62, 110, .08);
    --radius: 18px;

    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* =========================================================
   Base
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    color: var(--navy);
    background: radial-gradient(1100px 650px at 5% 0%, #e2eefb 0%, transparent 65%),
    linear-gradient(180deg, #edf4fc 0%, #f5f9fd 55%, #ffffff 100%);
    background-attachment: fixed;
}

/* prevent background scrolling while the lightbox is open */
body:has(dialog[open]) {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2 {
    margin: 0;
    font-family: var(--serif);
    color: var(--navy);
}

.page {
    max-width: 1760px;
    margin: 0 auto;
    padding: 40px 24px 56px;
}

/* =========================================================
   Generic card
   ========================================================= */
.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card__header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.card__header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* round icon background */
.icon-badge {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
}

.icon-badge .icon {
    width: 28px;
    height: 28px;
}

.icon-badge--green {
    background: var(--green-badge);
}

/* smaller line below a card heading */
.card__subtitle {
    margin: 4px 0 0;
    font-size: 1.05rem;
    color: var(--blue-text);
}

/* line icons */
.icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 2.6fr) minmax(240px, .8fr);
    gap: 24px;
    align-items: stretch;
}

.hero__intro {
    align-self: center;
    padding-right: 8px;
}

.hero h1 {
    font-size: clamp(2.5rem, 3.9vw, 3.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.hero__subtitle {
    margin: 18px 0 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 2.3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--navy);
}

.hero__lead {
    margin: 28px 0 0;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    font-weight: 300;
    line-height: 1.45;
    color: var(--blue-text);
}


.hero__figure {
    margin: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__figure img {
    width: 100%;
    height: auto;
}

.figure-note {
    margin: 8px 6px 0;
    font-size: .9rem;
    color: var(--blue-text);
}

.figure-note sup {
    line-height: 0;  /* verhindert größeren Zeilenabstand */
}

/* For Educators */
.educators {
    padding: 28px 26px;
}

.educators__intro {
    margin: 0 0 22px;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--blue-text);
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 22px;
}

.feature-list li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    align-items: start;
    font-size: 1.08rem;
    line-height: 1.45;
    color: var(--blue-text);
}

.feature-list .icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

/* =========================================================
   Info cards
   ========================================================= */
.info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 28px;
}

.about,
.classroom {
    padding: 28px 32px;
}

.about p {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--blue-text);
}

.classroom {
    background: var(--green-soft);
    border-color: #dcebe1;
}

/* clickable thumbnail */
.thumb {
    position: relative;
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 8px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: #fff;
    cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease;
    margin-inline: auto;
}

.thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.thumb:hover,
.thumb:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(28, 62, 110, .16);
}

.thumb:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.thumb__hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.thumb__hint .icon {
    width: 20px;
    height: 20px;
}

.classroom .card__header {
    justify-content: center;
    text-align: center;
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 95vw;
    max-height: 95vh;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(10, 25, 50, .78);
}

.lightbox img {
    width: min(1100px, 85vw);
    max-height: 80vh;
    height: auto;
    object-fit: contain;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.lightbox__close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

.lightbox__close:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    text-align: center;
    padding: 0 16px 32px;
}

.footer-link {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: none;
    font: inherit;
    font-size: .95rem;
    color: var(--blue-text);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color .2s ease, color .2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--navy);
    text-decoration-color: currentColor;
}

.footer-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* =========================================================
   Modal (references)
   ========================================================= */
.modal {
    width: min(960px, calc(100vw - 32px));
    max-height: 80vh;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: #fff;
    color: var(--navy);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.modal::backdrop {
    background: rgba(10, 25, 50, .55);
}

.modal__header {
    position: sticky; /* stays visible while the list scrolls */
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #fff;
    border-bottom: 1px solid var(--card-border);
}

.modal__header h2 {
    font-size: 1.5rem;
}

.modal__close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
}

.modal__close:hover {
    background: var(--accent-soft);
}

.modal__close:focus-visible {
    outline: 2px solid var(--accent);
}

/* APA-style list with hanging indent */
.references {
    list-style: none;
    margin: 0;
    padding: 20px 24px 28px;
    display: grid;
    gap: 14px;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--blue-text);
    text-align: justify; /* Blocksatz */
    hyphens: auto; /* automatische Silbentrennung, verringert Lücken */
}

.references li {
    padding-left: 2em;
    text-indent: -2em;
}

.references a {
    color: var(--accent);
    overflow-wrap: anywhere;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1150px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }

    .hero__intro,
    .hero__figure {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .page {
        padding: 32px 16px 40px;
    }

    .hero,
    .info {
        grid-template-columns: 1fr;
    }

    .about,
    .classroom,
    .educators {
        padding: 24px 20px;
    }

    .hero__figure {
        padding: 12px;
    }

    .lightbox__close {
        top: 8px;
        right: 8px;
    }

    .references {
        text-align: left;
    }
}