/* ===================================================================
   obb.css — 1:1 ÖBB (oebb.at) design language for the two
   public-facing pages: the landing page (templates/index.html)
   and the quiz page (templates/indexlogin.html).
   Tokens, geometry and behaviors are taken from the live site
   (site.min.css, fetched 2026-08-24):
     - red #e2002a, dark red #9d1023, logo red #ED1834
     - text #222 / #565151, greys #f2f2f2 / #e0e0e0
     - square corners everywhere (no border-radius),
       except the round arrow badge on red buttons
     - skewed header blocks: skew(-28deg)
     - hero overlay: linear-gradient(90deg, rgba(0,0,0,.65) 0, transparent)
     - footer: #464646 with white links
     - type: Inter (self-hosted) with the site's own fallback stack
   Sections:
     0. fonts
     1. tokens + base
     2. header (logo, main nav, service nav, skewed red blocks)
     3. hero (photo + dark overlay + copy)
     4. info card + warning-signs accordion
     5. step row
     6. CTA strip (white card + red action button)
     7. footer (dark grey, link columns, slash nav)
     8. quiz page (progress, mail card, feedback, results)
     9. responsive
   =================================================================== */

/* ---------- 0. fonts (Inter, self-hosted) ---------- */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

/* ---------- 1. tokens + base ---------- */

:root {
  --red: #e2002a;
  --red-dark: #9d1023;
  --ink: #222222;
  --text: #565151;
  --muted: #767676;
  --bg: #ffffff;
  --bg-soft: #f2f2f2;
  --line: #e0e0e0;
  --green: #1e8e4b;
  --green-bg: #e9f6ee;
  --green-line: #c2e4d0;
  --green-ink: #176a39;
  --red-bg: #fdecee;
  --red-line: #f5c9cd;
  --red-ink: #b3101f;
  --footer-bg: #464646;
  --shadow-card: 0 3px 10px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* the page must never scroll sideways (skewed header blocks and the
   1280px hero stick out on narrow screens) */
html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, Inter, Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; }

/* ---------- 2. header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: stretch;
  height: 62px;
}

.logo-link {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 22px 0 24px;
}

.logo-link:hover { text-decoration: none; }

.logo-link img {
  height: 26px;
  width: auto;
}

/* main navigation (left, after the logo) */

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-right: 24px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a .chev { width: 9px; height: 9px; flex: none; }

.main-nav a:hover {
  color: var(--red);
  text-decoration: none;
}

.main-nav a.active {
  border-bottom-color: var(--red);
  font-weight: 700;
}

/* service navigation (right) */

.service-nav {
  margin-left: auto;
  display: flex;
  align-items: stretch;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.svc-link:hover { color: var(--red); text-decoration: none; }

.svc-link svg { width: 20px; height: 20px; flex: none; }

/* skewed red header block (used by the "Abmelden" button on the quiz
   page) — the live site draws its top-right CTAs as skew(-28deg)
   parallelograms with un-skewed content */
.header-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  white-space: nowrap;
  height: 100%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 0 18px 0 26px;
  transform: skew(-28deg);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.header-block > * { transform: skew(28deg); }
.header-block svg { width: 20px; height: 20px; flex: none; }

/* ---------- 3. hero ---------- */

.hero {
  position: relative;
  max-width: 1280px;
  margin: 32px auto 0;
  aspect-ratio: 3.2 / 1; /* the 2560x800 hero photo */
  overflow: hidden;
  background: #111418;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the live site's own overlay (facelift-2025) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0, transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 720px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.hero-copy .hero-sub {
  margin: 0;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

/* slim variant on the quiz page */
.hero.hero-slim { aspect-ratio: auto; height: 240px; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 18px;
  padding: 6px 16px 6px 8px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.user-chip .chip-ava {
  width: 28px;
  height: 28px;
  flex: none;
  background: var(--red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.user-chip .chip-mail {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- 4. info card + accordion ---------- */

.info-card {
  max-width: 1280px;
  margin: 32px auto 0;
  background: var(--bg-soft);
  padding: 32px 44px 28px;
}

.info-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #3f4856;
}

.info-card p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.info-card p:last-of-type { margin-bottom: 0; }

/* the "Zusatzangebot von …" accordion line */
.toggle {
  border: 0;
  background: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 4px;
  border-top: 1px solid #dcdcdc;
  margin-top: 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.toggle .chev {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.toggle-panel {
  display: none;
  padding: 14px 0 10px;
}

.toggle-panel.open { display: block; }

.toggle-panel ol {
  margin: 0;
  padding-left: 20px;
}

.toggle-panel li {
  margin-bottom: 9px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.toggle-panel li strong { color: #474747; }

/* ---------- 5. step row ---------- */

.steps {
  max-width: 1280px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 24px 26px;
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- 6. CTA strip ---------- */

.cta-strip {
  margin-top: 56px;
  background: var(--bg-soft);
  border-top: 1px solid #eaeaea;
}

.cta-card {
  max-width: 1280px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.cta-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* the live site's .action-btn / .more-btn:
   background:#e2002a;border:1px solid #e2002a;color:#fff;
   font-size:20px;font-weight:700;padding:12px 20px — square corners */

.action-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--red);
  border: 1px solid var(--red);
  color: #ffffff;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 10px 10px 24px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.action-btn:hover {
  background: #ffffff;
  color: var(--red);
  border-color: var(--red);
  text-decoration: none;
}

.action-btn .ms-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5px;
  width: 24px;
  height: 24px;
  flex: none;
}

.action-btn .ms-mark i { display: block; }
.action-btn .ms-mark .r { background: #f25022; }
.action-btn .ms-mark .g { background: #7fba00; }
.action-btn .ms-mark .b { background: #00a4ef; }
.action-btn .ms-mark .y { background: #ffb900; }

.action-btn .arr {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn .arr svg { width: 16px; height: 16px; stroke: var(--red); }
.action-btn:hover .arr { background: #ffffff; }
.action-btn:hover .arr svg { stroke: var(--red); }

/* mobile-only CTA under the hero image (hidden on desktop) */
.cta-mobile { display: none; }

/* smaller action button (next-question on the quiz page):
   must never shrink or wrap its label (it sits in a flex row) */
.action-btn--sm {
  flex: none;
  font-size: 15px;
  padding: 8px 9px 8px 20px;
  gap: 10px;
}

.action-btn--sm > span { white-space: nowrap; flex-shrink: 0; }

.action-btn--sm .arr { width: 30px; height: 30px; }
.action-btn--sm .arr svg { width: 13px; height: 13px; }

/* ---------- 7. footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: #ffffff;
  margin-top: 64px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 48px;
  padding: 32px 24px 24px;
}

.footer-links__block { flex: 1 0 180px; }

.footer-links__block h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li { margin-top: 8px; }

.footer-links a {
  color: #ffffff;
  font-size: 15px;
  display: inline-block;
  padding: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.footer-links a:hover { background: #676767; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #5a5a5a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 18px 24px;
}

.footer-bottom .f-logo img { height: 24px; width: auto; }

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.footer-nav li { display: flex; align-items: center; }
.footer-nav li:after {
  content: "/";
  display: inline-block;
  font-size: 18px;
  padding: 0 8px 0 8px;
  color: #9a9a9a;
}
.footer-nav li:last-child:after { content: none; }

.footer-nav a {
  color: #ffffff;
  font-size: 15px;
  padding: 2px;
  text-decoration: none;
}

.footer-nav a:hover { background: #676767; text-decoration: none; }

.footer-copy {
  margin-left: auto;
  font-size: 13px;
  color: #c9c9c9;
}

/* ---------- 8. quiz page ---------- */

.quiz-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.quiz-head .bar {
  width: 120px;
  height: 5px;
  background: var(--red);
  margin-bottom: 20px;
}

.quiz-head h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.quiz-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  max-width: 640px;
}

.quiz-sub .quiz-user {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* progress */

.progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 20px;
}

.seg {
  width: 36px;
  height: 10px;
  background: #e0e0e0;
}

.seg.current { background: var(--red); }
.seg.ok { background: var(--green); }
.seg.no { background: var(--red); }

.progress-label {
  margin-left: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

/* mail card */

.mail-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  animation: mail-in 0.25s ease both;
}

@keyframes mail-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.mail-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 24px;
  border-bottom: 1px solid #eeeeee;
}

.mail-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--red);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.mail-from { min-width: 0; }

.mail-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.mail-addr {
  font-size: 13px;
  color: #6b6b6b;
  overflow-wrap: anywhere;
}

.mail-date {
  margin-left: auto;
  flex: none;
  font-size: 13px;
  color: #9a9a9a;
}

.mail-subj {
  padding: 20px 24px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.mail-body {
  padding: 14px 24px 6px;
  font-size: 15px;
  line-height: 1.65;
  color: #2b2b2b;
}

.mail-body p { margin: 0 0 14px; }

/* fake in-mail elements: they must look clickable but do nothing */
.mail-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  margin: 12px 0 4px;
  background: #161616;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

.mail-link {
  color: #1a0dab;
  text-decoration: underline;
  cursor: default;
}

/* question zone */

.ask {
  margin-top: 16px;
  padding: 20px 24px 22px;
  border-top: 1px solid #eeeeee;
  background: #fafafa;
}

.ask-q {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.ask-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* the two answer buttons speak the site's own button language:
   .btn-primary = red fill, .btn-secondary = white with red border */
.pick {
  min-width: 150px;
  height: 50px;
  padding: 0 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pick:active { transform: scale(0.99); }

.pick-real {
  background: #ffffff;
  border: 1px solid var(--red);
  color: var(--red);
}

.pick-real:hover { background: #f9f9f9; }

.pick-phish {
  background: var(--red);
  border: 1px solid var(--red);
  color: #ffffff;
}

.pick-phish:hover { background: var(--red-dark); border-color: var(--red-dark); }

.pick:disabled { cursor: default; opacity: 0.55; }
.pick:disabled:hover { background: inherit; }
.pick.was-picked { opacity: 1; }
.pick.was-picked.pick-real { background: var(--red); color: #ffffff; }
.pick.was-picked.pick-phish { box-shadow: 0 0 0 3px rgba(226, 0, 42, 0.25); }

/* feedback */

.fb {
  display: none;
  margin-top: 16px;
  padding: 15px 18px;
  font-size: 14.5px;
  line-height: 1.55;
}

.fb.show { display: block; }

.fb h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.fb p { margin: 0; }

.fb.ok {
  background: var(--green-bg);
  border: 1px solid var(--green-line);
  border-left: 4px solid var(--green);
}

.fb.ok h4 { color: var(--green-ink); }

.fb.no {
  background: var(--red-bg);
  border: 1px solid var(--red-line);
  border-left: 4px solid var(--red);
}

.fb.no h4 { color: var(--red-ink); }

.ask-actions {
  display: none;
  margin-top: 18px;
  justify-content: flex-end;
}

.ask-actions.show { display: flex; }

/* results */

.results-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 36px;
  text-align: center;
  animation: mail-in 0.25s ease both;
}

.done-badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.done-badge svg { width: 44px; height: 44px; }

.results-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.results-score {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--text);
}

.res-list {
  margin: 0;
  text-align: left;
  border-top: 1px solid #eeeeee;
}

.res-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid #eeeeee;
}

.res-ico {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.res-ico.ok { background: var(--green); }
.res-ico.no { background: var(--red); }

.res-subj {
  font-size: 14.5px;
  font-weight: 600;
}

.res-verd {
  margin-top: 2px;
  font-size: 13px;
  color: #6b6b6b;
}

.close-note {
  margin-top: 26px;
  background: var(--bg-soft);
  border-left: 4px solid var(--red);
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a4a4a;
}

.close-note strong { color: var(--ink); }

.again {
  display: inline-block;
  margin-top: 16px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
}

.again:hover { text-decoration: underline; }

.noscript {
  margin-top: 20px;
  padding: 16px;
  background: var(--red-bg);
  border: 1px solid var(--red-line);
  font-size: 14px;
}

/* ---------- 9. responsive ---------- */

@media (max-width: 1100px) {
  .svc-link .svc-label { display: none; }
  .svc-link { padding: 0 8px; }
}

@media (max-width: 960px) {
  .main-nav { display: none; }

  /* bigger hero on phones: fixed height instead of the 3.2:1 banner
     ratio (which would squeeze it to ~115px on a 390px screen) */
  .hero { margin: 20px 16px 0; aspect-ratio: auto; height: 240px; }
  .hero.hero-slim { height: 220px; }
  .hero-copy { padding: 0 28px; }

  /* login CTA directly under the hero image on phones, so the button
     is visible before the user has to scroll past the info card */
  .cta-mobile {
    display: block;
    background: var(--bg-soft);
    border-top: 1px solid #eaeaea;
    padding: 20px 16px;
  }
  .cta-mobile .action-btn {
    width: 100%;
    justify-content: center;
  }

  .info-card { margin: 24px 16px 0; padding: 26px 24px 22px; }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
    padding: 0 16px;
  }

  .cta-strip { margin-top: 40px; }
  .cta-card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin: 0 16px;
    padding: 24px;
  }
  .action-btn { justify-content: center; }
}

@media (max-width: 560px) {
  .header-inner { height: 56px; }
  .logo-link { padding: 0 12px; }
  .logo-link img { height: 22px; }
  .svc-link { display: none; }
  .header-block { padding: 0 12px 0 18px; }

  .hero { margin: 14px 10px 0; height: 300px; }
  .hero.hero-slim { height: 190px; }
  .hero-copy { padding: 0 20px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-copy .hero-sub { font-size: 14px; }

  .info-card { margin: 18px 10px 0; }

  .cta-card { margin: 0 10px; }
  .action-btn { font-size: 17px; }

  .quiz-main { padding: 28px 12px 56px; }
  .quiz-head h1 { font-size: 26px; }

  .mail-head { flex-wrap: wrap; }
  .mail-date { display: none; }

  .ask-btns { flex-direction: column; }
  .pick { width: 100%; min-width: 0; }

  .footer-links { flex-direction: column; gap: 20px; }
  .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mail-card,
  .results-card { animation: none; }
}