/*
  Haupt-Stylesheet für billige-kfz-versicherung.org
  Dieses CSS definiert ein schlankes, responsives Layout mit klarer Typografie.
  Tabellen werden in einem eigenen Scroll-Container dargestellt, so dass sie auch
  auf kleineren Bildschirmen benutzerfreundlich bleiben. Buttons und
  Hervorhebungen nutzen dezente Farben, um das Auge zu führen ohne von den
  Inhalten abzulenken.
*/

/* Grundlegende Variablen */
:root {
  --primary-color: #004e8a;        /* dunkelblau für Header und Links */
  --secondary-color: #f5f7fa;      /* helles Grau für Hintergründe */
  --accent-color: #ff6600;         /* leuchtendes Orange für Buttons */
  --text-color: #212529;           /* fast schwarzer Standardtext */
  --link-color: #0066cc;           /* Blau für Links */
  --link-hover-color: #003366;     /* dunkleres Blau für Hover */
  --border-color: #e0e0e0;         /* dezente Rahmenfarbe */
  --max-width: 1100px;             /* maximale Breite des Inhalts */
  --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Grundlayout */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-stack);
  background-color: #fff;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
}

header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

nav li {
  margin-right: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 10px;
}

main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--link-color);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 2rem;
}

h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* Verberge TL;DR Boxen, da nicht mehr benötigt */
.tldr-box {
  display: none;
}

/* Header-Titel immer weiß anzeigen, damit sie auf dunklem Hintergrund sichtbar sind */
header h1 {
  color: #fff;
}

/* Links innerhalb von CTA-Boxen sollen auf dunklem Hintergrund deutlich sichtbar sein */
.cta a {
  color: #fff;
  text-decoration: underline;
}

/* Vergleichstool in voller Breite darstellen */
#tcpp-iframe-kfz {
  width: 100% !important;
}
/* Damit das vom Partner geladene iframe ebenfalls die komplette Breite nutzt */
#tcpp-iframe-kfz iframe {
  width: 100% !important;
  display: block;
}

/* Hamburger-Menü-Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  header nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color);
    margin-top: 0.5rem;
  }
  header nav.open ul {
    display: flex;
  }
  header nav li {
    margin-right: 0;
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

.tldr-box {
  background-color: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.tldr-box ul {
  margin: 0;
  padding-left: 1rem;
}

.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  margin: 1rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
}

th, td {
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  text-align: left;
}

th {
  background-color: var(--secondary-color);
  font-weight: 600;
}

.cta {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.cta h2 {
  margin: 0 0 0.5rem;
  color: #fff;
}

.cta p {
  margin: 0 0 1rem;
  color: #fff;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

/* Hover-Effekt für Hauptbutton: leicht dunklere Farbe */
.btn-primary:hover {
  background-color: #e65500;
}

/* Micro CTA */
.micro-cta {
  background-color: var(--secondary-color);
  border-left: 4px solid var(--accent-color);
  padding: 1rem;
  margin: 1.5rem 0;
}

.micro-cta p {
  margin: 0 0 0.5rem;
}

.micro-cta a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.micro-cta a:hover {
  text-decoration: underline;
}

footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1.5rem 0;
}

footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsives Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }
  nav li {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}