
/* ==========================================
   Telefonanbieter-wechseln.biz
   Komplettes Stylesheet
   ========================================== */

/* Grundeinstellungen */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 17px/1.75 system-ui, -apple-system,
    "Segoe UI", Arial, sans-serif;
  color: #24364b;
  background: #f5f9fd;
}

.wrap {
  max-width: 1100px;
  margin: auto;
  padding: 0 22px;
}

/* Header und Navigation */
.top {
  background: #103b66;
  color: #ffffff;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  color: #ffffff;
  font-weight: 800;
  font-size: 23px;
  text-decoration: none;
}

.brand:hover {
  color: #d9ecff;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

nav a,
nav a:visited {
  color: #ffffff;
  text-decoration: none;
}

nav a:hover {
  color: #ffb36b;
}

/* Hero-Bereich */
.hero {
  background: linear-gradient(
    120deg,
    #123d69,
    #1372ae
  );
  color: #ffffff;
  padding: 64px 0;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
}

.hero p {
  max-width: 800px;
  font-size: 19px;
  color: #ffffff;
}

/* Kleine Info-Badges */
.pill {
  display: inline-block;
  background: #e8f3ff;
  color: #14507d;
  border-radius: 30px;
  padding: 5px 13px;
  font-size: 14px;
  font-weight: 700;
}

/* Hauptinhalt */
main {
  background: #ffffff;
  padding-top: 30px !important;
  padding-bottom: 70px !important;
}

h1,
h2,
h3 {
  line-height: 1.3;
  color: #123d69;
}

h2 {
  margin-top: 44px;
  font-size: 28px;
}

h3 {
  margin-top: 27px;
}

p {
  margin: 15px 0;
}

a {
  color: #0768ae;
}

a:hover {
  color: #f47b20;
}

/* Vergleichsbuttons */
.cta {
  display: inline-block;
  padding: 15px 25px;
  border-radius: 13px;
  background: #f47b20;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  margin: 12px 10px 12px 0;
  box-shadow: 0 5px 14px
    rgba(215, 125, 46, 0.19);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cta:visited {
  color: #ffffff !important;
}

.cta:hover {
  background: #dc650d;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px
    rgba(215, 125, 46, 0.25);
}

.cta.blue {
  background: #116da9;
}

.cta.blue:hover {
  background: #0c5688;
}

/* Hinweisboxen */
.note {
  background: #eff7ff;
  border-left: 5px solid #1475b7;
  border-radius: 10px;
  padding: 18px;
  margin: 20px 0;
  color: #24364b;
}

.note a,
.note a:visited {
  color: #0768ae;
}

/* ==========================================
   Inhaltsverzeichnis – korrigierte Farben
   ========================================== */

.toc {
  background: #f0f7fe;
  border: 1px solid #d2e6f7;
  border-left: 5px solid #1373b2;
  border-radius: 14px;
  padding: 20px;
  margin: 25px 0;
  color: #24364b !important;
}

.toc h2,
.toc h3 {
  color: #123d69 !important;
  margin-top: 0;
  margin-bottom: 15px;
}

.toc p,
.toc span,
.toc strong,
.toc li {
  color: #24364b !important;
}

.toc a,
.toc a:link,
.toc a:visited {
  display: inline-block;
  margin: 4px 14px 4px 0;
  color: #0768ae !important;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.toc a:hover,
.toc a:focus {
  color: #f47b20 !important;
  text-decoration: underline;
}

.toc ul,
.toc ol {
  margin: 10px 0;
  padding-left: 24px;
}

.toc li {
  margin: 5px 0;
}

/* Sprungziele */
[id] {
  scroll-margin-top: 25px;
}

/* Tabellen */
.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

th,
td {
  border: 1px solid #d7e5f1;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eaf4ff;
  color: #123d69;
  font-weight: 700;
}

td {
  color: #24364b;
}

tbody tr:nth-child(even) {
  background: #f8fbff;
}

/* FAQ */
details {
  border: 1px solid #d9e5ef;
  border-left: 4px solid #1373b2;
  border-radius: 10px;
  margin: 11px 0;
  padding: 13px 18px;
  background: #ffffff;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #173e66;
  line-height: 1.5;
}

summary:hover {
  color: #0768ae;
}

details[open] {
  background: #f9fcff;
  border-color: #bdd9ef;
}

details p {
  margin-bottom: 4px;
}

/* Footer */
footer {
  background: #123d69;
  color: #ffffff;
  padding: 30px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

footer a,
footer a:visited {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  color: #ffb36b;
  text-decoration: underline;
}

/* Rechtliche Unterseiten */
.legal {
  min-height: 55vh;
}

.legal h1 {
  margin-top: 15px;
}

.legal h2 {
  margin-top: 35px;
}

/* ==========================================
   Mobile Ansicht
   ========================================== */

@media (max-width: 700px) {

  body {
    font-size: 18px;
  }

  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .top .wrap {
    display: block;
  }

  .brand {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
  }

  nav {
    gap: 10px;
  }

  nav a {
    font-size: 15px;
  }

  .hero {
    padding: 38px 0;
  }

  .hero h1 {
    font-size: clamp(28px, 7vw, 38px);
  }

  .hero p {
    font-size: 18px;
  }

  .cta {
    display: block;
    text-align: center;
    margin: 12px 0;
    padding: 17px 20px;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 21px;
  }

  .toc {
    padding: 18px;
    margin: 20px 0;
  }

  .toc a {
    display: block;
    margin: 8px 0;
  }

  th,
  td {
    padding: 10px;
    font-size: 15px;
  }

  details {
    padding: 14px;
  }

  footer .wrap {
    flex-direction: column;
    gap: 15px;
  }
}

/* Barrierefreiheit: reduzierte Animation */
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .cta,
  .toc a {
    transition: none;
  }
}
