/* ---------- Reset & Basics ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  min-height: 100vh;
}
a {
  color: #0073e6;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Header & Navigation ---------- */
header {
  background: #000;
}
.main-nav .menu {
  list-style: none;
  display: flex;
  justify-content: center;
}
.main-nav .menu-item {
  position: relative;
}
.main-nav .menu-item a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  font-weight: bold;
  font-size: 0.9em;
  text-transform: uppercase;
}
.main-nav .menu-item a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.main-nav .dropdown > a::after {
  content: " ▾";
  font-size: 0.8em;
}
.main-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background: #000;
  list-style: none;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 100;
}
.main-nav .submenu li a {
  padding: 10px 20px;
  color: #fff;
  white-space: nowrap;
}
.main-nav .submenu li a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.main-nav .dropdown:hover .submenu {
  display: block;
}

/* ---------- Bannerbild ---------- */
.page-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Tiles (Startseite) ---------- */
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
}
.tile {
  flex: 1 1 calc(45% - 20px);
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.tile img {
  width: 100%;
  display: block;
}
.tile figcaption {
  padding: 12px;
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
}

/* ---------- Main Container ---------- */
.main-container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 15px;
}
h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #111;
}
h2 {
  font-size: 2em;
  margin: 1.5em 0 0.5em;
  color: #222;
}
p {
  margin-bottom: 1em;
}
ul {
  margin: 0 0 1em 20px;
}
li {
  margin-bottom: 0.5em;
}
figure {
  margin: 1.5em 0;
}
figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ---------- Produktgrid ---------- */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.product-box {
  flex: 1 1 calc(33% - 20px);
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 15px;
  background: #fafafa;
  text-align: center;
}
.product-box img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}
.product-box h3 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}
.affiliate-button {
  display: inline-block;
  background: #0073e6;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: bold;
  margin-top: 10px;
}
.affiliate-button:hover {
  background: #005bb5;
}

/* ---------- Tabellen (Vergleich) ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.comparison-table th,
.comparison-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.comparison-table th {
  background: #f0f0f0;
  font-weight: bold;
}

/* ---------- Cookie-Banner ---------- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 15px;
  text-align: center;
  z-index: 1000;
}
.cookie-btn {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
}
.cookie-btn.reject {
  background: #555;
}

/* ---------- Footer ---------- */
footer {
  background: #f5f5f5;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  font-size: 0.9em;
  color: #666;
}
footer a {
  color: #0073e6;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .main-nav .menu {
    flex-direction: column;
  }
  .product-box,
  .tile {
    flex: 1 1 100%;
  }
  .tiles {
    flex-direction: column;
  }
}
