/* === Basis für alle Seiten === */
body {
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  color: #ecf0f1;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header / Menü */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #3a3a3a;
  position: relative;
}
.logo-container img { height: 50px; }
nav { flex: 1; text-align: center; }
nav ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li { margin: 0 18px; }
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  transition: color 0.3s;
}
nav ul li a[href="/earningsites.html"] { color: #27ae60; }
nav ul li a[href="/howitworks.html"]   { color: #3498db; }
nav ul li a[href="/whyusecrypto.html"] { color: #f7931a; }
nav ul li a[href="/risks.html"]        { color: #c0392b; }
nav ul li a[href="/pivx.html"]         { color: #8247e5; }
nav ul li a[href="/blockdx.html"]      { color: #b0b0b0; }
nav ul li a[href="/projects.html"]     { color: #2ecc71; }

nav ul li a:hover { color: #f39c12; }

/* Burger Menu */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; margin-left: 15px; }
.menu-toggle span {
  height: 3px; width: 25px; background: white; margin: 4px 0; border-radius: 2px;
}
@media (max-width: 768px) {
  nav { position: absolute; top: 60px; left: 0; width: 100%; background: #3a3a3a; }
  nav ul { display: none; flex-direction: column; text-align: center; padding: 10px 0; }
  nav ul.show { display: flex; }
  .menu-toggle { display: flex; }
}

/* Container */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #2c3e50;
  border-radius: 10px;
}

/* Typografie */
h1 { text-align: center; margin-bottom: 20px; font-size: 2em; }
h2 { color: #bdc3c7; padding-bottom: 5px; margin-top: 20px; }
p { margin-bottom: 12px; }
ul { margin-left: 25px; margin-bottom: 20px; }
li { margin-bottom: 12px; }
.text-box { background-color: #34495e; padding: 20px; border-radius: 12px; font-size: 1.15em; }

/* === Landing Page (Index) === */
body.landing { text-align: center; }
.content-wrapper { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.welcome-text h1 { color: #f39c12; font-size: 2.5em; margin-bottom: 20px; }
.welcome-text p { font-size: 1.2em; margin-bottom: 15px; }

/* Landing Page Buttons */
.header-buttons { margin: 20px 0; }
.header-buttons a {
  display: inline-block; margin: 8px; padding: 14px 24px; border-radius: 6px;
  text-decoration: none; font-weight: bold; color: #fff; font-size: 1.1em;
  transition: background 0.3s, transform 0.2s;
}
.btn-check-best { background-color: #27ae60; }
.btn-howitworks { background-color: #3498db; }
.btn-whycrypto  { background-color: #f7931a; }
.btn-risks      { background-color: #c0392b; }
.btn-pivx       { background-color: #8247e5; }
.btn-blockdx    { background-color: #7f8c8d; }
.btn-projects   { background-color: #2ecc71; }
.header-buttons a:hover { transform: scale(1.05); opacity: 0.9; }

/* === Footer === */
footer { margin-top: 40px; padding: 20px; background: #2c3e50; text-align: center; }
footer a { color: #f1c40f; text-decoration: none; font-weight: bold; }
footer a:hover { text-decoration: underline; }

/* Speziell für Earning Sites: Affiliate rechts unten */
body.earning .footer-right {
  position: fixed;
  bottom: 10px;
  right: 15px;
  background: transparent;
  margin: 0;
  padding: 0;
  text-align: right;
  width: auto;
}
body.earning .footer-right a {
  color: #f1c40f;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9em;
  opacity: 0.8;
  transition: opacity 0.3s;
}
body.earning .footer-right a:hover { opacity: 1; text-decoration: underline; }

/* === Banner Grid (Earning Sites & Projects) === */
.banner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1280px;
  margin: 0 auto;
  gap: 18px;
  padding: 20px;
  justify-items: center;
}
.banner {
  position: relative;
  background: #2c3e50;
  border-radius: 8px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
  padding: 6px;
  width: 300px;
}
.banner img {
  width: 300px;
  height: 250px;
  object-fit: contain;
  border-bottom: 2px solid #444;
  display: block;
  cursor: pointer;
}
.banner:hover {
  transform: scale(1.03);
  border: 2px solid #f39c12;
  box-shadow: 0 0 20px #f39c12;
}
.cooldown {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1em;
  font-weight: bold;
  color: #f1c40f;
  background: rgba(0,0,0,0.6);
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
}
.banner img.blocked {
  filter: grayscale(100%);
  opacity: 0.4;
  pointer-events: none;
}

/* === CoinAdster Banner === */
.coinadster-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 30px auto;
  text-align: center;
}
.coinadster-box img {
  width: 728px;
  height: 90px;
  border-radius: 6px;
  transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
}
.coinadster-box img.blocked {
  filter: grayscale(100%);
  opacity: 0.4;
  pointer-events: none;
}
.coinadster-box .cooldown {
  margin-top: 8px;
  font-size: 1.1em;
  font-weight: bold;
  color: #f1c40f;
}

/* === PIVX Specials === */
body.info.pivx button {
  background: #8247e5;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  color: #fff;
  font-weight: bold;
  transition: transform 0.2s;
}
body.info.pivx button:hover { transform: scale(1.05); background: #9b59b6; }

.pivx-sub-btn {
  background: #8247e5;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: 0.3s;
  text-align: center;
  display: inline-block; /* ✅ sorgt für natürliche Reihenfolge */
  margin: 8px 5px;
  white-space: nowrap;
}
.pivx-sub-btn:hover {
  background: #9b59b6;
  box-shadow: 0 0 15px #f39c12;
}

.pivx-preview-box {
  background: #2c3e50;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.pivx-preview-box h2 { color: #be93fd; margin-bottom: 10px; }
.pivx-preview-box p { color: #ecf0f1; margin-bottom: 15px; }

.earn-btn {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}
.earn-btn:hover { background: #2ecc71; box-shadow: 0 0 20px #f39c12; }

/* === Buttons immer weiß === */
.button,
.pivx-sub-btn,
.earn-btn,
a.button,
a.pivx-sub-btn,
a.earn-btn {
  color: #fff !important;
}

/* === Mobile Optimierung === */
@media (max-width: 768px) {
  .container { margin: 20px auto; padding: 15px; font-size: 16px; }
  h1 { font-size: 1.6em; }
  nav ul li a { font-size: 18px; }
  .welcome-text h1 { font-size: 2em; }
  .welcome-text p { font-size: 1em; }
  .banner-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .container { padding: 12px; font-size: 15px; }
  h1 { font-size: 1.4em; }
  h2 { font-size: 1.1em; }
  .step-title { font-size: 1.2em; }
  button, .download-btn { width: 100%; font-size: 1em; margin-top: 10px; }
  .table-wrapper, .calc-table-wrapper { overflow-x: auto; }
  table { font-size: 0.9em; min-width: 500px; }
  img { max-width: 100%; height: auto; }
  .header-buttons a { display: block; width: 100%; margin: 10px 0; }
  body.earning .footer-right a { font-size: 0.75em; opacity: 0.6; }
  .banner-container { grid-template-columns: 1fr; }
}
