/* ============================================
   40plus Bonn – Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,600;0,700;1,300&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300&display=swap');

/* --- Variables --- */
:root {
  --accent:      #BE0E18;
  --accent-dark: #8f0b12;
  --text:        #1e2d3a;
  --text-light:  #3d5468;
  --bg:          #FAFAF8;
  --bg-warm:     #F5F2EE;
  --bg-card:     #ffffff;
  --border:      #e0dbd4;
  --shadow:      0 2px 16px rgba(52,73,94,0.08);
  --shadow-md:   0 4px 32px rgba(52,73,94,0.12);
  --radius:      6px;
  --max-w:       1120px;
  --font-head:   'Rubik', system-ui, sans-serif;
  --font-body:   'Source Serif 4', Georgia, serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
a:hover { color: var(--accent-dark); }

/* Nav, buttons, cards – no underline where it's visually clear */
nav a, .btn, .card a, .footer-col ul li a, .footer-credit a,
.logo, .hero-content a, .breadcrumb a, .sidebar-box a,
.trust-item, .footer-bottom a { text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-bottom: .75rem; margin-top: 1.75rem; }
p  { margin-bottom: 1.25rem; font-size: 1.05rem; }

.accent { color: var(--accent); }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }
section:nth-child(even) { background: var(--bg-warm); }

/* ============================================
   HEADER / NAV
   ============================================ */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(52,73,94,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
}
.logo span { color: var(--accent); }

nav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }

nav a {
  color: var(--text);
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 400;
  padding: .45rem .85rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
nav a:hover, nav a.active {
  background: var(--bg-warm);
  color: var(--accent);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: .45rem 1.1rem !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: .35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(52,73,94,.82) 0%, rgba(52,73,94,.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 720px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 580px;
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(190,14,24,.3);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  margin-left: .75rem;
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--accent);
  padding: 1rem 0;
}
.trust-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  color: #fff;
  font-size: .88rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.trust-item::before {
  content: '✓';
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================
   INTRO / TEXT SECTIONS
   ============================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-text h2 { margin-top: 0; }

.intro-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.intro-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform .4s;
}
.intro-image:hover img { transform: scale(1.03); }

/* ============================================
   CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #fde8e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.card h3 { margin-top: 0; font-size: 1.1rem; }
.card p { font-size: .95rem; margin-bottom: 0; color: var(--text-light); }

/* ============================================
   FAQ
   ============================================ */
.faq { max-width: 780px; margin: 2rem auto 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 1rem;
  transition: color .2s;
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: all .3s;
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-answer p {
  padding-bottom: 1.1rem;
  font-size: .98rem;
  color: var(--text-light);
}

.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: .75rem 0;
  font-size: .85rem;
  color: #fff;
}
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .4rem; }

/* ============================================
   PAGE HERO (Unterseiten)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--text) 0%, #4a6278 100%);
  padding: 3.5rem 0 2.5rem;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 600px; margin-bottom: 0; }

/* ============================================
   CONTENT PAGE LAYOUT
   ============================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
}

.content-main h2 { margin-top: 2rem; }
.content-main h2:first-child { margin-top: 0; }

.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-box {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-family: var(--font-body);
  font-weight: 600;
}
.sidebar-box ul {
  list-style: none;
  padding: 0;
}
.sidebar-box ul li {
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a { color: var(--text); }
.sidebar-box ul li a:hover { color: var(--accent); }
.sidebar-box ul li::before { content: '→ '; color: var(--accent); font-size: .8rem; }

.highlight-box {
  background: #fde8e9;
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 2rem 0;
}
.highlight-box p { margin-bottom: 0; font-size: .97rem; }

/* ============================================
   IMAGE BLOCK
   ============================================ */
.image-block {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}
.image-block img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.image-block figcaption {
  padding: .6rem 1rem;
  font-size: .82rem;
  color: var(--text-light);
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ============================================
   STATS / NUMBERS
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.stat-label { font-size: .88rem; color: var(--text-light); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #2c3e50;
  color: rgba(255,255,255,.75);
  padding: 3rem 0 0;
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

footer .logo span { color: #fff; }

.footer-brand .logo {
  color: #fff;
  font-size: 1.3rem;
  display: inline-block;
  margin-bottom: 1rem;
}

footer p { font-size: .9rem; margin-bottom: .75rem; color: #d6e4ec; }

.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
  margin-top: 0;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
  color: #d6e4ec;
  font-size: .9rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-bottom p {
  font-size: .82rem;
  color: #c8dce8;
  margin: 0;
}

.footer-credit a {
  color: #c8dce8;
  font-size: .82rem;
  transition: color .2s;
}
.footer-credit a:hover { color: #fff; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-content { padding: 3rem 1.5rem; }
  .btn-outline { margin-left: 0; margin-top: .5rem; }
  .hero-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; align-items: flex-start; }
  .burger { display: flex; }
  .header-inner { flex-wrap: wrap; }
  nav.open { width: 100%; padding: .5rem 0 1rem; }
  nav.open a { width: 100%; }
  .trust-bar-inner { gap: 1rem; justify-content: flex-start; }
}
