@import url('/custom/assets/fonts/fonts.css');

/* ================================================
   jackpot-king.com — Royal Casino / Art Déco
   Fraunces (Headlines) + Hanken Grotesk (Text)
   Brand: #AA1E38 Crimson · Gold · Ivory
   ================================================ */

:root {
    --c-primary:       #AA1E38;
    --c-primary-dark:  #82132a;
    --c-primary-deep:  #5a0c1d;
    --c-primary-pale:  #f8e9ec;

    --c-gold:          #d9a93f;
    --c-gold-light:    #f1d27f;
    --c-gold-dark:     #a67c1c;

    --c-ink:           #1a0b10;
    --c-ink-soft:      #2b141b;
    --c-text:          #2b1d21;
    --c-text-muted:    #6d5a5f;
    --c-bg:            #fbf6ec;
    --c-bg-card:       #fffdf8;
    --c-border:        #e8dcc4;
    --c-white:         #ffffff;

    --outer-mainmenu-bg: #fffdf8;

    --f-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --f-body:    'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;

    --logo-h:      70px;
    --r-sm:        4px;
    --r-md:        10px;
    --r-lg:        18px;
    --t-fast:      160ms ease;
    --t-med:       280ms ease;
    --shadow-sm:   0 1px 3px rgba(26, 11, 16, 0.10);
    --shadow-md:   0 8px 24px rgba(26, 11, 16, 0.12);
    --shadow-lg:   0 18px 48px rgba(26, 11, 16, 0.22);
    --gold-grad:   linear-gradient(135deg, #f1d27f 0%, #d9a93f 45%, #a67c1c 100%);
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--c-text);
    background-color: var(--c-bg);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(170, 30, 56, 0.045) 1px, transparent 0);
    background-size: 22px 22px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.55em;
    line-height: 1.15;
    color: var(--c-ink);
    font-family: var(--f-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: 3px; }

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--c-gold);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

img { max-width: 100%; height: auto; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
li { margin-bottom: 0.35rem; }

::selection { background: var(--c-primary); color: var(--c-white); }

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* ================================================
   HEADER / NAVIGATION
   ================================================ */
.site-header,
.outer-mainmenu-container {
    position: relative;
    background: var(--outer-mainmenu-bg);
    background-image: linear-gradient(180deg, #ffffff 0%, #fbf3e2 100%);
    border-bottom: 3px solid var(--c-gold);
    box-shadow: 0 4px 0 var(--c-primary), var(--shadow-md);
    z-index: 20;
}

.site-header .navbar {
    padding: 0.5rem 0;
    min-height: calc(var(--logo-h) + 1rem);
}

.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo:hover { text-decoration: none; }

.site-header .logo {
    display: block;
    height: var(--logo-h);
    width: auto;
    filter: drop-shadow(0 3px 6px rgba(26, 11, 16, 0.18));
    transition: transform var(--t-med);
}
.nav-logo:hover .logo { transform: scale(1.03) rotate(-1deg); }

.nav-logo-text {
    font-family: var(--f-heading);
    font-size: 1.6rem;
    color: var(--c-primary);
}

.site-header .navbar-nav { gap: 0.25rem; align-items: center; }

.site-header .nav-link {
    position: relative;
    padding: 0.6rem 1.1rem;
    font-family: var(--f-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-ink);
    transition: color var(--t-fast);
}
.site-header .nav-link::before,
.site-header .nav-link::after {
    content: '';
    position: absolute;
    left: 1.1rem; right: 1.1rem;
    height: 2px;
    background: var(--gold-grad);
    transform: scaleX(0);
    transition: transform var(--t-med);
}
.site-header .nav-link::before { top: 0.2rem; transform-origin: left; }
.site-header .nav-link::after  { bottom: 0.2rem; transform-origin: right; }
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--c-primary); text-decoration: none; }
.site-header .nav-link:hover::before, .site-header .nav-link:hover::after,
.site-header .nav-link.active::before, .site-header .nav-link.active::after { transform: scaleX(1); }

.site-header .navbar-toggler {
    border: 2px solid var(--c-primary);
    border-radius: var(--r-md);
    padding: 0.5rem 0.65rem;
}
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(217, 169, 63, 0.4); }
.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23AA1E38' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.5rem 0 1rem;
        border-top: 1px solid var(--c-border);
    }
    .site-header .navbar-nav { align-items: stretch; }
    .site-header .nav-link { padding: 0.8rem 0.25rem; }
    .site-header .nav-link::before, .site-header .nav-link::after { left: 0.25rem; right: 0.25rem; }
    :root { --logo-h: 72px; }
}

/* ================================================
   BREADCRUMB
   ================================================ */
.breadcrumb-bar {
    background: var(--c-bg-card);
    border-bottom: 1px solid var(--c-border);
    padding: 0.7rem 0;
    font-size: 0.875rem;
}
.breadcrumb-bar .breadcrumb { margin: 0; padding: 0; background: none; flex-wrap: wrap; }
.breadcrumb-bar .breadcrumb-item a { color: var(--c-text-muted); font-weight: 600; }
.breadcrumb-bar .breadcrumb-item a:hover { color: var(--c-primary); }
.breadcrumb-bar .breadcrumb-item.active { color: var(--c-primary); font-weight: 700; }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: var(--c-gold-dark); }

/* ================================================
   HERO (Startseite)
   ================================================ */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 7.5rem);
    text-align: center;
    color: var(--c-white);
    background:
        radial-gradient(ellipse 70% 90% at 50% 0%, #c4264a 0%, var(--c-primary) 35%, var(--c-primary-deep) 100%);
}

/* Art-Déco Strahlen */
.hero-rays {
    position: absolute;
    inset: -40% -10% auto;
    height: 180%;
    background: repeating-conic-gradient(from 0deg at 50% 38%,
        rgba(241, 210, 127, 0.16) 0deg 4deg,
        transparent 4deg 12deg);
    -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 62%);
            mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 62%);
    animation: rays-spin 90s linear infinite;
    pointer-events: none;
}
@keyframes rays-spin { to { transform: rotate(360deg); } }

.hero-section::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 14px;
    background:
        linear-gradient(135deg, var(--c-bg) 25%, transparent 25%) -14px 0 / 28px 14px,
        linear-gradient(225deg, var(--c-bg) 25%, transparent 25%) -14px 0 / 28px 14px;
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }

.hero-badge {
    display: inline-block;
    margin-bottom: 1.4rem;
    padding: 0.4rem 1.3rem;
    border: 1px solid var(--c-gold);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-gold-light);
    background: rgba(26, 11, 16, 0.35);
}

.hero-section h1 {
    color: var(--c-white);
    text-wrap: balance;
    text-shadow: 0 3px 0 rgba(26, 11, 16, 0.35);
}

.hero-slogan {
    margin: 0 auto 2rem;
    font-family: var(--f-heading);
    font-style: italic;
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    color: var(--c-gold-light);
}

.hero-balls { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; }
.hero-balls span {
    display: grid;
    place-items: center;
    width: 3rem; height: 3rem;
    border-radius: 50%;
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--c-ink);
    background: radial-gradient(circle at 32% 28%, #fff6d6 0%, var(--c-gold) 55%, var(--c-gold-dark) 100%);
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.25), 0 6px 14px rgba(0, 0, 0, 0.35);
    animation: ball-in 0.7s cubic-bezier(.2, 1.4, .4, 1) backwards;
}
.hero-balls span:nth-child(2) { animation-delay: 0.08s; }
.hero-balls span:nth-child(3) { animation-delay: 0.16s; }
.hero-balls span:nth-child(4) { animation-delay: 0.24s; }
.hero-balls span:nth-child(5) { animation-delay: 0.32s; }
.hero-balls span:nth-child(6) { animation-delay: 0.40s; }
@keyframes ball-in {
    from { opacity: 0; transform: translateY(-40px) scale(0.5); }
}

/* ================================================
   INTRO / TEXT
   ================================================ */
.intro-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }

.intro-text {
    max-width: 820px;
    margin: 0 auto;
}
.intro-text h2 {
    position: relative;
    margin-top: 2.2rem;
    padding-bottom: 0.6rem;
}
.intro-text h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: 3px;
    background: var(--gold-grad);
}
.intro-text > h2:first-child { margin-top: 0; }
.intro-text > p:first-of-type::first-letter {
    float: left;
    margin: 0.08em 0.12em 0 0;
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: 4.4rem;
    line-height: 0.8;
    color: var(--c-primary);
}
.intro-text ul { list-style: none; padding: 0; }
.intro-text ul li {
    position: relative;
    margin-bottom: 0.8rem;
    padding: 0.9rem 1.1rem 0.9rem 2.6rem;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-primary);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}
.intro-text ul li::before {
    content: '♛';
    position: absolute;
    left: 0.85rem; top: 0.85rem;
    color: var(--c-gold-dark);
}
.intro-text strong { color: var(--c-primary-dark); }

/* ================================================
   VERGLEICHSTABELLE
   ================================================ */
.comparison-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); }

.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-title::before {
    content: '♛';
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
    color: var(--c-gold-dark);
}
.section-lead {
    max-width: 640px;
    margin: 0 auto 2.2rem;
    text-align: center;
    color: var(--c-text-muted);
}

.table-scroll {
    overflow-x: auto;
    border: 2px solid var(--c-ink);
    border-radius: var(--r-lg);
    background: var(--c-bg-card);
    box-shadow: 8px 8px 0 var(--c-primary);
}

table.overview { width: 100%; border-collapse: collapse; min-width: 640px; }

table.overview thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold-light);
    background: var(--c-ink);
}
table.overview thead th:last-child { text-align: center; }

table.overview tbody tr { border-top: 1px solid var(--c-border); transition: background var(--t-fast); }
table.overview tbody tr:first-child { border-top: 0; }
table.overview tbody tr:hover { background: var(--c-primary-pale); }
table.overview td { padding: 1.1rem 1.25rem; vertical-align: middle; }

.provider-cell { width: 190px; }
.provider-cell img { display: block; max-width: 150px; height: auto; }

.offers-cell ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.offers-cell li {
    margin: 0;
    padding: 0.2rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--c-primary-dark);
    background: var(--c-primary-pale);
    border: 1px solid rgba(170, 30, 56, 0.25);
    border-radius: 999px;
}

.action-cell { text-align: center; width: 160px; }

.btn-play {
    display: inline-block;
    padding: 0.65rem 1.3rem;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--c-ink);
    background: var(--gold-grad);
    border: 2px solid var(--c-ink);
    border-radius: var(--r-md);
    box-shadow: 3px 3px 0 var(--c-ink);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-play:hover {
    color: var(--c-ink);
    text-decoration: none;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--c-ink);
}

/* ================================================
   SEITEN (page.php)
   ================================================ */
.page-layout { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.page-body {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-top: 5px solid var(--c-primary);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
}
.page-body h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); padding-bottom: 0.6rem; border-bottom: 2px solid var(--c-gold); }
.page-body h2 { margin-top: 2rem; }
.page-body iframe { display: block; }
.page-body strong { color: var(--c-primary-dark); }

/* Formulare (core/Form.php) */
.cms-form label { font-weight: 700; margin-bottom: 0.3rem; }
.cms-form input[type=text], .cms-form input[type=email], .cms-form textarea, .cms-form select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font: inherit;
    background: var(--c-white);
    border: 2px solid var(--c-border);
    border-radius: var(--r-md);
}
.cms-form input:focus, .cms-form textarea:focus, .cms-form select:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(170, 30, 56, 0.2);
}
.cms-form [type=submit] {
    padding: 0.75rem 1.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-white);
    background: var(--c-primary);
    border: 2px solid var(--c-ink);
    border-radius: var(--r-md);
    box-shadow: 3px 3px 0 var(--c-ink);
    cursor: pointer;
}
.cms-form [type=submit]:hover { background: var(--c-primary-dark); }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    margin-top: auto;
    color: #d9cbb2;
    background: var(--c-ink);
    border-top: 3px solid var(--c-gold);
    box-shadow: inset 0 4px 0 var(--c-primary);
}
.footer-inner { padding: 3rem 0 1.5rem; }

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(217, 169, 63, 0.3);
}
.footer-site-name {
    margin: 0 0 0.3rem;
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--c-gold);
}
.footer-slogan { margin: 0; max-width: 380px; font-style: italic; color: #b9a98c; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.footer-nav a {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f3e8d4;
}
.footer-nav a:hover { color: var(--c-gold-light); }

.footer-bottom { padding-top: 1.4rem; font-size: 0.85rem; color: #a8977b; }
.footer-bottom p { margin: 0 0 0.4rem; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 767.98px) {
    body { font-size: 1rem; }
    .table-scroll { box-shadow: 5px 5px 0 var(--c-primary); }
    .hero-balls span { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
