/* Eser Hausmeister Service – Nachbau der Original-Website (NetObjects Fusion 5)
   in HTML + CSS. Maße entsprechen dem alten Tabellenlayout (716px + 4px Überhang = 720px). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* ---------- Seitenrahmen ---------- */

.seite {
  width: 720px;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* ---------- Kopf: ESER-Schriftzug + Logo ---------- */

.kopf {
  display: flex;
  align-items: flex-end;
  padding: 8px 0 0 14px;
}

.kopf__eser {
  width: 250px;
  flex-shrink: 0;
}

.kopf__logo {
  width: 446px;
  margin-left: 8px;
}

/* ---------- Slogan ---------- */

.slogan {
  width: 620px;
  max-width: 100%;
  margin: 0 0 0 12px;
  padding: 42px 0 80px;
  text-align: center;
  font-weight: bold;
  line-height: normal;
}

.slogan__zeile1 {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-size: 48px;
}

.slogan__zeile2 {
  display: block;
  margin-top: 2px;
  padding-right: 13px;
  color: #000066;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 48px;
  word-spacing: 27px;
}

/* ---------- Kontakt ---------- */

.kontakt {
  margin-left: 14px;
  font-style: normal;
  font-weight: bold;
}

.kontakt p {
  margin: 16px 0;
}

/* ---------- Fußzeile: Impressum / Datenschutz ---------- */

.fuss {
  display: flex;
  gap: 24px;
  margin: 48px 0 0 14px;
  font-size: 14px;
}

.fuss a {
  text-decoration: underline;
}

.fuss a:hover,
.fuss a:focus-visible,
.fuss a[aria-current="page"] {
  text-decoration: none;
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ----------
   Der Inhalt kommt von eRecht24 und wird über die Templates in
   eser-service-recht/tpl/ eingesetzt. */

.kopf__link {
  display: contents;
}

.rechtstext {
  width: 620px;
  max-width: 100%;
  margin: 40px 0 0 14px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.rechtstext h1 {
  margin: 0 0 24px;
  font-size: 36px;
  line-height: 1.15;
}

.rechtstext h2 {
  margin: 36px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.rechtstext h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.rechtstext h4 {
  margin: 20px 0 6px;
  font-size: 16px;
}

.rechtstext p,
.rechtstext ul {
  margin: 0 0 12px;
}

.rechtstext a {
  color: #000066;
  text-decoration: underline;
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 740px) {
  .kopf {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px 0;
  }

  .kopf__eser {
    width: 160px;
  }

  .kopf__logo {
    margin-left: 0;
  }

  .slogan {
    margin: 0;
    padding: 40px 16px 48px;
  }

  .slogan__zeile1 {
    font-size: 28px;
  }

  .slogan__zeile2 {
    padding-right: 0;
    font-size: 30px;
    word-spacing: normal;
  }

  .kontakt {
    margin: 0 16px;
  }

  .fuss {
    margin: 40px 16px 0;
  }

  .rechtstext {
    margin: 32px 0 0;
    padding: 0 16px;
  }

  .rechtstext h1 {
    font-size: 28px;
  }

  .rechtstext h2 {
    font-size: 21px;
  }
}
