/* ── VARIABLEN ── */
:root {
  --blue: #1a56db;
  --blue-dark: #1342b0;
  --blue-light: #ebf3ff;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── CONTAINER ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* ── LOGO ── */
.site-logo { text-decoration: none; }
.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}
.logo-de {
  color: var(--blue);
  font-weight: 800;
}

/* ── NAV ── */
.nav-list {
  display: flex; align-items: center;
  gap: 2px; list-style: none;
}
.nav-link {
  padding: 6px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--gray-600);
  transition: all 0.15s;
}
.nav-link:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all 0.2s; }

/* ════════════════════════════════
   HERO MAGAZINE
════════════════════════════════ */
.hero-magazine {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--gray-200);
}
.hero-mag-inner { max-width: 720px; }
.hero-mag-label {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--blue);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero-mag-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.hero-mag-desc {
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 560px;
}

/* ════════════════════════════════
   FEATURED POST
════════════════════════════════ */
.featured-section { padding: 48px 0; border-bottom: 1px solid var(--gray-200); }
.featured-post {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.featured-image-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.featured-image-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-image-link:hover img { transform: scale(1.03); }
.featured-body { display: flex; flex-direction: column; gap: 16px; }
.featured-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
}
.featured-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.featured-title a:hover { color: var(--blue); }
.featured-excerpt {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
}
.featured-meta {
  display: flex; gap: 16px;
  font-size: 13px; color: var(--gray-400);
}
.featured-btn {
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600;
  color: var(--blue);
  transition: gap 0.15s;
}
.featured-btn:hover { text-decoration: underline; }

/* ════════════════════════════════
   LATEST POSTS
════════════════════════════════ */
.latest-section { padding: 48px 0; }
.latest-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 36px;
}
.latest-header h2 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gray-900); white-space: nowrap;
}
.latest-divider {
  flex: 1; height: 1px;
  background: var(--gray-200);
}

/* ── POST GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card { display: flex; flex-direction: column; }
.post-card-image-link {
  display: block; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16/10;
  margin-bottom: 16px;
}
.post-card-image-link img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card:hover .post-card-image-link img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--blue);
}
.post-card-title {
  font-size: 17px; font-weight: 700;
  line-height: 1.35; letter-spacing: -0.3px;
}
.post-card-title a { transition: color 0.15s; }
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt {
  font-size: 14px; color: var(--gray-500);
  line-height: 1.6; flex: 1;
}
.post-card-meta {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--gray-400);
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}

/* ════════════════════════════════
   CATEGORIES BAR
════════════════════════════════ */
.categories-bar {
  padding: 20px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.categories-bar-inner {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.cat-bar-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray-400); white-space: nowrap;
}
.cat-bar-links { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-bar-links a {
  font-size: 13px; font-weight: 500;
  color: var(--gray-700);
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.15s;
}
.cat-bar-links a:hover {
  background: var(--blue); color: var(--white);
  border-color: var(--blue);
}

/* ════════════════════════════════
   TELEGRAM
════════════════════════════════ */
.telegram-section { padding: 40px 0; }
.telegram-inner {
  display: flex; align-items: center; gap: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 28px; flex-wrap: wrap;
}
.telegram-icon { font-size: 32px; flex-shrink: 0; }
.telegram-text { flex: 1; }
.telegram-text h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.telegram-text p { font-size: 14px; color: var(--gray-500); }
.btn-telegram {
  padding: 10px 20px; border-radius: var(--radius);
  background: #229ed9; color: var(--white);
  font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: all 0.15s;
}
.btn-telegram:hover { background: #1a8bbf; }

/* ════════════════════════════════
   POST HEADER
════════════════════════════════ */
.post-header { padding: 56px 0 40px; border-bottom: 1px solid var(--gray-200); }
.post-header-inner { max-width: 760px; }
.post-tag-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px; margin-bottom: 16px;
}
.post-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; color: var(--gray-900);
  line-height: 1.15; letter-spacing: -1px;
  margin-bottom: 16px;
}
.post-excerpt {
  font-size: 18px; color: var(--gray-500);
  line-height: 1.6; margin-bottom: 24px;
}
.post-meta {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.post-author { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--gray-700); }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.post-meta-right { display: flex; gap: 8px; font-size: 13px; color: var(--gray-400); }

/* ── FEATURE IMAGE ── */
.post-feature-image { padding: 32px 0; }
.post-feature-image img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; }

/* ════════════════════════════════
   POST CONTENT
════════════════════════════════ */
.post-content-wrap { padding: 40px 0; }
.post-content-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px; align-items: start;
}

/* ── SIDEBAR ── */
.post-sidebar { position: sticky; top: 80px; }
.toc-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px;
}
.toc-box h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray-400); margin-bottom: 12px;
}
#toc a {
  display: block; font-size: 13px;
  color: var(--gray-500); padding: 5px 0 5px 12px;
  border-left: 2px solid var(--gray-200);
  transition: all 0.15s; line-height: 1.4;
}
#toc a:hover { color: var(--blue); border-left-color: var(--blue); }

/* ── CONTENT STYLING ── */
.gh-content { font-size: 17px; line-height: 1.85; color: var(--gray-700); }
.gh-content h2 {
  font-size: 26px; font-weight: 800;
  color: var(--gray-900); margin: 48px 0 16px;
  letter-spacing: -0.5px;
}
.gh-content h3 {
  font-size: 20px; font-weight: 700;
  color: var(--gray-900); margin: 36px 0 12px;
}
.gh-content p { margin-bottom: 24px; }
.gh-content ul, .gh-content ol { margin: 0 0 24px 24px; }
.gh-content li { margin-bottom: 8px; line-height: 1.7; }
.gh-content strong { font-weight: 700; color: var(--gray-900); }
.gh-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.gh-content a:hover { color: var(--blue-dark); }
.gh-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 16px 24px; margin: 32px 0;
  background: var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px; color: var(--gray-700);
}
.gh-content img { border-radius: var(--radius); margin: 32px 0; }
.gh-content table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; }
.gh-content th {
  background: var(--gray-900); color: var(--white);
  padding: 12px 16px; text-align: left; font-size: 13px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.gh-content td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
.gh-content tr:nth-child(even) td { background: var(--gray-50); }
.gh-content code {
  font-family: monospace; font-size: 14px;
  background: var(--gray-100); padding: 2px 6px;
  border-radius: 4px; color: var(--gray-900);
}

/* ── AFFILIATE NOTICE ── */
.post-affiliate-notice {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px; color: var(--gray-500);
  margin-top: 48px;
}

/* ════════════════════════════════
   POST FOOTER
════════════════════════════════ */
.post-footer { padding: 40px 0; border-top: 1px solid var(--gray-200); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tag-pill {
  padding: 5px 14px;
  background: var(--gray-100); color: var(--gray-700);
  border-radius: 100px; font-size: 13px; font-weight: 500;
  transition: all 0.15s;
}
.tag-pill:hover { background: var(--blue); color: var(--white); }
.telegram-cta { margin-bottom: 32px; }
.telegram-cta-inner {
  display: flex; align-items: center; gap: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px; flex-wrap: wrap;
}
.telegram-cta-inner span { font-size: 28px; flex-shrink: 0; }
.telegram-cta-inner div { flex: 1; }
.telegram-cta-inner h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.telegram-cta-inner p { font-size: 13px; color: var(--gray-500); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); transition: all 0.15s;
}
.post-nav-item:hover { border-color: var(--blue); }
.post-nav-label { font-size: 12px; color: var(--gray-400); }
.post-nav-item strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.post-nav-item.next { text-align: right; }

/* ════════════════════════════════
   TAG PAGE
════════════════════════════════ */
.tag-hero { padding: 56px 0; border-bottom: 1px solid var(--gray-200); }
.tag-hero-inner { max-width: 600px; }
.tag-hero-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.tag-hero-title { font-size: 40px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; letter-spacing: -1px; }
.tag-hero-desc { font-size: 16px; color: var(--gray-500); margin-bottom: 12px; }
.tag-hero-count { font-size: 13px; color: var(--gray-400); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.site-footer {
  background: var(--gray-900);
  padding: 56px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-de { color: #60a5fa; }
.footer-desc {
  font-size: 14px; color: var(--gray-400);
  margin: 16px 0 20px; line-height: 1.7;
  max-width: 320px;
}
.telegram-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #229ed9; color: var(--white);
  padding: 9px 16px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  transition: all 0.15s;
}
.telegram-btn:hover { background: #1a8bbf; }
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gray-400); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--gray-400); transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.affiliate-notice {
  font-size: 11px; color: var(--gray-500);
  margin-top: 20px; line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 13px; color: var(--gray-500); }

/* ════════════════════════════════
   PAGINATION
════════════════════════════════ */
.pagination {
  display: flex; justify-content: center;
  gap: 8px; margin-top: 48px;
}
.pagination a {
  padding: 8px 18px; border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  font-size: 14px; font-weight: 500;
  transition: all 0.15s;
}
.pagination a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-content-grid { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-post { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .nav-list { display: none; }
  .nav-toggle { display: flex; }
  .hero-magazine { padding: 40px 0 32px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .telegram-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-mag-title { letter-spacing: -0.5px; }
  .categories-bar-inner { flex-direction: column; align-items: flex-start; }
}

/* ── GHOST REQUIRED CLASSES ── */
.kg-width-wide {
  grid-column: wide;
  width: 85vw; max-width: 1200px;
  margin: 32px auto;
}
.kg-width-full {
  grid-column: full;
  width: 100vw;
  margin: 32px calc(50% - 50vw);
}
.kg-card { margin: 32px 0; }
.kg-image { max-width: 100%; border-radius: var(--radius); }

/* ── PAGE TEMPLATE ── */
.page-content-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0;
}

/* ── MOBILES MENÜ ── */
@media (max-width: 768px) {
    .nav-list.open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--white);
        padding: 16px 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
}
