
/*
Theme Name: SportNews Blank
Theme URI: https://example.com/sportnews_blank
Author: ChatGPT
Author URI: https://example.com
Description: Minimalistisches, mobilfreundliches News-Theme (Blank) mit Header-Ticker, responsivem Grid und Dark Mode – ideal als Basis für ein Sport-News-Portal.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sportnews_blank
Tags: news, magazine, responsive, grid, dark-mode
*/

:root {
  --sn-font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  --sn-bg: #ffffff;
  --sn-text: #101010;
  --sn-muted: #6b7280;
  --sn-primary: #c30000; /* sportliche Akzentfarbe */
  --sn-accent: #0b5fff;
  --sn-card: #f7f7f8;
  --sn-border: #e5e7eb;
}

html.dark {
  --sn-bg: #0b0b0c;
  --sn-text: #e5e7eb;
  --sn-muted: #9ca3af;
  --sn-card: #151517;
  --sn-border: #1f2937;
}

body {
  margin: 0;
  font-family: var(--sn-font);
  background: var(--sn-bg);
  color: var(--sn-text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sn-primary); }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sn-bg);
  border-bottom: 1px solid var(--sn-border);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.2px;
}

.brand .logo-box {
  width: 34px; height: 24px; background: var(--sn-primary); color: #fff; display: grid; place-items: center; font-size: 14px; border-radius: 4px;
}

.header-actions {
  display: flex; align-items: center; gap: 10px;
}

.search-form input[type=search] {
  border: 1px solid var(--sn-border); background: var(--sn-card); color: inherit; padding: 8px 10px; border-radius: 8px; width: 180px;
}

.navbar {
  display: flex; gap: 14px; overflow-x: auto; padding: 10px 0;
  scrollbar-width: thin;
}
.navbar a { padding: 6px 8px; border-radius: 6px; white-space: nowrap; }
.navbar a.is-active, .navbar a:hover { background: var(--sn-card); }

.ticker {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--sn-border); border-bottom: 1px solid var(--sn-border);
}
.ticker .label {
  background: var(--sn-primary); color: #fff; font-weight: 700; padding: 4px 8px; border-radius: 4px; font-size: 12px;
}
.ticker .marquee {
  overflow: hidden; white-space: nowrap;
}
.ticker .marquee span {
  display: inline-block; padding-left: 100%; animation: marquee 20s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px 0 28px;
}

@media (min-width: 740px) {
  .grid { grid-template-columns: 2fr 1fr; }
}

.card {
  background: var(--sn-card); border: 1px solid var(--sn-border); border-radius: 12px; overflow: hidden;
}
.card img { width: 100%; height: auto; display: block; }
.card .pad { padding: 12px; }
.card .meta { font-size: 12px; color: var(--sn-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card h2, .card h3 { margin: 6px 0 8px; line-height: 1.25; }

.article {
  display: grid; gap: 10px;
}
.article .hero img { width: 100%; border-radius: 12px; }
.article .byline { color: var(--sn-muted); font-size: 14px; }
.article .content > *+* { margin-top: 16px; }

.sidebar .widget {
  background: var(--sn-card); border: 1px solid var(--sn-border); border-radius: 12px; padding: 12px; margin-bottom: 16px;
}

.footer {
  border-top: 1px solid var(--sn-border);
  padding: 24px 0; color: var(--sn-muted); font-size: 14px;
}

.ad-slot {
  background: repeating-linear-gradient(45deg, #ddd, #ddd 10px, #eee 10px, #eee 20px);
  color: #555; border: 1px dashed #bbb; padding: 10px; text-align: center; border-radius: 8px;
}

.toggle {
  border: 1px solid var(--sn-border); background: var(--sn-card);
  border-radius: 8px; padding: 6px 10px; cursor: pointer;
}

/* Gutenberg content width */
.wp-block {
  max-width: 720px;
}
