/* =====================================================================
   Mamisch Digital — BI Website
   Shared design system (self-hosted font, tokens, chrome, components)
   Plain static CSS — no framework, no build step.
   ===================================================================== */

/* Font faces live in css/fonts.css (linked before this file in HTML) */

/* ---------- Design tokens ---------- */
:root {
  --navy: #232C49;
  --navy-2: #1b2238;
  --navy-grad: linear-gradient(160deg, #262f4e, #1b2238);
  --page-bg: #E8EBF7;
  --light: #EEF1FB;
  --panel: #F4F6FD;
  --white: #ffffff;

  --gold: #F2A93B;
  --gold-text: #E0922A;      /* readable gold on light bg */
  --gold-on-dark: #F2C04B;   /* gold on dark bg */
  --gold-eyebrow: #b6781a;
  --gold-grad: linear-gradient(135deg, #F6B948, #EE9F2D);

  --ink: #232C49;
  --body: #616a87;
  --body-2: #3c4670;
  --muted: #737b94;
  --muted-2: #8a93b0;
  --muted-3: #9aa3bf;

  --green: #1f9d57;
  --teal: #5fd0c0;
  --red: #d24c4c;

  --line: rgba(35,44,73,0.08);
  --shadow-card: 0 10px 30px rgba(35,44,73,0.05);
  --shadow-lg: 0 30px 70px rgba(35,44,73,0.16);
  --maxw: 1440px;
  --radius: 16px;
}

/* ---------- Mockup animations (heroes / chat demo) ---------- */
@keyframes ionFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ionGrow  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ionBlink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes ionChat  { 0% { opacity: 0; transform: translateY(10px); } 6%,94% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(0); } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
button { font-family: inherit; }
:where(h1,h2,h3,h4,p,ul,ol) { }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Accessibility: skip link + focus ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #2b6fff; outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid #2b6fff; outline-offset: 3px; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--sm { padding: 88px 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--navy-grad); }
.section.bg-light, .section.bg-dark { padding: 96px 0; }

/* keep decorative full-bleed layers from causing horizontal scroll */
.section { position: relative; }

/* Responsive grid utilities (override inline grids where classes are used) */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }

@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .hero-split, .split-2 { grid-template-columns: 1fr; gap: 40px; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* Safety net: any remaining inline multi-column grids collapse on phones */
@media (max-width: 620px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ---------- Typography scale (fluid) ---------- */
.h1 { font-size: clamp(34px, 5vw, 53px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.h2 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.lead { font-size: clamp(16px, 2vw, 18px); line-height: 1.6; color: var(--body); }

/* ---------- Eyebrow (gold bar + label) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 4px; height: 22px; background: var(--gold); border-radius: 2px; }
.eyebrow > span { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-eyebrow); }
.eyebrow--dark > span { color: var(--gold-on-dark); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { justify-content: center; }

.gold { color: var(--gold-text); font-weight: 700; }
.gold-dark { color: var(--gold-on-dark); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; text-decoration: none;
  padding: 15px 30px; border-radius: 999px; border: none; cursor: pointer;
  white-space: nowrap; line-height: 1;
}
.btn--primary { color: #fff; background: var(--gold-grad); box-shadow: 0 10px 24px rgba(238,159,45,0.34); }
.btn--white { color: var(--navy); background: #fff; box-shadow: 0 6px 16px rgba(35,44,73,0.08); }
.btn--ghost { color: var(--navy); background: transparent; padding: 15px 6px; }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn:hover { filter: brightness(1.02); transform: translateY(-1px); transition: transform .15s ease; }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(238,159,45,0.42); }

/* ---------- Card ---------- */
.card {
  background: #fff; border: 1px solid rgba(35,44,73,0.05); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-card);
}

/* =====================================================================
   TOPBAR + HEADER (shared chrome)
   ===================================================================== */
.topbar { background: var(--light); border-bottom: 1px solid rgba(35,44,73,0.07); }
.topbar__inner { max-width: var(--maxw); margin: 0 auto; padding: 8px 32px; display: flex; align-items: center; gap: 26px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #4a5375; text-decoration: none; }
.topbar__social { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar__social a { width: 28px; height: 28px; border-radius: 50%; background: rgba(35,44,73,0.06); color: #4a5375; justify-content: center; }
.topbar__social a:hover { background: rgba(35,44,73,0.12); }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(35,44,73,0.06), 0 6px 22px rgba(35,44,73,0.06); }
.nav { max-width: var(--maxw); margin: 0 auto; padding: 15px 32px; display: flex; align-items: center; gap: 32px; }
.nav__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav__logo img { height: 50px; width: auto; max-width: none; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__links a {
  font-weight: 500; font-size: 14px; text-decoration: none; padding: 8px 11px;
  color: #737b94; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a[aria-current="page"] { font-weight: 700; color: var(--navy); border-bottom-color: var(--gold); }
.nav__cta { flex-shrink: 0; }
.nav__cta a {
  font-weight: 700; font-size: 14px; color: #fff; text-decoration: none;
  padding: 11px 22px; border-radius: 999px; background: var(--gold-grad);
  box-shadow: 0 6px 16px rgba(238,159,45,0.32); white-space: nowrap;
}
.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle svg { stroke: var(--navy); }

/* Mobile navigation */
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav { gap: 16px; }
  .nav__logo img { height: 42px; }
  .mobile-menu {
    display: none; border-top: 1px solid var(--line); background: #fff;
    padding: 12px 20px 20px;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a {
    display: block; padding: 13px 8px; font-size: 16px; font-weight: 600;
    color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line);
  }
  .mobile-menu a[aria-current="page"] { color: var(--gold-text); }
  .mobile-menu .btn { margin-top: 16px; width: 100%; justify-content: center; }
}
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }

/* =====================================================================
   TRUST LOGOS (homepage)
   ===================================================================== */
.trust-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.trust-logos__item {
  background: var(--navy);
  border-radius: 12px;
  width: 150px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  box-shadow: 0 8px 20px rgba(35,44,73,0.1);
  overflow: hidden;
}
.trust-logos__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.trust-logos__img--invert { filter: brightness(0) invert(1); }
.trust-logos__img--sm { transform: scale(0.9); }
.trust-logos__img--lg { transform: scale(1.3); }

/* =====================================================================
   NEWS (cards + article body)
   ===================================================================== */
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(35,44,73,0.05);
  border: 1px solid rgba(35,44,73,0.05);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(35,44,73,0.09);
}
.news-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.news-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-hero {
  margin: 0 0 34px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(35,44,73,0.08);
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
.news-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.news-card__tag {
  font-size: 11.5px; font-weight: 700; color: var(--gold-text);
  background: rgba(242,169,59,0.13); padding: 4px 11px; border-radius: 7px;
}
.news-card__date { font-size: 12.5px; color: var(--muted-3); font-weight: 600; }
.news-card__title { margin: 0 0 10px; font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.32; }
.news-card__teaser { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--body); flex: 1; }
.news-card__more { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink); }
.article-body p { margin: 0 0 16px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 1.25em; }
.article-body li { margin-bottom: 8px; }
.article-body h2, .article-body h3 { margin: 24px 0 12px; font-size: 20px; font-weight: 800; color: var(--ink); }
@media (max-width: 900px) { .news-cards { grid-template-columns: 1fr; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy-2); color: #c4cbe0; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 72px 32px 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; }
.site-footer h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.site-footer a { color: #9aa3bf; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer__col-links { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand-logo { display: inline-flex; align-items: center; background: #fff; padding: 11px 16px; border-radius: 12px; margin-bottom: 18px; }
.site-footer__brand-logo img { height: 32px; width: auto; max-width: none; object-fit: contain; }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 56px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer__bottom span { font-size: 13px; color: #727b99; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #c4cbe0; }
.site-footer__social a:hover { background: rgba(255,255,255,0.16); }
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__inner { padding: 56px 20px 0; }
}

/* =====================================================================
   HERO dot-grid background (shared across page heroes)
   ===================================================================== */
.dotgrid {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background-image: radial-gradient(circle, rgba(35,44,73,0.13) 1.4px, transparent 1.6px);
  background-size: 26px 26px; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 88% 20%, #000, transparent 68%);
  mask-image: radial-gradient(ellipse 80% 90% at 88% 20%, #000, transparent 68%);
}

/* =====================================================================
   VIDEO MODAL
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(15,22,36,0.84); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal__inner { position: relative; width: 100%; max-width: 920px; background: #1b2238; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,0.6); }
.modal__close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(0,0,0,0.4); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.modal__inner video, .modal__inner iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; background: #000; }

/* =====================================================================
   COOKIE CONSENT (DSGVO)
   ===================================================================== */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 640px; margin: 0 auto; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,22,36,0.28); padding: 24px 26px;
}
.cc-banner[hidden] { display: none; }
.cc-banner h2 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.cc-banner p { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0 0 16px; }
.cc-banner p a { color: var(--gold-text); font-weight: 700; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-actions button {
  flex: 1 1 auto; min-width: 130px; padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid var(--line);
}
.cc-accept { color: #fff; background: var(--gold-grad); border-color: transparent; }
.cc-decline { color: var(--navy); background: #fff; }
.cc-settings { color: var(--muted); background: var(--light); border-color: transparent; flex: 0 0 auto; }
.cc-options { margin: 4px 0 16px; display: none; flex-direction: column; gap: 10px; }
.cc-options.open { display: flex; }
.cc-option { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--body-2); background: var(--light); padding: 12px 14px; border-radius: 12px; }
.cc-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold-text); }
.cc-option strong { color: var(--ink); }
.cc-manage-link {
  position: fixed; left: 14px; bottom: 14px; z-index: 90;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); background: rgba(255,255,255,0.9);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(35,44,73,0.08);
}
.cc-manage-link svg { flex-shrink: 0; color: var(--gold-text); }
@media (max-width: 620px) { .cc-actions button { flex: 1 1 100%; } }

/* Consent-gated video placeholder (YouTube etc.) */
.consent-block {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px; padding: 30px; aspect-ratio: 16/9;
  color: #c9d5ea; background: linear-gradient(160deg, #26436b, #1b2238);
}
.consent-block button { margin-top: 6px; }

/* ---------- Forms (Kontakt) ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid rgba(35,44,73,0.14); border-radius: 12px; padding: 13px 15px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgba(224,146,42,0.15); }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-text); }
.field--check label { font-weight: 500; font-size: 13px; color: var(--body); }
.form-note { font-size: 12.5px; color: var(--muted-3); }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.form-status--ok { background: rgba(31,157,87,0.12); color: #137a4f; }
.form-status--err { background: rgba(210,76,76,0.12); color: #b0453f; }

/* visually-hidden (for a11y labels) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
