/* vDCA Win Wall - valantic Liquid Brand (Route B) */

@font-face {
  font-family: "Maven Pro";
  src: url("/assets/MavenPro-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --coral-red: #FF4B4B;
  --peach: #FF744F;
  --black: #100C2A;
  --royal-blue: #3C4BC8;
  --periwinkle: #8993DE;
  --silver: #CDCDCD;
  --mid-grey: #999999;
  --white: #ffffff;
  --bg: #f5f5f8;
  --card-bg: #ffffff;
  --border-soft: rgba(16, 12, 42, 0.08);
  --gradient: linear-gradient(45deg, #FF4B4B 0%, #FF744F 100%);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --shadow-md: 0 12px 40px rgba(16, 12, 42, 0.12);
  --shadow-sm: 0 4px 16px rgba(16, 12, 42, 0.06);
  --font: "Maven Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --dur: 0.25s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--royal-blue); text-decoration: none; }
a:hover { color: var(--coral-red); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Brand bar ---------- */
.brandbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 12, 42, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brandbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.brandbar img.logo { height: 26px; }
.brandbar .nav { display: flex; gap: 8px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; min-height: 48px; padding: 0 26px;
  font-family: var(--font); font-weight: 600; font-size: 16px;
  text-transform: none; cursor: pointer; border: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 8px 24px rgba(255, 75, 75, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 75, 75, 0.45); color: var(--white); }
.btn-secondary { background: transparent; border: 2px solid var(--royal-blue); color: var(--royal-blue); }
.btn-secondary:hover { background: var(--royal-blue); color: var(--white); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: var(--white);
  padding: 72px 0 88px;
}
.hero .container { position: relative; z-index: 2; }
.hero .shape {
  position: absolute; right: -140px; top: -90px; width: min(46vw, 480px); height: auto;
  opacity: 0.5; pointer-events: none; z-index: 1;
  animation: float 14s ease-in-out infinite;
}
.hero .shape.two { left: -180px; bottom: -220px; top: auto; right: auto; width: min(40vw, 420px); opacity: 0.18; animation-delay: -5s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-26px) rotate(8deg); } }
.hero .eyebrow { color: var(--periwinkle); font-weight: 600; font-size: 16px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; font-weight: 600; margin: 0 0 16px; letter-spacing: -1px; }
.hero h1 .accent {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--silver); font-size: 19px; max-width: 560px; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; position: relative; z-index: 2; }
.stat-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg); padding: 26px 28px;
}
.stat-card .label { color: var(--silver); font-size: 14px; margin: 0 0 8px; }
.stat-card .value { font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1; }
.stat-card .value.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .sub { color: var(--periwinkle); font-size: 14px; margin-top: 8px; }

/* ---------- Section ---------- */
.section { padding: 56px 0 80px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; font-weight: 600; margin: 0; }
.year-filter { display: flex; gap: 8px; align-items: center; }
.year-filter select {
  font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--black);
  border: 1px solid var(--border-soft); border-radius: 999px; padding: 10px 18px; background: var(--white);
  cursor: pointer;
}

/* ---------- Win cards ---------- */
.wins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.win-card {
  background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: var(--radius-xl);
  padding: 26px 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(16px);
  animation: cardIn 0.5s var(--ease) forwards;
}
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }
.win-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.win-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.win-card .kunde { font-size: 20px; font-weight: 600; line-height: 1.2; }
.win-card .umsatz { font-size: 22px; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.win-card .beschreibung { color: #4a4658; font-size: 15px; line-height: 1.5; }
.win-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(60, 75, 200, 0.08); color: var(--royal-blue); }
.chip.date { background: rgba(16, 12, 42, 0.05); color: var(--mid-grey); }
.chip.dealtype { background: rgba(255, 75, 75, 0.1); color: var(--coral-red); }

.empty { text-align: center; padding: 64px 24px; color: var(--mid-grey); }
.empty h3 { color: var(--black); font-weight: 600; font-size: 22px; margin: 0 0 8px; }

/* ---------- Form ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-card { background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 22px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
label .opt { color: var(--mid-grey); font-weight: 400; }
input[type=text], input[type=number], input[type=date], input[type=password], textarea, select {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--black);
  border: 1px solid var(--border-soft); border-radius: 16px; padding: 13px 16px; background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--royal-blue); box-shadow: 0 0 0 4px rgba(60, 75, 200, 0.12); }
textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--coral-red); font-size: 13px; margin-top: 6px; min-height: 16px; }
.input-group { display: flex; gap: 10px; }
.input-group .cur { width: 120px; flex: 0 0 120px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.page-title { margin: 40px 0 8px; font-size: 34px; font-weight: 600; }
.page-sub { color: var(--mid-grey); margin: 0 0 32px; font-size: 17px; }

/* ---------- Login ---------- */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--black); position: relative; overflow: hidden; }
.login-screen .shape { position: absolute; width: 600px; opacity: 0.5; left: -160px; bottom: -200px; }
.login-card { position: relative; z-index: 2; background: var(--card-bg); border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-md); }
.login-card img.logo { height: 28px; margin-bottom: 24px; }
.login-card h1 { font-size: 24px; margin: 0 0 6px; font-weight: 600; }
.login-card p { color: var(--mid-grey); margin: 0 0 24px; }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 48px; color: var(--mid-grey); font-size: 13px; text-align: center; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--black); color: #fff; padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-md); z-index: 100; transition: transform var(--dur) var(--ease); font-weight: 600; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--coral-red); }

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 64px; }
}
