/* Betriebspensionskasse - Hauptstilvorlage */
/* Reset & Variables */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3a5c;
  --primary-dark: #0d2440;
  --accent: #f0a830;
  --accent-dark: #d68f1a;
  --danger: #d9534f;
  --success: #28a745;
  --text: #2c3e50;
  --text-light: #6c757d;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-section: #eef3f8;
  --border: #e1e8ed;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1200px;
  --transition: all 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 0.75em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1em; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* Header */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  flex-wrap: nowrap;
}
.site-header .container {
  max-width: 1320px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
  text-decoration: none;
  flex-shrink: 0;
  max-width: 280px;
}
.logo-mark, .logo-mark-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
}
.logo-mark-img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.logo-mark {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
  white-space: nowrap;
}
.logo-text small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-top: 2px;
  white-space: nowrap;
}
.site-footer .logo-text { color: #fff; }
.site-footer .logo-text small { color: var(--accent); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
  white-space: nowrap;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--accent);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.header-cta { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.header-cta .btn {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 0.9rem;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-dark);
}

/* Header responsive — wenn zu schmal: Menü verstecken, Burger anzeigen */
@media (max-width: 1180px) {
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: 0.88rem; }
  .header-cta .btn { padding: 9px 14px; font-size: 0.85rem; }
  .logo-text { font-size: 0.85rem; }
  .logo-text small { font-size: 0.68rem; }
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    flex-direction: column;
  }
  .main-nav.open { display: flex; }
  .main-nav ul {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .main-nav a { font-size: 1rem; }
  .mobile-toggle { display: block; }
}
@media (max-width: 580px) {
  .header-cta .btn:not(.mobile-toggle) { display: none; }
  .logo-text { font-size: 0.78rem; }
  .logo-text small { font-size: 0.65rem; }
  .logo-mark { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(240,168,48,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero mit Formular */
.hero-with-form { padding: 70px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-with-form .hero-content { max-width: 100%; }
.hero-with-form h1 { font-size: 2.6rem; }
.hero-with-form p { margin-bottom: 28px; }
.hero-trust {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
}
.trust-item strong {
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}
.trust-item span {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 4px;
}
.hero-form-wrap { position: relative; z-index: 2; }
.hero-form {
  margin: 0 !important;
  max-width: 100% !important;
  padding: 32px !important;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  animation: slideInRight 0.6s ease-out;
}
.hero-form h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.hero-form > p {
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.hero-form .form-group { margin-bottom: 14px; }
.hero-form .form-group input,
.hero-form .form-group textarea {
  padding: 10px 14px;
  font-size: 0.95rem;
}
.hero-form .form-group label {
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.hero-form .form-check {
  font-size: 0.8rem;
  margin-bottom: 14px;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-with-form h1 { font-size: 2rem; }
  .hero-trust { gap: 20px; }
  .trust-item strong { font-size: 1.4rem; }
}

/* Sections */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

/* Analysis grid */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.analysis-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
}
.analysis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.analysis-card .icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.analysis-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.analysis-card p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* Catalog tabs */
.catalog-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 12px 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Company grid */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.company-card {
  background: #fff;
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
}
.company-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.company-logo {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  background: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.5rem;
}
.company-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.company-meta { font-size: 0.85rem; color: var(--text-light); }
.rating { color: var(--accent); font-weight: 700; }

/* Review cards */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.review-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--danger);
}
.review-card.positive { border-left-color: var(--success); }
.review-card.neutral { border-left-color: var(--accent); }
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.review-author { font-weight: 600; color: var(--primary-dark); }
.review-target { font-size: 0.85rem; color: var(--text-light); }
.review-text { font-size: 0.95rem; line-height: 1.65; }

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  position: relative;
}
.blog-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.3), transparent);
}
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-date {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.blog-card h3 a { color: var(--primary-dark); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}
.blog-read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Forms */
.consultation-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  margin: 0 auto;
}
.consultation-form h3 {
  text-align: center;
  margin-bottom: 8px;
}
.consultation-form > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 18px;
}
.form-check input { margin-top: 4px; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.cta-section h2 { color: white; font-size: 2.25rem; }
.cta-section p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 32px; opacity: 0.95; }
.cta-section .btn-primary { background: white; color: var(--primary-dark); }
.cta-section .btn-primary:hover { background: var(--primary-dark); color: white; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #c5d1de;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #c5d1de; font-size: 0.95rem; }
.footer-col ul a:hover { color: var(--accent); }
.footer-about { font-size: 0.95rem; line-height: 1.7; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--text-light);
}

/* Page header */
.page-header {
  background: var(--primary-dark);
  color: white;
  padding: 60px 0;
}
.page-header h1 { color: white; margin-bottom: 12px; }
.page-header p { opacity: 0.9; font-size: 1.1rem; }

/* Article */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}
.article-content h2 { margin-top: 2em; }
.article-content h3 { margin-top: 1.5em; }
.article-content p { font-size: 1.05rem; line-height: 1.8; }
.article-content ul, .article-content ol {
  margin: 1em 0 1em 2em;
}
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-tag {
  display: inline-block;
  background: var(--bg-section);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
}
.pagination a:hover, .pagination .active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Alert / Info boxes */
.alert {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  border-left: 4px solid;
}
.alert-warning { background: #fff8e1; border-color: var(--accent); }
.alert-danger { background: #fdecea; border-color: var(--danger); }
.alert-info { background: #e3f2fd; border-color: var(--primary); }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.stat-item {
  text-align: center;
  padding: 24px;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 968px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .consultation-form { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 40px 0; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 36, 64, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal-window {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  border: none;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}
.modal-close:hover {
  background: var(--danger);
  color: #fff;
  transform: rotate(90deg);
}
.modal-form {
  box-shadow: none !important;
  margin: 0 !important;
  max-width: none !important;
}
body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal-window {
    max-height: calc(100vh - 20px);
  }
  .modal-form {
    padding: 28px 20px !important;
  }
}

/* Process Grid mit Fotos */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.process-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.process-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.process-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.process-card:hover .process-img img {
  transform: scale(1.05);
}
.process-step {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(240,168,48,0.4);
}
.process-body {
  padding: 24px;
}
.process-body h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.process-body p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .about-grid, .report-grid { grid-template-columns: 1fr !important; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
