/* ============================================
   RESET & GRUNDLAGEN
   ============================================ */

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

:root {
  --primary: #c41e3a;
  --primary-dark: #a01830;
  --secondary: #2c3e50;
  --success: #27ae60;
  --warning: #f39c12;
  --light: #f8f9fa;
  --gray: #6c757d;
  --border: #dee2e6;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.header h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.header-klein {
  padding: 15px 20px;
  text-align: left;
}

.logo {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}

.logo:hover {
  opacity: 0.9;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  padding: 15px 20px;
  font-size: 0.9rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================
   FILTER BAR
   ============================================ */

.filter-bar {
  background: white;
  padding: 15px 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-bar .container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray);
}

.filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  background: white;
}

/* ============================================
   INTRO KURZ
   ============================================ */

.intro-kurz {
  background: white;
  padding: 25px 30px;
  border-radius: var(--radius);
  margin: 25px 0;
  box-shadow: var(--shadow);
  text-align: center;
}

.intro-kurz p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.top3-schnell {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.top3-item {
  background: var(--light);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.top3-item a {
  text-decoration: none;
  color: inherit;
}

.top3-item a:hover {
  color: var(--primary);
}

/* ============================================
   PRODUKTE SECTION
   ============================================ */

.produkte-section {
  margin: 40px 0;
}

.produkte-section h2 {
  color: var(--secondary);
  margin-bottom: 25px;
}

/* ============================================
   PRODUKT GRID
   ============================================ */

.produkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

/* ============================================
   PRODUKT CARD
   ============================================ */

.produkt-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.produkt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.produkt-card.empfehlung {
  border: 3px solid var(--primary);
}

.empfehlung-badge {
  position: absolute;
  top: 15px;
  left: -8px;
  background: var(--primary);
  color: white;
  padding: 5px 15px 5px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 0 4px 4px 0;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
}

.empfehlung-badge.preistipp,
.empfehlung-badge.badge-preistipp {
  background: var(--success);
}

.produkt-link {
  display: block;
}

.produkt-bild {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 20px;
  background: #fafafa;
}

.produkt-inhalt {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.produkt-name-link {
  text-decoration: none;
  color: inherit;
}

.produkt-name-link:hover .produkt-name {
  color: var(--primary);
}

.produkt-name {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.2s;
}

.produkt-preis {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 15px;
}

.produkt-preis small {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: normal;
}

/* Bewertung */
.bewertung {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.sterne {
  color: var(--warning);
  font-size: 1.1rem;
}

.bewertung-text {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Specs */
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.spec {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-icon {
  width: 20px;
  text-align: center;
}

/* Beschreibung kurz */
.beschreibung-kurz-card {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
}

/* Button Gruppe */
.button-gruppe {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.detail-button {
  flex: 1;
  text-align: center;
  padding: 12px 15px;
  background: var(--light);
  color: var(--secondary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.detail-button:hover {
  background: #e2e6ea;
}

.affiliate-button {
  display: block;
  flex: 1;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 12px 15px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.affiliate-button:hover {
  background: var(--primary-dark);
}

.affiliate-button.gross {
  font-size: 1.1rem;
  padding: 16px 25px;
}

.affiliate-button::after {
  content: " →";
}

/* ============================================
   SEO CONTENT
   ============================================ */

.seo-content {
  background: var(--light);
  padding: 60px 0;
  margin-top: 50px;
}

.content-block {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  color: var(--secondary);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.content-block h3 {
  color: var(--secondary);
  margin: 30px 0 15px;
  font-size: 1.3rem;
}

.content-block p {
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Check-Liste */
.check-list {
  list-style: none;
  margin: 20px 0;
}

.check-list li {
  padding: 10px 0 10px 35px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 5px;
}

/* Vergleichstabelle */
.vergleichs-tabelle-wrapper {
  overflow-x: auto;
  margin: 25px 0;
}

.vergleichs-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 400px;
}

.vergleichs-tabelle th,
.vergleichs-tabelle td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.vergleichs-tabelle th {
  background: var(--secondary);
  color: white;
  font-weight: 600;
}

.vergleichs-tabelle tr:hover td {
  background: #f8f9fa;
}

/* Kaufkriterien Grid */
.kaufkriterien-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.kriterium {
  background: var(--light);
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.kriterium h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.kriterium p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.kriterium ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
}

.kriterium li {
  margin-bottom: 6px;
}

/* Marken Grid */
.marken-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.marke {
  background: var(--light);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.2s;
}

.marke:hover {
  transform: translateY(-3px);
}

.marke h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.marke p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* Schritte/Anleitung */
.schritte {
  counter-reset: step;
  list-style: none;
  margin: 25px 0;
  padding: 0;
}

.schritte li {
  padding: 15px 20px 15px 60px;
  position: relative;
  background: var(--light);
  margin-bottom: 10px;
  border-radius: 8px;
}

.schritte li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

/* FAQ */
.faq-section {
  background: white;
}

.faq-liste {
  margin-top: 20px;
}

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 18px 40px 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--secondary);
  list-style: none;
  position: relative;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 300;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 0 18px;
  color: var(--gray);
}

/* ============================================
   FAZIT
   ============================================ */

.fazit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.fazit h2 {
  margin-bottom: 20px;
}

.fazit p {
  max-width: 700px;
  margin: 0 auto 15px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.fazit em {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ============================================
   PRODUKT DETAIL SEITE
   ============================================ */

.produkt-detail {
  margin: 20px 0 40px;
}

.produkt-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Bilder Bereich */
.produkt-bilder {
  position: relative;
}

.bild-gross-container {
  position: relative;
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
}

.badges {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: bold;
  color: white;
}

.badge-testsieger {
  background: var(--primary);
}

.badge-preistipp {
  background: var(--success);
}

.badge-empfehlung {
  background: var(--warning);
  color: #333;
}

.bild-gross {
  width: 100%;
  height: 350px;
  object-fit: contain;
  padding: 20px;
}

.galerie {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
}

.galerie-bild {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.galerie-bild:hover,
.galerie-bild.aktiv {
  border-color: var(--primary);
}

/* Infos Bereich */
.produkt-infos h1 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 15px;
  line-height: 1.3;
}

.bewertung-gross {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.bewertung-gross .sterne {
  font-size: 1.3rem;
  color: var(--warning);
}

.bewertung-gross .bewertung-text {
  color: var(--gray);
  font-size: 0.95rem;
}

.beschreibung-kurz {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 20px;
}

.preis-box {
  background: var(--light);
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.preis-gross {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
}

.preis-hinweis {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 3px;
}

.verfuegbarkeit {
  color: var(--success);
  font-size: 0.9rem;
  margin: 15px 0 25px;
}

/* Specs Tabelle */
.specs-uebersicht {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.specs-uebersicht h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--secondary);
}

.specs-tabelle {
  width: 100%;
  font-size: 0.9rem;
}

.specs-tabelle td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.specs-tabelle td:first-child {
  color: var(--gray);
  width: 45%;
}

/* Content Bereich */
.produkt-content {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  margin-top: 30px;
  box-shadow: var(--shadow);
}

.beschreibung-lang h2 {
  color: var(--secondary);
  margin-bottom: 20px;
}

.beschreibung-lang p {
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Pro/Contra */
.pro-contra-section {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pro-contra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.pro-box,
.contra-box {
  padding: 20px;
  border-radius: 10px;
}

.pro-box {
  background: #e8f5e9;
}

.contra-box {
  background: #ffebee;
}

.pro-box h3,
.contra-box h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.pro-box ul,
.contra-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pro-box li,
.contra-box li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.pro-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.contra-box li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Lieferumfang */
.lieferumfang {
  margin: 30px 0;
}

.lieferumfang h3 {
  margin-bottom: 15px;
  color: var(--secondary);
}

.lieferumfang ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}

.lieferumfang li {
  padding: 10px 15px;
  background: var(--light);
  border-radius: 6px;
}

.lieferumfang li::before {
  content: "📦 ";
}

/* Fazit Box */
.fazit-box {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  padding: 30px;
  border-radius: 10px;
  border-left: 4px solid var(--warning);
}

.fazit-box h3 {
  margin-bottom: 15px;
  color: #856404;
}

.fazit-box p {
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ============================================
   ÄHNLICHE PRODUKTE
   ============================================ */

.aehnliche-produkte {
  margin: 50px auto;
}

.aehnliche-produkte h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary);
}

.produkt-grid-klein {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.produkt-card-klein {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.2s;
}

.produkt-card-klein:hover {
  transform: translateY(-5px);
}

.produkt-card-klein img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

.produkt-card-klein h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--secondary);
}

.produkt-card-klein .preis {
  font-weight: bold;
  color: var(--primary);
  display: block;
  margin-bottom: 5px;
}

.produkt-card-klein .bewertung-klein {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Zurück Button */
.zurueck-container {
  text-align: center;
  margin: 30px auto 50px;
}

.zurueck-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s;
}

.zurueck-button:hover {
  background: #1a252f;
}

/* Fehler Box */
.fehler-box {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius);
  margin: 40px 0;
}

.fehler-box h1 {
  margin-bottom: 15px;
  color: var(--secondary);
}

.fehler-box .affiliate-button {
  display: inline-block;
  margin-top: 20px;
}

/* Keine Ergebnisse */
.keine-ergebnisse {
  text-align: center;
  padding: 40px;
  color: var(--gray);
  grid-column: 1 / -1;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--secondary);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.affiliate-hinweis {
  font-size: 0.85rem;
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto 20px;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ============================================
   IMPRESSUM / DATENSCHUTZ
   ============================================ */

.legal-content {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  margin: 30px auto;
  box-shadow: var(--shadow);
  max-width: 800px;
}

.legal-content h1 {
  color: var(--secondary);
  margin-bottom: 30px;
}

.legal-content h2 {
  color: var(--secondary);
  margin: 30px 0 15px;
  font-size: 1.3rem;
}

.legal-content h3 {
  color: var(--secondary);
  margin: 20px 0 10px;
  font-size: 1.1rem;
}

.legal-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.legal-content ul {
  margin: 15px 0;
  padding-left: 25px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .produkt-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .bild-gross {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .filter-bar .container {
    flex-direction: column;
    gap: 12px;
  }
  
  .filter-bar label {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .filter-bar select {
    width: 100%;
  }
  
  .specs {
    grid-template-columns: 1fr;
  }
  
  .produkt-grid {
    grid-template-columns: 1fr;
  }
  
  .top3-schnell {
    flex-direction: column;
    align-items: center;
  }
  
  .content-block {
    padding: 25px 20px;
  }
  
  .content-block h2 {
    font-size: 1.5rem;
  }
  
  .kaufkriterien-grid {
    grid-template-columns: 1fr;
  }
  
  .marken-grid {
    grid-template-columns: 1fr;
  }
  
  .produkt-detail-grid {
    padding: 20px;
  }
  
  .produkt-infos h1 {
    font-size: 1.4rem;
  }
  
  .preis-gross {
    font-size: 1.6rem;
  }
  
  .produkt-content {
    padding: 25px 20px;
  }
  
  .pro-contra-grid {
    grid-template-columns: 1fr;
  }
  
  .button-gruppe {
    flex-direction: column;
  }
}