/* Mitgliederbereich. Farben und Schriften aus dem Entwurf in design/. */

/* Schriften liegen im Projekt statt bei Google Fonts. Beim Laden von Google
   ginge die IP-Adresse jedes Besuchers an Google, dafür gab es in
   Deutschland Abmahnungen. Lizenz: SIL OFL, siehe public/fonts/LICENSE-*. */
@font-face {
    font-family: "Marcellus";
    src: url("../fonts/marcellus-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
:root {
    --ink: #142428;
    --muted: #6b7d81;
    --petrol: #0c6980;
    --petrol-700: #085061;
    --petrol-50: #e8f2f4;
    --blush-50: #fbf3f1;
    --paper: #fbf8f5;
    --danger: #a23b3b;
    --display: "Marcellus", Georgia, serif;
    --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --r: 4px;
    --r-lg: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 var(--body);
}

.card {
    width: 100%;
    max-width: 440px;
    padding: 32px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: 0 14px 40px -18px rgba(20, 36, 40, .22);
}

h1 {
    margin: 0 0 12px;
    font: 400 1.75rem/1.25 var(--display);
}

p { margin: 0 0 16px; }

a { color: var(--petrol); }

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

label ~ label { margin-top: 16px; }

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9d3d5;
    border-radius: var(--r);
    font: inherit;
}

input:focus { outline: 2px solid var(--petrol); outline-offset: 1px; }

button, .button {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    border: 0;
    border-radius: var(--r);
    background: var(--petrol);
    color: #fff;
    font: 500 1rem var(--body);
    text-decoration: none;
    cursor: pointer;
}

button:hover, .button:hover { background: var(--petrol-700); }

button.secondary {
    background: transparent;
    color: var(--petrol);
    padding-left: 0;
}

button.outline {
    margin-top: 0;
    background: transparent;
    color: var(--petrol);
    box-shadow: inset 0 0 0 1px var(--petrol);
}

button.secondary:hover, button.outline:hover { background: var(--petrol-50); }

.alternative {
    margin: 24px 0 12px;
    padding-top: 16px;
    border-top: 1px solid #e3e9ea;
    color: var(--muted);
}

.actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
}

.actions button { margin-top: 0; }

.notice {
    padding: 12px 14px;
    background: var(--petrol-50);
    border-radius: var(--r);
}

.error { margin: 6px 0 0; color: var(--danger); }

.muted { color: var(--muted); }

/* Breitere Seiten: Kongress und Sprecher */
.card.wide { max-width: 1040px; }

h2 {
    margin: 32px 0 16px;
    font: 400 1.35rem/1.3 var(--display);
}

.back {
    display: inline-block;
    margin-bottom: 16px;
    font-size: .92rem;
    text-decoration: none;
}

.congress {
    display: block;
    margin-bottom: 12px;
    padding: 16px 18px;
    border-radius: var(--r);
    background: var(--blush-50);
    color: var(--ink);
    font: 400 1.15rem var(--display);
    text-decoration: none;
}

.congress:hover { background: var(--petrol-50); }

.speakers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.speakers img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: var(--r-lg);
}

.speakers strong { display: block; line-height: 1.35; }

.speakers .muted {
    display: block;
    margin-top: 4px;
    font-size: .9rem;
    line-height: 1.45;
}

.speakers a {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.speakers a:hover strong { color: var(--petrol); }

/* Sprecherseite */
.topic {
    font-size: 1.1rem;
    font-weight: 500;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    border-radius: var(--r-lg);
    background: var(--petrol);
}

.player img {
    width: 28%;
    max-width: 180px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .6);
}

.player__label { font-size: 1.05rem; }

.links { padding-left: 20px; }

.links li { margin-bottom: 6px; }

.bonus {
    margin-top: 32px;
    padding: 4px 24px 8px;
    border-radius: var(--r-lg);
    background: var(--blush-50);
}

.bonus h2 { margin-top: 20px; }

.richtext p { margin: 0 0 12px; }

.pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e3e9ea;
}

.pager .next { margin-left: auto; text-align: right; }
