/* ============================================================
   PROJECT: MackIve.com (site43-de) – IV.MIL Onderhoud
   CSS ARCHITECTURE: OOCSS (Object + Skin)
   PALETTE: Riviera (sand, sea, sunset, breeze)
   EFFECT: Gradient Mesh
   TYPOGRAPHY: Playfair Display + Lato
   BUTTON STYLE: Gradient Fill
   ============================================================ */

:root {
    --riv-sand: #f4e4c1;
    --riv-sea: #0077be;
    --riv-sunset: #e8a75c;
    --riv-breeze: #b8d4e8;
    --riv-deep: #003d5c;
    --riv-cream: #fffdd0;
    --riv-text: #2c3e50;
    --riv-muted: #5d6d7e;
    --riv-border: rgba(0, 61, 92, 0.15);
    --riv-shadow: rgba(0, 61, 92, 0.08);
    --header-height: 76px;
    font-size: clamp(15px, 1.05vw, 17px);
}

*, *::before, *::after { box-sizing: border-box; max-width: 100%; }

html, body {
    margin: 0; padding: 0; width: 100% !important; overflow-x: hidden !important;
    background: var(--riv-cream); color: var(--riv-text); font-family: 'Lato', sans-serif;
    scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Layout */
.l-wrap { width: min(1140px, 92vw); margin: 0 auto; padding: 0 1rem; }

/* Object: Header */
.riv-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 253, 208, 0.98), rgba(244, 228, 193, 0.98));
    border-bottom: 2px solid var(--riv-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem; height: var(--header-height); gap: 1.5rem;
}

.riv-header__brand { display: flex; align-items: center; gap: 0.75rem; }

.riv-header__home {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--riv-deep);
}

.riv-badge {
    display: inline-flex; padding: 0.25rem 0.6rem; border-radius: 8px;
    background: linear-gradient(135deg, var(--riv-sea), var(--riv-breeze));
    color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
}

.riv-burger {
    display: none; width: 44px; height: 44px; border: 2px solid var(--riv-border); border-radius: 8px;
    background: var(--riv-cream); color: var(--riv-deep); cursor: pointer; position: relative;
}

.riv-burger span {
    position: absolute; left: 10px; right: 10px; height: 2px; background: var(--riv-deep);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.riv-burger span:nth-child(1) { top: 14px; }
.riv-burger span:nth-child(2) { top: 21px; }
.riv-burger span:nth-child(3) { top: 28px; }

.riv-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.riv-burger.is-open span:nth-child(2) { opacity: 0; }
.riv-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.riv-nav { display: flex; align-items: center; }
.riv-nav__list {
    display: flex; align-items: center; gap: 1.2rem; list-style: none; margin: 0; padding: 0;
}

.riv-nav__link { padding: 0.25rem 0; font-weight: 600; color: var(--riv-text); transition: color 0.2s ease; }
.riv-nav__link:hover { color: var(--riv-sea); }

main { padding-top: var(--header-height); }

/* Hero – Gradient Mesh */
.riv-hero {
    position: relative; overflow: hidden;
    padding: clamp(100px, 18vw, 150px) 0 clamp(60px, 12vw, 90px);
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 119, 190, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(232, 167, 92, 0.15) 0%, transparent 45%),
        linear-gradient(180deg, var(--riv-cream) 0%, var(--riv-sand) 50%, var(--riv-cream) 100%);
    background-attachment: scroll;
}

.riv-hero__content { position: relative; z-index: 2; max-width: 640px; }

.riv-hero__title {
    font-family: 'Playfair Display', serif; font-size: clamp(1.85rem, 4.2vw, 2.6rem); font-weight: 700;
    margin-bottom: 1rem; color: var(--riv-deep); line-height: 1.28;
}

.riv-hero__subtitle {
    color: var(--riv-muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.5rem;
}

.riv-hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
.riv-hero__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.riv-title {
    font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3.2vw, 2rem); font-weight: 700;
    margin-bottom: 1rem; color: var(--riv-deep);
}

.riv-lead { margin: 0 0 2rem; color: var(--riv-muted); line-height: 1.7; }

.riv-tag {
    display: inline-flex; align-items: center; padding: 0.35rem 0.8rem; border-radius: 999px;
    background: rgba(0, 119, 190, 0.1); color: var(--riv-deep); font-size: 0.85rem; font-weight: 600;
}

/* Buttons – Gradient Fill */
.riv-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.65rem 1.4rem; border: none; border-radius: 10px;
    font-family: 'Lato', sans-serif; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative; overflow: hidden;
}

.riv-btn--primary {
    background: linear-gradient(135deg, var(--riv-sea), var(--riv-deep));
    color: #fff; box-shadow: 0 4px 14px var(--riv-shadow);
}

.riv-btn--primary:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 61, 92, 0.2);
}

.riv-btn--secondary {
    background: linear-gradient(135deg, var(--riv-sunset), #d4893a);
    color: #fff; box-shadow: 0 4px 14px var(--riv-shadow);
}

.riv-btn--secondary:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232, 167, 92, 0.3);
}

/* Benefits */
.riv-benefits { padding: 3rem 0; }
.riv-benefits__grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.2rem, 3vw, 2rem);
    margin: 0 auto; max-width: 1100px;
}

.riv-benefit-card {
    flex: 1 1 280px; max-width: 340px;
    padding: 1.5rem; border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(244, 228, 193, 0.4));
    border: 1px solid var(--riv-border); box-shadow: 0 8px 24px var(--riv-shadow);
}

.riv-benefit-card__title {
    font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
    margin-bottom: 0.6rem; color: var(--riv-deep);
}

.riv-benefit-card p { margin: 0; color: var(--riv-muted); line-height: 1.6; font-size: 0.95rem; }

/* Games grid – one row (3 cards in a line) */
.riv-games { padding: 3rem 0; }
.riv-games__grid {
    display: flex; flex-wrap: nowrap; justify-content: center; align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem); max-width: 1200px; margin: 0 auto;
}

.riv-game-card {
    flex: 1 1 0; min-width: 0; max-width: 380px;
    border-radius: 16px; overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(244, 228, 193, 0.3));
    border: 1px solid var(--riv-border); box-shadow: 0 8px 24px var(--riv-shadow);
}

.riv-game-card__thumb-wrap {
    display: block; padding: 1rem; text-align: center; background: rgba(0, 61, 92, 0.04);
}

.riv-game-card__thumb {
    width: 256px; height: 256px; object-fit: contain; margin: 0 auto; border-radius: 12px; display: block;
}

.riv-game-card__body { padding: 1.25rem; }
.riv-game-card__title {
    font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700;
    margin-bottom: 0.5rem; color: var(--riv-deep);
}

.riv-game-card__text { margin: 0 0 0.75rem; color: var(--riv-muted); font-size: 0.95rem; line-height: 1.5; }
.riv-game-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.riv-game-card .riv-btn { width: 100%; }

/* FAQ */
.riv-faq { padding: 3rem 0; }
.riv-faq__item {
    margin-bottom: 0.75rem; border: 1px solid var(--riv-border); border-radius: 12px;
    background: rgba(255,255,255,0.7); overflow: hidden;
}

.riv-faq__item summary {
    padding: 1rem 1.25rem; font-weight: 700; color: var(--riv-deep); cursor: pointer;
    list-style: none;
}

.riv-faq__item summary::-webkit-details-marker { display: none; }
.riv-faq__item[open] summary { border-bottom: 1px solid var(--riv-border); }
.riv-faq__item p { margin: 0; padding: 1rem 1.25rem; color: var(--riv-muted); line-height: 1.6; }

/* Disclaimer */
.riv-disclaimer {
    padding: 2.5rem 0; background: linear-gradient(135deg, rgba(0, 61, 92, 0.08), rgba(0, 119, 190, 0.06));
    border-top: 2px solid var(--riv-border);
}

.riv-disclaimer__title {
    font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700;
    margin-bottom: 1rem; color: var(--riv-deep);
}

.riv-disclaimer p { margin: 0 0 0.75rem; color: var(--riv-text); line-height: 1.6; font-size: 0.95rem; }
.riv-disclaimer a { color: var(--riv-sea); text-decoration: underline; }
.riv-disclaimer__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

/* Footer */
.riv-footer {
    padding: 2.5rem 0; background: var(--riv-deep); color: var(--riv-breeze);
}

.riv-footer__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; margin-bottom: 2rem;
}

.riv-footer__heading {
    font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
    margin-bottom: 0.75rem; color: var(--riv-sand);
}

.riv-footer__link { display: block; padding: 0.25rem 0; color: var(--riv-breeze); transition: color 0.2s; }
.riv-footer__link:hover { color: var(--riv-sand); }
.riv-footer__section p { margin: 0.25rem 0; font-size: 0.95rem; }
.riv-footer__logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.riv-footer__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.riv-footer__logo {
    height: 35px !important; width: auto !important; max-width: 120px !important;
    background: rgba(255,255,255,0.95); padding: 6px 10px; border-radius: 8px;
    object-fit: contain; border: 1px solid rgba(255,255,255,0.3);
}
.riv-footer__logo:hover { opacity: 1; }
.riv-footer__age { height: 40px; width: auto; }
.riv-footer__legal { text-align: center; font-size: 0.9rem; color: var(--riv-breeze); margin: 0; }

/* Age gate & Cookie */
.riv-age {
    position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 61, 92, 0.92); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}

.riv-age.state-visible { opacity: 1; visibility: visible; }

.riv-age__window {
    width: min(420px, 92vw); padding: 2rem; border-radius: 20px;
    background: linear-gradient(145deg, var(--riv-cream), var(--riv-sand));
    border: 2px solid var(--riv-border); box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.riv-age__header { margin-bottom: 1.25rem; }
.riv-age__title { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin: 0; color: var(--riv-deep); }
.riv-age__content p { margin: 0 0 0.75rem; color: var(--riv-text); line-height: 1.5; }
.riv-age__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.riv-cookie {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    max-width: 350px; padding: 1.25rem; border-radius: 16px;
    background: linear-gradient(135deg, var(--riv-deep), #004d73);
    color: var(--riv-breeze); border: 2px solid var(--riv-sea);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}

.riv-cookie.state-visible { opacity: 1; visibility: visible; }
.riv-cookie p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.riv-cookie a { color: var(--riv-sunset); text-decoration: underline; }
.riv-cookie__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Mobile */
@media (max-width: 960px) {
    :root { --header-height: 62px; }
    .riv-burger { display: flex; align-items: center; justify-content: center; }
    .riv-nav { display: none; }
    .riv-nav.state-open {
        display: block; position: fixed; top: calc(var(--header-height) - 1px); left: 0; right: 0;
        background: linear-gradient(180deg, var(--riv-cream), var(--riv-sand));
        border-bottom: 2px solid var(--riv-border); padding: 1.5rem; max-height: calc(100vh - var(--header-height));
        overflow-y: auto; z-index: 999;
    }
    .riv-nav__list { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .riv-nav__link { padding: 0.5rem 0; display: block; }
    .riv-games__grid { flex-direction: column; align-items: center; }
    .riv-game-card { width: 100%; max-width: 400px; }
    .riv-cookie { left: 15px; right: 15px; bottom: 15px; max-width: none; }
}

/* Inner pages */
.riv-page .riv-hero { padding: clamp(90px, 14vw, 120px) 0 clamp(40px, 8vw, 60px); }
.riv-content { padding: 2rem 0 3rem; max-width: 720px; margin: 0 auto; }
.riv-content h2 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin: 1.5rem 0 0.75rem; color: var(--riv-deep); }
.riv-content p { margin: 0 0 1rem; color: var(--riv-text); line-height: 1.65; }
.riv-content a { color: var(--riv-sea); text-decoration: underline; }
.riv-content a.riv-btn { text-decoration: none; }
.riv-content h4 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin: 1.25rem 0 0.5rem; color: var(--riv-deep); }
.riv-review-block { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--riv-border); }
.riv-review-block:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.riv-review-block__title { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin: 0 0 0.25rem; color: var(--riv-deep); }
.riv-review-block__meta { margin: 0 0 1rem; font-size: 0.9rem; color: var(--riv-muted); }
.riv-breadcrumb { margin-bottom: 0.5rem; font-size: 0.9rem; }
.riv-breadcrumb a { color: var(--riv-sea); text-decoration: none; }
.riv-breadcrumb a:hover { text-decoration: underline; }

/* Account: tabs & forms */
.riv-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.riv-tabs__tab {
    padding: 0.6rem 1.2rem; border: 2px solid var(--riv-border); border-radius: 10px;
    background: var(--riv-cream); color: var(--riv-deep); font-weight: 700; cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.riv-tabs__tab.state-active { background: linear-gradient(135deg, var(--riv-sea), var(--riv-deep)); color: #fff; border-color: var(--riv-deep); }
.riv-panel { display: none; padding: 1.5rem; border: 1px solid var(--riv-border); border-radius: 12px; background: rgba(255,255,255,0.7); }
.riv-panel.state-visible { display: block; }
.riv-form-group { margin-bottom: 1rem; }
.riv-form-group label { display: block; margin-bottom: 0.35rem; font-weight: 600; color: var(--riv-deep); }
.riv-form-group input, .riv-form-group textarea {
    width: 100%; padding: 0.65rem 1rem; border: 2px solid var(--riv-border); border-radius: 10px;
    font-family: 'Lato', sans-serif; font-size: 1rem; background: #fff;
}
.form-status { margin-top: 0.75rem; font-size: 0.95rem; color: var(--riv-sea); min-height: 1.5em; }
.form-status.state-visible { display: block; }

/* Account page: center hero and forms */
.riv-page--account .riv-hero .l-wrap { text-align: center; }
.riv-page--account .riv-hero__title,
.riv-page--account .riv-hero__subtitle { text-align: center; }
.riv-content--account .riv-title,
.riv-content--account .riv-lead { text-align: center; }
.riv-content--account .riv-tabs { justify-content: center; }
.riv-content--account .riv-panel { margin-left: auto; margin-right: auto; max-width: 440px; }

/* Blog / Guides / Reviews list */
.riv-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; align-items: stretch; }
.riv-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(244, 228, 193, 0.3)); border: 1px solid var(--riv-border); box-shadow: 0 8px 24px var(--riv-shadow); }
.riv-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.riv-card__body .riv-btn { margin-top: auto; }
.riv-card__title { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin: 0 0 0.5rem; }
.riv-card__title a { color: var(--riv-deep); }
.riv-card__title a:hover { color: var(--riv-sea); }
.riv-card__meta { font-size: 0.85rem; color: var(--riv-muted); margin-bottom: 0.5rem; }
.riv-card p { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.5; color: var(--riv-text); }

/* Blog: контрастная кнопка «Lesen» */
.riv-blog-content .riv-card .riv-btn--primary {
    background: linear-gradient(135deg, #0d3d5c, #0a2637);
    color: #fff;
    border: 2px solid #0a2637;
    box-shadow: 0 4px 14px rgba(10, 38, 55, 0.4);
}
.riv-blog-content .riv-card .riv-btn--primary:hover {
    background: linear-gradient(135deg, #0f4a6e, #0d3d5c);
    color: #fff;
    box-shadow: 0 6px 20px rgba(10, 38, 55, 0.5);
}

@media (max-width: 600px) {
    .riv-hero { padding-top: 100px; }
}
