.bibelleseplan {
    --bp-navy: #173a55;
    --bp-navy-soft: #275777;
    --bp-gold: #bd8b23;
    --bp-gold-soft: #fff5d8;
    --bp-ink: #24333d;
    --bp-muted: #667782;
    --bp-line: #dce4e8;
    --bp-surface: #ffffff;
    --bp-surface-soft: #f5f8fa;
    --bp-success: #2f7657;
    color: var(--bp-ink);
    background: var(--bp-surface);
    border: 1px solid var(--bp-line);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(23, 58, 85, 0.09);
    font-family: inherit;
    line-height: 1.55;
    margin: 1.5rem auto;
    max-width: 1100px;
    overflow: hidden;
}

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

.bibelleseplan__header {
    background: linear-gradient(135deg, var(--bp-navy), #0d293e);
    color: #fff;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    position: relative;
}

.bibelleseplan__header::after {
    background: var(--bp-gold);
    bottom: 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    width: min(34%, 260px);
}

.bibelleseplan__eyebrow {
    color: #f0c96a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.bibelleseplan__title {
    color: inherit;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin: 0;
}

.bibelleseplan__subtitle {
    color: #dfeaf0;
    margin: 0.65rem 0 0;
    max-width: 760px;
}

.bibelleseplan__loading,
.bibelleseplan__error {
    margin: 1.5rem;
    padding: 1rem 1.1rem;
}

.bibelleseplan__loading {
    background: var(--bp-surface-soft);
    border-radius: 10px;
    color: var(--bp-muted);
}

.bibelleseplan__error {
    background: #fff0f0;
    border: 1px solid #e9b6b6;
    border-radius: 10px;
    color: #8d2e2e;
}

.bibelleseplan__progress {
    background: var(--bp-surface-soft);
    border-bottom: 1px solid var(--bp-line);
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
}

.bibelleseplan__progress-row {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.bibelleseplan__progress-track {
    background: #dfe7eb;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.bibelleseplan__progress-track > span {
    background: linear-gradient(90deg, var(--bp-gold), #d5aa47);
    display: block;
    height: 100%;
    transition: width 220ms ease;
    width: 0;
}

.bibelleseplan__navigation {
    border-bottom: 1px solid var(--bp-line);
    padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
}

.bibelleseplan__nav-buttons,
.bibelleseplan__nav-tools,
.bibelleseplan__search > div {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.bibelleseplan__nav-tools {
    margin-top: 0.7rem;
}

.bibelleseplan__day-select-label {
    flex: 1 1 220px;
    margin: 0;
}

.bibelleseplan__day-select-label > span,
.bibelleseplan__search > label,
.bibelleseplan__notes-label {
    color: var(--bp-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.bibelleseplan select,
.bibelleseplan input[type="search"],
.bibelleseplan textarea {
    background: #fff;
    border: 1px solid #b9c7ce;
    border-radius: 8px;
    color: var(--bp-ink);
    font: inherit;
    min-height: 44px;
    padding: 0.58rem 0.72rem;
    width: 100%;
}

.bibelleseplan select:focus,
.bibelleseplan input:focus,
.bibelleseplan textarea:focus,
.bibelleseplan button:focus-visible,
.bibelleseplan a:focus-visible,
.bibelleseplan summary:focus-visible {
    outline: 3px solid rgba(189, 139, 35, 0.38);
    outline-offset: 2px;
}

.bibelleseplan__button {
    background: var(--bp-navy);
    border: 1px solid var(--bp-navy);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 44px;
    padding: 0.58rem 0.95rem;
}

.bibelleseplan__button:hover {
    background: var(--bp-navy-soft);
}

.bibelleseplan__button--quiet {
    background: #fff;
    color: var(--bp-navy);
}

.bibelleseplan__button--quiet:hover {
    background: var(--bp-surface-soft);
}

.bibelleseplan__button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.bibelleseplan__text-button {
    background: transparent;
    border: 0;
    color: var(--bp-navy-soft);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.2rem 0;
    text-decoration: underline;
    text-decoration-color: #c3ced4;
    text-underline-offset: 3px;
}

.bibelleseplan__search {
    background: var(--bp-surface-soft);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 0.8rem;
}

.bibelleseplan__search input {
    flex: 1 1 260px;
}

.bibelleseplan__search-result {
    color: var(--bp-muted);
    font-size: 0.85rem;
    margin: 0.45rem 0 0;
}

.bibelleseplan__content {
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.bibelleseplan__day-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.bibelleseplan__day-kicker {
    color: var(--bp-gold);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.bibelleseplan__day-title {
    color: var(--bp-navy);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    margin: 0;
}

.bibelleseplan__complete {
    align-items: center;
    background: #edf6f1;
    border: 1px solid #bfdbc9;
    border-radius: 10px;
    color: #235f45;
    display: flex;
    font-weight: 700;
    gap: 0.55rem;
    padding: 0.65rem 0.8rem;
}

.bibelleseplan__complete input {
    accent-color: var(--bp-success);
    height: 1.15rem;
    margin: 0;
    width: 1.15rem;
}

.bibelleseplan__timeline {
    background: #edf3f7;
    border-left: 5px solid var(--bp-navy-soft);
    border-radius: 8px;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.3rem;
    padding: 0.85rem 1rem;
}

.bibelleseplan__timeline--unschuld { border-left-color: #5f986c; }
.bibelleseplan__timeline--gewissen { border-left-color: #8767a9; }
.bibelleseplan__timeline--menschliche-regierung { border-left-color: #9d6c45; }
.bibelleseplan__timeline--verheissung { border-left-color: #bb8b22; }
.bibelleseplan__timeline--gesetz { border-left-color: #356b92; }
.bibelleseplan__timeline--gnade { border-left-color: #2f7657; }
.bibelleseplan__timeline--uebergang { border-left-color: #77848c; }

.bibelleseplan__timeline-item span {
    color: var(--bp-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bibelleseplan__timeline-item strong {
    color: var(--bp-navy);
    display: block;
    font-size: 0.92rem;
    margin-top: 0.12rem;
}

.bibelleseplan__reference-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
}

.bibelleseplan__reference {
    background: var(--bp-gold-soft);
    border: 1px solid #ead59d;
    border-radius: 999px;
    color: #704f0d;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.35rem 0.68rem;
    text-decoration: none;
}

.bibelleseplan__reference:hover {
    background: #ffedb8;
    color: #543c0c;
}

.bibelleseplan__topics {
    color: var(--bp-muted);
    margin: 0 0 1.35rem;
}

.bibelleseplan__intro {
    border: 1px solid #cad8df;
    border-radius: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.bibelleseplan__intro summary {
    background: var(--bp-navy);
    color: #fff;
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 800;
    padding: 0.85rem 1rem;
}

.bibelleseplan__intro-body {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
}

.bibelleseplan__intro-row {
    margin: 0;
}

.bibelleseplan__intro-row dt {
    color: var(--bp-navy);
    font-weight: 800;
}

.bibelleseplan__intro-row dd {
    margin: 0.1rem 0 0;
}

.bibelleseplan__intro-row--christ {
    background: var(--bp-gold-soft);
    border-left: 4px solid var(--bp-gold);
    margin-left: -0.4rem;
    padding: 0.55rem 0.65rem;
}

.bibelleseplan__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
}

.bibelleseplan__keywords li {
    background: #edf3f7;
    border-radius: 999px;
    color: var(--bp-navy-soft);
    font-size: 0.82rem;
    padding: 0.22rem 0.55rem;
}

.bibelleseplan__section-list-title {
    border-bottom: 2px solid var(--bp-line);
    color: var(--bp-navy);
    font-size: 1.2rem;
    margin: 1.6rem 0 0.9rem;
    padding-bottom: 0.4rem;
}

.bibelleseplan__section {
    border: 1px solid var(--bp-line);
    border-radius: 12px;
    margin: 0 0 1rem;
    padding: 1rem;
}

.bibelleseplan__section-header {
    align-items: start;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
}

.bibelleseplan__section h4 {
    color: var(--bp-navy);
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0;
}

.bibelleseplan__verse-count {
    color: var(--bp-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.bibelleseplan__section .bibelleseplan__reference-list {
    margin: 0.65rem 0 0;
}

.bibelleseplan__section .bibelleseplan__reference {
    background: #f4f7f9;
    border-color: var(--bp-line);
    color: var(--bp-navy-soft);
    font-size: 0.83rem;
}

.bibelleseplan__questions {
    margin-top: 0.85rem;
}

.bibelleseplan__questions summary {
    color: var(--bp-navy-soft);
    cursor: pointer;
    font-weight: 800;
}

.bibelleseplan__questions ol {
    margin: 0.75rem 0 0;
    padding-left: 1.5rem;
}

.bibelleseplan__questions li {
    margin-bottom: 0.55rem;
    padding-left: 0.25rem;
}

.bibelleseplan__questions li:last-child {
    background: var(--bp-gold-soft);
    border-left: 4px solid var(--bp-gold);
    color: #513b10;
    list-style-position: inside;
    margin-left: -1.45rem;
    padding: 0.55rem 0.65rem;
}

.bibelleseplan__notes {
    margin-top: 1.35rem;
}

.bibelleseplan__notes textarea {
    min-height: 130px;
    resize: vertical;
}

.bibelleseplan__local-note {
    border-top: 1px solid var(--bp-line);
    color: var(--bp-muted);
    font-size: 0.8rem;
    margin: 0;
    padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
}

@media (max-width: 720px) {
    .bibelleseplan {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .bibelleseplan__nav-buttons > .bibelleseplan__button {
        flex: 1 1 calc(50% - 0.4rem);
        order: 2;
    }

    .bibelleseplan__day-select-label {
        flex-basis: 100%;
        order: 1;
    }

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

    .bibelleseplan__day-head {
        display: block;
    }

    .bibelleseplan__complete {
        margin-top: 0.8rem;
        width: fit-content;
    }
}

@media print {
    .bibelleseplan {
        border: 0;
        box-shadow: none;
    }

    .bibelleseplan__navigation,
    .bibelleseplan__progress,
    .bibelleseplan__local-note,
    .bibelleseplan__complete {
        display: none !important;
    }

    .bibelleseplan__header {
        background: #fff;
        border-bottom: 3px solid var(--bp-gold);
        color: var(--bp-navy);
    }

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