/* Datentarife.net Child-Theme: globale Gestaltung nach dem Redesign-Canvas */

:root {
  --dtn-navy: #0C3652;
  --dtn-blue: #1F7BAE;
  --dtn-link: #17689A;
  --dtn-cta: #00689F;
  --dtn-accent: #3899CB;
  --dtn-bg: #F3F8FB;
  --dtn-tint: #E3F2FA;
  --dtn-line: #DCE6EC;
  --dtn-text: #14212B;
  --dtn-body: #2B3A45;
  --dtn-muted: #55646F;
  /* GeneratePress-Farben auf die Markenfarben legen */
  --contrast: #14212B;
  --contrast-2: #55646F;
  --accent: #1F7BAE;
  --base: #F3F8FB;
  --base-2: #F3F8FB;
  --base-3: #ffffff;
}

/* ---------- Grundlagen ---------- */
body {
  background: #fff;
  color: var(--dtn-text);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
a { color: var(--dtn-link); }
a:hover, a:focus { color: var(--dtn-navy); }

.entry-content p,
.entry-content li { color: var(--dtn-body); }

h1, h2, h3, h4 { color: var(--dtn-text); font-weight: 800; }
h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.8px; }
.entry-content h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--dtn-accent);
}
.entry-content h3 { font-size: 22px; line-height: 1.3; margin: 32px 0 12px; }

/* Ein durchgehender weißer Hintergrund statt einzelner Kästen */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.separate-containers .widget,
.separate-containers .site-main {
  background: transparent;
}
.separate-containers .inside-article { padding: 32px 0 64px; }
.site-content { padding-top: 0; }
body .grid-container, body .site.grid-container, body .container.grid-container { max-width: 1320px; }
.site.grid-container, .site-content { box-sizing: border-box; }

/* Inhalt + Seitenleiste mit 40 px Abstand wie im Entwurf */
@media (min-width: 1025px) {
  .right-sidebar .site-content { display: flex; gap: 40px; padding-left: 24px; padding-right: 24px; }
  .right-sidebar .content-area { flex: 1 1 auto; width: auto; min-width: 0; }
  .right-sidebar .is-right-sidebar { flex: 0 0 300px; width: 300px; }
}

/* ---------- Header ---------- */
.site-header { background: #fff; }
.inside-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-logo img { max-height: 52px; width: auto; }
.dtn-header-cta { margin-left: auto; }
a.dtn-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--dtn-cta);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
a.dtn-pill:hover, a.dtn-pill:focus { background: var(--dtn-navy); color: #fff; }

/* ---------- Navigation ---------- */
.main-navigation,
.main-navigation ul ul { background: var(--dtn-blue); }
.main-navigation .inside-navigation { max-width: 1320px; padding: 0 24px; box-sizing: border-box; }
.main-navigation .main-nav ul li a {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 56px;
  padding-left: 20px;
  padding-right: 20px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a,
.main-navigation .main-nav ul li.sfHover > a { background: var(--dtn-navy); color: #fff; }
.main-navigation .main-nav ul li[class*="current-menu-"] > a { background: var(--dtn-navy); color: #fff; }
.main-navigation .main-nav ul ul li a { line-height: 1.4; padding-top: 12px; padding-bottom: 12px; font-size: 16px; }
.main-navigation .main-nav ul ul { box-shadow: 0 12px 24px rgba(12, 54, 82, 0.18); }
.main-navigation .menu-toggle, .main-navigation .mobile-bar-items a { color: #fff; }

/* ---------- Seitenleiste ---------- */
.is-right-sidebar .widget {
  background: #fff;
  border: 1px solid var(--dtn-line);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  color: var(--dtn-body);
}
.is-right-sidebar .inside-right-sidebar { padding-top: 32px; }
.is-right-sidebar .widget-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dtn-text);
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 3px solid var(--dtn-accent);
}
.is-right-sidebar .widget ul { margin: 0; }
.is-right-sidebar .widget ul li { margin: 0; padding: 0; list-style: none; }
.is-right-sidebar .widget ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--dtn-link);
  font-weight: 600;
  text-decoration: none;
}
.is-right-sidebar .widget ul li a:hover { color: var(--dtn-navy); text-decoration: underline; }
.is-right-sidebar .widget ul li a img,
.is-right-sidebar .widget ul li a .menu-image { width: 18px; height: 18px; }
.is-right-sidebar .widget_custom_html,
.is-right-sidebar .widget_custom_html p { color: var(--dtn-body); font-size: 16px; line-height: 1.65; }

/* ---------- Footer ---------- */
.site-footer, .footer-widgets, .site-info { background: var(--dtn-navy); color: #fff; }
.footer-widgets .footer-widgets-container { max-width: 1320px; padding: 64px 24px 40px; }
.footer-widgets .widget { background: transparent; padding: 0; }
.footer-widgets .widget-title {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--dtn-accent);
}
.footer-widgets ul li { margin-bottom: 10px; list-style: none; }
.footer-widgets a { color: #D6E8F2; text-decoration: none; }
.footer-widgets a:hover { color: #fff; text-decoration: underline; }
.site-info { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.site-info .inside-site-info { max-width: 1320px; padding: 24px; justify-content: center; }
.site-info .copyright-bar { width: 100%; text-align: center; font-size: 14px; color: #B9D3E2; display: flex; flex-direction: column; gap: 6px; }
.site-info a { color: #D6E8F2; }

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
  body { font-size: 17px; }
  h1 { font-size: 34px; }
  .entry-content h2 { font-size: 27px; margin-top: 40px; }
  .inside-header { padding: 12px 16px; }
  .site-logo img { max-height: 40px; }
  .dtn-header-cta { display: none; }
  .separate-containers .inside-article { padding: 20px 16px 48px; }
  .is-right-sidebar .inside-right-sidebar { padding: 0 16px; }
}

/* Werbehinweis im Footer */
.site-info .dtn-copy--ad { font-size: 13px; color: #9FBFD3; max-width: 900px; margin: 4px auto 0; }

/* Links im Fließtext unterstreichen (bessere Erkennbarkeit), Buttons und Navigationselemente ausgenommen */
.entry-content p a:not(.dtn-btn):not(.dtn-hbtn),
.entry-content li a:not(.dtn-btn),
.entry-content td a, .entry-content th a,
.dtn-sb dd a, .dtn-infobar a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content .dtn-toc-list li a { text-decoration: none; }
.entry-content .dtn-toc-list li a:hover { text-decoration: underline; }

/* ---------- Logo (0.2.0) ---------- */
a.dtn-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; line-height: 1; }
.dtn-logo-icon { width: 42px; height: 42px; flex: 0 0 auto; display: block; }
.dtn-logo-word { font-family: 'Nunito', system-ui, sans-serif; font-weight: 900; font-size: 28px; letter-spacing: -0.5px; color: #0C3652; white-space: nowrap; }
.dtn-logo-word span { color: #1F7BAE; }
.dtn-logo--hell .dtn-logo-word { color: #fff; }
.dtn-logo--hell .dtn-logo-word span { color: #7EC2E6; }
.dtn-site-logo { display: flex; align-items: center; }
.dtn-footer-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.dtn-footer-logo .dtn-logo-icon { width: 34px; height: 34px; }
.dtn-footer-logo .dtn-logo-word { font-size: 22px; }
@media (max-width: 768px) {
  .dtn-logo-icon { width: 34px; height: 34px; }
  .dtn-logo-word { font-size: 22px; }
}
