/* =====================================================================
   TarifeCheck 2026 — Modernes Design
   Ergänzung zu Bootstrap 5.3
   ===================================================================== */

/* ---- CSS Custom Properties / Sektionsfarben ---- */
:root {
  --tct-primary:    #1d4ed8;   /* Standard-Blau */
  --tct-accent:     #2563eb;
  --tct-navbar-bg:  #1e293b;
  --tct-footer-bg:  #0f172a;
  --tct-gray-light: #f8fafc;
  --tct-border:     #e2e8f0;
  --tct-text:       #1e293b;
  --tct-muted:      #64748b;
}

/* Sektions-Akzentfarben */
body.tct-section-start    { --tct-primary: #2563eb; --tct-accent: #1d4ed8; }
body.tct-section-handy    { --tct-primary: #16a34a; --tct-accent: #15803d; }
body.tct-section-mobilfunk{ --tct-primary: #0891b2; --tct-accent: #0e7490; }
body.tct-section-internet  { --tct-primary: #2563eb; --tct-accent: #1d4ed8; }
body.tct-section-festnetz  { --tct-primary: #ea580c; --tct-accent: #c2410c; }
body.tct-section-finanzen  { --tct-primary: #dc2626; --tct-accent: #b91c1c; }
body.tct-section-news      { --tct-primary: #7c3aed; --tct-accent: #6d28d9; }

/* ---- Globales ---- */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--tct-text);
  background-color: #fff;
}

a { color: var(--tct-primary); }
a:hover { color: var(--tct-accent); }

h1, h2, h3, h4, h5 { font-weight: 700; }
h2 { font-size: 1.35rem; margin-bottom: 1rem; }
h3 { font-size: 1.1rem;  margin-bottom: .5rem; }

/* ---- Navbar ---- */
.tct-navbar {
  background-color: var(--tct-navbar-bg) !important;
  border-bottom: 3px solid var(--tct-primary);
  transition: border-color .3s ease;
}

.tct-brand {
  text-decoration: none;
  color: #fff !important;
}

.tct-logo-text {
  font-size: 1.4rem;
  letter-spacing: -.5px;
  color: #fff;
}

.tct-logo-text strong {
  color: var(--tct-primary);
  /* heller Fallback für dunklen Hintergrund */
  color: #60a5fa;
}

body.tct-section-handy     .tct-logo-text strong { color: #4ade80; }
body.tct-section-mobilfunk .tct-logo-text strong { color: #22d3ee; }
body.tct-section-festnetz  .tct-logo-text strong { color: #fb923c; }
body.tct-section-finanzen  .tct-logo-text strong { color: #f87171; }
body.tct-section-news      .tct-logo-text strong { color: #a78bfa; }

.tct-country-badge {
  font-size: .65rem;
  background: #ef4444;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 700;
}

/* Navbar Links */
.tct-navbar .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-size: .9rem;
  padding: .5rem .75rem !important;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.tct-navbar .nav-link:hover,
.tct-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}

.tct-navbar .nav-link.active {
  font-weight: 600;
}

.tct-navbar .dropdown-menu {
  border: none;
  border-top: 3px solid var(--tct-primary);
  border-radius: 0 0 8px 8px;
  background: #fff;
  min-width: 220px;
  padding: .5rem 0;
}

.tct-navbar .dropdown-item {
  color: var(--tct-text);
  font-size: .875rem;
  padding: .45rem 1rem;
  transition: background .15s;
}

.tct-navbar .dropdown-item:hover {
  background: var(--tct-gray-light);
  color: var(--tct-primary);
}

/* Suche in Navbar */
.tct-search .form-control {
  border-radius: 6px 0 0 6px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .85rem;
  width: 180px;
}

.tct-search .form-control::placeholder { color: rgba(255,255,255,.5); }
.tct-search .form-control:focus {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.4);
  box-shadow: none;
}

.tct-btn-search {
  background: var(--tct-primary);
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 0 .75rem;
}

.tct-btn-search:hover { background: var(--tct-accent); color: #fff; }

/* ---- Sektions-Banner (Breadcrumb-Leiste) ---- */
.tct-section-banner {
  background: var(--tct-primary);
  min-height: 4px;
  transition: background .3s ease;
}

.tct-breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); }
.tct-breadcrumb .breadcrumb-item,
.tct-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
}
.tct-breadcrumb .breadcrumb-item.active { color: #fff; }

/* ---- Sidebar ---- */
.tct-sidebar {
  position: sticky;
  top: 70px;
}

.tct-sidebar .tct-nav-section {
  margin-bottom: 1.25rem;
}

.tct-sidebar .tct-nav-heading {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tct-muted);
  padding: .35rem .75rem;
  margin: 0;
}

.tct-sidebar .nav-link {
  font-size: .875rem;
  color: var(--tct-text);
  padding: .35rem .75rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.tct-sidebar .nav-link:hover,
.tct-sidebar .nav-link.active {
  background: color-mix(in srgb, var(--tct-primary) 10%, transparent);
  color: var(--tct-primary);
}

.tct-sidebar .nav-link.active { font-weight: 600; }

/* ---- Inhaltselemente ---- */

/* Tarif-Tabellen */
.tariffs {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  font-size: .875rem;
}

.tariffs thead th {
  background: var(--tct-primary);
  color: #fff;
  padding: .6rem .75rem;
  font-weight: 600;
  text-align: left;
  border: 0;
}

.tariffs tbody tr:nth-child(odd)  { background: var(--tct-gray-light); }
.tariffs tbody tr:nth-child(even) { background: #fff; }

.tariffs td {
  padding: .5rem .75rem;
  vertical-align: top;
  border-bottom: 1px solid var(--tct-border);
}

.tariffs .tariff-name { font-weight: 600; }
.tariffs .info  { display: block; color: var(--tct-muted); font-size: .78rem; }
.tariffs .info2 { display: block; color: var(--tct-muted); font-size: .78rem; }
.tariffs .dbl   { font-size: 1.1rem; font-weight: 700; }

.tariffs a { color: var(--tct-primary); text-decoration: none; }
.tariffs a:hover { text-decoration: underline; }

/* Box / CBox */
.box, .cbox {
  background: var(--tct-gray-light);
  border: 1px solid var(--tct-border);
  border-left: 4px solid var(--tct-primary);
  border-radius: 8px;
  overflow: hidden;
}

.box h2, .cbox h2 {
  background: var(--tct-primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  padding: .5rem 1rem;
  margin: 0;
}

.box > div, .cbox > div { padding: .75rem 1rem; }

/* Buttons */
.bigbtn, a.bigbtn {
  display: inline-block;
  background: var(--tct-primary);
  color: #fff !important;
  font-weight: 600;
  padding: .5rem 1.25rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  transition: background .2s, transform .1s;
  font-size: .9rem;
}

.bigbtn:hover, a.bigbtn:hover {
  background: var(--tct-accent);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn {
  border-radius: 6px;
  font-weight: 500;
}

/* Bootstrap-Btn mit Sektionsfarbe */
.tct-btn-primary {
  background: var(--tct-primary);
  border-color: var(--tct-primary);
  color: #fff;
}
.tct-btn-primary:hover {
  background: var(--tct-accent);
  border-color: var(--tct-accent);
  color: #fff;
}

/* News-Liste */
.news { list-style: none; padding: 0; margin: 0; }
.news li { padding: 1rem 0; border-bottom: 1px solid var(--tct-border); }
.news li:first-child { padding-top: 0; }
.news h3 { font-size: 1rem; margin: 0 0 .25rem; }
.news h3 a { color: var(--tct-text); text-decoration: none; }
.news h3 a:hover { color: var(--tct-primary); }
.news p { font-size: .875rem; color: var(--tct-muted); margin: 0; }
.news .lnk { font-size: .85rem; color: var(--tct-primary); }

/* Newsticker */
.newsticker { list-style: none; padding: 0; }
.newsticker li { padding: .5rem 0; border-bottom: 1px solid var(--tct-border); }
.newsticker .date { font-size: .8rem; color: var(--tct-muted); font-weight: 600; }
.newsticker h3 { font-size: .9rem; margin: 0; }

/* Tabs */
.tabs {
  list-style: none;
  display: flex;
  gap: .25rem;
  padding: 0;
  margin: 0 0 1rem;
  border-bottom: 2px solid var(--tct-border);
}

.tabs li {
  padding: .4rem .9rem;
  font-size: .875rem;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  color: var(--tct-muted);
  transition: background .15s;
}

.tabs li:hover { background: var(--tct-gray-light); }

.tabs li.active {
  background: var(--tct-primary);
  color: #fff;
  font-weight: 600;
}

/* Opt Ja/Nein */
.opt_ja   { color: #16a34a; font-weight: 600; }
.opt_ja::before   { content: "✓  "; }
.opt_nein { color: #dc2626; font-weight: 600; }
.opt_nein::before { content: "✕  "; }

/* Dropdown (eigenes) */
.dropdown-custom {
  position: relative;
}

.dropdown-custom .button {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--tct-gray-light);
  border: 1px solid var(--tct-border);
  border-radius: 6px;
  padding: .45rem .75rem;
  cursor: pointer;
  font-size: .875rem;
  color: var(--tct-text);
}

/* Handy-Liste */
.handy-list { list-style: none; padding: 0; }
.handy-list li { padding: 1rem 0; border-bottom: 1px solid var(--tct-border); display: flex; gap: 1rem; }
.handy-list .thumb { width: 70px; flex-shrink: 0; text-align: center; }
.handy-list h3 { font-size: 1rem; margin: 0 0 .25rem; }
.handy-list .details { font-size: .85rem; color: var(--tct-muted); }

/* Provider-Info */
.providerinfo dt { float: left; width: 120px; font-weight: 400; color: var(--tct-muted); font-size: .875rem; }
.providerinfo dd { margin-left: 130px; font-weight: 600; font-size: .875rem; padding: .15rem 0; }

/* PlanCmp Vergleichstabelle */
.planCmp { width: 100%; border-collapse: collapse; background: var(--tct-gray-light); border-radius: 8px; overflow: hidden; }
.planCmp th { text-align: right; padding: .6rem .75rem; font-weight: 400; color: var(--tct-muted); font-size: .85rem; border-bottom: 1px solid var(--tct-border); width: 45%; }
.planCmp td { padding: .6rem .75rem; font-weight: 600; font-size: .875rem; border-bottom: 1px solid var(--tct-border); }
.planCmp tr:last-child th,
.planCmp tr:last-child td { border: 0; }
.planCmp tr.hd th, .planCmp tr.hd td { background: color-mix(in srgb, var(--tct-primary) 15%, transparent); color: var(--tct-primary); }
.planCmp tr.shd th { text-align: left; font-size: 1rem; font-weight: 700; color: var(--tct-text); background: #fff; }

/* Abstände */
.space-top    { margin-top: 1.5rem !important; }
.space-bottom { margin-bottom: 1.5rem !important; }

/* Link-Pfeil-Klasse */
.lnk {
  font-size: .875rem;
  font-weight: 600;
  color: var(--tct-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.lnk::before { content: "→ "; }
.lnk:hover { color: var(--tct-accent); }

/* Small image boxes */
.simg {
  display: inline-block;
  background: var(--tct-gray-light);
  padding: .75rem;
  border-radius: 8px;
  border: 1px solid var(--tct-border);
  margin: .5rem 0 1rem;
}

.l .simg { float: left; margin-right: 1.25rem; }
.r .simg { float: right; margin-left: 1.25rem; }
.simg figcaption { font-size: .78rem; color: var(--tct-muted); margin-top: .35rem; }

/* 404 */
.tct-404 { text-align: center; padding: 4rem 0; }
.tct-404 .code { font-size: 6rem; font-weight: 900; color: var(--tct-border); line-height: 1; }

/* ---- Footer ---- */
.tct-footer {
  background: var(--tct-footer-bg);
  color: rgba(255,255,255,.75);
}

.tct-footer-heading {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .6rem;
}

.tct-footer-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  display: block;
  margin-bottom: .2rem;
  transition: color .15s;
  line-height: 1.6;
}
.tct-footer-link:hover { color: #fff; }

.tct-footer-icon {
  color: rgba(255,255,255,.5);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color .15s;
}
.tct-footer-icon:hover { color: #fff; }

.tct-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
}

/* ---- Cookie Consent ---- */
.tct-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--tct-navbar-bg);
  color: rgba(255,255,255,.85);
  z-index: 1050;
  border-top: 3px solid var(--tct-primary);
}

.tct-cookie a { color: rgba(255,255,255,.7); }
.tct-cookie a:hover { color: #fff; }

/* ---- Responsive Korrekturen ---- */
@media (max-width: 991.98px) {
  .container-xl { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 575.98px) {
  h2 { font-size: 1.15rem; }
  .tariffs { font-size: .8rem; }
}

/* ---- Topic Cards (Startseite & allgemein) ---- */
.tct-topic-card {
  background: var(--tct-gray-light);
  border: 1px solid var(--tct-border);
  border-radius: 12px;
  padding: 1.1rem;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  color: var(--tct-text);
}
.tct-topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  border-color: var(--tct-primary);
  color: var(--tct-primary);
}
.tct-topic-icon {
  font-size: 1.75rem;
  color: var(--tct-primary);
  line-height: 1;
  margin-bottom: .35rem;
}
