/* ============================================================
   MatchView Kundenportal — portal.css
   Handgeschrieben, kein Build-Tool, keine Frameworks/Abhängigkeiten.
   Design-Tokens 1:1 aus dem MatchView-Hauptprojekt übernommen
   (src/input.css) für Markenkonsistenz.
   ============================================================ */

/* ---------- Self-hosted fonts ---------- */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/bebas-neue-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/inter-800.woff2") format("woff2"); }

:root {
  --bg: #090C11;
  --bg-2: #0C1016;
  --surface: #12181F;
  --surface-2: #18212B;
  --border: #243040;
  --border-soft: #1B2430;
  --text: #F4F7FA;
  --text-2: #C7D0DC;
  --muted: #95A2B2;
  --muted-2: #6E7A8A;
  --gold: #F5C518;
  --gold-bright: #FFD84D;

  --gold-soft: rgba(245, 197, 24, 0.12);
  --gold-tint: rgba(245, 197, 24, 0.10);
  --gold-line: rgba(245, 197, 24, 0.32);
  --gold-glow: rgba(245, 197, 24, 0.35);

  --shadow-md: 0 12px 30px rgba(0,0,0,0.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,0.55);

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --nav-h: 72px;
  --space-section: clamp(3.5rem, 8vw, 6rem);
  --space-head: clamp(2rem, 5vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --slant: clamp(20px, 2.6vw, 44px);
  --sec-a: linear-gradient(180deg, #0c1118 0%, #090c11 100%);
  --sec-b: linear-gradient(168deg, #11161f 0%, #0b0f16 100%);

  --fs-h2: clamp(2rem, 4.2vw, 3rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-sm: 0.93rem;
  --fs-xs: 0.84rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--text); line-height: 1.1; }
::selection { background: var(--gold); color: #0A0A0A; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.gold { color: var(--gold); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.92rem 1.6rem; font-weight: 700; font-size: 0.96rem;
  text-transform: uppercase; letter-spacing: 0.04em; text-align: center;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #14110A; box-shadow: 0 8px 24px rgba(245,197,24,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,197,24,0.42); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--gold); transform: translateY(-2px); }
.btn-disabled { background: var(--surface-2); color: var(--muted-2); border-color: var(--border); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }

/* ---------- Status pill / badge ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.9s infinite; flex: 0 0 auto; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245,197,24,0.55); } 70% { box-shadow: 0 0 0 7px rgba(245,197,24,0); } 100% { box-shadow: 0 0 0 0 rgba(245,197,24,0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,12,17,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: var(--nav-h); }
.nav-left { display: flex; align-items: center; gap: 1rem; min-width: 0; justify-self: start; }
.brand-logo { height: 48px; width: auto; flex: 0 0 auto; }
.nav-center { justify-self: center; }
.nav-right { display: flex; align-items: center; gap: 0.7rem; justify-self: end; }
.nav .btn { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

/* ---------- Sections ---------- */
main > section { position: relative; padding-block: var(--space-section); }
main > section:not(.hero) {
  margin-top: calc(var(--slant) * -1);
  padding-top: calc(var(--space-section) + var(--slant));
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  background: var(--sec-a);
}
main > section.band { background: var(--sec-b); }
.section-head {
  display: flex; flex-direction: column; align-items: center;
  max-width: 720px; margin: 0 auto var(--space-head); text-align: center;
}
.section-head h2 {
  font-family: var(--font-display); font-size: var(--fs-h2);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.section-head .lead { margin-top: 0.9rem; font-size: var(--fs-lead); color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 8vw, 5.5rem); position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 360px at 50% 10%, rgba(245,197,24,0.12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.026) 0 1px, transparent 1px 66px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.026) 0 1px, transparent 1px 66px);
  -webkit-mask-image: radial-gradient(120% 85% at 50% 20%, #000 55%, transparent 100%);
  mask-image: radial-gradient(120% 85% at 50% 20%, #000 55%, transparent 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 880px; margin-inline: auto; }
.hero-inner .pill { margin-bottom: 1.4rem; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6.5vw, 4.2rem); text-transform: uppercase; letter-spacing: 0.03em; }
.hero .lead { max-width: 640px; margin: 1.4rem auto 0; font-size: var(--fs-lead); color: var(--muted); }
.hero .note { max-width: 700px; margin: 1.1rem auto 0; font-size: var(--fs-sm); color: var(--muted-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.2rem; }

/* ---------- Feature cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border);
  padding: 1.6rem 1.5rem; position: relative; overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); opacity: 0; transition: opacity 0.22s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.card:hover::after { opacity: 1; }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid rgba(245,197,24,0.25); margin-bottom: 1.1rem; }
.card-icon svg { width: 22px; height: 22px; color: var(--gold); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }

/* ---------- Hybrid strategy ---------- */
.hybrid-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.check-list { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-2); font-size: var(--fs-sm); }
.check-list svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.hybrid-panel { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-md); }
.hybrid-panel h3 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.hybrid-rows { display: grid; gap: 0.7rem; }
.hybrid-row { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); color: var(--muted); border-bottom: 1px solid var(--border-soft); padding-bottom: 0.6rem; }
.hybrid-row:last-child { border-bottom: none; padding-bottom: 0; }
.hybrid-row svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; }

/* ---------- Login preview ---------- */
.login-card {
  max-width: 460px; margin-inline: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-line);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: 0 0 50px rgba(245,197,24,0.08), var(--shadow-lg);
  text-align: left;
}
.login-card h2 { font-size: 1.3rem; margin-bottom: 0.5rem; text-transform: none; font-family: var(--font-body); font-weight: 700; }
.login-card .login-intro { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.5rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); padding: 0.8rem 0.95rem;
  color: var(--text); font: inherit; font-size: 0.95rem;
}
.field input:disabled { color: var(--muted-2); cursor: not-allowed; }
.login-hint { margin-top: 1rem; font-size: var(--fs-sm); color: var(--muted); border-left: 3px solid var(--gold); padding-left: 0.9rem; }
.login-status {
  display: none; margin-top: 1rem; padding: 0.75rem 1rem;
  background: var(--gold-soft); border: 1px solid var(--gold); color: var(--text); font-size: var(--fs-sm);
}
.login-status.show { display: block; }

/* ---------- Contact ---------- */
.contact-box {
  max-width: 640px; margin-inline: auto; text-align: center;
  border-top: 2px solid var(--gold); padding-top: clamp(2rem, 4vw, 2.6rem);
}
.contact-links { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; padding-block: 2.4rem;
  margin-top: calc(var(--slant) * -1);
  padding-top: calc(2.4rem + var(--slant));
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  background: var(--sec-a);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-logo { height: 56px; width: auto; opacity: 0.9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; font-size: var(--fs-sm); }
.footer-links a { color: var(--muted); transition: color 0.18s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: var(--fs-xs); color: var(--muted-2); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hybrid-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .nav-center { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav .btn { padding: 0.55rem 0.85rem; font-size: 0.8rem; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
}
