/* WerbeFabrik.biz – Stylesheet
   Farben aus dem Logo: Dunkelgrau #2b2a29, Rot #e31e24, Mittelgrau #676766 */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --weiss: #ffffff;
  --hellgrau: #ededec;
  --linie: #d4d4d2;
  --mittelgrau: #676766;
  --dunkel: #2b2a29;
  --rot: #e31e24;
  --rot-dunkel: #b8151a;
  --breite: 60rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--hellgrau);
  color: var(--dunkel);
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--dunkel); text-decoration-color: var(--rot); text-underline-offset: 0.2em; }
a:hover { color: var(--rot-dunkel); }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }

.rahmen { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 1.5rem; }

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 4px solid var(--dunkel); }
.kopf-innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.logo { display: block; line-height: 0; }
.logo img { width: 245px; }

.navi { display: flex; gap: 0.25rem; }
.navi a {
  padding: 0.35rem 0.75rem;
  color: var(--mittelgrau);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.navi a:hover { color: var(--dunkel); }
.navi a[aria-current="page"] { color: var(--dunkel); border-bottom-color: var(--rot); }

/* Inhalt */
.inhalt { flex: 1; padding: 3.5rem 0 4.5rem; }

h1, h2 { line-height: 1.2; font-weight: 700; }
h1 { margin: 0 0 1.5rem; font-size: clamp(2rem, 5vw, 2.75rem); color: var(--rot); letter-spacing: -0.01em; }
h2 { margin: 2.25rem 0 0.5rem; font-size: 1.15rem; color: var(--dunkel); }
p { margin: 0 0 1.1rem; }

/* Startseite */
.start {
  display: grid;
  grid-template-columns: auto minmax(0, 38rem);
  justify-content: start;
  align-items: end;
  gap: 4rem;
}
.einleitung { font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
.portrait { order: -1; width: 106px; opacity: 0.9; }

/* Kontakt */
.kontakt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 3rem;
  max-width: 44rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--linie);
}
address { font-style: normal; }
.kontaktwege { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.25rem; margin: 0; }
.kontaktwege dt { color: var(--mittelgrau); }
.kontaktwege dd { margin: 0; }

/* Rechtstexte */
.text { max-width: 42rem; }
.text h2:first-of-type { margin-top: 0; }
.text ul { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.stand { margin-top: 2.5rem; color: var(--mittelgrau); font-size: 0.9375rem; }

/* Fuß */
.fuss { background: var(--dunkel); color: #c9c9c7; font-size: 0.9375rem; }
.fuss-innen {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem 2rem;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss a { color: #e6e6e4; text-decoration-color: var(--mittelgrau); }
.fuss a:hover { color: var(--weiss); text-decoration-color: var(--rot); }
.fuss a[aria-current="page"] { text-decoration-color: var(--rot); }

/* Mobil */
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .kopf-innen { flex-wrap: nowrap; }
  .logo img { width: 165px; }
  .navi a { padding: 0.35rem 0.5rem; }
  .inhalt { padding: 2.25rem 0 3rem; }
  .start { grid-template-columns: 1fr; }
  .portrait { display: none; }
}
