/* ╔══════════════════════════════════════════════════════════════════╗
   ║ FinoraQ — Design System                            ║
   ║ Premium SaaS · Apple/Notion/Linear-Stil · Light · 2026-05-19     ║
   ╚══════════════════════════════════════════════════════════════════╝ */

:root {
  /* ── Farben ───────────────────────────────────────────────────── */
  --bg:           #F8FAF9;
  --navy:         #163047;
  --navy-2:       #1f4566;
  --green:        #6D9C88;
  --green-2:      #588a76;
  --green-light:  #EAF3EE;
  --green-soft:   #F1F8F4;
  --text:         #1C2430;
  --muted:        #667085;
  --muted-2:      #98A2B3;
  --border:       #EAECF0;
  --border-soft:  #F2F4F7;
  --white:        #FFFFFF;
  --danger:       #B42318;
  --danger-light: #FEE4E2;
  --warn:         #B54708;
  --warn-light:   #FEF0C7;
  --info:         #1849A9;
  --info-light:   #D1E9FF;

  /* ── Schatten ─────────────────────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 4px 12px rgba(16, 24, 40, 0.04);
  --shadow:    0 10px 40px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 14px 50px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 80px rgba(16, 24, 40, 0.08);

  /* ── Radius ───────────────────────────────────────────────────── */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* ── Spacing ──────────────────────────────────────────────────── */
  --space-section: 120px;
  --space-section-sm: 80px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-feature-settings: 'cv11','ss01','ss03';
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-2); }

/* ── Typografie ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { color: var(--text); margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
h4 { font-size: 18px; line-height: 1.3; font-weight: 600; }

p { color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0 0 1em; }
p.lead { font-size: 20px; color: var(--muted); }
small, .text-sm { font-size: 14px; }

::selection { background: var(--green-light); color: var(--navy); }

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: min(1200px, 90%); margin: 0 auto; }
.container-narrow { width: min(800px, 92%); margin: 0 auto; }
section { padding: var(--space-section) 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muted { color: var(--muted); }
.grow { flex: 1; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.4,0,.2,1), background-color .18s, border-color .18s, color .18s, box-shadow .18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px) scale(1.015); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; box-shadow: 0 8px 24px rgba(22, 48, 71, 0.18); }

.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }

.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-2); color: #fff; }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--green-light); color: var(--navy); }

.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger-light); }
.btn-danger:hover { background: var(--danger-light); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: 12px; }
.btn-lg { padding: 20px 36px; font-size: 16px; }

.btn-icon { padding: 12px; width: 44px; height: 44px; border-radius: 12px; }

/* ── Badge / Pill ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-2);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.badge.is-navy { background: rgba(22, 48, 71, 0.08); color: var(--navy); }
.badge.is-navy .dot { background: var(--navy); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--green-light); color: var(--green-2);
  font-size: 12.5px; font-weight: 600;
  border: 1px solid transparent;
}
.chip.is-navy { background: rgba(22, 48, 71, 0.06); color: var(--navy); }
.chip.is-warn { background: var(--warn-light); color: var(--warn); }
.chip.is-danger { background: var(--danger-light); color: var(--danger); }
.chip.is-info { background: var(--info-light); color: var(--info); }
.chip.is-muted { background: var(--border-soft); color: var(--muted); }

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 32px;
  border: 1px solid var(--border-soft);
}
.card-sm { padding: 20px; border-radius: var(--r-lg); }
.card-lg { padding: 48px; border-radius: var(--r-2xl); }

.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(248, 250, 249, 0.78);
  border-bottom: 1px solid rgba(234, 236, 240, 0.6);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.brand-circle svg { width: 18px; height: 18px; }
.brand-text {
  font-weight: 700; font-size: 17px; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.1;
}
.brand-text small {
  display: block; font-size: 11.5px; color: var(--muted);
  font-weight: 500; letter-spacing: 0;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-link {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
}
.nav-link:hover { color: var(--navy); background: var(--green-light); }
.nav-link.is-active { color: var(--navy); }

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

/* ── Forms ─────────────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="search"], input[type="date"], select, textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-light);
}
label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field { margin-bottom: 18px; }

/* ── Modal-Base ─────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(28, 36, 48, 0.40);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: scaleUp .2s ease;
}
.modal-card-lg { width: min(760px, 100%); }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--border-soft);
  border: 0;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: all .15s;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-head h3 { margin-bottom: 6px; }
.modal-head .modal-sub { font-size: 14.5px; color: var(--muted); margin: 0 0 24px; }
.modal-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.float-anim { animation: floatY 6s ease-in-out infinite; }

/* ── Section-Header ─────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head .badge { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 19px; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 80px 0 40px;
  background: var(--white);
  border-top: 1px solid var(--border-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h5 { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; color: var(--muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border-soft);
  color: var(--muted); font-size: 13.5px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ── Responsive helpers ─────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: var(--space-section-sm) 0; }
  .card { padding: 24px; }
}

/* ── Anim utility ───────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp .7s ease forwards; }
.fade-up.d-1 { animation-delay: .08s; }
.fade-up.d-2 { animation-delay: .16s; }
.fade-up.d-3 { animation-delay: .24s; }
.fade-up.d-4 { animation-delay: .32s; }

/* ─── Section-Padding nur auf Landing-Pages, nicht auf App-Pages ─── */
/* App-Pages: <body class="app-body"> — sections darin brauchen kein 120px padding */
body.app-body section,
.onb-main section,
.prof-main section {
  padding: 0;
}
