/* Predicat – video series & challenge pages
   Self-contained: no third-party fonts, scripts or CDNs. Colours per Predicat CI. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Inter-Bold.woff2') format('woff2'); }

:root {
  --blue: #1E3A8A;
  --blue-2: #1E40AF;
  --blue-light: #2563EB;
  --green: #10B981;
  --green-dark: #059669;
  --tint: #DBEAFE;
  --off: #F9FAFB;
  --ink: #111827;
  --muted: #4B5563;
  --soft: #6B7280;
  --line: #E5E7EB;
  --error: #B91C1C;
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html[data-lang="en"] [data-de] { display: none !important; }
html[data-lang="de"] [data-en] { display: none !important; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--off) 0%, #ffffff 420px);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--blue); }
a:hover { color: var(--blue-light); }
img { max-width: 100%; display: block; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover { color: var(--blue); }
.lang-toggle {
  border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500;
  background: #F3F4F6; color: var(--ink); border-radius: 999px; padding: 7px 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.lang-toggle:hover { background: #E5E7EB; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Layout */
main { max-width: 1040px; margin: 0 auto; padding: 48px 20px 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30,58,138,0.08); color: var(--blue);
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; }
h1 .accent { color: var(--blue); }
h2 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; font-weight: 700; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 0 8px; }
.byline { color: var(--soft); font-size: 15px; margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
@media (min-width: 880px) { .grid-2 { grid-template-columns: 1.35fr 1fr; align-items: start; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px -12px rgba(30,58,138,0.15);
  padding: 28px;
}
.card-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.card-blue p { color: #DBEAFE; }
.card-blue h2 { color: #fff; }

/* Form */
form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
label.field { display: grid; gap: 6px; font-size: 15px; font-weight: 500; color: #374151; }
.optional { color: var(--soft); font-weight: 400; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid #D1D5DB; border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 180px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,58,138,0.15); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.hint { font-size: 13px; color: var(--soft); font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; }
.check.invalid span { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 12px; padding: 14px 24px; color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 25px -8px rgba(30,58,138,0.45); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn-green { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); }
.btn-green:hover { box-shadow: 0 10px 25px -8px rgba(16,185,129,0.45); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { color: var(--blue-2); }

.notice { border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.notice-ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.notice-err { background: #FEF2F2; color: var(--error); border: 1px solid #FECACA; }
.small { font-size: 14px; color: var(--soft); }

/* Steps list */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; }
.steps .num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--tint); color: var(--blue); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.card-blue .steps .num { background: rgba(255,255,255,0.15); color: #fff; }

/* Video */
.episode { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 760px) { .episode { grid-template-columns: 340px 1fr; } }
.player {
  position: relative; width: 100%; max-width: 340px; aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.35);
}
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  background-size: cover; background-position: center;
}
.consent-box { background: rgba(17,24,39,0.82); color: #fff; padding: 18px; font-size: 14px; line-height: 1.5; }
.consent-box p { margin: 0 0 12px; color: #E5E7EB; }
.consent-box a { color: #BFDBFE; }
.meta { color: var(--soft); font-size: 14px; margin: 0 0 8px; }

/* Footer */
footer { border-top: 1px solid var(--line); }
.foot {
  max-width: 1040px; margin: 0 auto; padding: 24px 20px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--soft);
}
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--blue); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
