/* Fidelis Audit — konservativer Bank-/Versicherungsstil. Wird NACH style.css / portal.css geladen. */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap');

:root {
  --primary: #0f2b4c;
  --primary-light: #1d3d63;
  --accent: #a87b2b;
  --accent-light: #c29a52;
  --bg-alt: #f5f6f8;
  --bg-dark: #0c2240;
  --text: #1f2a37;
  --text-light: #5d6b7c;
  --border: #d8dde4;
  --radius: 2px;
  --radius-lg: 3px;
  --shadow: none;
  --shadow-lg: 0 6px 24px rgba(15,43,76,.08);
  --transition: .15s ease;
  --font: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

body { font-family: var(--font); font-size: 1.02rem; line-height: 1.7; letter-spacing: .005em; }
h1, h2, h3, .navbar-brand, .footer-brand, .sidebar-brand h2, .portal-card .card-value, .stat-value {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.005em;
}
h4 { font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.18; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
a:hover { color: var(--primary); }

.overline { font-family: var(--font); font-size: .78rem; letter-spacing: .14em; font-weight: 600; color: var(--accent);
  padding-bottom: 6px; border-bottom: 1px solid var(--accent); margin-bottom: 18px; }
.section { padding: 88px 0; }
.section-subtitle { font-size: 1.08rem; }

/* Schaltflaechen: kantig, dunkelblau, ruhig */
.btn { border-radius: var(--radius); border-width: 1px; font-weight: 600; letter-spacing: .02em; padding: 13px 28px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.btn-sm { padding: 9px 18px; }
.btn-dark { background: var(--primary); }

/* Kopfleiste weiss mit feiner Linie */
.navbar { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(15,43,76,.03); }
.navbar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); }
.navbar-brand { color: var(--primary); font-size: 1.45rem; }
.navbar-brand small { color: var(--accent) !important; opacity: 1 !important; font-family: var(--font); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-primary { color: #fff; }
.nav-links .btn-outline { color: var(--primary); border-color: var(--primary); }
.nav-links .btn-outline:hover { background: var(--primary); color: #fff; }
.nav-toggle span { background: var(--primary); }
@media (max-width: 768px) { .nav-links.open { background: #fff; border-bottom: 1px solid var(--border); } }

/* Hero: ruhige, dunkle Flaeche ohne Effekte */
.hero::before { background: linear-gradient(90deg, rgba(12,34,64,.94) 0%, rgba(12,34,64,.82) 55%, rgba(12,34,64,.55) 100%); }
.hero-bg { filter: grayscale(.35) brightness(.55); }
.hero h1 { font-weight: 600; }
.hero h1 .highlight { background: none; -webkit-text-fill-color: #d9b46a; color: #d9b46a; }
.hero p { color: rgba(255,255,255,.82); font-size: 1.12rem; }
.hero .overline { color: #d9b46a; border-color: rgba(217,180,106,.6); }
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--primary); }
.hero .btn-primary:hover { background: #e9edf2; border-color: #e9edf2; }
.hero .btn-outline { border-color: rgba(255,255,255,.55); }
.hero-stats { border-top-color: rgba(255,255,255,.18); }
.hero-stats .stat-value, .stats-bar .stat-value { background: none; -webkit-text-fill-color: #d9b46a; color: #d9b46a; font-weight: 600; }

/* Keine Emoji-Symbole */
.feature-icon, .branch-card .icon, .benefit .icon, .contact-info-list .icon, .sidebar-nav .icon, .abmelden-form .icon,
.portal-card .card-icon, .doc-item .doc-icon, .sms-item .sms-icon { display: none !important; }

/* Karten: flach, feine Linien, dunkelblaue Oberkante */
.feature-card { border-radius: var(--radius); border-top: 3px solid var(--primary); padding: 34px 30px; }
.feature-card:hover { transform: none; box-shadow: var(--shadow-lg); }
.branch-card { border-radius: var(--radius); padding: 26px 18px; text-align: left; border-left: 3px solid var(--primary); }
.branch-card:hover { border-color: var(--border); border-left-color: var(--accent); }
.benefit { border-radius: var(--radius); border-left: 3px solid var(--accent); }
.value-item { border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.value-item .check { color: var(--primary); }
.job-form, .modal, .karte, .portal-card, .proposal-card, .chat-container, .data-table, .login-karte, .calendar-grid, .faq {
  border-radius: var(--radius-lg) !important;
}
.about-image { border-radius: var(--radius); }

/* Ablauf-Nummern: schlicht */
.step-number { background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius);
  box-shadow: none; font-family: var(--serif); width: 54px; height: 54px; font-size: 1.4rem; }

/* Team: Portraets im Rechteck */
.team-photo { border-radius: var(--radius); width: 170px; height: 210px; border: 1px solid var(--border); }
.team-card .role { color: var(--accent); letter-spacing: .04em; }

/* Formulare */
.form-group input, .form-group select, .form-group textarea,
.formular input, .formular select, .formular textarea { border-radius: var(--radius) !important; border-color: #c9d0d9; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15,43,76,.08); }

/* Fussbereich */
.footer { background: var(--bg-dark); }
.footer h4 { font-family: var(--font); letter-spacing: .12em; font-size: .78rem; }
.footer ul a:hover { color: #fff; text-decoration: underline; }

/* Anmeldung */
.login-karte { box-shadow: var(--shadow-lg); }
.login-karte.kunde, .login-karte.karriere { border-top: 4px solid var(--primary); }
.login-karte h1 { font-size: 1.6rem; }

/* ---------- Portale ---------- */
.portal-main { background: var(--bg-alt); }
.sidebar { background: var(--primary); }
.sidebar-brand .badge { background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
  font-family: var(--font); letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; }
.sidebar-nav a, .abmelden-form button { padding: 11px 26px; font-size: .93rem; border-left: 3px solid transparent; }
.sidebar-nav a.active { background: rgba(255,255,255,.06); border-left-color: #d9b46a; color: #fff; }
.zaehler { border-radius: var(--radius); background: #b4483c; }
.portal-header h1 { font-size: 1.75rem; }
.user-avatar { border-radius: var(--radius) !important; background: var(--primary) !important; font-family: var(--font); }
.portal-card { border: 1px solid var(--border); box-shadow: none; border-top: 3px solid var(--primary); }
.portal-card:hover { box-shadow: var(--shadow-lg); }
.portal-card .card-value { color: var(--primary); }
.status-badge { border-radius: var(--radius); font-weight: 600; letter-spacing: .02em; }
.data-table { border: 1px solid var(--border); box-shadow: none; }
.data-table th { background: #eef1f5; color: var(--primary); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.proposal-card { border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.proposal-card::before { display: none; }
.termin .datum small { color: var(--accent); letter-spacing: .08em; }
.termin .datum b { font-family: var(--serif); font-weight: 600; }
.chat-msg { border-radius: var(--radius-lg) !important; }
.reiter a.aktiv { border-bottom-color: var(--primary); }

/* Kalender: sieben gleich breite Spalten */
.calendar-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
.calendar-header { background: var(--primary); color: #fff; font-size: .72rem; letter-spacing: .1em; }
.calendar-day .event { border-radius: var(--radius); }
.calendar-day .event.meeting { background: rgba(168,123,43,.12); color: #7a5717; }
.calendar-day.heute { box-shadow: inset 0 0 0 2px var(--primary); }
