@charset "UTF-8";

/* ============================================
   RENOVIERUNG-RATGEBER.DE — Design System
   ============================================ */

:root {
  --primary:    #2B6CB0;
  --primary-d:  #1E4F82;
  --primary-l:  #EBF4FF;
  --accent:     #E8A838;
  --accent-d:   #C48A20;
  --accent-l:   #FFF8EB;
  --success:    #22863A;
  --success-l:  #E6F9ED;
  --bg:         #FAFBFC;
  --bg2:        #F0F2F5;
  --card:       #FFFFFF;
  --border:     #D1D5DB;
  --text:       #1A1D23;
  --text2:      #4B5563;
  --dim:        #9CA3AF;
  --danger:     #DC2626;
  --radius:     8px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.1);
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container:  1080px;
}

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

/* CONTAINER */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px;
  max-width: var(--container); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px; background: var(--primary); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; font-weight: 900; flex-shrink: 0;
}
.logo-text {
  font-size: 17px; font-weight: 800; color: var(--text);
  letter-spacing: -.02em; line-height: 1.1;
}
.logo-text span {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--dim); letter-spacing: .03em;
}
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 7px 13px; font-size: 13px; font-weight: 500;
  color: var(--text2); border-radius: 4px; transition: all .15s;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-l); }

/* Mobile Menu */
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); padding: 4px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--card); padding: 72px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(43,108,176,.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-l); color: var(--primary);
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 900;
  line-height: 1.08; letter-spacing: -.03em;
  color: var(--text); margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lead {
  font-size: 17px; color: var(--text2);
  max-width: 500px; line-height: 1.65; margin-bottom: 28px;
}
.hero-stats {
  display: flex; gap: 32px; margin-top: 32px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.hero-stat strong { display: block; font-size: 28px; font-weight: 900; color: var(--primary); }
.hero-stat span { font-size: 13px; color: var(--dim); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; font-size: 15px; font-weight: 700;
  border: none; border-radius: 6px; cursor: pointer;
  text-decoration: none; transition: all .18s;
  font-family: inherit; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); transition: all .2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(43,108,176,.2); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--primary-l); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--card); }
.kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(26px, 3.5vw, 38px); font-weight: 900;
  letter-spacing: -.03em; color: var(--text);
  margin-bottom: 12px; line-height: 1.1;
}
.sec-title em { font-style: normal; color: var(--primary); }
.sec-sub { font-size: 16px; color: var(--text2); max-width: 560px; line-height: 1.6; margin-bottom: 40px; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: 12px 0; font-size: 13px; color: var(--dim);
  border-bottom: 1px solid var(--border); background: var(--card);
}
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ============================================
   ARTICLE LAYOUT
   ============================================ */
.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.article-content { max-width: 740px; }
.article-content h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: 20px;
}
.article-content h2 {
  font-size: 24px; font-weight: 800; margin: 48px 0 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--primary-l);
}
.article-content h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 24px; }
.article-content li { margin-bottom: 6px; }
.article-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--dim); margin-bottom: 32px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.article-meta img { width: 36px; height: 36px; border-radius: 50%; }
.article-meta strong { color: var(--text); }

/* TOC — Inhaltsverzeichnis */
.toc {
  position: sticky; top: 80px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.toc-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 12px; }
.toc a {
  display: block; padding: 6px 0; font-size: 14px; color: var(--text2);
  border-left: 2px solid transparent; padding-left: 12px; transition: all .15s;
}
.toc a:hover, .toc a.active { color: var(--primary); border-left-color: var(--primary); }
.toc a.toc-h3 { padding-left: 24px; font-size: 13px; }

/* ============================================
   COST TABLE — Kosten-Tabelle
   ============================================ */
.cost-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.cost-table th {
  background: var(--primary); color: #fff; padding: 12px 16px;
  text-align: left; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .05em;
}
.cost-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cost-table tr:nth-child(even) { background: var(--bg2); }
.cost-table tr:hover { background: var(--primary-l); }
.cost-table .price { font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ============================================
   AFFILIATE BOX
   ============================================ */
.affiliate-box {
  background: var(--accent-l); border: 1px solid #F0D080;
  border-radius: var(--radius); padding: 24px; margin: 24px 0;
  position: relative;
}
.affiliate-badge {
  position: absolute; top: -10px; left: 16px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .05em;
}
.affiliate-box h4 { font-size: 17px; font-weight: 800; margin: 8px 0 6px; }
.affiliate-box p { font-size: 14px; color: var(--text2); margin-bottom: 12px; }
.affiliate-box small { display: block; font-size: 11px; color: var(--dim); margin-top: 8px; }

/* ============================================
   FAQ
   ============================================ */
.faq-section { margin: 48px 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; overflow: hidden; background: var(--card);
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-size: 16px; font-weight: 700;
  cursor: pointer; background: none; border: none; width: 100%;
  font-family: inherit; color: var(--text); text-align: left;
}
.faq-question::after { content: '+'; font-size: 20px; color: var(--dim); transition: transform .2s; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-question::after { content: '\2212'; color: var(--primary); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: 0 20px; font-size: 15px; color: var(--text2); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 20px 20px; }

/* ============================================
   TOOL BOX — Rechner
   ============================================ */
.tool-box {
  background: var(--card); border: 2px solid var(--primary);
  border-radius: var(--radius); padding: 32px; margin: 24px 0;
}
.tool-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; color: var(--primary); }
.tool-row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.tool-field { flex: 1; min-width: 200px; }
.tool-field label {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--dim); margin-bottom: 5px;
}
.tool-field input, .tool-field select {
  width: 100%; padding: 11px 14px; font-size: 15px;
  border: 1.5px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--text); font-family: inherit;
}
.tool-field input:focus, .tool-field select:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.tool-result {
  background: var(--primary-l); border-radius: var(--radius);
  padding: 20px; margin-top: 20px; text-align: center;
}
.tool-result .result-value { font-size: 32px; font-weight: 900; color: var(--primary); }
.tool-result .result-label { font-size: 14px; color: var(--text2); }

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-block; padding: 3px 10px; font-size: 11px;
  font-weight: 700; border-radius: 4px; text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-blue { background: var(--primary-l); color: var(--primary); }
.badge-orange { background: var(--accent-l); color: var(--accent-d); }
.badge-green { background: var(--success-l); color: var(--success); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text); color: #fff; padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; color: #fff; }
.footer-col a { display: block; padding: 4px 0; font-size: 14px; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }
.affiliate-disclosure {
  font-size: 12px; color: rgba(255,255,255,.35);
  max-width: 600px; line-height: 1.5; margin-top: 16px;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #fff; border-top: 3px solid var(--primary);
  padding: 18px 24px; box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text2); transition: transform .3s;
}
#cookie-banner.hidden { transform: translateY(120%); }
#cookie-banner p { flex: 1; min-width: 200px; line-height: 1.5; }
#cookie-banner a { color: var(--primary); text-decoration: underline; }
.c-btns { display: flex; gap: 10px; flex-shrink: 0; }
.c-btn {
  padding: 9px 18px; font-size: 13px; font-weight: 700;
  border-radius: 4px; cursor: pointer; border: none; font-family: inherit;
}
.c-acc { background: var(--primary); color: #fff; }
.c-acc:hover { background: var(--primary-d); }
.c-dec { background: var(--bg2); color: var(--text2); border: 1px solid var(--border); }

/* ============================================
   CATEGORY CARDS (Startseite)
   ============================================ */
.cat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-decoration: none;
  display: block; transition: all .2s;
}
.cat-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px); }
.cat-card .cat-icon { font-size: 32px; margin-bottom: 12px; }
.cat-card h3 { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.cat-card p { font-size: 14px; color: var(--text2); margin-bottom: 12px; line-height: 1.5; }
.cat-card .cat-count { font-size: 12px; color: var(--dim); font-weight: 600; }

/* ============================================
   GASTBEITRAG PAGE
   ============================================ */
.guest-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0;
}
.guest-benefit {
  text-align: center; padding: 24px;
  background: var(--primary-l); border-radius: var(--radius);
}
.guest-benefit .gb-icon { font-size: 28px; margin-bottom: 10px; }
.guest-benefit h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.guest-benefit p { font-size: 13px; color: var(--text2); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 24px; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px; box-shadow: var(--shadow-md); }
  .section { padding: 48px 0; }
  .guest-benefits { grid-template-columns: 1fr; }
  .tool-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hdr { padding: 10px 16px; }
  .container { padding: 0 16px; }
}
