/* ============================================================
   Sportsbook Software (SBS) — Corporate Website
   Brand CI: #006A4B (deep green) · #0FEBAC (mint) · #2d694d (gold accent) · #000000
   Typography: Grift Bold & Grift Regular (fallback: Poppins / system)
   ============================================================ */

:root {
  --green: #006A4B;
  --green-dark: #00422F;
  --mint: #0FEBAC;
  --mint-soft: #5cf3c8;
  --gold: #2d694d;
  --black: #000000;
  --ink: #0b1411;
  --grey: #5b6b65;
  --line: #e3eae7;
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --grad: linear-gradient(120deg, #00422F 0%, #006A4B 55%, #0a8f63 100%);
  --grad-dark: linear-gradient(120deg, #000000 0%, #003a28 70%, #006A4B 130%);
  /* exact logo gradient: black -> green, matching SBS_Logo_gradient.svg */
  --grad-logo: linear-gradient(116deg, #000000 0%, #0c5e3b 62%, #239c49 100%);
  /* diagonal slash angle echoing the logo's cut edge */
  --slash: polygon(0 0, 100% 0, 100% calc(100% - 46px), 0 100%);
  --shadow: 0 18px 50px -22px rgba(0,66,47,.45);
  --font: "Grift", "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- language toggle visibility ---- */
[data-lang] { display: none; }
body.en [data-lang="en"] { display: revert; }
body.de [data-lang="de"] { display: revert; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4 { font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.28rem; }
p { color: var(--grey); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 14px;
}
/* kicker graphic: single rectangular bar (left), 90° corners */
.eyebrow::before {
  content: ""; width: 7px; height: 22px; flex: 0 0 auto;
  background: var(--gold);
}
/* on dark backgrounds the bar uses a light green for contrast */
.hero .eyebrow::before,
.page-hero .eyebrow::before { background: #69e0ab; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { font-size: 1.1rem; margin-top: 12px; }

/* ============== HEADER / NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-img { height: 44px; width: auto; display: block; }
.brand .word { font-size: 1.05rem; line-height: 1.05; color: var(--ink); font-weight: 700; }
.brand .word span { display:block; color: var(--grey); font-weight: 400; font-size: .95rem; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: .96rem; font-weight: 600; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); }
.nav-links a.active::after {
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--gold);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: .8rem;
  padding: 7px 12px; color: var(--grey);
}
.lang-switch button.on { background: var(--gold); color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn-primary { background: var(--mint); color: #00362a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(15,235,172,.7); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: var(--green-dark); }

.burger { display:none; background:none; border:0; cursor:pointer; flex-direction:column; gap:5px; }
.burger span { width:24px; height:2px; background: var(--ink); display:block; border-radius:2px; }

/* ============== HERO ============== */
.hero {
  background: var(--grad-logo); color: #fff; position: relative; overflow: hidden;
  padding: 120px 0 130px;
  clip-path: var(--slash);
}
.hero::after {
  content:""; position:absolute; right:-160px; top:-120px; width: 560px; height:560px;
  background: radial-gradient(circle, rgba(15,235,172,.32), transparent 60%); filter: blur(10px);
}
/* diagonal mint slash accent echoing the logo edge */
.hero::before {
  content:""; position:absolute; top:0; bottom:0; right:18%; width: 120px;
  background: linear-gradient(180deg, rgba(15,235,172,.0), rgba(15,235,172,.18), rgba(15,235,172,0));
  transform: skewX(-18deg); z-index:1;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color:#fff; max-width: 980px; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero .sub { font-size: 1.22rem; color: #c9ded6; max-width: 760px; margin: 26px 0 36px; }
.hero-cta { display:flex; gap:14px; flex-wrap: wrap; }

.page-hero { background: var(--grad-logo); color:#fff; padding: 92px 0 96px; position:relative; overflow:hidden; clip-path: var(--slash); }
.page-hero::after {
  content:""; position:absolute; right:-120px; bottom:-160px; width: 480px; height:480px;
  background: radial-gradient(circle, rgba(15,235,172,.3), transparent 60%);
}
.page-hero::before {
  content:""; position:absolute; top:0; bottom:0; right:22%; width: 90px;
  background: linear-gradient(180deg, rgba(15,235,172,0), rgba(15,235,172,.16), rgba(15,235,172,0));
  transform: skewX(-18deg); z-index:1;
}
.page-hero .container { position:relative; z-index:2; }
.page-hero h1 { color:#fff; }
.page-hero p { color:#d4ebe3; font-size:1.15rem; max-width:720px; margin-top:16px; }

/* ============== GENERIC GRID / CARDS ============== */
.grid { display:grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
  position: relative; overflow: hidden;
}
/* angled mint corner accent echoing the logo cut */
.card::after {
  content:""; position:absolute; top:0; right:0; width: 0; height: 0;
  border-style: solid; border-width: 0 38px 38px 0;
  border-color: transparent var(--gold) transparent transparent;
  opacity: 0; transition: opacity .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { opacity: 1; }
.card .ico {
  width: 46px; height: 46px; display: block; margin-bottom: 16px; color: var(--green);
}
.card .ico svg {
  width: 100%; height: 100%; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }

/* feature item — angled mint bar instead of a flat border */
.feature { position: relative; padding: 4px 0 4px 26px; }
.feature::before {
  content:""; position:absolute; left:0; top:4px; bottom:4px; width: 6px;
  background: var(--gold);
}
.feature h3 { margin-bottom: 8px; }

/* intro block */
.intro p { font-size: 1.12rem; color: #3a4a44; margin-bottom: 18px; max-width: 880px; }

/* ============== METRICS ============== */
.metrics { background: var(--grad-logo); color:#fff; position: relative; overflow: hidden; }
.metrics::before {
  content:""; position:absolute; top:0; bottom:0; left:30%; width: 160px;
  background: linear-gradient(180deg, rgba(15,235,172,0), rgba(15,235,172,.12), rgba(15,235,172,0));
  transform: skewX(-18deg);
}
.metrics .container { position: relative; z-index: 1; }
.metrics .grid-3 { gap: 20px; }
.metric {
  text-align:center; padding: 28px 16px; background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius: 12px;
}
.metric .num { font-size: 2.5rem; font-weight: 700; color: var(--mint); line-height:1; }
.metric .lbl { color:#bcd6cd; margin-top:10px; font-size: .98rem; }

/* ============== REFERENCE ============== */
.ref-card {
  background: var(--grad); color:#fff; border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow);
}
.ref-card .name { font-size: 2rem; font-weight:700; color:#fff; margin-bottom: 14px; }
.ref-card p { color: #e0f3ec; }
.logo-strip { display:flex; flex-wrap:wrap; gap: 16px; margin-top: 30px; }
.logo-chip {
  background:#fff; border:1px solid var(--line); border-radius: 12px; padding: 14px 24px;
  font-weight:700; color: var(--green); letter-spacing: .02em;
}
/* clickable reference chip (Interwetten) uses the primary-button hover */
a.logo-chip { transition: transform .15s ease, box-shadow .2s ease; }
a.logo-chip:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(15,235,172,.7); }
/* reference status badges */
.ref-badge {
  display:inline-flex; align-items:center; gap:8px;
  font-size:.76rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:6px 13px; border-radius:999px; margin-bottom:16px;
}
.ref-badge.active { background: rgba(105,224,171,.2); color:#69e0ab; }
.ref-badge.active::before { content:""; width:8px; height:8px; border-radius:50%; background:#69e0ab; }
.ref-badge.past { background:#edf1ef; color:#8b9893; border:1px solid var(--line); }
.past-head {
  margin:54px 0 24px; font-size:1.15rem; font-weight:700; color:var(--ink); letter-spacing:.01em;
}
.past-head span.note { display:block; font-size:.95rem; font-weight:400; color:var(--grey); margin-top:4px; }
.past-card { opacity:.78; filter:grayscale(.35); }
.past-card .pname { font-weight:700; font-size:1.2rem; color:var(--ink); margin:6px 0 6px; }
.past-card p { font-size:.96rem; }

/* ============== SERVICE BLOCKS ============== */
.svc-group { margin-bottom: 70px; scroll-margin-top: 96px; }
.svc-group > .head { display:flex; align-items:center; gap:16px; margin-bottom: 28px; }
.svc-group > .head .dot { display: none; }
.svc-group h2 { font-size: 1.9rem; }

/* ============== VALUES / ABOUT ============== */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:center; }
.vm-card { background: var(--bg-soft); border-radius: var(--radius); padding: 34px; position: relative; overflow: hidden; }
.vm-card h3 { color: var(--green); margin-bottom: 10px; font-size: 1.4rem; }

/* ============== CAREERS ============== */
.chips { display:flex; flex-wrap:wrap; gap: 12px; }
.chip { background:#fff; border:1px solid var(--line); border-radius:999px; padding:10px 18px; font-weight:600; font-size:.95rem; }
.chip { display:inline-flex; align-items:center; }

/* ============== CONTACT ============== */
.contact-grid { display:grid; grid-template-columns: 1.3fr 1fr; gap: 44px; }
.form-field { margin-bottom: 18px; }
.form-field label { display:block; font-weight:600; font-size:.9rem; margin-bottom:6px; }
.form-field input, .form-field textarea, .form-field select {
  width:100%; font-family: var(--font); font-size:1rem; padding: 13px 15px;
  border:1px solid var(--line); border-radius: 12px; background:#fff; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline:none; border-color: var(--green); box-shadow:0 0 0 3px rgba(15,235,172,.2); }
.info-row { display:flex; gap:12px; margin-bottom:18px; align-items:flex-start; }
.info-row .k { font-weight:700; color: var(--green); min-width: 22px; }

/* ============== FOOTER ============== */
.footer { background: var(--black); color:#cfe; padding: 64px 0 28px; }
.footer a { color:#9fd8c5; }
.footer a:hover { color: var(--mint); }
.footer .grid-4 { gap: 30px; }
.footer h4 { color:#fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style:none; }
.footer li { margin-bottom: 10px; font-size:.94rem; }
.footer .brand .logo-img { height: 40px; }
.footer .brand .word { color:#fff; }
.footer .brand .word span { color:#7fb3a3; }
.foot-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:44px; padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:#7fb3a3; font-size:.88rem; }

/* ============== CTA BANNER ============== */
.cta-band {
  background: var(--grad-logo); color:#fff; border-radius: var(--radius);
  padding: 56px; text-align:center; position: relative; overflow: hidden;
}
.cta-band::before {
  content:""; position:absolute; top:0; bottom:0; right:14%; width: 130px;
  background: linear-gradient(180deg, rgba(15,235,172,0), rgba(15,235,172,.18), rgba(15,235,172,0));
  transform: skewX(-18deg);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#dcf3ec; max-width:560px; margin: 12px auto 26px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 76px; left:0; right:0; background:#fff; flex-direction:column;
    gap:0; border-bottom:1px solid var(--line); padding: 8px 0; display:none;
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding: 14px 24px; width:100%; }
  /* in the stacked mobile menu the underline would overlap the next row -> highlight only via color */
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--green); }
  .burger { display:flex; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .ref-card, .cta-band, .vm-card { padding: 30px; }
  .hero { padding: 90px 0 80px; }
}
