/* ============================================
   sparkoffer.de – Stylesheet
   Farben: Petrol #0B4F5C, Koralle #FF6B4A,
   Gold #FFC53D, Creme #FFF6E9, Ink #122F36
   ============================================ */

:root {
  --teal: #0B4F5C;
  --teal-dark: #083C46;
  --coral: #FF6B4A;
  --coral-dark: #E04E2E;
  --gold: #FFC53D;
  --cream: #FFF6E9;
  --ink: #122F36;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

/* ---------- Header ---------- */
header {
  background: var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(8, 60, 70, 0.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand img { width: 42px; height: 42px; border-radius: 10px; }

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.5px;
}

.brand-name span { color: var(--gold); }

nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s;
}

nav a:hover, nav a.active { border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(165deg, var(--gold) 0%, var(--coral) 70%);
  padding: 3.5rem 1.2rem 4.5rem;
  text-align: center;
  color: var(--cream);
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  max-width: 750px;
  margin: 0 auto 0.8rem;
  text-shadow: 0 2px 8px rgba(150, 45, 20, 0.25);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto 1.6rem;
  font-weight: 500;
}

.hero .badge {
  display: inline-block;
  background: var(--teal);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--cream);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(8, 60, 70, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(8, 60, 70, 0.45); }

.btn-coral { background: var(--coral); box-shadow: 0 4px 14px rgba(224, 78, 46, 0.4); }

/* ---------- Inhalt ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.2rem 4rem; }

.section-title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
  color: var(--teal);
}

.section-sub { color: #5a6e74; margin-bottom: 1.8rem; }

/* Vergleichsrechner-Box */
.rechner-box {
  background: #fff;
  border-radius: 18px;
  border: 2px solid rgba(11, 79, 92, 0.12);
  box-shadow: 0 6px 24px rgba(8, 60, 70, 0.08);
  padding: 1.2rem;
  margin-top: -3.2rem;            /* schwebt in den Hero hinein */
  position: relative;
}

.rechner-box .ad-hinweis {
  font-size: 0.74rem;
  color: #8a9aa0;
  text-align: right;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- Deal-Karten ---------- */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.deal-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(8, 60, 70, 0.10);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.deal-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(8, 60, 70, 0.16); }

.deal-img {
  height: 170px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 2.6rem;
}

.deal-img img { width: 100%; height: 100%; object-fit: cover; }

.deal-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.ad-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(18, 47, 54, 0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.deal-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }

.deal-body h3 { font-size: 1.12rem; font-weight: 800; color: var(--teal); margin-bottom: 0.3rem; }

.deal-meta { font-size: 0.88rem; color: #5a6e74; margin-bottom: 0.8rem; }

.deal-price { margin-top: auto; display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.9rem; }

.deal-price .ab { font-size: 0.85rem; color: #5a6e74; }

.deal-price .preis { font-size: 1.7rem; font-weight: 900; color: var(--coral-dark); }

.deal-price .pp { font-size: 0.8rem; color: #8a9aa0; }

.deal-card .btn { text-align: center; font-size: 0.98rem; padding: 0.7rem 1rem; }

/* ---------- Info-Streifen ---------- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 3rem 0 0;
}

.info-item {
  background: #fff;
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: 0 3px 12px rgba(8, 60, 70, 0.07);
}

.info-item .emoji { font-size: 1.8rem; }

.info-item h3 { font-size: 1.02rem; color: var(--teal); margin: 0.4rem 0 0.2rem; }

.info-item p { font-size: 0.92rem; color: #5a6e74; }

/* ---------- Text-Seiten (Impressum etc.) ---------- */
.textpage h1 { color: var(--teal); margin-bottom: 1.2rem; }

.textpage h2 { color: var(--teal); font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }

.textpage p { margin-bottom: 0.8rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--teal-dark);
  color: rgba(255, 246, 233, 0.85);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

footer a { color: var(--gold); text-decoration: none; font-weight: 600; }

footer a:hover { text-decoration: underline; }

.affiliate-disclaimer {
  max-width: 1100px;
  margin: 1rem auto 0;
  font-size: 0.78rem;
  color: rgba(255, 246, 233, 0.55);
  line-height: 1.5;
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .nav-inner { flex-direction: column; gap: 0.5rem; }
  nav ul { gap: 1rem; }
  .hero { padding: 2.5rem 1rem 3.8rem; }
}

/* ---------- Consent-Banner ---------- */
#consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--teal-dark);
  color: var(--cream);
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.consent-inner p { flex: 1 1 320px; font-size: 0.88rem; line-height: 1.5; }

.consent-inner a { color: var(--gold); }

.consent-buttons { display: flex; gap: 0.6rem; }

.btn-consent {
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}

.btn-consent-primary { background: var(--coral); border-color: var(--coral); }

.btn-consent:hover { opacity: 0.88; }

/* ---------- Click-to-Load Platzhalter ---------- */
.widget-platzhalter {
  text-align: center;
  padding: 2.6rem 1rem;
  color: #5a6e74;
  border: 2px dashed #d0dadd;
  border-radius: 12px;
}

.widget-platzhalter button {
  margin-top: 0.9rem;
  background: var(--coral);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  cursor: pointer;
}

/* ---------- Insta- & Deal-Alarm-Sektion ---------- */
.cta-zone {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}

.cta-card {
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  color: var(--cream);
  text-align: center;
}

.cta-card.insta { background: linear-gradient(135deg, #b5309b, #e0532e); }

.cta-card.alarm { background: var(--teal); }

.cta-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

.cta-card p { font-size: 0.94rem; opacity: 0.92; margin-bottom: 1rem; }

.cta-card .btn { background: var(--cream); color: var(--ink); box-shadow: none; }
