/* ============================================================
   KPR Homepage — Kosten-Preise-Ratgeber
   Modern Ratgeber design: light, professional, check24-style
   Version: 4.0 (INIT_015 P3 redesign — blue accent, light footer)
   ============================================================ */
@import url("foundation.css");

:root {
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e4e7ec;
  --text: #1a1a2e;
  --text-sec: #4a5568;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --accent-mid: #93c5fd;
  --green: #16a34a;
  --green-light: #dcfce7;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --max: 1160px;
  --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 9999;
  padding: 8px 16px; background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 600; border-radius: 0 0 8px 0;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---- Container ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.75rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.nav-logo .logo-accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: .15rem;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  padding: .45rem .85rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: all .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--accent-light); }
.nav-cta {
  margin-left: .5rem;
  padding: .5rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  transition: background .18s, transform .15s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ============================================================
   HERO — light blue, professional, trustworthy
   ============================================================ */
.hero-cover {
  background: linear-gradient(135deg, var(--accent) 0%, #1e40af 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,.07)'/%3E%3C/svg%3E");
  opacity: 1;
}
.hero-overlay {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
.hero-text { max-width: 620px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.1rem;
}
.hero-meta .hero-tag {
  background: rgba(255,255,255,.15);
  padding: .28rem .7rem;
  border-radius: 999px;
  color: rgba(255,255,255,.9);
}
.hero-cover h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .9rem;
  color: #fff;
}
.hero-cover h1 em {
  font-style: normal;
  color: #bfdbfe;
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 520px;
}
.hero-search {
  display: flex;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero-search input[type=search] {
  flex: 1;
  padding: .85rem 1.1rem;
  background: rgba(255,255,255,.95);
  border: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: .95rem;
  outline: none;
}
.hero-search input[type=search]::placeholder { color: var(--muted); }
.hero-search button {
  padding: .85rem 1.25rem;
  background: #fff;
  color: var(--accent);
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s;
  flex-shrink: 0;
}
.hero-search button:hover { background: var(--accent-light); }

/* Hero stats / trust box */
.hero-trust {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  min-width: 200px;
}
.trust-stat { color: #fff; }
.trust-stat .stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.trust-stat .stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-sec);
}
.trust-item .trust-icon {
  width: 18px;
  height: 18px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   EDITORIAL GRID
   ============================================================ */
.editorial { padding: 3.5rem 0; }
.ed-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.75rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}
.ed-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.ed-header .ed-count { font-size: .82rem; color: var(--muted); font-weight: 500; }
.ed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.ed-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .22s var(--ease);
  color: var(--text);
}
.ed-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.ed-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--accent-light);
}
.ed-content { padding: 1.1rem 1.25rem 1.25rem; }
.ed-cat {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-light);
  padding: .22rem .55rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: .55rem;
}
.ed-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .35rem;
  color: var(--text);
}
.ed-card.ed-large .ed-content h3 { font-size: 1.2rem; }
.ed-content p { font-size: .82rem; color: var(--muted); margin: 0; }
.ed-card .ed-price {
  display: inline-block;
  margin-top: .7rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: .22rem .6rem;
  border-radius: 6px;
}

/* ============================================================
   GUIDES LIST
   ============================================================ */
.guides { padding: 3.5rem 0; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.guides-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}
.guides-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.guides-count { font-size: .82rem; color: var(--muted); font-weight: 500; }
.guides-list { display: flex; flex-direction: column; }
.guide-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: all .18s var(--ease);
  color: var(--text);
}
.guide-row:last-child { border-bottom: none; }
.guide-row:hover { background: var(--accent-light); margin: 0 -1.75rem; padding: 1rem 1.75rem; border-radius: var(--radius); border-bottom-color: transparent; }
.guide-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-mid);
  width: 2.25rem;
  flex-shrink: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.guide-row:hover .guide-num { color: var(--accent); }
.guide-info { flex: 1; min-width: 0; }
.guide-cat {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  display: block;
  margin-bottom: .2rem;
}
.guide-info h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guide-cost {
  font-size: .82rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: .25rem .65rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.guide-arrow {
  font-size: 1rem;
  color: var(--muted);
  transition: transform .18s, color .18s;
  flex-shrink: 0;
}
.guide-row:hover .guide-arrow { transform: translateX(4px); color: var(--accent); }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories { padding: 3.5rem 0; }
.categories h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.rubrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.rubric {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .22s var(--ease);
  color: var(--text);
}
.rubric:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.rubric img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--accent-light);
}
.rubric-info { padding: 1rem 1.25rem 1.1rem; }
.rubric-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; color: var(--text); }
.rubric-info span { font-size: .78rem; color: var(--muted); }

/* ============================================================
   SUBSCRIBE
   ============================================================ */
.subscribe { padding: 3.5rem 0; }
.sub-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.75rem;
  box-shadow: var(--shadow-sm);
}
.sub-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .5rem;
  color: var(--text);
}
.sub-text h2 em { font-style: normal; color: var(--accent); }
.sub-text p { font-size: .9rem; color: var(--muted); max-width: 380px; }
.sub-form { display: flex; gap: .5rem; flex-shrink: 0; }
.sub-form input {
  padding: .75rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: .9rem;
  width: 240px;
  outline: none;
  transition: border-color .18s;
}
.sub-form input:focus { border-color: var(--accent); }
.sub-form input::placeholder { color: var(--muted); }
.sub-form button {
  padding: .75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, transform .15s;
}
.sub-form button:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ============================================================
   FOOTER — light, no dark background
   ============================================================ */
.footer {
  background: var(--white);
  color: var(--text-sec);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  border-top: 3px solid var(--accent);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-left .nav-logo { color: var(--text); margin-bottom: .5rem; display: block; }
.footer-left p { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a {
  font-size: .82rem;
  color: var(--text-sec);
  transition: color .18s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-overlay { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: row; flex-wrap: wrap; min-width: auto; gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hero-cover { padding: 2.5rem 0 2rem; }
  .hero-cover h1 { font-size: 1.75rem; }
  .hero-lead { font-size: .95rem; }
  .hero-search { max-width: 100%; }
  .hero-trust { display: none; }
  .trust-bar .container { gap: 1.1rem; }
  .sub-inner { flex-direction: column; padding: 1.75rem; }
  .sub-form { width: 100%; flex-direction: column; }
  .sub-form input { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .guide-row:hover { margin: 0; padding: 1rem 0; border-radius: 0; }
  .guide-cost { display: none; }
  .ed-grid { grid-template-columns: 1fr; }
  .rubrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .nav-inner { padding: 0 1rem; }
  .hero-overlay { padding: 0 1rem; }
  .rubrics { grid-template-columns: 1fr; }
  .trust-bar .container { gap: .75rem; }
  .trust-item span { display: none; }
}

/* ============================================================
   SUB-PAGE COMPONENTS (datenschutz, impressum, kontakt, faq)
   ============================================================ */

/* Hamburger + mobile menu */
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; margin-left: auto; }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(255,255,255,.98); flex-direction: column; padding: 2rem; gap: .5rem; }
.mobile-menu.open { display: flex; }
.mobile-menu .close-btn { align-self: flex-end; background: none; border: none; color: var(--text); font-size: 2rem; cursor: pointer; margin-bottom: 1rem; }
.mobile-menu a { font-size: 1.1rem; font-weight: 600; padding: .75rem 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
@media (max-width: 768px) { .hamburger { display: block; } }

/* Sub-page content area */
.sp-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--accent); }
.sp-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; color: var(--text); }
.sp-content h2 { font-size: 1.1rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--accent); }
.sp-content p, .sp-content ul { margin-bottom: 1rem; color: var(--muted); }
.sp-content ul { padding-left: 1.5rem; }
.sp-content li { margin-bottom: .4rem; }
.sp-content strong { color: var(--text); }
.sp-content a { color: var(--accent); }
.sp-intro { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }

/* Sub-page footer (simpler than homepage footer) */
.sp-footer { background: var(--white); border-top: 1px solid var(--border); margin-top: 3rem; padding: 3rem 1.5rem 2rem; }
.sp-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.sp-footer-col h4 { font-size: .85rem; font-weight: 700; margin-bottom: .75rem; color: var(--text); }
.sp-footer-col p, .sp-footer-col a { font-size: .82rem; color: var(--muted); display: block; margin-bottom: .4rem; text-decoration: none; }
.sp-footer-col a:hover { color: var(--accent); }
.sp-footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: .78rem; color: var(--muted); }
@media (max-width: 768px) { .sp-footer-inner { grid-template-columns: 1fr; } }

/* Contact grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.contact-card p { color: var(--muted); font-size: .9rem; margin-bottom: .25rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* Form styles */
.sp-section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; font-family: var(--sans); background: var(--white); color: var(--text); outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select { appearance: none; cursor: pointer; }
.submit-btn { background: var(--accent); color: #fff; border: none; padding: .85rem 2rem; border-radius: 10px; font-size: .95rem; font-weight: 700; font-family: var(--sans); cursor: pointer; transition: background .2s; }
.submit-btn:hover { background: var(--accent-hover); }

/* FAQ accordion */
.faq-list { margin-top: 1rem; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-q { padding: 1.1rem 1.25rem; font-weight: 600; font-size: .95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .2s; user-select: none; color: var(--text); }
.faq-q:hover { background: var(--accent-light); }
.faq-q .arrow { transition: transform .3s; font-size: 1.2rem; color: var(--muted); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 1.25rem; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 1.25rem 1.25rem; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-item.open .faq-q { background: var(--accent-light); color: var(--accent); }
