@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display&display=swap');

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --border: #e2e0d8;
  --text: #1a1917;
  --muted: #6b6860;
  --accent: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-hover: #1e40af;
  --success: #166534;
  --success-bg: #f0fdf4;
  --warn-bg: #fffbeb;
  --warn: #92400e;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

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

/* HEADER */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo span { color: var(--accent); }

.lang-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.lang-nav a {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}

.lang-nav a:hover, .lang-nav a.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* HERO */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.hero-inner { max-width: 680px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-langs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-langs span {
  font-size: 13px;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
}

/* AD BANNER */
.ad-banner {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 24px;
}

.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MAIN LAYOUT */
.main-wrap {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

@media (max-width: 768px) {
  .main-wrap { grid-template-columns: 1fr; }
}

/* CATEGORY PILLS */
.category-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cat-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

/* ARTICLE CARDS */
.articles { display: flex; flex-direction: column; gap: 16px; }

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.article-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
}

.cat-alg { background: #dbeafe; color: #1e40af; }
.cat-wohnen { background: #d1fae5; color: #065f46; }
.cat-steuer { background: #fef3c7; color: #92400e; }
.cat-aufenthalt { background: #fce7f3; color: #9d174d; }
.cat-arbeit { background: #ede9fe; color: #5b21b6; }

.article-time { font-size: 12px; color: var(--muted); }

.article-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

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

.article-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.read-time { font-size: 12px; color: var(--muted); }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

/* AFFILIATE CARDS */
.affiliate-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
  text-decoration: none;
  color: var(--text);
}

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

.aff-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.aff-wise { background: #00b9a5; color: white; }
.aff-n26 { background: #1a1a2e; color: white; }
.aff-babbel { background: #7952b3; color: white; }

.aff-info { flex: 1; }
.aff-name { font-size: 14px; font-weight: 600; }
.aff-desc { font-size: 12px; color: var(--muted); }
.aff-arrow { font-size: 16px; color: var(--muted); }

/* POPULAR LIST */
.popular-list { list-style: none; }
.popular-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  align-items: flex-start;
}
.popular-list li:last-child { border-bottom: none; }
.pop-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  width: 18px;
  flex-shrink: 0;
  padding-top: 1px;
}
.popular-list a { color: var(--text); line-height: 1.4; }
.popular-list a:hover { color: var(--accent); }

/* FOOTER */
footer {
  background: var(--text);
  color: #9ca3af;
  padding: 40px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-brand .logo { color: white; }
.footer-brand p { font-size: 13px; margin-top: 8px; color: #9ca3af; }

.footer-col h4 { font-size: 13px; font-weight: 600; color: white; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: 13px; color: #9ca3af; }
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid #374151;
  font-size: 12px;
  text-align: center;
}

/* ARTICLE PAGE */
.article-wrap {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

@media (max-width: 768px) { .article-wrap { grid-template-columns: 1fr; } }

.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.article-body .article-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-body .article-intro {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.article-body p { margin-bottom: 14px; line-height: 1.75; }

.article-body ul, .article-body ol {
  margin: 12px 0 16px 20px;
  line-height: 1.8;
}

.info-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
}

.warn-box {
  background: var(--warn-bg);
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
}

.success-box {
  background: var(--success-bg);
  border-left: 4px solid #22c55e;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
}

.step-list { list-style: none; margin: 0 0 16px; }
.step-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.step-num {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content { flex: 1; }
.step-content strong { display: block; font-weight: 600; margin-bottom: 2px; }
.step-content p { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 600px) {
  .header-inner { padding: 0 16px; }
  .hero { padding: 32px 16px; }
  .main-wrap, .article-wrap { padding: 0 16px; margin: 20px auto; }
  .article-body { padding: 20px; }
}
