/* ==========================================================================
   BILD.DE OFFICIAL AESTHETIC DESIGN SYSTEM
   ========================================================================== */

:root {
  --bild-red: #d00000;
  --bild-dark-red: #b00000;
  --bild-black: #111111;
  --bild-dark: #222222;
  --bild-gray: #666666;
  --bild-light-gray: #f3f3f3;
  --bild-border: #e0e0e0;
  --bild-yellow: #ffcc00;
  --bild-blue: #0056b3;
  --bild-green: #00873d;
  --font-headline: Impact, "Arial Narrow", "Arial Black", -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Georgia", serif;
}

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

body {
  font-family: var(--font-body);
  background-color: #f7f7f7;
  color: var(--bild-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bild-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------------- Top Ticker Bar ---------------- */
.bild-top-bar {
  background: var(--bild-black);
  color: #ffffff;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--bild-red);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eilmeldung-badge {
  background: var(--bild-red);
  color: white;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: bildPulse 1.4s infinite;
}

@keyframes bildPulse {
  0% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.8); }
}

.top-date {
  color: #bbbbbb;
  font-weight: 500;
}

/* ---------------- Main Header & Logo ---------------- */
.bild-header {
  background: #ffffff;
  border-bottom: 3px solid var(--bild-red);
}

.bild-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bild-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.bild-logo-box {
  background: var(--bild-red);
  color: #ffffff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 34px;
  font-weight: 900;
  padding: 2px 14px;
  letter-spacing: -1.5px;
  line-height: 1;
  border-radius: 2px;
  display: inline-block;
}

.bild-section-title {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 26px;
  color: var(--bild-black);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.market-ticker-compact {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bild-gray);
}

.market-ticker-compact strong {
  color: var(--bild-black);
}

.market-up {
  color: var(--bild-green);
}

/* ---------------- Navigation Bar ---------------- */
.bild-nav {
  background: var(--bild-red);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.bild-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  padding: 0 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.bild-nav-item {
  color: #ffffff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-block;
  border-bottom: 4px solid transparent;
}

.bild-nav-item:hover {
  background: var(--bild-dark-red);
  text-decoration: none;
}

.bild-nav-item.active {
  background: #ffffff;
  color: var(--bild-red);
  border-bottom-color: var(--bild-black);
}

.bild-nav-item.bildplus-btn {
  background: var(--bild-black);
  color: var(--bild-yellow);
  font-weight: 900;
  margin-left: auto;
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb-bar {
  max-width: 1140px;
  margin: 10px auto 0 auto;
  padding: 0 16px;
  font-size: 12px;
  color: var(--bild-gray);
  font-weight: 600;
}

.breadcrumb-bar span {
  margin: 0 6px;
  color: #999;
}

/* ---------------- Main Layout ---------------- */
.bild-layout {
  max-width: 1140px;
  margin: 14px auto 30px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
}

/* ---------------- Article Container ---------------- */
.bild-article-box {
  background: #ffffff;
  border: 1px solid var(--bild-border);
  border-top: 4px solid var(--bild-red);
  padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Kicker (Überzeile) */
.bild-kicker {
  color: var(--bild-red);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

/* Main Headline (Hauptzeile) */
.bild-main-headline {
  font-family: var(--font-headline);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--bild-black);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Subheadline (Unterzeile) */
.bild-subheadline {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #333333;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bild-border);
}

/* Author Info */
.bild-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.bild-author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bild-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
}

.author-txt-name {
  font-weight: 800;
  font-size: 13px;
  color: var(--bild-black);
}

.author-txt-date {
  font-size: 12px;
  color: var(--bild-gray);
}

/* Video Wrapper */
.bild-video-wrapper {
  background: #000000;
  border-radius: 4px;
  overflow: hidden;
  margin: 18px 0 8px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  position: relative;
}

.bild-video-wrapper video {
  width: 100%;
  max-height: 480px;
  display: block;
}

.bild-video-caption {
  font-size: 12px;
  color: var(--bild-gray);
  font-style: italic;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bild-video-tag {
  background: #fee2e2;
  color: var(--bild-dark-red);
  padding: 2px 6px;
  font-weight: 800;
  font-size: 10px;
  border-radius: 2px;
}

/* ---------------- Native In-Text Links ---------------- */
.bild-native-box {
  background: #fff8f0;
  border-left: 4px solid var(--bild-red);
  padding: 14px 18px;
  margin: 22px 0;
  border-radius: 0 4px 4px 0;
}

.bild-native-link {
  color: var(--bild-red) !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
  transition: color 0.15s ease;
  display: inline;
}

.bild-native-link:hover {
  color: var(--bild-black) !important;
  background-color: #fee2e2;
}

.native-link-badge {
  display: inline-block;
  background: var(--bild-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

/* ---------------- Article Content Typography ---------------- */
.bild-content p {
  font-size: 17px;
  line-height: 1.65;
  color: #222222;
  margin-bottom: 18px;
}

.bild-content strong {
  font-weight: 800;
  color: var(--bild-black);
}

.bild-content h2 {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--bild-black);
  margin: 28px 0 12px 0;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--bild-red);
  letter-spacing: -0.3px;
}

.bild-quote-card {
  background: var(--bild-light-gray);
  border-left: 5px solid var(--bild-red);
  padding: 18px 20px;
  margin: 22px 0;
  border-radius: 0 4px 4px 0;
}

.bild-quote-card p {
  font-size: 18px !important;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  color: #111111;
  margin-bottom: 6px !important;
}

.bild-quote-author {
  font-size: 13px;
  font-weight: 800;
  color: var(--bild-gray);
  text-align: right;
}

/* Comparison Table */
.bild-table-card {
  background: #ffffff;
  border: 2px solid var(--bild-border);
  border-radius: 4px;
  margin: 26px 0;
  overflow: hidden;
}

.bild-table-card h3 {
  background: var(--bild-black);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 10px 14px;
  letter-spacing: 0.5px;
}

.bild-table {
  width: 100%;
  border-collapse: collapse;
}

.bild-table th, .bild-table td {
  padding: 10px 14px;
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--bild-border);
}

.bild-table th {
  background: #f0f0f0;
  font-weight: 800;
}

.val-bad {
  color: var(--bild-red);
  font-weight: 800;
}

.val-good {
  color: var(--bild-green);
  font-weight: 800;
}

/* Interactive Calculator */
.bild-calc-card {
  background: #1e293b;
  color: #ffffff;
  padding: 22px;
  border-radius: 6px;
  margin: 28px 0;
}

.bild-calc-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.calc-slider-box {
  margin: 18px 0;
}

.slider-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.badge-deposit-val {
  background: var(--bild-yellow);
  color: #000;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 900;
}

.calc-slider-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  accent-color: var(--bild-yellow);
}

.calc-grid-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.calc-res-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.calc-res-val {
  font-size: 22px;
  color: #4ade80;
  font-weight: 900;
}

.btn-preland-cta {
  display: block;
  text-align: center;
  background: var(--bild-red);
  color: #ffffff !important;
  padding: 14px;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(208, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.btn-preland-cta:hover {
  background: var(--bild-dark-red);
  text-decoration: none;
}

/* ---------------- 3 Steps ---------------- */
.bild-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.bild-step-card {
  background: var(--bild-light-gray);
  border: 1px solid var(--bild-border);
  padding: 16px;
  border-radius: 4px;
  position: relative;
}

.step-badge {
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--bild-red);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
}

.bild-step-card h4 {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--bild-black);
  margin-bottom: 4px;
}

.bild-step-card p {
  font-size: 12px !important;
  color: var(--bild-gray) !important;
  line-height: 1.4 !important;
  margin-bottom: 0 !important;
}

/* ---------------- Comments Section ---------------- */
.bild-comments {
  margin-top: 36px;
  border-top: 2px solid var(--bild-border);
  padding-top: 20px;
}

.comments-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.comments-title-row h3 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.comment-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bild-border);
}

.comment-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #334155;
  font-size: 13px;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-author-name {
  font-weight: 800;
  font-size: 13px;
  color: var(--bild-black);
}

.comment-verified {
  font-size: 10px;
  background: #dcfce7;
  color: var(--bild-green);
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
}

.comment-time-txt {
  font-size: 11px;
  color: #94a3b8;
  float: right;
}

.comment-msg {
  font-size: 13px;
  color: #333333;
  margin-top: 4px;
  line-height: 1.4;
}

.comment-like-action {
  font-size: 11px;
  color: var(--bild-gray);
  cursor: pointer;
  margin-top: 6px;
  font-weight: 700;
}

/* ---------------- Sidebar ---------------- */
.bild-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bild-widget {
  background: #ffffff;
  border: 1px solid var(--bild-border);
  padding: 18px;
  border-radius: 4px;
}

.bild-widget-title {
  font-family: var(--font-headline);
  font-size: 18px;
  color: var(--bild-black);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--bild-red);
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-list li {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bild-border);
}

.sidebar-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rank-nr {
  font-family: var(--font-headline);
  font-size: 24px;
  color: var(--bild-red);
  line-height: 1;
}

.rank-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bild-black);
}

/* ---------------- Sticky Mobile CTA ---------------- */
.bild-sticky-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 10px 14px;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.15);
  z-index: 999;
  border-top: 2px solid var(--bild-red);
}

.sticky-mobile-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sticky-info {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.sticky-info span {
  color: var(--bild-red);
  display: block;
}

.btn-mobile-open {
  background: var(--bild-red);
  color: #ffffff !important;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------------- Footer ---------------- */
.bild-footer {
  background: var(--bild-black);
  color: #aaaaaa;
  padding: 30px 16px;
  font-size: 11px;
  line-height: 1.5;
}

.bild-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #dddddd;
}

/* Responsive */
@media (max-width: 860px) {
  .bild-layout {
    grid-template-columns: 1fr;
    padding: 0 10px;
    margin: 10px auto;
  }
  .bild-article-box {
    padding: 16px;
  }
  .bild-main-headline {
    font-size: 26px;
  }
  .bild-steps-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid-results {
    grid-template-columns: 1fr;
  }
  .bild-sticky-mobile {
    display: block;
  }
  .market-ticker-compact {
    display: none;
  }
}
