/* ============================================================
   buchhaltungssoftware-test.de – Main Stylesheet
   ============================================================ */

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

:root {
  --primary:     #1e3a5f;
  --primary-d:   #152c47;
  --cta:         #0a7c59;
  --cta-d:       #086148;
  --cta-blue:    #0073e6;
  --accent:      #f5a623;
  --text:        #1a1a2e;
  --muted:       #5a6472;
  --bg:          #ffffff;
  --bg-light:    #f5f8fc;
  --bg-dark:     #1e3a5f;
  --border:      #d8e2ef;
  --green:       #00875a;
  --green-bg:    #e8f7f1;
  --red:         #d62828;
  --red-bg:      #fdecea;
  --gold:        #f5a623;
  --gold-bg:     #fff8eb;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 2px 14px rgba(0,0,0,.09);
  --shadow-md:   0 4px 24px rgba(0,0,0,.12);
  --max-w:       1100px;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--cta-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

section { padding: 60px 0; }
section + section { border-top: 1px solid var(--border); }

/* --- Header ------------------------------------------------- */
.site-header {
  background: var(--bg-dark);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background .2s, color .2s;
}
.site-nav a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}

/* --- Affiliate Notice Bar ----------------------------------- */
.affiliate-bar {
  background: var(--gold-bg);
  border-bottom: 1px solid #f0d080;
  padding: 8px 0;
  font-size: .82rem;
  color: #7a5a00;
  text-align: center;
}
.affiliate-bar a { color: #7a5a00; font-weight: 600; }

/* --- Breadcrumb -------------------------------------------- */
.breadcrumb {
  padding: 12px 0;
  font-size: .83rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

/* --- Hero --------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
  color: #fff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-buchhaltungssoftware.jpg') center/cover no-repeat;
  opacity: .13;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 640px;
  margin-bottom: 24px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: .85rem;
  opacity: .75;
}
.hero-meta span::before { content: '✓ '; }

/* --- Section Titles ---------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-header p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* --- Winner Quick Picks ------------------------------------- */
.quick-picks {
  background: var(--bg-light);
}
.quick-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.quick-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.quick-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--cta-blue);
}
.quick-card.top {
  border-color: var(--gold);
  background: var(--gold-bg);
}
.qc-rank {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 6px;
}
.qc-rank.gold { color: #c07800; }
.quick-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.qc-label {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.qc-price {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--cta);
  color: #fff;
}
.btn-primary:hover { background: var(--cta-d); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-full { display: flex; width: 100%; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--cta-blue);
  color: var(--cta-blue);
}
.btn-outline:hover { background: var(--cta-blue); color: #fff; }

/* --- Comparison Table --------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 700px;
}
.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
}
.comparison-table th:first-child { text-align: left; }
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-light);
}
.comparison-table tr:hover td { background: #eef4ff; }
.comparison-table tr:hover td:first-child { background: #e0eaf8; }
.check { color: var(--green); font-size: 1.1rem; }
.cross { color: var(--muted); font-size: 1.1rem; }
.table-cta { white-space: nowrap; }

/* --- Tool Cards -------------------------------------------- */
.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  scroll-margin-top: 80px;
}
.tool-card.featured {
  border-color: var(--gold);
  border-width: 2px;
}
.tc-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tc-logo {
  width: 140px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}
.tc-logo-placeholder {
  width: 140px;
  height: 50px;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--muted);
  flex-shrink: 0;
}
.tc-meta { flex: 1; min-width: 200px; }
.tc-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-gold { background: var(--gold); color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-blue { background: var(--cta-blue); color: #fff; }
.badge-gray { background: var(--bg-light); color: var(--muted); border: 1px solid var(--border); }
.tc-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.tc-tagline { font-size: .9rem; color: var(--muted); }

/* Stars */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold);
  font-size: 1.1rem;
}
.stars-score {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-left: 6px;
}
.stars-label { font-size: .8rem; color: var(--muted); margin-left: 4px; }

.tc-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-size: .9rem;
}
.tc-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.tc-price small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.tc-trial { color: var(--green); font-weight: 600; }

.tc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 24px; }

/* Rating bars */
.rating-bars h4 { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.rating-bar-item { margin-bottom: 10px; }
.rb-label { display: flex; justify-content: space-between; font-size: .83rem; margin-bottom: 4px; }
.rb-label span:last-child { font-weight: 700; color: var(--primary); }
.rb-track { background: var(--border); border-radius: 4px; height: 8px; }
.rb-fill { background: var(--cta-blue); border-radius: 4px; height: 8px; transition: width .3s; }
.rb-fill.high { background: var(--green); }

/* Pros/Cons */
.pros-cons h4 { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.pros li, .cons li { display: flex; gap: 8px; font-size: .9rem; margin-bottom: 7px; align-items: flex-start; }
.pros li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.cons li::before { content: '✗'; color: var(--red); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.pros { margin-bottom: 14px; }

.tc-summary {
  font-size: .92rem;
  color: var(--muted);
  border-left: 3px solid var(--cta-blue);
  padding-left: 14px;
  margin-bottom: 20px;
  font-style: italic;
}

.tc-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.tc-affiliate-note {
  font-size: .75rem;
  color: var(--muted);
}

/* --- Use Case Cards ---------------------------------------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.usecase-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.usecase-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.usecase-card .uc-winner {
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.usecase-card p { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }

/* --- FAQ ---------------------------------------------------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
}
.faq-question:hover { color: var(--cta-blue); }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--muted);
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--cta-blue); color: #fff; }
.faq-answer {
  display: none;
  padding-bottom: 18px;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.75;
}
.faq-answer a { color: var(--cta-blue); }
.faq-item.open .faq-answer { display: block; }

/* --- Methodology ------------------------------------------- */
.methodology {
  background: var(--bg-light);
}
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.meth-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}
.meth-icon { font-size: 1.8rem; margin-bottom: 10px; }
.meth-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.meth-card p { font-size: .85rem; color: var(--muted); }

/* --- Footer ------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.8);
  padding: 40px 0 24px;
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .site-logo { font-size: 1.1rem; margin-bottom: 10px; }
.footer-brand p { font-size: .83rem; opacity: .7; max-width: 280px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul a { color: rgba(255,255,255,.7); }
.footer-col ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-disclaimer {
  font-size: .78rem;
  opacity: .6;
  max-width: 700px;
  line-height: 1.5;
}
.footer-copyright { font-size: .95rem; opacity: .7; white-space: nowrap; }
.footer-copyright a { color: rgba(255,255,255,.8); }
.footer-copyright a:hover { color: #fff; text-decoration: none; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 768px) {
  section { padding: 40px 0; }
  .site-nav { display: none; }
  .hero { padding: 40px 0 32px; }
  .tc-body { grid-template-columns: 1fr; gap: 20px; }
  .tc-header { flex-direction: column; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .quick-picks-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-table th, .comparison-table td { padding: 10px 10px; font-size: .82rem; }
}
@media (max-width: 480px) {
  .tool-card { padding: 20px; }
  .quick-picks-grid { grid-template-columns: 1fr; }
  .tc-footer { flex-direction: column; }
  .btn-full { width: 100%; }
}
