/* ============================================================================
   OrangeBonus – Design-System der Unterseiten (PLAN Rev. 4, Schritt R1).
   Komplett neu; ersetzt die Fassung aus Schritt C0.

   Alle Klassen tragen das Präfix `ob-`. Die Casino-Karten selbst kommen aus
   /assets/casino_cards.css + /assets/ob-extensions.css und werden hier NICHT
   umgestylt — hier stehen nur Abstand, Rahmen der Kartensektion und die
   Rang-Plakette.

   Farben ausschließlich über die Tokens unten (plus Weiß-/Schwarz-Alphas).
   ========================================================================== */

:root {
    /* Basis-Tokens (PLAN Rev. 4, R1) */
    --ob-bg: #12161C;
    --ob-bg-2: #1a130e;
    --ob-card: #1f1a16;
    --ob-line: #ffffff14;
    --ob-text: #ffffffd9;
    --ob-muted: #ffffff99;
    --ob-orange: #f27022;
    --ob-orange-2: #f9a86f;
    --ob-green: #69bc52;

    /* Abgeleitete Tokens: identische RGB-Werte wie oben, nur mit Alpha. */
    --ob-orange-05: rgba(242, 112, 34, 0.05);
    --ob-orange-10: rgba(242, 112, 34, 0.1);
    --ob-orange-18: rgba(242, 112, 34, 0.18);
    --ob-orange-35: rgba(242, 112, 34, 0.35);
    --ob-green-10: rgba(105, 188, 82, 0.1);
    --ob-green-35: rgba(105, 188, 82, 0.35);

    /* Maße */
    --ob-w-text: 760px;
    --ob-w-wide: 1200px;
    --ob-r-s: 10px;
    --ob-r-m: 14px;
    --ob-r-l: 20px;
}

/* ===== Grundlayout ======================================================== */

body.ob-page {
    background-color: var(--ob-bg);
    color: var(--ob-text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.ob-page .ob-wrap {
    width: 100%;
    max-width: var(--ob-w-text);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.ob-page .ob-wrap-wide {
    width: 100%;
    max-width: var(--ob-w-wide);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.ob-page-main { display: block; }

/* ===== Kopfzeile ========================================================== */

.ob-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--ob-w-wide);
    margin: 0 auto;
    padding: 16px 20px;
    box-sizing: border-box;
}

.ob-page-logo {
    display: inline-flex;
    flex: 0 0 auto;
}

.ob-page-logo img {
    display: block;
    width: 172px;
    height: auto;
}

.ob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ob-orange-2) 0%, var(--ob-orange) 60%);
    color: #000;
    font-family: Outfit, Inter, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ob-btn:hover,
.ob-btn:focus-visible {
    color: #000;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px var(--ob-orange-18);
}

.ob-btn-ghost {
    background: transparent;
    border-color: var(--ob-line);
    color: var(--ob-text);
}

.ob-btn-ghost:hover,
.ob-btn-ghost:focus-visible {
    border-color: var(--ob-orange-35);
    color: #fff;
    box-shadow: none;
}

/* ===== Hero =============================================================== */

.ob-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--ob-line);
    background:
        radial-gradient(120% 130% at 88% -25%, var(--ob-orange-18) 0%, rgba(0, 0, 0, 0) 58%),
        linear-gradient(180deg, var(--ob-bg-2) 0%, var(--ob-bg) 72%);
    padding: 28px 0 clamp(34px, 6vw, 60px);
}

.ob-breadcrumb { margin: 0 0 22px; }

.ob-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--ob-muted);
}

.ob-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: var(--ob-muted);
}

.ob-breadcrumb a {
    color: var(--ob-orange-2);
    text-decoration: none;
}

.ob-breadcrumb a:hover { text-decoration: underline; }

.ob-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--ob-orange-2);
    font-family: Outfit, Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ob-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ob-orange);
    box-shadow: 0 0 0 4px var(--ob-orange-18);
}

.ob-h1 {
    margin: 0 0 18px;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.08;
    text-wrap: balance;
}

.ob-h1 .ob-hl { color: var(--ob-orange); }

.ob-lead {
    margin: 0;
    max-width: 62ch;
    color: var(--ob-muted);
    font-size: 18px;
    line-height: 1.7;
}

.ob-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.ob-trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--ob-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--ob-muted);
    font-size: 13px;
    line-height: 1.3;
}

.ob-trust svg { flex: 0 0 auto; color: var(--ob-orange); }

/* ===== Sektionen & Typografie ============================================ */

.ob-section { padding: clamp(38px, 5vw, 56px) 0 0; }
.ob-section:last-of-type { padding-bottom: 8px; }

.ob-section-head { margin: 0 0 22px; }

.ob-section h2,
.ob-h2 {
    margin: 0 0 12px;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.18;
}

.ob-section-head h2::before,
.ob-h2::before {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--ob-orange);
}

.ob-section h3 {
    margin: 26px 0 8px;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.ob-section-sub {
    margin: 0;
    max-width: 68ch;
    color: var(--ob-muted);
    font-size: 16px;
}

.ob-page p {
    margin: 0 0 16px;
    color: var(--ob-text);
}

.ob-page p:last-child { margin-bottom: 0; }

.ob-page strong,
.ob-page b { color: #fff; font-weight: 600; }

.ob-page .ob-wrap a,
.ob-page .ob-wrap-wide a {
    color: var(--ob-orange-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.ob-page .ob-wrap a:hover,
.ob-page .ob-wrap-wide a:hover { color: var(--ob-orange); }

.ob-page .ob-wrap a.ob-btn,
.ob-page .ob-wrap-wide a.ob-btn,
.ob-page .ob-wrap a.ob-topic-card,
.ob-page .ob-breadcrumb a,
.ob-page .ob-author a,
.ob-page .ob-footer-nav a { text-decoration: none; }

.ob-page a.ob-btn { color: #000; }
.ob-page a.ob-btn-ghost { color: var(--ob-text); }

.ob-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.ob-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 26px;
    color: var(--ob-text);
}

.ob-list li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--ob-orange);
    transform: rotate(45deg);
}

.ob-list li:last-child { margin-bottom: 0; }

/* ===== Top-5-Kartensektion + Rang-Plaketten ============================== */

.ob-top5 .ob-section-head { text-align: left; }

.ob-top5 .bonus_box {
    counter-reset: ob-rank;
    margin-bottom: 0;
    align-items: stretch;
}

/* Root-Element einer gerenderten Karte ist `.card-second`
   (siehe createBrandCard in casino_cards_new.js). Nur diese zählen —
   Tab-Leiste und Cross-Promo bleiben außen vor. */
.ob-page .bonus_box > .card-second {
    counter-increment: ob-rank;
    position: relative;
    padding-top: 46px;
}

.ob-page .bonus_box > .card-second::before {
    content: "#" counter(ob-rank);
    position: absolute;
    top: 12px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ob-orange-2) 0%, var(--ob-orange) 70%);
    color: #000;
    font-family: Outfit, Inter, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Cross-Promo-Banner von orangemorange.de gehört auf die Startseite,
   nicht in die kuratierte Top-5-Liste der Unterseiten. */
.ob-page .ob-promo { display: none !important; }

/* ===== Vergleichstabelle ================================================= */

.ob-table-wrap {
    margin: 0;
    overflow-x: auto;
    border: 1px solid var(--ob-line);
    border-radius: var(--ob-r-m);
    background: var(--ob-card);
    -webkit-overflow-scrolling: touch;
}

.ob-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 15px;
}

.ob-table caption {
    padding: 12px 16px;
    color: var(--ob-muted);
    font-size: 13px;
    text-align: left;
}

.ob-table th,
.ob-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--ob-line);
    text-align: left;
    vertical-align: top;
    color: var(--ob-text);
}

.ob-table thead th {
    background: var(--ob-orange-10);
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ob-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.ob-table tbody tr:last-child td { border-bottom: none; }

.ob-table tbody th[scope="row"],
.ob-table td:first-child {
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

.ob-table .ob-tag {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid var(--ob-orange-35);
    border-radius: 999px;
    background: var(--ob-orange-10);
    color: var(--ob-orange-2);
    font-family: Outfit, Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ob-table-note {
    margin: 10px 0 0;
    color: var(--ob-muted);
    font-size: 13.5px;
}

/* ===== Pro / Contra ====================================================== */

.ob-procon {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ob-procon-col {
    padding: 20px 22px;
    border: 1px solid var(--ob-line);
    border-radius: var(--ob-r-m);
    background: var(--ob-card);
}

.ob-procon-col h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 17px;
}

.ob-procon-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ob-procon-col li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
    color: var(--ob-text);
    font-size: 15.5px;
    line-height: 1.6;
}

.ob-procon-col li:last-child { margin-bottom: 0; }
.ob-procon-col li svg { flex: 0 0 auto; margin-top: 3px; }

.ob-procon-pro { border-color: var(--ob-green-35); }
.ob-procon-pro h3 svg,
.ob-procon-pro li svg { color: var(--ob-green); }
.ob-procon-pro h3 { color: #fff; }

.ob-procon-con { border-color: var(--ob-orange-35); }
.ob-procon-con h3 svg,
.ob-procon-con li svg { color: var(--ob-orange); }

/* ===== Schritte ========================================================== */

.ob-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ob-step;
}

.ob-steps li {
    position: relative;
    counter-increment: ob-step;
    margin-bottom: 14px;
    padding: 16px 20px 16px 66px;
    border: 1px solid var(--ob-line);
    border-radius: var(--ob-r-m);
    background: var(--ob-card);
}

.ob-steps li:last-child { margin-bottom: 0; }

.ob-steps li::before {
    content: counter(ob-step);
    position: absolute;
    top: 16px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ob-orange-2) 0%, var(--ob-orange) 70%);
    color: #000;
    font-family: Outfit, Inter, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.ob-steps h3 {
    margin: 0 0 4px;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.ob-steps p {
    margin: 0;
    color: var(--ob-muted);
    font-size: 15.5px;
}

/* ===== Callout =========================================================== */

.ob-callout {
    margin: 22px 0 0;
    padding: 18px 20px 18px 22px;
    border: 1px solid var(--ob-line);
    border-left: 3px solid var(--ob-orange);
    border-radius: var(--ob-r-s);
    background: var(--ob-orange-05);
}

.ob-callout p { margin: 0; color: var(--ob-text); font-size: 15.5px; }
.ob-callout p + p { margin-top: 10px; }

.ob-callout-title {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

/* ===== Code-Pille (kopierbar) ============================================ */

.ob-code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px dashed var(--ob-orange-35);
    border-radius: 999px;
    background: var(--ob-orange-10);
    color: #fff;
    cursor: pointer;
    font-family: Outfit, Inter, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ob-code:hover,
.ob-code:focus-visible { border-color: var(--ob-orange); background: var(--ob-orange-18); }

.ob-code .ob-code-hint {
    color: var(--ob-orange-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ob-code.is-copied { border-style: solid; border-color: var(--ob-green); }
.ob-code.is-copied .ob-code-hint { color: var(--ob-green); }

/* ===== FAQ =============================================================== */

.ob-faq {
    border-top: 1px solid var(--ob-line);
}

.ob-faq details {
    border-bottom: 1px solid var(--ob-line);
}

.ob-faq summary {
    position: relative;
    display: block;
    padding: 18px 46px 18px 0;
    cursor: pointer;
    list-style: none;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.ob-faq summary::-webkit-details-marker { display: none; }

.ob-faq summary h3 {
    display: inline;
    margin: 0;
    color: inherit;
    font: inherit;
}

.ob-faq summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border: 1px solid var(--ob-line);
    border-radius: 50%;
    background:
        linear-gradient(var(--ob-orange), var(--ob-orange)) center / 11px 2px no-repeat,
        linear-gradient(var(--ob-orange), var(--ob-orange)) center / 2px 11px no-repeat;
    transition: transform 0.2s ease;
}

.ob-faq details[open] summary::after {
    transform: rotate(90deg);
    background:
        linear-gradient(var(--ob-orange), var(--ob-orange)) center / 11px 2px no-repeat;
}

.ob-faq summary:hover { color: var(--ob-orange-2); }

.ob-faq details > p {
    margin: 0 0 18px;
    max-width: 68ch;
    color: var(--ob-muted);
    font-size: 15.5px;
}

/* ===== CTA-Box =========================================================== */

.ob-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: clamp(38px, 5vw, 56px) 0 0;
    padding: 26px 26px;
    border: 1px solid var(--ob-orange-35);
    border-radius: var(--ob-r-l);
    background:
        radial-gradient(90% 160% at 100% 0%, var(--ob-orange-18) 0%, rgba(0, 0, 0, 0) 62%),
        var(--ob-card);
}

.ob-cta-text { flex: 1 1 320px; }

.ob-cta h2,
.ob-cta h3 {
    margin: 0 0 6px;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.ob-cta h2::before { content: none; }
.ob-cta p { margin: 0; color: var(--ob-muted); font-size: 15.5px; }

/* ===== Autor-/Vertrauensbox ============================================== */

.ob-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: clamp(38px, 5vw, 56px) 0 0;
    padding: 22px;
    border: 1px solid var(--ob-line);
    border-radius: var(--ob-r-l);
    background: var(--ob-card);
}

.ob-author-photo {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border: 2px solid var(--ob-orange-35);
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    background: var(--ob-bg-2);
}

.ob-author-body { flex: 1 1 260px; min-width: 0; }

.ob-author-name {
    margin: 0 0 4px;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.ob-author-role {
    margin: 0 0 10px;
    color: var(--ob-muted);
    font-size: 15px;
}

.ob-author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ob-author-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 14px;
    border: 1px solid var(--ob-line);
    border-radius: 999px;
    color: var(--ob-text);
    font-size: 13.5px;
    font-weight: 600;
}

.ob-author-links a:hover,
.ob-author-links a:focus-visible {
    border-color: var(--ob-orange-35);
    color: var(--ob-orange-2);
}

/* ===== Themen-Kacheln ==================================================== */

.ob-page .ob-topic-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: clamp(38px, 5vw, 56px) 0 0;
}

.ob-page .ob-topic-title {
    grid-column: 1 / -1;
    margin: 0 0 6px;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.18;
}

.ob-page .ob-topic-card {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--ob-line);
    border-radius: var(--ob-r-m);
    background: var(--ob-card);
    color: var(--ob-muted);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.ob-page .ob-topic-card:hover,
.ob-page .ob-topic-card:focus-visible {
    border-color: var(--ob-orange-35);
    color: var(--ob-muted);
    transform: translateY(-2px);
}

.ob-page .ob-topic-card strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.ob-page .ob-topic-card:hover strong { color: var(--ob-orange-2); }

.ob-page .ob-topic-card span {
    display: block;
    color: var(--ob-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* ===== Footer-Abschluss ================================================== */

.ob-page section.footer { margin-top: clamp(44px, 6vw, 68px); }

/* ===== Sichtbarer Fokus ================================================== */

.ob-page a:focus-visible,
.ob-page summary:focus-visible,
.ob-page .ob-code:focus-visible {
    outline: 2px solid var(--ob-orange-2);
    outline-offset: 3px;
}

/* ===== Breakpoints ======================================================= */

@media (min-width: 700px) {
    .ob-procon { grid-template-columns: 1fr 1fr; }
    .ob-page .ob-topic-links { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
    .ob-hero { padding-top: 34px; }
}

@media (max-width: 640px) {
    body.ob-page { font-size: 15.5px; }
    .ob-page-logo img { width: 142px; }
    .ob-btn { padding: 10px 16px; font-size: 14px; }
    .ob-lead { font-size: 16.5px; }
    .ob-steps li { padding: 14px 16px 16px 58px; }
    .ob-steps li::before { top: 14px; left: 14px; width: 30px; height: 30px; }
    .ob-cta { padding: 22px 18px; }
    .ob-author { gap: 16px; padding: 18px; }
    .ob-author-photo { width: 66px; height: 66px; }
    .ob-faq summary { font-size: 16px; padding-right: 40px; }
    .ob-page .bonus_box > .card-second::before { top: 10px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .ob-page * { transition: none !important; }
}
