/* Nachbau m-f-b.net · Stand: 24.11.2026 · Version 1.4 */

:root {
  /* Farben aus dem Screenshot gemessen */
  --bg:            #ececec;
  --white:         #fff;
  --red-dark:      #be0b21; /* Seitenleiste oben */
  --red-logo:      #c20f24; /* Logo-Feld „mfb“ */
  --red:           #e30613; /* Fußleiste */
  --gray:          #b2b2b2; /* Logo-Claim, Fußleiste */
  --gray-sidebar:  #b1b4b5; /* Seitenleiste unten */
  --text:          #999;
  --heading:       #777;
  --link-small:    #888;
  --text-dark:     #444; /* Fließtext Unterseiten */
  --copyright:     #999;

  /* Maße */
  --page-width:    960px;
  --sidebar-width: 200px;
  --main-height:   507px;
  --footer-height: 28px;
  --content-left:  120px;

  --font: Verdana, "DejaVu Sans", Arial, sans-serif;
  --font-logo: "Univers LT Pro", Univers, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  padding: 34px 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 12px;
  line-height: 15px;
}

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

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

p {
  margin: 0 0 15px;
}

address {
  font-style: normal;
}

/* ---------- Seitenraster ---------- */

.page {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: minmax(var(--main-height), auto) var(--footer-height);
  width: var(--page-width);
  margin: 0 auto;
  background: var(--white);
}

/* Linke Spalte: rot oben, grau darunter */
.sidebar {
  background: linear-gradient(
    to bottom,
    var(--red-dark) 0 175px,
    var(--gray-sidebar) 175px 100%
  );
}

/* ---------- Hauptbereich ---------- */

.main {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Logo oben rechts */
.logo {
  position: absolute;
  top: 45px;
  right: 0;
  display: flex;
  height: 70px;
  color: var(--white);
  font-family: var(--font-logo);
}

.logo:hover,
.logo:focus-visible {
  text-decoration: none;
}

.logo__mark {
  display: flex;
  align-items: center;
  width: 134px;
  padding-left: 17px;
  background: var(--red-logo);
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.logo__claim {
  display: flex;
  align-items: center;
  width: 356px;
  padding-left: 20px;
  background: var(--gray);
  font-size: 21px;
  line-height: 27px;
}

/* Text exakt an Versal- bzw. Grundlinie beschneiden,
   damit er unabhängig von der Schriftart optisch mittig sitzt */
.logo__text {
  display: block;
  text-box: trim-both cap alphabetic;
}

/* Inhalt */
.content {
  padding: 189px 0 0 var(--content-left);
}

h1 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 25px;
  font-weight: normal;
  line-height: 30px;
}

.company-info {
  display: grid;
  grid-template-columns: 261px 1fr;
}

.company-info__col:last-child p {
  margin-bottom: 12px;
}

.label {
  display: inline-block;
  width: 57px;
}

/* ---------- Textseiten (z. B. Datenschutz) ---------- */

.content--text {
  padding: 174px 36px 0 var(--content-left);
  color: var(--text-dark);
  font-size: 10px;
  line-height: 12px;
}

.content--text h1 {
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 18px;
  line-height: 22px;
}

.content--text h2 {
  margin: 40px 0 12px;
  color: var(--text-dark);
  font-size: 17px;
  font-weight: normal;
  line-height: 20px;
}

.content--text p,
.content--text ul {
  margin: 0 0 10px;
}

.content--text ul {
  padding-left: 16px;
}

.content--text a {
  color: var(--link-small);
  overflow-wrap: anywhere;
}

.content--text address a {
  color: inherit;
}

/* Linkliste (Browser-Hilfeseiten) */
.content--text .link-list {
  padding-left: 0;
  list-style: none;
}

/* Betroffenenrechte mit Unterpunkten */
.content--text .rights-list li {
  margin-bottom: 6px;
}

.content--text .rights-list ul {
  margin: 6px 0 0;
}

.content--text .rights-list ul li {
  margin-bottom: 2px;
  list-style: circle;
}

.content--text .spaced {
  margin-top: 22px;
}

/* Datenschutz-Link unten */
.legal-nav {
  margin-top: auto;
  padding: 30px 0 9px var(--content-left);
  font-size: 10px;
  line-height: 12px;
  color: var(--link-small);
}

/* ---------- Fußzeile ---------- */

.copyright {
  color: var(--copyright);
  font-size: 10px;
  line-height: var(--footer-height);
  text-align: center;
}

.footer-bar {
  background: linear-gradient(
    to right,
    var(--red) 0 120px,
    var(--gray) 120px 403px,
    var(--white) 403px 100%
  );
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 999px) {
  html {
    background: var(--white);
  }

  body {
    padding: 0;
  }

  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    width: auto;
  }

  .sidebar {
    display: none;
  }

  .logo {
    position: static;
    height: 56px;
    margin: 24px 0 0 auto;
    max-width: 100%;
    width: fit-content;
  }

  .logo__mark {
    width: auto;
    padding: 0 14px;
    font-size: 38px;
  }

  .logo__claim {
    width: auto;
    padding: 0 16px;
    font-size: 16px;
    line-height: 20px;
  }

  .content {
    padding: 40px 20px 0;
  }

  .company-info {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    padding: 20px;
  }

  .copyright {
    order: 3;
  }

  .footer-bar {
    order: 2;
    height: var(--footer-height);
  }
}
