/*
Theme Name: Web Presse Modern
Theme URI: https://example.com/web-presse-modern
Author: OpenAI
Author URI: https://openai.com
Description: Modernes, responsives Nachrichten-Theme für WordPress mit klarer Startseite, Breaking-News-Leiste, Kartenlayout und Magazin-Optik.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: web-presse-modern
*/

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #10131a;
  --text: #121721;
  --muted: #677286;
  --border: #e4e8f0;
  --accent: #d7263d;
  --accent-dark: #a50f22;
  --shadow: 0 14px 34px rgba(11, 18, 32, 0.08);
  --radius: 18px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-topbar {
  background: var(--surface-2);
  color: #fff;
  font-size: 14px;
}
.site-topbar .container {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.breaking-news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.breaking-news-label {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}
.top-meta { color: rgba(255,255,255,.8); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228,232,240,.9);
}
.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-branding img.custom-logo {
  max-height: 56px;
  width: auto;
}
.site-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
}
.site-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-toggle,
.mobile-menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}
.search-toggle:hover,
.mobile-menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.main-navigation a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--text);
}
.main-navigation .current-menu-item > a,
.main-navigation a:hover {
  background: #f1f4fa;
  color: var(--accent);
}

.header-search {
  display: none;
  padding-bottom: 18px;
}
.header-search.is-open { display: block; }
.header-search form {
  display: flex;
  gap: 12px;
}
.header-search input[type="search"] {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  background: #fff;
}
.header-search button,
button,
input[type="submit"] {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
}
.header-search button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--accent-dark);
}

.hero {
  padding: 36px 0 18px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 24px;
}
.card,
.widget,
.comment-respond,
.comments-area,
.archive-panel,
.pagination-wrap,
.article-body,
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-feature {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.hero-feature .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,19,26,.08) 0%, rgba(16,19,26,.72) 85%);
}
.hero-feature-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #fff;
}
.hero-feature h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  margin: 10px 0 14px;
  letter-spacing: -0.04em;
}
.hero-feature p { margin: 0 0 16px; color: rgba(255,255,255,.9); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.read-more {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}
.read-more:hover { color: var(--accent); }

.hero-side {
  display: grid;
  gap: 20px;
}
.mini-story {
  padding: 18px;
}
.mini-story img {
  border-radius: 14px;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 14px;
}
.mini-story h3 {
  font-size: 21px;
  line-height: 1.15;
  margin: 8px 0 10px;
}
.meta,
.entry-meta,
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 22px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}
.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.section-subtitle { margin: 6px 0 0; color: var(--muted); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  overflow: hidden;
}
.post-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card-content { padding: 18px; }
.post-card h3 {
  margin: 10px 0 10px;
  font-size: 23px;
  line-height: 1.15;
}
.post-card p { color: var(--muted); margin: 0; }

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr);
  gap: 28px;
  padding: 28px 0 56px;
}
.post-stream { display: grid; gap: 22px; }
.stream-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  overflow: hidden;
}
.stream-card .thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.stream-card-content { padding: 20px 20px 20px 0; }
.stream-card h2,
.stream-card h3 {
  margin: 10px 0;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.08;
}
.sidebar { display: grid; gap: 22px; align-content: start; }
.widget,
.sidebar-box { padding: 20px; }
.widget-title,
.sidebar-title {
  margin: 0 0 16px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.widget li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.widget li:last-child { border-bottom: 0; padding-bottom: 0; }

.single-main {
  padding: 26px 0 56px;
}
.article-shell {
  width: min(calc(100% - 32px), 920px);
  margin: 0 auto;
}
.single-header {
  margin-bottom: 22px;
}
.single-header h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -0.05em;
  margin: 14px 0;
}
.single-summary {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}
.featured-media {
  overflow: hidden;
  border-radius: var(--radius);
  margin: 26px 0;
  box-shadow: var(--shadow);
}
.featured-media img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.article-body {
  padding: clamp(20px, 3vw, 42px);
}
.article-body p,
.article-body li {
  font-size: 18px;
  line-height: 1.9;
}
.article-body h2,
.article-body h3,
.article-body h4 {
  line-height: 1.15;
  margin-top: 1.8em;
  margin-bottom: .6em;
}
.article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: #fafbfd;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 700;
}
.tags-links,
.cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags-links a,
.cat-links a {
  background: #f2f5fb;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.author-box {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  padding: 22px;
  margin-top: 24px;
}
.author-avatar img { border-radius: 999px; }

.site-footer {
  background: var(--surface-2);
  color: #fff;
  margin-top: 20px;
}
.site-footer .container {
  padding: 38px 0;
  display: grid;
  gap: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 24px;
}
.site-footer a { color: rgba(255,255,255,.86); }
.site-footer a:hover { color: #fff; }
.footer-note {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.archive-hero {
  padding: 28px 0 6px;
}
.archive-panel {
  padding: 26px;
}
.archive-title {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}
.archive-description,
.search-description { color: var(--muted); }

.pagination-wrap {
  padding: 16px 20px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 800;
}
.page-numbers.current,
.page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-body {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.comment-body:last-child { border-bottom: 0; }

.wp-caption,
.gallery,
.aligncenter,
.alignwide,
.alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

@media (max-width: 1100px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
  }
  .main-navigation {
    grid-column: 1 / -1;
    display: none;
  }
  .main-navigation.is-open { display: block; }
  .mobile-menu-toggle { display: inline-flex; }
  .hero-grid,
  .news-grid,
  .content-wrap,
  .footer-grid,
  .stream-card {
    grid-template-columns: 1fr;
  }
  .stream-card .thumb img { aspect-ratio: 16/10; }
  .stream-card-content { padding: 0 20px 20px; }
}

@media (min-width: 1101px) {
  .mobile-menu-toggle { display: none; }
  .main-navigation { display: block !important; }
}

@media (max-width: 700px) {
  .site-topbar .container,
  .header-search form,
  .site-header-inner {
    grid-template-columns: 1fr;
    display: grid;
  }
  .site-topbar .container { gap: 8px; }
  .header-tools { justify-content: flex-start; }
  .hero-feature { min-height: 420px; }
  .single-summary { font-size: 18px; }
  .article-body p,
  .article-body li { font-size: 17px; }
}
