/* DeutscheCasinos.cfd */
:root {
  --ink: #111418;
  --ink-2: #1c2128;
  --body: #2b3038;
  --soft: #5c6470;
  --page: #eef1f4;
  --card: #ffffff;
  --rule: #d9dee5;
  --red: #c4161c;
  --red-dark: #9e1015;
  --gold: #f4b400;
  --gold-soft: #fff4d1;
  --ok: #1b7f4b;
  --wrap: 72rem;
  --r: 10px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--body);
  background: var(--page);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* drawn German flag: the emoji stays in the text, the colours are painted */
.flag-de {
  display: inline-block;
  width: 1.2em; height: .74em;
  vertical-align: .02em;
  border-radius: 2px;
  background: linear-gradient(#000 0 33.4%, #dd0000 33.4% 66.7%, #ffce00 66.7% 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  overflow: hidden;
  text-indent: 3em;
  white-space: nowrap;
  line-height: 1;
}

/* ---------- top strip + header ---------- */
.tricolor { height: 5px; background: linear-gradient(90deg, #000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.masthead { background: var(--ink); color: #e9edf2; position: relative; z-index: 20; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { width: 168px; height: auto; }
.menu { display: flex; gap: .25rem; }
.menu a {
  color: #d8dde4; text-decoration: none; font-size: .95rem; font-weight: 600;
  padding: .55rem .8rem; border-radius: 6px;
}
.menu a:hover { background: var(--ink-2); color: #fff; }
.menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); border-radius: 6px 6px 0 0; }
.burger {
  display: none; background: none; border: 1px solid #3a414b; color: #fff;
  border-radius: 6px; padding: .45rem .7rem; font: 600 .9rem var(--sans); cursor: pointer;
}

/* ---------- intro ---------- */
.intro { background: #fff; border-bottom: 1px solid var(--rule); }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; padding-top: 2.2rem; padding-bottom: 2.2rem; align-items: start; }
.trail { font-size: .85rem; color: var(--soft); margin-bottom: .8rem; }
.trail a { color: var(--soft); }
.trail span[aria-hidden] { margin: 0 .4rem; }
.intro p.summary { font-size: 1.05rem; color: #3b414a; max-width: 46rem; }
.byline { font-size: .88rem; color: var(--soft); display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0; }
.byline a { color: var(--ink); font-weight: 600; }
.glance {
  background: var(--page); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1.1rem 1.2rem; font-size: .92rem;
}
.glance h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: .6rem; }
.glance dl { margin: 0; display: grid; grid-template-columns: 8.2rem 1fr; gap: .45rem .6rem; }
.glance dt { color: var(--soft); }
.glance dd { margin: 0; font-weight: 600; color: var(--ink); }
.intro.slim .wrap { grid-template-columns: 1fr; }

/* ---------- offer list ---------- */
.board { padding: 2rem 0 1rem; }
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .9rem; }
.board-head h2 { margin: 0; }
.adline { font-size: .82rem; color: var(--soft); margin: 0 0 1rem; }
.offers { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.loading { padding: 1.4rem; background: #fff; border: 1px dashed var(--rule); border-radius: var(--r); color: var(--soft); text-align: center; }

.of {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
  display: grid;
  grid-template-columns: 3rem 11rem minmax(0, 1.2fr) minmax(0, 1.1fr) 11.5rem;
  grid-template-areas: "rank logo main deal go" "more more more more more";
  align-items: center; gap: 0 1.1rem; margin: 0;
  box-shadow: 0 1px 2px rgba(17,20,24,.05);
}
.of.lead { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft), 0 6px 20px rgba(17,20,24,.07); }
.of-rank {
  grid-area: rank; align-self: stretch; display: grid; place-items: center;
  font: 700 1.3rem var(--serif); color: var(--soft); border-right: 1px solid var(--rule);
}
.of.lead .of-rank { color: var(--ink); background: var(--gold-soft); border-radius: var(--r) 0 0 0; }
.of-logo {
  grid-area: logo; display: grid; place-items: center; height: 84px; margin: .9rem 0;
  border-radius: 8px; padding: .5rem .8rem; background: #1a1d24;
}
.of-logo img { max-height: 62px; width: auto; object-fit: contain; }
.of-main { grid-area: main; padding: .9rem 0; min-width: 0; }
.of-main h3 { font-family: var(--sans); font-size: 1.1rem; margin: 0 0 .3rem; }
.of-score { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--soft); margin-bottom: .45rem; }
.of-score b { background: var(--ink); color: #fff; border-radius: 6px; padding: .1rem .45rem; font-size: .95rem; }
.of-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.of-tags li { margin: 0; font-size: .8rem; background: var(--page); border-radius: 99px; padding: .15rem .6rem; color: #3b414a; }
.of-deal { grid-area: deal; padding: .9rem 0; text-decoration: none; color: inherit; }
.of-deal small { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.of-deal strong { display: block; font: 700 1.15rem/1.3 var(--sans); color: var(--ink); }
.of-deal span { display: block; font-size: .95rem; color: #3b414a; }
.of-deal dl { display: flex; gap: 1rem; margin: .5rem 0 0; font-size: .8rem; }
.of-deal dt { color: var(--soft); }
.of-deal dd { margin: 0; font-weight: 700; color: var(--ink); }
.of-go { grid-area: go; padding: .9rem 1rem .9rem 0; text-align: center; }
.cta {
  display: block; text-align: center; text-decoration: none; font-weight: 700;
  background: var(--red); color: #fff; border-radius: 8px; padding: .8rem 1rem;
}
.cta:hover { background: var(--red-dark); color: #fff; }
.of.lead .cta { background: var(--gold); color: var(--ink); }
.of.lead .cta:hover { background: #e0a500; color: var(--ink); }
.of-go small { display: block; margin-top: .4rem; font-size: .72rem; color: var(--soft); }
.of-more { grid-area: more; border-top: 1px solid var(--rule); }
.of-more summary {
  cursor: pointer; list-style: none; padding: .55rem 1rem; font-size: .85rem; font-weight: 600; color: var(--ink);
}
.of-more summary::-webkit-details-marker { display: none; }
.of-more summary::after { content: " +"; color: var(--red); }
.of-more[open] summary::after { content: " \2212"; }
.of-more-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; padding: .3rem 1rem 1.1rem; font-size: .88rem; }
.of-more-body h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin: 0 0 .5rem; }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 6.5rem 1fr 2.4rem; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.bars i { display: block; height: 7px; border-radius: 4px; background: var(--rule); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ok); border-radius: 4px; }
.bars b { text-align: right; }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; }
.kv dt { color: var(--soft); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }
.pays { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pays li { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 5px; padding: 3px 5px; }
.pays img { width: 38px; height: 24px; object-fit: contain; }
.new-tag { display: inline-block; margin-left: .4rem; font: 700 .68rem var(--sans); letter-spacing: .05em; text-transform: uppercase; background: var(--red); color: #fff; border-radius: 4px; padding: .1rem .4rem; vertical-align: middle; }

/* logo backgrounds per brand (class comes from the data file) */
.th-mino { background: linear-gradient(160deg, #2e1a4d, #120a22); }
.th-wildtokyo { background: linear-gradient(160deg, #22262f, #0d0f13); }
.th-spinlander { background: linear-gradient(160deg, #1d1a52, #0a0920); }
.th-rolling { background: linear-gradient(160deg, #4d1222, #1a060c); }
.th-nfs { background: linear-gradient(160deg, #1d3557, #0c1628); }
.th-betarctica { background: linear-gradient(160deg, #18324a, #08131d); }
.th-jetsetspins { background: linear-gradient(160deg, #1f1f1f, #050505); }
.th-onlywin { background: linear-gradient(160deg, #2b2147, #0f0b1c); }
.th-vegazone { background: linear-gradient(160deg, #1b2a4a, #0a1020); }

/* ---------- article ---------- */
.article { padding: 1rem 0 2.5rem; }
.article .wrap { max-width: 50rem; }
.article section { margin-top: 2.4rem; }
.article section:first-child { margin-top: 1rem; }
.article h2 { padding-top: .4rem; border-top: 3px solid var(--ink); display: inline-block; }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 1.3rem 1.4rem; }
.asklist { counter-reset: q; list-style: none; padding: 0; }
.asklist li { counter-increment: q; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.asklist li::before {
  content: counter(q); position: absolute; left: 0; top: .1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 .9rem/1.8rem var(--sans); text-align: center;
}
.defs { margin: 0 0 1.2rem; display: grid; grid-template-columns: 9rem 1fr; border-top: 1px solid var(--rule); }
.defs dt, .defs dd { padding: .65rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.defs dt { font-weight: 700; color: var(--ink); }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .7rem; height: .4rem; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.dots li::marker { color: var(--red); }
.calc { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 var(--r) var(--r) 0; margin-bottom: 1.2rem; }
.calc p:last-child { margin: 0; }
.scroll-x { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 600; white-space: nowrap; }
tbody tr:nth-child(even) td { background: #f7f9fb; }
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.twin .panel h3 { margin-bottom: .5rem; }
.twin .kv { font-size: .92rem; }

/* faq */
.qa details { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); margin-bottom: .6rem; }
.qa summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--red); font-size: 1.2rem; line-height: 1; }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { padding: 0 1.1rem 1rem; margin: 0; }

.notice { background: var(--ink); color: #d8dde4; border-radius: var(--r); padding: 1.4rem 1.5rem; margin-top: 2.6rem; font-size: .93rem; }
.notice h2 { color: #fff; border: 0; font-size: 1.2rem; }
.notice a { color: var(--gold); }
.notice p:last-child { margin: 0; }
.helpbox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.helpbox .panel h3 { font-family: var(--sans); font-size: 1rem; margin-bottom: .3rem; }
.helpbox .panel p { margin: 0; font-size: .93rem; }
.big-number { font: 700 1.35rem var(--sans); color: var(--ink); display: block; margin: .2rem 0; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #aeb5bf; font-size: .9rem; padding: 2.4rem 0 1.4rem; margin-top: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot img { width: 150px; margin-bottom: .8rem; }
.foot h2 { font-family: var(--sans); color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .7rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot a { color: #d8dde4; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.age { display: inline-block; border: 2px solid var(--gold); color: var(--gold); font-weight: 700; border-radius: 50%; width: 2.4rem; height: 2.4rem; line-height: 2.1rem; text-align: center; margin-right: .6rem; }
.foot-base { border-top: 1px solid #2a3038; margin-top: 2rem; padding-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .8rem; }

/* ---------- offer bar ---------- */
.offerbar {
  position: fixed; left: 50%; bottom: 0; z-index: 50;
  width: min(100%, 52rem); transform: translate(-50%, calc(100% + 3rem));
  transition: transform .3s ease;
  background: #fff; border: 1px solid var(--rule); border-bottom: 0; border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 30px rgba(17,20,24,.16);
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto auto; align-items: center; gap: .9rem;
  padding: .65rem .8rem;
}
.offerbar.on { transform: translate(-50%, 0); }
.offerbar:not(.on) .ob-x { visibility: hidden; }
.offerbar[hidden] { display: none; }
.ob-logo { height: 48px; border-radius: 6px; display: grid; place-items: center; padding: .3rem .5rem; background: #1a1d24; }
.ob-logo img { max-height: 38px; width: auto; }
.ob-text { min-width: 0; line-height: 1.3; }
.ob-text small { color: var(--soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.ob-text b { display: block; color: var(--ink); }
.ob-text span { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offerbar .cta { padding: .65rem 1rem; white-space: nowrap; }
.ob-x { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--soft); cursor: pointer; padding: .3rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .of { grid-template-columns: 2.6rem 9rem minmax(0, 1fr); grid-template-areas: "rank logo main" "rank deal deal" "rank go go" "more more more"; gap: 0 .9rem; }
  .of-deal { padding: 0 0 .4rem; }
  .of-go { padding: .3rem 1rem 1rem 0; }
  .of-more-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; padding: .5rem 1.25rem 1rem; border-top: 1px solid #2a3038; }
  .menu.open { display: flex; }
  .menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0; }
  .intro .wrap { grid-template-columns: 1fr; gap: 1.2rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .twin, .helpbox { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { width: 138px; }
  .of { grid-template-columns: 2.2rem minmax(0, 1fr); grid-template-areas: "rank logo" "rank main" "rank deal" "rank go" "more more"; }
  .of-logo { margin-right: .8rem; }
  .of-main, .of-deal, .of-go { padding-right: .8rem; }
  .of-more-body { grid-template-columns: 1fr; }
  .defs { grid-template-columns: 1fr; }
  .defs dt { border-bottom: 0; padding-bottom: 0; }
  .offerbar { grid-template-columns: 4rem minmax(0, 1fr) auto; gap: .55rem; padding: .55rem .6rem; }
  .ob-logo { height: 40px; }
  .ob-text b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .offerbar .cta { padding: .6rem .7rem; font-size: .9rem; }
  .ob-x { position: absolute; top: -2.1rem; right: .4rem; background: #fff; border-radius: 50%; width: 1.9rem; height: 1.9rem; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
}
