/* ===========================
   Manger Transporte GmbH & Co. KG
   Globale Basis
   =========================== */

/* ===== SCHRIFTEN ===== */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/poppins-v24-latin-regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/poppins-v24-latin-700.woff2") format("woff2");
  font-display: swap;
}

/* ===== DESIGN TOKENS ===== */
:root {
  --clr-bg: #f7f8fa;
  --clr-bg-light: #ffffff;
  --clr-white: #ffffff;
  --clr-text: #22272e;
  --clr-muted: #66707a;
  --clr-text-muted: #66707a;

  --clr-accent: #2874b2;
  --clr-accent-light: #4b91c8;
  --clr-accent-dark: #205d8f;

  --clr-border: #e1e6eb;
  --clr-heading: #111820;
  --clr-surface-subtle: #f1f5f9;
  --clr-contrast-text: #ffffff;
  --clr-shadow: rgba(14, 33, 54, 0.08);

  --radius: 10px;
  --shadow-sm: 0 3px 10px rgba(14, 33, 54, 0.07);
  --shadow-md: 0 8px 24px rgba(14, 33, 54, 0.10);
  --shadow-lg: 0 14px 34px rgba(14, 33, 54, 0.13);

  --max-width: 1200px;
}

/* ===== BOX-SIZING ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===== BASIS ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== TYPOGRAFIE ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  color: var(--clr-heading);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
  margin: 0.6em 0;
  color: var(--clr-text);
}

strong {
  color: inherit;
  font-weight: 700;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--clr-accent-light);
}

/* ===== TASTATURFOKUS ===== */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(40, 116, 178, 0.35);
  outline-offset: 3px;
}

/* ===== BILDER ===== */
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ===== GRUNDSTRUKTUR ===== */
main {
  width: min(94%, var(--max-width));
  margin: 0 auto;
  padding: 40px 0 0;
}

/* Seiten steuern ihre Abschnittsabstände selbst. */
section {
  margin: 0;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.rounded     { border-radius: var(--radius); }
.hidden      { display: none !important; }
.shadow-sm   { box-shadow: var(--shadow-sm); }
.shadow-md   { box-shadow: var(--shadow-md); }
.shadow-lg   { box-shadow: var(--shadow-lg); }

/* Nativer Browser-Scrollbar bleibt bewusst unverändert. */

@media (max-width: 900px) {
  html { font-size: 15px; }
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
    scroll-padding-top: 84px;
  }

  main {
    padding-top: 28px;
  }
}
