/* element9.de – statischer Nachbau der WordPress/Elementor-Seite (Stand 2026) */

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-latin.woff2") format("woff2");
}

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

:root {
  --c-heading: #000;
  --c-text: #616161;
  --c-line: rgba(0, 0, 0, 0.16);
  --c-bg: #fff;
  --c-dark: #000;
  --container: 1140px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 300 16px/1.5 "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

a {
  color: inherit;
}

a:hover,
a:focus-visible {
  color: var(--c-heading);
}

strong {
  font-weight: 500;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Überschriften wie Elementor „Primary“ */
h1,
h2 {
  margin: 0 0 20px;
  color: var(--c-heading);
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 38px;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ---------- Kopfbereich ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__claim {
  display: flex;
  align-items: center;
  padding: 40px;
  background: var(--c-dark);
}

.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero__logo img {
  width: 300px;
}

/* ---------- Inhaltsabschnitte ---------- */

.section {
  padding: 30px 0;
}

.section--first {
  padding-top: 50px;
}

.section hr {
  height: 1px;
  margin: 0 0 30px;
  border: 0;
  background: var(--c-line);
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.cols > * {
  min-width: 0;
}

.prose p {
  margin: 0 0 1em;
}

.prose--justify p {
  text-align: justify;
  hyphens: auto;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.footnote {
  font-size: 12px;
}

/* ---------- Diagramm ---------- */

.chart {
  margin: 0;
}

.chart figcaption {
  margin-bottom: 12px;
  color: var(--c-heading);
  font-size: 14px;
  font-weight: 400;
}

.chart__canvas {
  position: relative;
  height: 400px;
}

.chart table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.chart th,
.chart td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
}

.chart td:last-child,
.chart th:last-child {
  text-align: right;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Rechtstexte ---------- */

.legal {
  padding: 50px 0 30px;
}

.legal .container {
  max-width: 800px;
}

.legal h1 {
  font-size: 32px;
  letter-spacing: 3px;
}

.legal h2 {
  margin: 32px 0 10px;
  font-size: 20px;
  letter-spacing: 2px;
}

.legal p,
.legal ul {
  margin: 0 0 1em;
}

.back {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer img {
  width: 160px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

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

.copyright {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
}

/* ---------- Mobil ---------- */

@media (max-width: 1024px) {
  h1,
  h2 {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  h1,
  h2 {
    letter-spacing: 3px;
  }

  .hero,
  .cols {
    grid-template-columns: 1fr;
  }

  .hero__claim,
  .hero__logo {
    padding: 24px;
  }

  .hero__logo img {
    width: 220px;
  }

  .cols {
    gap: 24px;
  }

  /* Bild-Text-Abschnitte: auf dem Handy immer Text zuerst */
  .cols--media-first > :first-child {
    order: 2;
  }

  .chart__canvas {
    height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
