/* Bestes Online Casino DE — responsive layout */
:root {
    --bg: #0f1419;
    --surface: #1a222c;
    --text: #e8edf2;
    --muted: #9aa7b2;
    --accent: #c9a227;
    --accent-soft: rgba(201, 162, 39, 0.15);
    --border: #2a3542;
    --focus: #6eb5ff;
    --maxw: 68rem;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    min-width: 0;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover {
    color: #e4c04a;
}

a:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.age-strip {
    background: var(--accent-soft);
    color: var(--text);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    font: inherit;
    cursor: pointer;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--focus);
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    align-items: center;
}

.site-nav__link {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav__link.is-active {
    color: var(--bg);
    background: var(--accent);
    font-weight: 600;
}

.main {
    max-width: 68rem;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.article {
    max-width: var(--maxw);
    min-width: 0;
    width: 100%;
}

.article h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
    margin: 0 0 1rem;
    font-weight: 700;
}

.article h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-weight: 650;
}

.article h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.article h3 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
}

.article p {
    margin: 0 0 1rem;
    color: var(--text);
}

.article ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.article li {
    margin-bottom: 0.35rem;
}

.table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    margin: 0 0 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    box-sizing: border-box;
}

.article table {
    width: max-content;
    min-width: 36rem;
    max-width: none;
    border-collapse: collapse;
    font-size: 0.88rem;
}

@media (max-width: 48rem) {
    .article--main .table-wrap {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        position: relative;
        left: 0;
    }
}

.article th,
.article td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.article thead th {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
}

.article tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.article--page h1 {
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.site-footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

.site-footer__warn {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.site-footer__legal {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.site-footer__copy {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

@media (max-width: 48rem) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        width: 100%;
        display: none;
        padding-top: 0.5rem;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav__link {
        padding: 0.6rem 0.75rem;
    }
}

@media (min-width: 48.01rem) {
    .site-nav {
        display: block !important;
    }
}

/* ── Offer cards ── */
.offer-showcase {
    margin: 0 0 2rem;
}

.offer-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.offer-card {
    display: grid;
    grid-template-columns: 2.25rem 160px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 1.1rem;
    padding: 0.95rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.15s;
}

.offer-card:hover {
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: 0 4px 18px rgba(201, 162, 39, 0.08);
}

.offer-card:hover::before {
    opacity: 1;
}

.offer-card__rank {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--bg);
    background: var(--accent);
    border-radius: 50%;
    margin: 0;
}

.offer-card__logo {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.offer-card__logo img {
    max-height: 42px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}

.offer-card__name {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    align-self: end;
}

.offer-card__bonus {
    grid-column: 3;
    grid-row: 2;
    margin: 0;
    font-size: 0.88rem;
    color: var(--accent);
    font-weight: 500;
    align-self: start;
}

.offer-card__cta {
    grid-column: 4;
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    color: var(--bg);
    background: var(--accent);
    border-radius: 8px;
    transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}

.offer-card__cta:hover {
    color: var(--bg);
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
}

.offer-card__cta:active {
    transform: translateY(0);
}

@media (max-width: 40rem) {
    .offer-card {
        grid-template-columns: 2.1rem 1fr;
        grid-template-rows: auto auto auto auto;
        row-gap: 0.55rem;
        padding: 0.95rem;
    }

    .offer-card__logo {
        grid-column: 2;
        grid-row: 1;
        height: 46px;
        justify-content: flex-start;
    }

    .offer-card__name {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
    }

    .offer-card__bonus {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .offer-card__cta {
        grid-column: 1 / 3;
        grid-row: 4;
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .offer-card__rank {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }
}

.offer-disclaimer {
    font-size: 0.85rem;
    color: var(--muted);
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 0.6rem 0.9rem;
    margin: 1rem 0 1.5rem;
}
