/* CasinoPrimeGermany — dark forest-green & gold theme, compass/gold motif */

:root {
  --bg: #071510;
  --bg-alt: #0c2418;
  --surface: #123222;
  --surface-alt: #0c2218;
  --border: #2d6a4f;
  --text: #ffffff;
  --text-muted: #d1d5dc;
  --text-faint: #8fbc8f;
  --gold: #d4af37;
  --gold-soft: #f3e3ab;
  --gold-dark: #b8860b;
  --crimson: #dc2626;
  --teal: #22a06b;
  --navy-dark: #0a1e14;
  --navy-border: #2d6a4f;
  --navy-text: #ffffff;
  --navy-text-faint: #8fbc8f;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0 0 .5em; letter-spacing: 0.2px; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { box-shadow: 0 10px 22px rgba(212, 175, 55, 0.38); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Top strip ---------- */
.topbar {
  background: var(--navy-dark);
  border-bottom: 1px solid var(--navy-border);
  font-size: 0.78rem;
  color: var(--navy-text-faint);
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar strong { color: var(--crimson); }
.topbar a { color: var(--gold); text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 21, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--text); }
.brand-name span { color: var(--gold-dark); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-dark); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold-dark);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-faint);
  text-transform: uppercase;
}
.lang-switch a.active { background: var(--gold); color: #fff; }

.age-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--crimson);
  color: var(--crimson);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--bg-alt);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
  .header-actions .lang-switch { order: 2; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at 85% -10%, rgba(212, 175, 55, 0.16), transparent 55%),
    radial-gradient(circle at 0% 120%, rgba(220, 38, 38, 0.08), transparent 50%);
  border-bottom: 1px solid var(--border);
}
.hero-kicker {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero p.lead { font-size: 1.08rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.hero-compass {
  justify-self: end;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--border);
  position: relative;
  background: radial-gradient(circle, var(--surface) 0%, var(--bg) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.hero-compass::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed var(--border);
}
.hero-compass svg { width: 46%; height: 46%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-compass { justify-self: center; max-width: 220px; }
}

/* ---------- Trust bar ---------- */
.trust-section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.trust-card .icon-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Section shell ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { margin-bottom: 0; }

/* ---------- Review cards ---------- */
.review-list { display: grid; gap: 22px; }
.review-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.logo-mark {
  width: 132px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 4px;
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.rd-hero-inner .logo-mark { width: 168px; height: 100px; }
.review-card .rc-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-card h3 { margin-bottom: 6px; }
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.license-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(34, 160, 107, 0.15);
  border: 1px solid rgba(34, 160, 107, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
}
.rc-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.86rem; color: var(--text-faint); margin: 10px 0 4px; }
.rc-score {
  text-align: center;
  min-width: 150px;
}
.rc-score .num { font-family: var(--serif); font-size: 2.1rem; color: var(--gold-dark); font-weight: 700; line-height: 1; }
.rc-score .lbl { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; }
.rc-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.pros-cons ul { margin: 6px 0 0; padding-left: 18px; }
.pros-cons h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.pros-cons .pros h4 { color: var(--teal); }
.pros-cons .cons h4 { color: var(--crimson); }

@media (max-width: 760px) {
  .review-card { grid-template-columns: 1fr; text-align: left; }
  .rc-score { text-align: left; }
  .pros-cons { grid-template-columns: 1fr; }
}

/* ---------- Methodology timeline ---------- */
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.method-step { position: relative; padding-top: 44px; }
.method-step .step-num {
  position: absolute; top: 0; left: 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-dark);
}
@media (max-width: 860px) { .method-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .method-steps { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-q .plus { color: var(--gold-dark); font-size: 1.3rem; transition: transform 0.2s ease; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-a { padding: 0 4px 20px; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- Responsible gambling callout ---------- */
.responsible-box {
  border: 1px solid var(--crimson);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), transparent);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.responsible-box .helpline {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--crimson);
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 700px) { .responsible-box { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Review detail page ---------- */
.rd-hero {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.rd-hero-inner {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.rd-hero-info { flex: 1 1 320px; }
.rd-hero .meta-line { color: var(--text-faint); font-size: 0.9rem; }
.rd-hero-cta { margin-left: auto; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.info-card .lbl { font-size: 0.72rem; text-transform: uppercase; color: var(--text-faint); letter-spacing: 0.5px; margin-bottom: 4px; }
.info-card .val { font-weight: 700; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } .rd-hero-cta { margin-left: 0; } }

.license-box {
  border: 1px solid var(--gold);
  background: rgba(212, 175, 55, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
}
.permit-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--border); font-size: 0.92rem; }
.permit-row:first-of-type { border-top: none; }
.permit-row .type { font-weight: 700; }
.permit-row .since { color: var(--text-faint); white-space: nowrap; }

.pay-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--navy-border);
  padding-top: 56px;
}
.site-footer p { color: var(--navy-text-faint); }
.site-footer .brand-name { color: var(--navy-text); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--navy-border);
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--navy-text-faint); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--navy-text); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.footer-badges img { height: 36px; width: auto; max-width: 140px; object-fit: contain; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-bottom {
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-warning { color: var(--crimson); font-weight: 700; font-size: 0.85rem; }
.footer-copy { color: var(--navy-text-faint); font-size: 0.82rem; }
.footer-disclaimer {
  color: var(--navy-text-faint);
  font-size: 0.78rem;
  max-width: 980px;
  padding-bottom: 30px;
  line-height: 1.7;
}

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: var(--surface);
  border-top: 1px solid var(--gold);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  padding: 22px 0 26px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.cookie-text { max-width: 620px; }
.cookie-text h3 { margin-bottom: 6px; }
.cookie-text p { margin-bottom: 0; font-size: 0.92rem; }
.cookie-text a { color: var(--gold-dark); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.cookie-settings-panel {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.cookie-settings-panel.open { display: grid; grid-template-columns: repeat(3, 1fr); }
.cookie-cat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; }
.cookie-cat p { font-size: 0.82rem; margin: 0; }
.switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: background 0.2s;
}
.switch .track::before {
  content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.2s;
}
.switch input:checked + .track { background: var(--gold); }
.switch input:checked + .track::before { transform: translateX(16px); }
.switch input:disabled + .track { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 760px) {
  .cookie-settings-panel.open { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 56px 0 80px; }
.legal-page .updated { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 30px; }
.legal-page h2 { margin-top: 2em; font-size: 1.25rem; }
.legal-page h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal-page ul { color: var(--text-muted); }
.legal-page section { max-width: 760px; }

/* ---------- Contact / forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
input, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 140px; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid, .form-grid { grid-template-columns: 1fr; } }

.alert-success {
  background: rgba(34, 160, 107, 0.15);
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* ---------- 404 ---------- */
.error-page { min-height: 50vh; display: flex; align-items: center; }
.error-page .container { text-align: center; }
.error-page .code { font-family: var(--serif); font-size: 6rem; color: var(--gold-dark); line-height: 1; }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
