:root {
    --bg-top: #edf3ef;
    --bg-bottom: #f8eee4;
    --ink-strong: #10222f;
    --ink-muted: #4e5f68;
    --panel-bg: rgba(255, 255, 255, 0.9);
    --line: #d2dde2;
    --shadow: 0 20px 50px rgba(11, 24, 39, 0.1);
    --radius: 1.2rem;
    --accent: #0f766e;
    --accent-soft: #d0f2eb;
    --warn: #c2410c;
    --warn-soft: #ffe9dc;
    --danger: #b42318;
    --danger-soft: #fee4e2;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--ink-strong);
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.5rem);
    line-height: 1.55;
    position: relative;
    overflow-x: clip;
}

h1,
h2,
h3 {
    font-family: "Sora", "Segoe UI", sans-serif;
    line-height: 1.2;
    margin: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

h3 {
    font-size: 1.1rem;
}

p {
    margin: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.bg-orb-one {
    width: 23rem;
    height: 23rem;
    background: rgba(15, 118, 110, 0.2);
    top: -8rem;
    right: -4rem;
    animation: float-one 16s ease-in-out infinite;
}

.bg-orb-two {
    width: 18rem;
    height: 18rem;
    background: rgba(194, 65, 12, 0.2);
    bottom: -5rem;
    left: -6rem;
    animation: float-two 18s ease-in-out infinite;
}

.hero,
.layout,
.page-footer {
    position: relative;
    z-index: 1;
}

.hero {
    background: linear-gradient(145deg, rgba(16, 34, 47, 0.96), rgba(27, 60, 79, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    padding: clamp(1.2rem, 2.8vw, 2.4rem);
    border-radius: 1.4rem;
    box-shadow: var(--shadow);
}

.hero-topline {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 0.55rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(236, 253, 245, 0.92);
    margin-top: 0.75rem;
}

.hero-abstract {
    margin-top: 1rem;
    max-width: 64ch;
    color: rgba(241, 245, 249, 0.92);
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.meta-pills span {
    display: inline-flex;
    align-items: center;
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(241, 245, 249, 0.28);
    color: #f8fafc;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.hero-focus-list {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.hero-focus-list li {
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(226, 232, 240, 0.2);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.layout {
    margin-top: 1.2rem;
    display: grid;
    gap: 1rem;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1rem, 2.3vw, 1.35rem);
}

.panel-header {
    display: grid;
    gap: 0.35rem;
}

.eyebrow {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    margin-bottom: 0.05rem;
}

.panel-header p {
    color: var(--ink-muted);
}

.material-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.material-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 0.95rem;
    background: #ffffff;
    display: grid;
    gap: 0.55rem;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.material-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    border-color: #9ab2bd;
}

.material-card.highlighted {
    border-color: rgba(15, 118, 110, 0.45);
    background: linear-gradient(180deg, #ffffff 0%, #f5fffc 100%);
}

.material-card.locked {
    border-style: dashed;
    background: linear-gradient(180deg, #fcfcfc 0%, #f4f7f8 100%);
    color: var(--ink-muted);
}

.material-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.type-chip,
.state-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    font-size: 0.73rem;
    font-weight: 600;
}

.type-chip {
    border: 1px solid #ced9df;
    background: #f1f5f8;
    color: #123244;
}

.type-pdf {
    background: #ffe2e0;
    border-color: #f8a6a0;
    color: #8d1f15;
}

.type-link,
.type-linkliste {
    background: #e6f5ea;
    border-color: #9ed2ac;
    color: #165a2c;
}

.type-video {
    background: #fdf0dc;
    border-color: #f4c687;
    color: #8a4a0a;
}

.state-live,
.state-open {
    background: var(--accent-soft);
    color: #0e4a45;
    border: 1px solid rgba(15, 118, 110, 0.3);
}

.state-locked {
    background: #eef2f7;
    color: #3d5566;
    border: 1px solid #d0dbe3;
}

.material-card p {
    color: var(--ink-muted);
}

.material-action {
    display: inline-flex;
    justify-self: start;
    margin-top: 0.15rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(120deg, #0f766e, #0a5f58);
    border-radius: 0.6rem;
    padding: 0.45rem 0.72rem;
}

.material-action:hover,
.material-action:focus-visible {
    filter: brightness(1.05);
}

.release-time {
    font-size: 0.9rem;
}

.empty-note {
    margin-top: 0.9rem;
    border-left: 4px solid #90a4ae;
    padding-left: 0.75rem;
    color: var(--ink-muted);
}

.unlock-panel {
    border-color: rgba(194, 65, 12, 0.35);
    background: linear-gradient(180deg, #fffdfb 0%, #fff7f2 100%);
}

.unlock-form {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.5rem;
}

.unlock-form label {
    font-weight: 600;
}

.unlock-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.unlock-row input {
    flex: 1 1 13rem;
    border: 1px solid #bfcfd8;
    border-radius: 0.7rem;
    padding: 0.56rem 0.64rem;
    font-size: 1rem;
    min-height: 2.6rem;
}

.unlock-row input:focus-visible {
    border-color: var(--warn);
    outline: 2px solid rgba(194, 65, 12, 0.18);
    outline-offset: 1px;
}

.button {
    border: none;
    border-radius: 0.7rem;
    background: linear-gradient(120deg, #c2410c, #9a3412);
    color: #fff;
    padding: 0.58rem 0.8rem;
    font-weight: 600;
    min-height: 2.6rem;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    filter: brightness(1.05);
}

.button-secondary {
    background: linear-gradient(120deg, #4b5563, #1f2937);
}

.unlock-help {
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.unlock-state {
    background: var(--warn-soft);
    border: 1px solid rgba(194, 65, 12, 0.3);
    color: #7a2e0b;
    border-radius: 0.75rem;
    padding: 0.6rem 0.7rem;
    margin-top: 0.7rem;
}

.message {
    margin-top: 0.65rem;
    border-radius: 0.7rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid transparent;
    font-weight: 500;
}

.message-success {
    color: #0b4c47;
    background: #ddf8f1;
    border-color: rgba(15, 118, 110, 0.35);
}

.message-error {
    color: #7d1a1a;
    background: var(--danger-soft);
    border-color: rgba(180, 35, 24, 0.4);
}

.page-footer {
    margin-top: 1rem;
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.88rem;
}

.reveal {
    animation: reveal-up 520ms ease both;
}

.delay-1 {
    animation-delay: 90ms;
}

.delay-2 {
    animation-delay: 170ms;
}

.delay-3 {
    animation-delay: 250ms;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-one {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(12px) translateX(-8px);
    }
}

@keyframes float-two {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-10px) translateX(10px);
    }
}

@media (max-width: 760px) {
    body {
        padding: 0.85rem;
    }

    .hero {
        border-radius: 1rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
