/* =============================================
   SpielturmRatgeber.de – Design System
   ============================================= */

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

:root {
  --green-900: #1A3A1F;
  --green-700: #2D6A4F;
  --green-500: #52B788;
  --green-100: #D8F3DC;
  --wood: #7A4419;
  --wood-light: #C4956A;
  --gold: #F4A261;
  --gold-dark: #D4843A;
  --bg: #F8FBF5;
  --bg-alt: #EEF5EB;
  --bg-card: #FFFFFF;
  --text: #1C2B1E;
  --text-muted: #3D4F42;
  --border: #C8DEC9;
  --shadow: 0 4px 16px rgba(26,58,31,0.09);
  --shadow-sm: 0 2px 8px rgba(26,58,31,0.07);
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
}

/* ---- Layout ---- */
.container       { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow{ max-width: 780px;  margin: 0 auto; padding: 0 20px; }

/* ---- Header / Nav ---- */
.site-header {
  background: var(--green-900);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 16px;
}
.nav-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-logo .accent { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.18s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(140deg, var(--green-900) 0%, #2D6A4F 100%);
  color: white;
  padding: 72px 20px 64px;
  text-align: center;
}
.hero-bg-img {
  background:
    linear-gradient(140deg, rgba(26,58,31,0.86) 0%, rgba(45,106,79,0.80) 100%),
    url('../img/spielturm-hero.jpg') center/cover no-repeat;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.badge {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
/* (Anzeige) label inside buttons */
.btn:has(small) { flex-wrap: wrap; justify-content: center; }
.btn small {
  flex-basis: 100%;
  text-align: center;
  font-size: .62em;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 1px;
  opacity: .80;
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--gold);
  color: var(--green-900);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244,162,97,0.4);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}
.btn-green {
  background: var(--green-700);
  color: white;
}
.btn-green:hover {
  background: var(--green-900);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 12px 0 4px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--green-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin: 32px 0;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin: 32px 0;
}
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-900); margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 14px; }
.card a { color: var(--green-700); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.card a:hover { text-decoration: underline; }

/* ---- Sections ---- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--green-900); color: white; }
.section-dark .section-title { color: white; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--green-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.05rem;
  max-width: 620px;
}

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 28px 0; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 560px;
}
.compare-table th {
  background: var(--green-900);
  color: white;
  padding: 13px 18px;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.compare-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.95rem;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: #F0FAF3; }
.td-check { color: #2D9948; font-weight: 700; }
.td-cross { color: #C0392B; }

/* ---- FAQ ---- */
.faq-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item details summary {
  font-weight: 700;
  padding: 17px 22px;
  color: var(--green-900);
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green-700);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item details[open] summary::after { content: "−"; }
.faq-answer {
  padding: 4px 22px 18px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.97rem;
}
.faq-answer p { margin-bottom: 10px; }
.faq-answer ul { margin-left: 20px; }
.faq-answer li { margin-bottom: 6px; }

/* ---- Pros / Cons ---- */
.pro-con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.pro-box, .con-box {
  background: white;
  border-radius: 10px;
  padding: 22px;
  border: 1px solid var(--border);
}
.pro-box { border-top: 4px solid #52B788; }
.con-box { border-top: 4px solid #E07070; }
.pro-box h4 { color: #2D6A4F; font-size: 1rem; margin-bottom: 14px; font-weight: 700; }
.con-box h4 { color: #C0392B; font-size: 1rem; margin-bottom: 14px; font-weight: 700; }
.pro-box ul, .con-box ul { list-style: none; margin: 0; padding: 0; }
.pro-box li, .con-box li { padding: 5px 0 5px 22px; position: relative; font-size: 0.95rem; color: var(--text-muted); }
.pro-box li::before { content: "✓"; color: #52B788; position: absolute; left: 0; font-weight: 700; }
.con-box li::before { content: "✗"; color: #E07070; position: absolute; left: 0; font-weight: 700; }

/* ---- Info Boxes ---- */
.info-box {
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
}
.info-box-green { background: #D8F3DC; border-left: 4px solid var(--green-500); }
.info-box-yellow { background: #FFF8E7; border-left: 4px solid var(--gold); }
.info-box-blue  { background: #E8F4FD; border-left: 4px solid #3B9DD2; }
.info-box h4 { font-weight: 700; margin-bottom: 6px; font-size: 0.98rem; color: var(--green-900); }
.info-box p { margin: 0; font-size: 0.95rem; color: var(--text); }

/* ---- CTA Box ---- */
.cta-box {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: white;
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  margin: 44px 0;
}
.cta-box h3 { font-size: 1.55rem; margin-bottom: 12px; font-weight: 800; color: white; }
.cta-box p  { opacity: 0.9; margin-bottom: 26px; max-width: 500px; margin-left: auto; margin-right: auto; color: white; }

/* ---- Affiliate Hint ---- */
.affiliate-hint {
  background: #FFF8E7;
  border: 1px solid #F4A261;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.86rem;
  color: #6B4C00;
  margin: 28px 0;
  line-height: 1.5;
}
.affiliate-hint strong { color: #5A3E00; }

/* ---- Checklist ---- */
.checklist { list-style: none; margin: 16px 0; padding: 0; }
.checklist li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓";
  color: var(--green-500);
  position: absolute;
  left: 0;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---- Rating ---- */
.stars { color: var(--gold); letter-spacing: 2px; }
.rating-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.rating-label { font-size: 0.88rem; color: var(--text-muted); min-width: 100px; }
.rating-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rating-fill { height: 100%; background: var(--green-500); border-radius: 4px; }

/* ---- Tag / Label ---- */
.tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-900);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.tag-gold  { background: #FFF0D4; color: #7A4400; }
.tag-red   { background: #FFEBEB; color: #9B2C2C; }

/* ---- Img Placeholder ---- */
.img-placeholder {
  background: var(--green-100);
  border: 2px dashed var(--green-500);
  border-radius: 10px;
  padding: 50px 20px;
  text-align: center;
  color: var(--green-700);
  font-size: 0.9rem;
}
.img-placeholder .icon { font-size: 2.5rem; display: block; margin-bottom: 8px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.68);
  padding: 44px 20px 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-brand .logo { color: white; font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-copy {
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Typography ---- */
h2 { font-size: 1.6rem; font-weight: 800; color: var(--green-900); margin: 40px 0 16px; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--green-900); margin: 28px 0 12px; }
h4 { font-size: 1rem; font-weight: 700; color: var(--green-900); margin: 20px 0 8px; }
p  { margin-bottom: 16px; }
ul, ol { margin: 12px 0 16px 22px; }
li { margin-bottom: 7px; line-height: 1.65; }
strong { color: var(--text); font-weight: 700; }
a { color: var(--green-700); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.font-bold   { font-weight: 700; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-32 { margin-bottom: 32px; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--green-900); }
.price-muted { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Article Layout with Sidebar ---- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}
.article-content { min-width: 0; }
.article-sidebar {
  position: sticky;
  top: 82px;
}
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.toc-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: 4px; }
.toc-list a {
  font-size: .88rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  transition: all .15s;
  line-height: 1.4;
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--green-700);
  border-left-color: var(--green-700);
}
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; order: -1; }
  .toc { margin-bottom: 24px; }
}

/* ---- Responsive ---- */
@media (max-width: 840px) {
  .nav-links { display: none; flex-direction: column; background: var(--green-900); width: 100%; padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 48px 16px 44px; }
  .pro-con-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 32px 20px; }
  .card { padding: 22px 18px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}
