/* praemien-guru.ch — Prämien-Guru CSS — Variant B Centered Hero */
/* Fonts: Josefin Sans + Quicksand via Google Fonts */
/* Primary: #7C3AED (Violet) */

:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --primary-light: #A78BFA;
  --primary-bg: #F5F3FF;
  --accent: #EDE9FE;
  --text: #1E1B4B;
  --text-light: #4C1D95;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --dark: #0F0D1A;
  --gradient: linear-gradient(135deg, #7C3AED 0%, #5B21B6 50%, #4C1D95 100%);
  --gradient-soft: linear-gradient(135deg, #EDE9FE 0%, #F5F3FF 100%);
  --shadow: 0 4px 24px rgba(124, 58, 237, 0.12);
  --shadow-lg: 0 8px 40px rgba(124, 58, 237, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* Container */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 0.75rem 1.5rem;
}

.nav-logo {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.35rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-logo span { color: var(--primary-dark); }

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  position: relative; padding: 0.25rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient); color: var(--white) !important;
  padding: 0.6rem 1.4rem; border-radius: 50px; font-weight: 700;
  font-size: 0.9rem; transition: transform 0.3s, box-shadow 0.3s;
  font-family: 'Josefin Sans', sans-serif;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--white) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 0.5rem;
}
.nav-toggle span {
  width: 26px; height: 2.5px; background: var(--text);
  border-radius: 2px; transition: 0.3s;
}

/* ─── HERO — Variant B: Centered ─── */
.hero {
  background: var(--gradient);
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(91, 33, 182, 0.2) 0%, transparent 50%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; max-width: 680px; margin: 0 auto 2rem; }

.hero-badge {
  display: inline-block; background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 1.2rem; border-radius: 50px;
  color: var(--white); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1.5rem; backdrop-filter: blur(4px);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 50px; font-weight: 700;
  font-family: 'Josefin Sans', sans-serif; font-size: 1rem;
  transition: all 0.3s; cursor: pointer; border: none; text-decoration: none;
}
.btn-primary { background: var(--gradient); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); color: var(--primary); }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ─── STATS BAR ─── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  margin-top: -2.5rem; position: relative; z-index: 10;
}
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-number {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--primary);
  display: block;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

/* ─── SECTIONS ─── */
.section { padding: 5rem 0; }
.section-violet { background: var(--primary-bg); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.85); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

.section-label {
  display: inline-block; background: var(--accent);
  color: var(--primary); padding: 0.3rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.section-dark .section-label { background: rgba(124,58,237,0.3); color: var(--primary-light); }

/* ─── TWO-COL ALTERNATING ─── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.two-col.reverse .col-visual { order: -1; }

.col-visual {
  background: var(--gradient-soft); border-radius: var(--radius-lg);
  padding: 3rem; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.col-visual-icon {
  font-size: 5rem; opacity: 0.6;
}
.col-visual-dark {
  background: var(--gradient); border-radius: var(--radius-lg);
  padding: 3rem; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}

/* ─── NUMBERED TIPS ─── */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tip-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); border-left: 4px solid var(--primary);
  transition: transform 0.3s;
}
.tip-card:hover { transform: translateY(-4px); }
.tip-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--gradient);
  color: var(--white); border-radius: 50%; font-weight: 700;
  font-family: 'Josefin Sans', sans-serif; font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.tip-card h3 { font-size: 1.1rem; }

/* ─── TABLE ─── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table {
  width: 100%; border-collapse: collapse; background: var(--white);
}
.data-table th {
  background: var(--gradient); color: var(--white);
  padding: 1rem 1.25rem; text-align: left; font-family: 'Josefin Sans', sans-serif;
  font-weight: 700; font-size: 0.9rem; white-space: nowrap;
}
.data-table td {
  padding: 0.9rem 1.25rem; border-bottom: 1px solid #EDE9FE; font-size: 0.95rem;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--primary-bg); }

/* ─── QUOTE / GURU-TIP ─── */
.guru-quote {
  background: var(--gradient); color: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem 3rem; margin: 3rem 0; position: relative;
}
.guru-quote::before {
  content: '\201C'; font-size: 6rem; position: absolute;
  top: -0.5rem; left: 1.5rem; opacity: 0.2; font-family: serif;
  line-height: 1;
}
.guru-quote p { font-size: 1.15rem; font-style: italic; color: var(--white); position: relative; z-index: 1; }
.guru-quote cite {
  display: block; margin-top: 1rem; font-style: normal;
  font-weight: 700; color: rgba(255,255,255,0.8); font-size: 0.9rem;
}

.guru-tip {
  background: var(--accent); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem; margin: 2rem 0;
}
.guru-tip strong { color: var(--primary); }
.guru-tip p { color: var(--text); margin-bottom: 0; }

/* ─── FAQ ACCORDION ─── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #EDE9FE; overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  text-align: left; gap: 1rem;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: 0.3s;
  font-size: 1.2rem; color: var(--primary); font-weight: 700;
}
.faq-item.open .faq-icon { background: var(--primary); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s;
}
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 1.25rem; }
.faq-answer p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ─── GRID CARDS ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); transition: transform 0.3s;
}
.card:hover { transform: translateY(-4px); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary);
}
.card h3 { color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-dark {
  background: rgba(124, 58, 237, 0.08); border: 1px solid rgba(124, 58, 237, 0.15);
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--gradient); padding: 4rem 0; text-align: center;
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 2rem; }

/* ─── FOOTER ─── */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 1rem; line-height: 1.6; }
.footer h4 {
  color: var(--white); font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem; margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer ul a:hover { color: var(--primary-light); }

.footer-logo {
  height: 32px; width: auto; margin-bottom: 0.5rem;
}

.footer-cta {
  background: rgba(124, 58, 237, 0.2); border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  margin-bottom: 2rem;
}
.footer-cta p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 1rem; }
.footer-cta a { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; text-align: center; font-size: 0.85rem;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  padding: 1rem 0; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* ─── INTERNAL LINKS ─── */
.internal-links {
  background: var(--accent); border-radius: var(--radius); padding: 1.5rem 2rem; margin: 2rem 0;
}
.internal-links h4 { font-size: 0.95rem; margin-bottom: 0.75rem; color: var(--primary-dark); }
.internal-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.internal-links a { font-size: 0.9rem; font-weight: 600; }

/* ─── LEGAL ─── */
.legal-content { padding: 8rem 0 4rem; }
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal-content p, .legal-content li { font-size: 0.95rem; color: var(--text-muted); }
.legal-content ul { margin-left: 1.5rem; margin-bottom: 1rem; }

/* ─── KANTON TABLE ─── */
.kanton-highlight {
  background: var(--accent); font-weight: 700; color: var(--primary);
}

/* ─── HIGHLIGHT ─── */
.highlight {
  background: var(--accent); display: inline; padding: 0.1em 0.3em;
  border-radius: 4px;
}
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse .col-visual { order: 0; }
  .tips-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--white);
    padding: 1.5rem; gap: 1rem; box-shadow: var(--shadow);
    border-top: 1px solid #EDE9FE;
  }
  .hero { padding: 7rem 0 4rem; }
  .section { padding: 3.5rem 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .guru-quote { padding: 2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .two-col { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
