@import url('/custom/assets/fonts/fonts.css');

/* ==========================================================================
   gewinnspiele-lotterien.com – "Los & Konfetti"
   Warmes Papier, dunkle Tinte, goldgelbe Akzente.
   ========================================================================== */

:root {
    --c-primary:        #F6C700;
    --c-primary-dark:   #D9AC00;
    --c-primary-soft:   #FFF1B3;
    --c-ink:            #17233F;
    --c-ink-soft:       #3A4668;
    --c-ink-muted:      #66708C;
    --c-paper:          #FBF6E9;
    --c-paper-deep:     #F3EAD2;
    --c-surface:        #FFFFFF;
    --c-line:           #E6DCC2;
    --c-accent:         #E4572E;
    --c-focus:          #2B59FF;

    --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --f-body:    'Hanken Grotesk', 'Segoe UI', Tahoma, sans-serif;

    --radius:    14px;
    --radius-sm: 8px;
    --shadow-s:  0 1px 2px rgba(23, 35, 63, .08), 0 4px 12px rgba(23, 35, 63, .06);
    --shadow-m:  0 2px 4px rgba(23, 35, 63, .08), 0 12px 32px rgba(23, 35, 63, .12);
    --header-h:  112px;
    --logo-h:    80px;
}

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--c-ink);
    background-color: var(--c-paper);
    background-image: radial-gradient(rgba(23, 35, 63, .055) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }

::selection { background: var(--c-primary); color: var(--c-ink); }

a { color: var(--c-ink); text-decoration-color: var(--c-primary-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: background-color .2s, text-decoration-color .2s; }
a:hover { color: var(--c-ink); background-color: var(--c-primary-soft); text-decoration-color: var(--c-ink); }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; height: auto; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 2000;
    background: var(--c-ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius-sm);
    text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; background: var(--c-ink); }

/* ---------- Header ---------- */
.site-header,
.outer-mainmenu-container {
    background-color: #FFFFFF;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 0;
    box-shadow: 0 1px 0 var(--c-line);
}
.site-header::after {
    content: ""; display: block; height: 6px;
    background:
        repeating-linear-gradient(135deg, var(--c-ink) 0 10px, transparent 10px 20px) 0 0 / 100% 2px no-repeat,
        var(--c-primary);
}
.site-header .navbar { padding: .6rem 0; min-height: var(--header-h); }

.nav-logo { display: inline-flex; align-items: center; text-decoration: none; background: none !important; }
.nav-logo .logo { height: var(--logo-h); width: auto; max-width: 100%; display: block; }
.nav-logo-text { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--c-ink); }

.navbar-nav { gap: .35rem; align-items: center; }
.site-header .nav-link {
    position: relative;
    font-weight: 600; font-size: 1rem; letter-spacing: .01em;
    color: var(--c-ink); padding: .55rem 1.05rem; border-radius: 999px;
    text-decoration: none;
    transition: background-color .2s, color .2s, transform .2s;
}
.site-header .nav-link:hover { background: var(--c-primary-soft); color: var(--c-ink); transform: translateY(-1px); }
.site-header .nav-link.active { background: var(--c-primary); color: var(--c-ink); box-shadow: inset 0 -2px 0 rgba(23, 35, 63, .25); }

.navbar-toggler { border: 2px solid var(--c-ink); border-radius: var(--radius-sm); padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--c-focus); }
.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='%2317233F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    :root { --logo-h: 64px; }
    #mainnavbar { padding: .75rem 0 1rem; }
    .navbar-nav { align-items: stretch; }
    .site-header .nav-link { padding: .8rem 1rem; border-radius: var(--radius-sm); }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { padding: 1rem 0 0; }
.breadcrumb { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--c-ink-muted); }
.breadcrumb-item + .breadcrumb-item::before { content: var(--bs-breadcrumb-divider, "›"); padding: 0 .55rem; color: var(--c-primary-dark); font-weight: 700; }
.breadcrumb-item a { color: var(--c-ink-soft); text-decoration: none; font-weight: 500; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--c-ink); font-weight: 600; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--c-ink);
    letter-spacing: -.01em;
    font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 2.6rem 0 .9rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
h4 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
p, ul, ol { margin: 0 0 1.15rem; }

/* ---------- Innenseiten ---------- */
.inner-wrapper { padding: 1.5rem 0 5rem; }
.page-body {
    position: relative;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 3.25rem);
    box-shadow: var(--shadow-m);
    overflow: hidden;
}
.page-body::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 8px;
    background: linear-gradient(90deg, var(--c-primary) 0 70%, var(--c-ink) 70% 100%);
}
.page-body > :first-child { margin-top: .75rem; }
.page-body h1 { padding-bottom: .9rem; border-bottom: 2px dashed var(--c-line); }
.page-body h2:first-of-type { margin-top: 2rem; }
.page-body ul { padding-left: 1.25rem; }
.page-body ul li::marker { color: var(--c-primary-dark); }
.page-body li { margin-bottom: .35rem; }
.page-body blockquote {
    margin: 1.5rem 0; padding: 1rem 1.4rem; background: var(--c-primary-soft);
    border-left: 5px solid var(--c-primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.page-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .98rem; }
.page-body th, .page-body td { padding: .7rem .9rem; border-bottom: 1px solid var(--c-line); text-align: left; }
.page-body th { background: var(--c-paper-deep); font-family: var(--f-display); }
.page-body iframe { border-radius: var(--radius-sm); }
.page-body hr { border: 0; border-top: 2px dashed var(--c-line); margin: 2rem 0; }

/* ---------- Formulare ---------- */
.cms-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.cms-form input[type="text"], .cms-form input[type="email"], .cms-form input[type="tel"],
.cms-form select, .cms-form textarea, .page-body input[type="email"], .page-body input[type="text"] {
    width: 100%; padding: .75rem 1rem; font: inherit; color: var(--c-ink);
    background: var(--c-paper); border: 2px solid var(--c-line); border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
.cms-form input:focus, .cms-form select:focus, .cms-form textarea:focus {
    outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 4px var(--c-primary-soft);
}
.cms-form button, .cms-form [type="submit"], .page-body button {
    font: inherit; font-weight: 700; color: var(--c-ink); background: var(--c-primary);
    border: 2px solid var(--c-ink); border-radius: 999px; padding: .75rem 1.7rem; cursor: pointer;
    box-shadow: 3px 3px 0 var(--c-ink); transition: transform .15s, box-shadow .15s;
}
.cms-form button:hover, .cms-form [type="submit"]:hover, .page-body button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--c-ink); }
.cms-form button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-ink); }
#turnstile-wrapper { display: flex; justify-content: center; padding: 1rem 0; }

/* ---------- Startseite: Hero ---------- */
.hero-section {
    position: relative; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(ellipse 60% 80% at 85% 10%, rgba(246, 199, 0, .28), transparent 60%),
        radial-gradient(ellipse 50% 70% at 5% 100%, rgba(228, 87, 46, .22), transparent 60%),
        var(--c-ink);
    color: #fff;
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(5rem, 11vw, 8.5rem);
}
.hero-section::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 38px; z-index: 1;
    background: radial-gradient(circle at 19px 0, transparent 18px, var(--c-paper) 19px) 0 0 / 38px 38px repeat-x;
}
.hero-leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-leaves span {
    position: absolute; display: block; width: 90px; height: 90px; background: var(--c-primary); opacity: .9;
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    animation: twinkle 5s ease-in-out infinite;
}
.hero-leaves span:nth-child(1) { top: 12%; right: 9%;  width: 120px; height: 120px; }
.hero-leaves span:nth-child(2) { top: 58%; right: 24%; width: 46px;  height: 46px; animation-delay: -1.5s; opacity: .55; }
.hero-leaves span:nth-child(3) { top: 20%; left: 6%;   width: 34px;  height: 34px; animation-delay: -3s;   opacity: .5; }
.hero-leaves span:nth-child(4) { bottom: 22%; left: 40%; width: 60px; height: 60px; animation-delay: -2.2s; opacity: .3; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.78) rotate(18deg); } }

.hero-content { position: relative; max-width: 960px; }
.hero-badge {
    display: inline-block; margin: 0 0 1.4rem; padding: .4rem 1rem;
    font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--c-ink); background: var(--c-primary); border-radius: 999px;
    animation: rise .7s both;
}
.hero-section h1 {
    color: #fff; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.05; margin: 0 0 1.2rem; max-width: 17ch;
    animation: rise .7s .1s both;
}
.hero-slogan {
    font-family: var(--f-display); font-style: normal; font-weight: 500;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--c-primary); margin: 0 0 2.2rem;
    animation: rise .7s .2s both;
}
.hero-balls { display: flex; flex-wrap: wrap; gap: .7rem; animation: rise .7s .3s both; }
.hero-balls span {
    display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
    font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; color: var(--c-ink);
    background: radial-gradient(circle at 32% 28%, #fff 0 14%, var(--c-primary) 15% 70%, var(--c-primary-dark) 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
    animation: bob 4s ease-in-out infinite;
}
.hero-balls span:nth-child(2) { animation-delay: -.6s; }
.hero-balls span:nth-child(3) { animation-delay: -1.2s; }
.hero-balls span:nth-child(4) { animation-delay: -1.8s; }
.hero-balls span:nth-child(5) { animation-delay: -2.4s; }
.hero-balls span:nth-child(6) { animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Startseite: Intro ---------- */
.intro-section { padding: 3rem 0 0; }
.intro-text { max-width: 820px; margin: 0 auto; font-size: 1.15rem; }

/* ---------- Startseite: Anbieter ---------- */
.comparison-section { padding: 3.5rem 0 6rem; }
.section-title { text-align: center; margin: 0 0 .6rem; }
.section-title::after {
    content: ""; display: block; width: 90px; height: 8px; margin: .9rem auto 0;
    background: radial-gradient(circle, var(--c-primary) 0 3.5px, transparent 4px) 0 0 / 18px 8px repeat-x;
}
.section-lead { text-align: center; color: var(--c-ink-soft); max-width: 640px; margin: 1rem auto 2.5rem; font-size: 1.1rem; }

.table-scroll { overflow-x: auto; }
table.overview { width: 100%; border-collapse: separate; border-spacing: 0 14px; }
table.overview thead th {
    font-family: var(--f-display); font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--c-ink-muted); padding: 0 1.4rem .2rem; text-align: left; border: 0;
}
table.overview thead th:last-child { text-align: center; }
table.overview tbody tr { transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow-s); border-radius: var(--radius); }
table.overview tbody tr:hover { transform: translateY(-3px) rotate(-.15deg); box-shadow: var(--shadow-m); }
table.overview td {
    background: var(--c-surface); padding: 1.3rem 1.4rem; vertical-align: middle;
    border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
table.overview td:first-child { border-left: 1px solid var(--c-line); border-radius: var(--radius) 0 0 var(--radius); position: relative; }
table.overview td:first-child::before {
    content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 4px 4px 0; background: var(--c-primary);
}
table.overview td:last-child { border-right: 1px solid var(--c-line); border-radius: 0 var(--radius) var(--radius) 0; }
.provider-cell { width: 220px; text-align: center; }
.provider-cell a { display: inline-block; background: none !important; }
.provider-cell img { display: block; margin: 0 auto; max-width: 150px; height: auto; }
.offers-cell ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.offers-cell li {
    font-size: .88rem; font-weight: 600; line-height: 1.2; padding: .35rem .75rem;
    background: var(--c-paper); color: var(--c-ink-soft); border: 1px solid var(--c-line); border-radius: 999px; margin: 0;
}
.action-cell { width: 190px; text-align: center; }
.btn-play {
    display: inline-block; font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap;
    color: var(--c-ink); background: var(--c-primary); border: 2px solid var(--c-ink); border-radius: 999px;
    padding: .65rem 1.4rem; box-shadow: 3px 3px 0 var(--c-ink); transition: transform .15s, box-shadow .15s;
}
.btn-play:hover { color: var(--c-ink); background: var(--c-primary); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--c-ink); }
.btn-play:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-ink); }

@media (max-width: 767.98px) {
    table.overview, table.overview tbody, table.overview tr, table.overview td { display: block; width: 100%; }
    table.overview thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    table.overview tbody tr { margin-bottom: 1.1rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
    table.overview td, table.overview td:first-child, table.overview td:last-child { border: 0; border-radius: 0; padding: .9rem 1.2rem; }
    table.overview td:first-child::before { display: none; }
    .provider-cell { width: 100%; background: var(--c-primary-soft); }
    .action-cell { width: 100%; padding-bottom: 1.3rem; }
    .btn-play { display: block; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--c-ink); color: #D8DEEE; padding: 3.5rem 0 1.6rem; margin-top: 2rem; }
.site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
    background: repeating-linear-gradient(90deg, var(--c-primary) 0 28px, var(--c-ink) 28px 40px);
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
.footer-site-name { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: #fff; margin: 0 0 .25rem; }
.footer-slogan { margin: 0; color: var(--c-primary); font-weight: 500; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer-nav a { color: #fff; font-weight: 600; text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.footer-nav a:hover { color: var(--c-primary); background: none; border-bottom-color: var(--c-primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.4rem; font-size: .9rem; color: #AEB8D4; }
.footer-bottom p { margin: 0; }

/* ---------- Cookie-Icon ---------- */
.cookieicon { background-color: var(--c-ink); }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
