/* Tarifemaxx Magazin – gemeinsame Styles */
:root {
  --accent: #1847D4;
  --accent-light: #EBF0FF;
  --accent-dark: #1240B8;
  --green: #0D9E6A;
  --green-light: #E4F9F2;
  --ink: #0A0F1E;
  --ink-soft: #2D3552;
  --ink-muted: #6B7598;
  --surface: #F1F3F9;
  --white: #fff;
  --border: #E4E7F0;
  --r-2xl: 20px;
  --r-xl: 16px;
  --r-md: 8px;
  --sh-md: 0 6px 20px rgba(10, 15, 30, 0.1);
  --max-prose: 720px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(10, 15, 30, 0.07);
}
.ni {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.15s;
  text-decoration: none !important;
}
.back:hover { border-color: var(--accent); color: var(--accent); }

.mag-hero {
  padding: 48px 32px 56px;
  position: relative;
  overflow: hidden;
}
.mag-hero.teal {
  background: linear-gradient(135deg, #042e1a 0%, #065f46 50%, #0d9e6a 100%);
}
.mag-hero.blue {
  background: linear-gradient(135deg, #0a1842 0%, #1847d4 55%, #2b5fff 100%);
}
.mag-hero.violet {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #4f46e5 100%);
}
.mag-hero.rose {
  background: linear-gradient(135deg, #4a0828 0%, #be185d 55%, #db2777 100%);
}
.mag-hero.cyan {
  background: linear-gradient(135deg, #0a3a5a 0%, #0e7490 60%, #0891b2 100%);
}
.mag-hero.slate {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.mag-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}
.crumb a { color: rgba(255, 255, 255, 0.92); font-weight: 700; text-decoration: none !important; }
.crumb a:hover { color: #fff; }
.mag-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 14px;
  max-width: 900px;
}
.mag-hero .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.65;
}
.mag-hero .meta {
  margin-top: 18px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.mag-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 32px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .mag-wrap { grid-template-columns: 1fr; gap: 40px; }
}

.mag-main { min-width: 0; }

.prose {
  max-width: var(--max-prose);
}
.prose h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin: 36px 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
}
.prose p { margin-bottom: 14px; font-size: 0.96rem; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 16px 1.2rem; font-size: 0.93rem; color: var(--ink-muted); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }

.cta-aff {
  background: linear-gradient(135deg, var(--accent-light), #fff);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  margin: 28px 0;
  box-shadow: var(--sh-md);
}
.cta-aff h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.cta-aff p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}
.cta-aff .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: var(--r-md);
  text-decoration: none !important;
  font-family: 'Syne', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(24, 71, 212, 0.35);
}
.cta-aff .btn:hover { transform: translateY(-1px); text-decoration: none !important; }
.cta-aff .aff-note {
  display: block;
  margin-top: 12px;
  font-size: 0.68rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.sidebar {
  position: sticky;
  top: 88px;
}
.sidebar-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.sidebar-box h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.sidebar-box ul { list-style: none; margin: 0; }
.sidebar-box li { margin-bottom: 10px; }
.sidebar-box a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none !important;
}
.sidebar-box a:hover { text-decoration: underline !important; }

.faq-block { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); max-width: var(--max-prose); }
.faq-block h2 { margin-top: 0; }
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item details[open] .faq-q { border-bottom: 1px solid var(--border); }
.faq-a { padding: 0 18px 14px; font-size: 0.86rem; color: var(--ink-muted); line-height: 1.65; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.hub-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.hub-card:hover {
  border-color: var(--accent);
  box-shadow: var(--sh-md);
}
.hub-card .ico { font-size: 2rem; margin-bottom: 12px; }
.hub-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.hub-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.55;
}
.hub-card .more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none !important;
}
.hub-card .more:hover { text-decoration: underline !important; }

footer {
  background: #060d1f;
  padding: 32px;
  margin-top: 0;
}
.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.flinks { display: flex; gap: 18px; flex-wrap: wrap; }
.flinks a { color: #9ca3af; font-size: 0.8rem; font-weight: 600; text-decoration: none !important; }
.flinks a:hover { color: #fff; }
.fcp {
  width: 100%;
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #111827;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .mag-wrap { padding: 32px 20px 48px; }
  .ni { padding: 0 20px; height: auto; min-height: 64px; }
}
