/*
Theme Name: Finanz & Wirtschaft News
Theme URI: https://finanz-wirtschafts-news.de
Author: Finanz-Wirtschafts-News
Author URI: https://finanz-wirtschafts-news.de
Description: Professionelles Nachrichten-Theme im Zeitungsstil für Wirtschafts- und Finanz-News.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: finanz-wirtschaft
Tags: news, finance, newspaper, blog, custom-colors, custom-logo
*/

:root {
  --ink: #0a0a08;
  --paper: #f5f0e8;
  --cream: #ede7d9;
  --gold: #b8922a;
  --gold-light: #d4aa4a;
  --red: #c0392b;
  --green: #1a6b3c;
  --muted: #6b6558;
  --rule: #c8bfaf;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

/* ── TICKER ── */
.ticker-wrap {
  background: var(--ink);
  color: var(--gold);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
}
.ticker { display: inline-block; animation: ticker 38s linear infinite; }
.ticker span { margin: 0 2.5rem; }
.ticker .up { color: #4ade80; }
.ticker .down { color: #f87171; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── MASTHEAD ── */
.masthead {
  border-bottom: 3px double var(--ink);
  padding: 1rem 2rem 0.8rem;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  gap: 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}
.masthead-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.7;
}
.masthead-meta p { margin-bottom: 2px; }
.masthead-title { text-align: center; padding: 0 1rem; }
.masthead-title h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Falls Titel trotzdem umbricht: kleinere Schrift */
@supports (container-type: inline-size) {
  .masthead-title { container-type: inline-size; }
}
.masthead-title h1 span { color: var(--gold); }
.masthead-title .tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3px 0;
  white-space: nowrap;
}
.masthead-right {
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* ── NAV ── */
.main-nav {
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
}
.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}
.main-nav ul li a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  display: block;
  border-right: 1px solid #333;
  transition: background 0.2s, color 0.2s;
}
.main-nav ul li:first-child a { border-left: 1px solid #333; }
.main-nav ul li a:hover { background: var(--gold); color: var(--ink); }

/* ── CONTAINER ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BREAKING ── */
.breaking {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
}
.breaking-label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #fff;
  color: var(--red);
  padding: 2px 8px;
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-label a { color: var(--gold); text-decoration: none; font-size: 0.6rem; }

/* ── HERO GRID ── */
.hero {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 0;
  border-bottom: 3px double var(--rule);
  margin-top: 1.5rem;
}
.hero-main {
  border-right: 1px solid var(--rule);
  padding: 1.5rem 2rem 1.5rem 0;
}
.hero-side { padding-left: 1.5rem; padding-bottom: 1.5rem; }
.hero-side-top {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

/* ── POST / ARTICLE STYLES ── */
.category-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--gold); }
.post-excerpt {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2a2a24;
  margin-bottom: 1rem;
}
.post-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.post-thumbnail {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1a1a14 0%, #2d2d20 50%, #1a3a2a 100%);
}

/* ── THREE COLUMN GRID ── */
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.col-card { border-top: 3px solid var(--ink); padding-top: 1rem; }
.col-card:nth-child(2) { border-top-color: var(--gold); }
.col-card:nth-child(3) { border-top-color: var(--red); }
.col-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.col-card h3 a { color: var(--ink); }
.col-card h3 a:hover { color: var(--gold); }
.col-card p { font-size: 0.85rem; line-height: 1.55; color: var(--muted); }

/* ── MARKET TABLE ── */
.markets-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.market-table { width: 100%; border-collapse: collapse; }
.market-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding: 4px 8px;
  text-align: left;
}
.market-table th:last-child, .market-table td:last-child { text-align: right; }
.market-table td {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  padding: 8px 8px;
  border-bottom: 1px solid var(--cream);
}
.market-table tr:hover td { background: var(--cream); }
.market-table .name { font-family: 'Source Serif 4', serif; font-size: 0.85rem; }
.up { color: var(--green); font-weight: 500; }
.down { color: var(--red); font-weight: 500; }

/* ── ANALYSIS ── */
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.analysis-card {
  background: var(--cream);
  padding: 1.5rem;
  border-left: 4px solid var(--gold);
}
.analysis-card .kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.analysis-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}
.analysis-card h3 a { color: var(--ink); }
.analysis-card p { font-size: 0.88rem; line-height: 1.6; color: #2a2a24; }
.author {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* ── SINGLE POST ── */
.single-content {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.single-content .post-title { font-size: clamp(1.8rem, 4vw, 3rem); }
.single-content .post-body { font-size: 1.05rem; line-height: 1.8; margin-top: 1.5rem; }
.single-content .post-body p { margin-bottom: 1.2rem; }
.single-content .post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 2rem 0 0.8rem;
}

/* ── SIDEBAR ── */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
.sidebar .widget {
  margin-bottom: 2rem;
}
.sidebar .widget-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  margin-bottom: 1rem;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 1.5rem 1rem;
  margin-top: 2rem;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
}
.footer-brand h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.8rem; color: #999; line-height: 1.6; }
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: #555;
  letter-spacing: 0.05em;
}
.footer-bottom a { color: #555; }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 2rem 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
}
.pagination a, .pagination span {
  padding: 6px 14px;
  border: 1px solid var(--rule);
}
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .masthead { grid-template-columns: 140px 1fr 140px; gap: 1rem; }
  .masthead-title h1 { font-size: clamp(1.2rem, 2.5vw, 2rem); }
}
@media (max-width: 768px) {
  .masthead { grid-template-columns: 1fr; text-align: center; padding: 1rem; }
  .masthead-meta, .masthead-right { display: none; }
  .masthead-title h1 { white-space: normal; font-size: clamp(1.4rem, 6vw, 2rem); }
  .masthead-title .tagline { white-space: normal; letter-spacing: 0.1em; }
  .hero { grid-template-columns: 1fr; }
  .hero-main { border-right: none; padding-right: 0; }
  .hero-side { padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
  .three-col, .markets-section, .analysis-grid, .footer-grid, .content-sidebar-wrap { grid-template-columns: 1fr; }
  .main-nav ul { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}
