/* ============================================================
   KONTAKT PAGE — CasinoBonuser.com
   Design system from homepage tokens.
   All classes prefixed .cb-ko- to avoid Mercury collisions.
   Scoped to body.cb-kontakt where needed.
   ============================================================ */

/* ---------- MAIN PADDING FOR FIXED HEADER ---------- */
body.cb-kontakt main {
  padding-top: 0;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ---------- HIDE LEGACY FOOTER & CROSSLINKS ---------- */
body.cb-kontakt footer.cb-footer { display: none !important; }
body.cb-kontakt .cb-u-crosslinks { display: none !important; }

/* ---------- RESET & BASE (scoped) ---------- */
body.cb-kontakt {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f4f6f9;
  -webkit-font-smoothing: antialiased;
}
body.cb-kontakt *, body.cb-kontakt *::before, body.cb-kontakt *::after { box-sizing: border-box; }
body.cb-kontakt a { text-decoration: none; color: inherit; }
body.cb-kontakt img { max-width: 100%; height: auto; }
body.cb-kontakt h1, body.cb-kontakt h2, body.cb-kontakt h3, body.cb-kontakt h4 {
  font-family: 'Roboto', 'Inter', sans-serif; line-height: 1.25;
}

/* ---------- TOKENS ---------- */
:root {
  --cb-bg:         #f4f6f9;
  --cb-card-bg:    #ffffff;
  --cb-card-border:#e2e6ec;
  --cb-card-shadow: 0 2px 16px rgba(0,0,0,0.05);
  --cb-card-radius: 14px;
  --cb-text:       #1a1a2e;
  --cb-text-light: #5a6577;
  --cb-text-muted: #8a93a2;
  --cb-navy:       #1e3a5f;
  --cb-green:      #11ac84;
  --cb-green-light:#e8f8f3;
  --cb-red:        #e74c3c;
  --cb-gold:       #f5a623;
  --cb-gold-light: #fff8ec;
  --cb-teal:       #00b4d8;
  --cb-teal-light: #e8f8fb;
  --cb-cta-from:   #8ad455;
  --cb-cta-to:     #5fa82e;
  --cb-cta-shadow: 0 4px 18px rgba(106,173,56,0.4);
}

/* ---------- FOCUS STYLES ---------- */
body.cb-kontakt a:focus-visible,
body.cb-kontakt button:focus-visible,
body.cb-kontakt input:focus-visible,
body.cb-kontakt select:focus-visible,
body.cb-kontakt textarea:focus-visible {
  outline: 2px solid var(--cb-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   BREADCRUMB (inside hero, light text on dark bg)
   ============================================================ */
.cb-ko-breadcrumb {
  max-width: 720px; margin: 0 auto; padding: 0 16px 16px;
  font-size: 13px; color: #6b7d8d;
  position: relative; z-index: 1; text-align: left;
}
.cb-ko-breadcrumb a { color: #6b7d8d; text-decoration: none; }
.cb-ko-breadcrumb a:hover { color: var(--cb-green); }
.cb-ko-breadcrumb .sep { margin: 0 6px; opacity: .5; }

/* ============================================================
   HERO
   ============================================================ */
.cb-ko-hero {
  background: linear-gradient(135deg, #0f1923 0%, #1e3a5f 100%);
  padding: 64px 16px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
body.cb-kontakt.admin-bar .cb-ko-hero { padding-top: 96px; }

.cb-ko-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(17,172,132,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(0,180,216,.08) 0%, transparent 50%);
  pointer-events: none;
}
.cb-ko-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cb-green), #6aad38);
  opacity: .6;
}
.cb-ko-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.cb-ko-hero h1 {
  color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 10px;
}
.cb-ko-hero-sub {
  color: #94a3b4; font-size: 15px; line-height: 1.7; max-width: 560px; margin: 0 auto;
}

@media (min-width: 768px) {
  .cb-ko-hero { padding: 64px 16px 36px; }
  .cb-ko-hero h1 { font-size: 36px; }
  .cb-ko-hero-sub { font-size: 16px; }
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.cb-ko-section {
  max-width: 960px; margin: 0 auto; padding: 28px 16px;
}
.cb-ko-section-header {
  text-align: center; margin-bottom: 28px;
}
.cb-ko-section-header h2 {
  font-size: 22px; font-weight: 800; color: var(--cb-navy); margin-bottom: 8px;
}
.cb-ko-section-header p {
  font-size: 14px; color: var(--cb-text-light); max-width: 600px; margin: 0 auto; line-height: 1.7;
}
@media (min-width: 768px) {
  .cb-ko-section-header h2 { font-size: 26px; }
  .cb-ko-section-header p { font-size: 15px; }
}

/* ============================================================
   DIVIDER
   ============================================================ */
.cb-ko-divider {
  max-width: 960px; margin: 0 auto; padding: 0 16px;
}
.cb-ko-divider hr {
  border: none; height: 1px; background: var(--cb-card-border);
}

/* ============================================================
   CONTACT OPTIONS GRID
   ============================================================ */
.cb-ko-options-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 600px) {
  .cb-ko-options-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .cb-ko-options-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.cb-ko-option-card {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  padding: 24px;
  box-shadow: var(--cb-card-shadow);
  display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .2s, transform .2s;
}
.cb-ko-option-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.cb-ko-option-card--highlight {
  border: 2px solid var(--cb-green);
  background: linear-gradient(135deg, #f0fdf8 0%, #fff 100%);
}
@media (min-width: 600px) and (max-width: 899px) {
  .cb-ko-option-card--highlight {
    grid-column: 1 / -1;
  }
}

/* Option icons */
.cb-ko-option-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px; flex-shrink: 0;
}
.cb-ko-option-icon svg { width: 24px; height: 24px; }
.cb-ko-option-icon--email { background: var(--cb-teal-light); }
.cb-ko-option-icon--email svg { color: var(--cb-teal); }
.cb-ko-option-icon--partner { background: var(--cb-gold-light); }
.cb-ko-option-icon--partner svg { color: var(--cb-gold); }
.cb-ko-option-icon--responsible { background: var(--cb-green-light); }
.cb-ko-option-icon--responsible svg { color: var(--cb-green); }

.cb-ko-option-card h3 {
  font-size: 16px; font-weight: 700; color: var(--cb-text); margin: 0;
}
.cb-ko-option-desc {
  font-size: 13px; color: var(--cb-text-light); line-height: 1.7; margin: 0;
  flex: 1;
}
.cb-ko-option-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--cb-green);
  transition: gap .15s;
  word-break: break-all;
}
.cb-ko-option-link:hover { gap: 10px; color: var(--cb-navy); }
.cb-ko-option-helpline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  background: rgba(17,172,132,.08);
  border: 1px solid rgba(17,172,132,.2);
  border-radius: 8px; padding: 8px 14px;
  color: var(--cb-green); margin-top: 4px;
  transition: background .15s;
}
.cb-ko-option-helpline:hover { background: rgba(17,172,132,.15); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.cb-ko-form-wrap {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  padding: 28px 24px;
  box-shadow: var(--cb-card-shadow);
  max-width: 760px; margin: 0 auto;
}
.cb-ko-form-notice {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: var(--cb-text-muted);
  background: #f8f9fb; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 24px; line-height: 1.6;
}
.cb-ko-form-notice svg { flex-shrink: 0; color: var(--cb-teal); margin-top: 1px; }

.cb-ko-form-row { margin-bottom: 18px; }
.cb-ko-form-row--two {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 520px) {
  .cb-ko-form-row--two { grid-template-columns: 1fr 1fr; }
}

.cb-ko-form-field label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--cb-text);
  margin-bottom: 6px;
}
.cb-ko-form-field label .required { color: var(--cb-red); }

.cb-ko-form-field input,
.cb-ko-form-field select,
.cb-ko-form-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--cb-text);
  background: #f8f9fb;
  border: 1px solid var(--cb-card-border);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.cb-ko-form-field input::placeholder,
.cb-ko-form-field textarea::placeholder {
  color: var(--cb-text-muted);
}
.cb-ko-form-field input:focus,
.cb-ko-form-field select:focus,
.cb-ko-form-field textarea:focus {
  border-color: var(--cb-green);
  box-shadow: 0 0 0 3px rgba(17,172,132,.1);
  background: #fff;
  outline: none;
}
.cb-ko-form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a93a2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cb-ko-form-field textarea { resize: vertical; min-height: 120px; }

.cb-ko-form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 28px;
  font-size: 15px; font-weight: 700;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--cb-cta-from), var(--cb-cta-to));
  color: #fff; cursor: pointer;
  box-shadow: var(--cb-cta-shadow);
  transition: transform .15s, box-shadow .15s;
}
.cb-ko-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(106,173,56,0.5);
}
.cb-ko-form-submit:disabled {
  opacity: .5; cursor: not-allowed;
  transform: none; box-shadow: none;
}
@media (min-width: 520px) {
  .cb-ko-form-submit { width: auto; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.cb-ko-faq { max-width: 760px; margin: 0 auto; }
.cb-ko-faq-item {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--cb-card-shadow);
}
.cb-ko-faq-q {
  width: 100%; padding: 16px 20px;
  font-size: 14px; font-weight: 700; color: var(--cb-text);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  transition: color .15s;
}
.cb-ko-faq-q:hover { color: var(--cb-green); }
.cb-ko-faq-q svg {
  flex-shrink: 0; width: 18px; height: 18px;
  transition: transform .2s; color: var(--cb-text-muted);
}
.cb-ko-faq-item.open .cb-ko-faq-q svg { transform: rotate(180deg); }
.cb-ko-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.cb-ko-faq-item.open .cb-ko-faq-a { max-height: 400px; }
.cb-ko-faq-a-inner {
  padding: 0 20px 16px;
  font-size: 14px; color: var(--cb-text-light); line-height: 1.8;
}
.cb-ko-faq-a-inner a { color: var(--cb-green); font-weight: 600; text-decoration: underline; }

/* ============================================================
   INFO BOX
   ============================================================ */
.cb-ko-info-box {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  padding: 32px 28px;
  box-shadow: var(--cb-card-shadow);
  max-width: 760px; margin: 0 auto;
  text-align: center;
}
.cb-ko-info-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--cb-green-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cb-ko-info-icon svg { color: var(--cb-green); }
.cb-ko-info-box h2 {
  font-size: 20px; font-weight: 800; color: var(--cb-navy); margin-bottom: 12px;
}
.cb-ko-info-box p {
  font-size: 14px; color: var(--cb-text-light); line-height: 1.8; margin-bottom: 10px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.cb-ko-info-box p:last-child { margin-bottom: 0; }
.cb-ko-info-box a {
  color: var(--cb-green); font-weight: 600; text-decoration: underline;
}
.cb-ko-info-box a:hover { color: var(--cb-navy); }
