@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --white: #ffffff;
  --gray-50: #f5f5f7;
  --gray-100: #e8e8ed;
  --gray-200: #d2d2d7;
  --gray-400: #86868b;
  --gray-600: #515154;
  --gray-900: #1d1d1f;
  --blue: #0071e3;
  --blue-dark: #0077ed;
  --radius: 18px;
  --nav-height: 52px;
  --font: 'Outfit', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--gray-200);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
}

.nav-links {
  justify-self: center;
}

.nav-search {
  justify-self: end;
}

.logo {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gray-900); }

.nav-search-form {
  justify-self: end;
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border-radius: 20px;
  overflow: hidden;
  width: 160px;
  transition: width 0.3s;
  border: 0.5px solid transparent;
}

.nav-search-form:focus-within {
  width: 220px;
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.nav-search {
  background: transparent;
  border: none;
  padding: 0.38rem 0.6rem 0.38rem 0.9rem;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--gray-600);
  width: 100%;
  outline: none;
}

.nav-search::placeholder { color: var(--gray-400); }

.nav-search-btn {
  background: transparent;
  border: none;
  padding: 0.38rem 0.7rem 0.38rem 0.2rem;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.2s;
}

.nav-search-btn:hover { color: var(--gray-900); }

.search-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--gray-600);
  font-size: 1.1rem;
}

.search-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ── HERO ── */
.hero {
  background: var(--gray-50);
  text-align: center;
  padding: 7rem 2rem 5rem;
  border-bottom: 0.5px solid var(--gray-100);
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 1.4rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray-400);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
}

/* ── KATEGORIEN ── */
.categories {
  display: flex;
  gap: 0.6rem;
  padding: 2.5rem 2rem;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--white);
  border-bottom: 0.5px solid var(--gray-100);
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--gray-50);
  border-radius: 30px;
  text-decoration: none;
  color: var(--gray-600);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 400;
  transition: all 0.2s;
  border: 0.5px solid transparent;
}

.cat-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  color: var(--gray-900);
}

.cat-card span { font-size: 1rem; }

/* ── SECTION ── */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-header a {
  font-size: 0.9rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 400;
}

.section-header a:hover { text-decoration: underline; }

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  padding: 1.5rem;
  background: #f5f5f7;
  display: block;
}

.card-body { padding: 1.4rem; }

.card-brand {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.card-body h2 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card-body h2 a {
  text-decoration: none;
  color: inherit;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--gray-100);
}

.card-score {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-400);
}

.card-score strong {
  color: var(--gray-900);
  font-weight: 500;
}

.card-price {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
}

.btn-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 400;
}

.btn-link::after { content: ' →'; }
.btn-link:hover { text-decoration: underline; }

/* ── REVIEW PAGE ── */
.review-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.review-breadcrumb {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

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

.review-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.review-img-wrap {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  overflow: hidden;
}

.review-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.review-brand {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.review-page h1 {
  font-family: var(--font);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1.4rem;
}

.score-display {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.score-number {
  font-size: 3rem;
  font-weight: 300;
  color: var(--gray-900);
  line-height: 1;
}

.score-max { font-size: 1rem; color: var(--gray-400); }
.score-label { font-size: 0.8rem; color: var(--gray-400); margin-left: 0.5rem; }

.review-price {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.review-price span {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 300;
  margin-right: 0.3rem;
}

.btn-buy {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.8rem;
}

.btn-buy:hover { background: var(--blue-dark); }

.btn-buy-secondary {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: var(--gray-50);
  color: var(--blue);
  border: none;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-buy-secondary:hover { background: var(--gray-100); }

/* ── SCORES ── */
.scores-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.score-item {
  background: var(--gray-50);
  padding: 1.5rem;
  text-align: center;
}

.score-item-label {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.score-item-value {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gray-900);
}

.stiftung-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.9rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── REVIEW CONTENT ── */
.review-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600);
  font-weight: 300;
}

.review-content h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.review-content p { margin-bottom: 1rem; }

/* ── KATEGORIE ── */
.cat-header {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: var(--gray-50);
  border-bottom: 0.5px solid var(--gray-100);
}

.cat-header h1 {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.cat-header p {
  color: var(--gray-400);
  font-weight: 300;
}

/* ── FOOTER ── */
footer {
  background: var(--gray-50);
  border-top: 0.5px solid var(--gray-200);
  padding: 3rem 2rem;
  margin-top: 6rem;
  text-align: center;
}

footer p {
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

footer a { color: var(--gray-600); text-decoration: none; }
footer a:hover { color: var(--gray-900); }

.affiliate-note {
  font-size: 0.75rem;
  color: var(--gray-200);
}

.social-links {
  margin: 1.4rem 0 1rem;
}

.social-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 0.7rem;
  letter-spacing: 0.02em;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gray-100, #f5f5f7);
  transition: transform 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.12);
  background: var(--gray-200, #e8e8ed);
}

.social-icon svg {
  display: block;
}

/* ── PRODUCT TILES (Apple-style category grid) ── */
.product-tile-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.product-tile-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  list-style: none;
  background: var(--gray-100);
  border-radius: 20px;
  overflow: hidden;
}

.product-tile {
  background: var(--white);
  padding: 3rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-tile-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.product-tile-headline {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.022em;
  line-height: 1.2;
  margin-bottom: 1.8rem;
  display: block;
}

.product-tile-image-link {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.product-tile-image {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.product-tile-image-link:hover .product-tile-image img {
  transform: scale(1.04);
}

.product-tile-positioning {
  font-size: 0.9rem;
  color: var(--gray-400);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  max-width: 220px;
  text-align: center;
}

.product-tile-score {
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.product-tile-score strong {
  color: var(--gray-900);
  font-weight: 500;
}

.product-tile-price {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--gray-900);
  margin-top: auto;
  margin-bottom: 1.8rem;
  padding-top: 1rem;
}

.product-tile-price-from {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--gray-400);
  margin-right: 0.25rem;
}

.product-tile-ctas {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.product-tile-btn {
  padding: 0.6rem 1.4rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 980px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.product-tile-btn:hover { background: var(--blue-dark); }

.product-tile-link {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.product-tile-link:hover { text-decoration: underline; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .product-tile-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .review-top { grid-template-columns: 1fr; }
  .scores-section { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 540px) {
  .product-tile-list { grid-template-columns: 1fr; }
}

/* ── KAUF-BOX ── */
.kauf-box {
  display: flex;
  gap: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin: 2.5rem 0 0.5rem;
  background: #fff;
}

.kauf-spalte {
  flex: 1;
  padding: 0;
  min-width: 0;
}

.kauf-spalte h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 1rem;
}

.kauf-divider {
  width: 1px;
  background: #e8e8ed;
  flex-shrink: 0;
}

.shop-zeile,
.partner-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee;
}

.shop-zeile:last-child,
.partner-zeile:last-child {
  border-bottom: none;
}

.shop-name,
.partner-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  color: #1d1d1f;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.shop-preis {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: #515154;
  white-space: nowrap;
  margin-right: 0.4rem;
}

.btn-kaufen,
.btn-partner {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: #0071e3;
  color: #fff;
  border-radius: 980px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-kaufen:hover,
.btn-partner:hover {
  background: #005bbf;
}

.kauf-affiliate-hint {
  font-size: 0.72rem;
  color: #86868b;
  margin: 0.8rem 0 0;
}

@media (max-width: 640px) {
  .kauf-box { flex-direction: column; }
  .kauf-divider { width: auto; height: 1px; }
}

/* ── FOOTER PARTNER BANNER ── */
.footer-partner-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.footer-banner-item {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .footer-partner-banner {
    flex-direction: column;
    gap: 12px;
  }
}

/* ── TELEKOM AFFILIATE BUTTONS ── */
.telekom-btn a {
  display: inline-block;
  background: #E20074;
  color: #fff !important;
  border-radius: 980px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none !important;
  margin: 0.2rem;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  transition: background 0.15s;
}
.telekom-btn a:hover { background: #c2005e; }
.telekom-btn-group { display: flex; flex-wrap: wrap; gap: 0.15rem; }
.telekom-btn-kauf a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: 980px;
  text-decoration: none !important;
  transition: background 0.15s;
  white-space: nowrap;
}
.telekom-btn-kauf.primary a   { background: #E20074; color: #fff !important; }
.telekom-btn-kauf.secondary a { background: transparent; color: #E20074 !important; border: 1px solid #E20074; }
.telekom-btn-kauf.primary a:hover   { background: #c2005e; }
.telekom-btn-kauf.secondary a:hover { background: #fff0f7; }
