/*
Theme Name: Digital erfolgreich
Description: Dunkles Blog-Theme fuer Digital erfolgreich
Version: 1.4
*/

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --bg: #050b1f;
  --bg-card: #0d1730;
  --bg-sidebar: #091526;
  --text: #f0f9ff;
  --text-muted: #94a3b8;
  --accent: #5eead4;
  --border: rgba(255,255,255,0.07);
  --max-width: 1280px;
}

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

html { font-size: 17px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Site wrapper */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.site-header .site-wrapper {
  display: flex;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo svg { display: block; }
.site-logo img { height: 40px; width: auto; }
.site-logo:hover { opacity: 0.85; text-decoration: none; }

/* Main content */
.site-main {
  padding: 3rem 0;
}

/* Blog index */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

/* Article card */
.article-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover { border-color: rgba(94,234,212,0.3); transform: translateY(-2px); }

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0d1730 0%, #1a2a4a 100%);
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(94,234,212,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.card-category:hover { background: rgba(94,234,212,0.15); text-decoration: none; }

.card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.read-more:hover { text-decoration: none; opacity: 0.8; }

/* Pagination */
.pagination {
  margin-top: 3rem;
}

.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .page-numbers.current { background: var(--accent); color: #050b1f; border-color: var(--accent); }

/* Single post layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

.post-featured-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-header { margin-bottom: 1.75rem; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.post-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(94,234,212,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.post-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--text);
}

/* Post body */
.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #dde8f4;
}

.entry-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.5rem 0 0.9rem;
  color: var(--text);
  line-height: 1.3;
}

.entry-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.7rem;
  color: var(--text);
}

.entry-content p { margin-bottom: 1.3rem; }

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.3rem 1.5rem;
}

.entry-content li { margin-bottom: 0.4rem; }

.entry-content strong { color: var(--text); font-weight: 700; }

.entry-content a { color: var(--accent); }

.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.entry-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Post navigation */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.post-navigation a { color: var(--text-muted); font-size: 0.875rem; }
.post-navigation a:hover { color: var(--accent); text-decoration: none; }

/* Sidebar */
.sidebar {
  position: sticky;
  top: 2rem;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.widget ul { list-style: none; margin: 0; padding: 0; }

.widget ul li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a { color: var(--text-muted); }
.widget ul li a:hover { color: var(--text); text-decoration: none; }

/* Static pages */
.page-content {
  max-width: 720px;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text);
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--text);
}

.page-content p {
  margin-bottom: 1rem;
  color: #dde8f4;
  line-height: 1.75;
}

.page-content a { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.site-footer .site-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.85rem; color: var(--text-muted); }

.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: 0.85rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); text-decoration: none; }

/* ===== Tabellen ===== */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.entry-content table thead {
  background: rgba(94,234,212,0.07);
}

.entry-content table th {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.entry-content table td {
  padding: 0.8rem 1.1rem;
  color: #dde8f4;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}

.entry-content table tr:last-child td { border-bottom: none; }

.entry-content table tr:hover td {
  background: rgba(255,255,255,0.02);
}

@media (max-width: 600px) {
  .entry-content table { font-size: 0.82rem; }
  .entry-content table th,
  .entry-content table td { padding: 0.65rem 0.75rem; }
}

/* ===== Navigation ===== */
.site-header .site-wrapper {
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-nav { flex: 1; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-list li a {
  display: block;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}

.nav-list li a:hover,
.nav-list li a[aria-current="page"] {
  color: var(--accent);
  background: rgba(94,234,212,0.08);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background 0.15s;
}

.nav-toggle:hover span { background: var(--accent); }

/* ===== Startseite ===== */
.home-intro {
  padding: 2.5rem 0 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.home-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

.section-block {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.section-title-link { text-decoration: none; }
.section-title-link:hover .section-title { color: var(--accent); }

.section-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.section-more:hover { text-decoration: none; opacity: 0.8; }

.articles-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.articles-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ===== Kategorie-Seite ===== */
.cat-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.cat-breadcrumb a { color: var(--text-muted); }
.cat-breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.cat-breadcrumb span[aria-hidden] { opacity: 0.4; }

.cat-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.cat-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.75;
}

.cat-seo-text {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.cat-seo-inner {
  max-width: 740px;
}

.cat-seo-inner h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.cat-seo-inner p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .articles-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .articles-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav { width: 100%; order: 3; }
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 1rem;
    gap: 0;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list li a { padding: 0.6rem 0.5rem; }
  .site-header .site-wrapper { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .articles-grid,
  .articles-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .site-wrapper { padding: 0 1rem; }
  .post-title { font-size: 1.65rem; }
  .cat-title { font-size: 1.7rem; }
}
