/* =========================================================
   Mensch zu Mensch e.V. – Stylesheet
   Farben & Schriften zentral hier ändern (Variablen unten).
   ========================================================= */

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

:root {
  --rot: #d74128;
  --navy: #354458;
  --sand: #d9b182;
  --grau: #808080;
  --grau-hell: #ededed;
  --zitat-bg: #eeeeee;
  --icon-bg: #fbe7e2;
  --text: #303030;
  --text-weich: #3c3c3c;
  --ueberschrift: #505050;
  --menu: #666666;
  --font-text: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-titel: "Roboto", "Open Sans", system-ui, Arial, sans-serif;
  --breite: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-text); font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: var(--breite); margin: 0 auto; padding: 0 15px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Kopfbereich ---------- */
.kopf { background: #fff; position: relative; z-index: 20; }
.kopf__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 25px; padding-bottom: 14px; }
.logo img { width: 222px; max-width: 40vw; }
.hauptmenu ul { list-style: none; margin: 0; padding: 0; }
.hauptmenu > ul { display: flex; gap: 1px; }
.hauptmenu li { position: relative; }
.hauptmenu a { display: block; padding: 7px 16px; color: var(--menu); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 17px; text-transform: uppercase; white-space: nowrap; border-radius: 2px; }
.hauptmenu > ul > li > a:hover, .hauptmenu > ul > li.aktiv > a { text-decoration: underline; text-underline-offset: 4px; }
.untermenu { position: absolute; top: 100%; left: 0; width: 200px; background: #fff; padding: 4px 6px; display: none; box-shadow: 0 6px 18px rgba(0,0,0,.08); border-radius: 2px; }
.untermenu li + li { border-top: 1px solid var(--rot); }
.untermenu a { font-size: 13px; text-transform: none; white-space: normal; color: #000; padding: 14px 10px; }
.untermenu a:hover { color: var(--rot); }
.hat-unterpunkte:hover > .untermenu, .hat-unterpunkte:focus-within > .untermenu { display: block; }
.menu-toggle { display: none; background: #fff; border: 1px solid #d1d1d1; border-radius: 3px; padding: 7px 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 16px; height: 2px; background: var(--menu); margin: 3px 0; }

/* ---------- Startseite ---------- */
.hero { background: var(--rot); padding: 30px 0; }
.hero__inner { display: grid; grid-template-columns: 7fr 5fr; gap: 15px; align-items: start; }
.hero__bild { background: #fff; padding: 0; border-radius: 2px; overflow: hidden; }
.hero__bild img { width: 100%; }
.hero__box { background: #fff; border-radius: 2px; color: var(--text-weich); }
.hero__titel { margin: 0; background: var(--navy); color: #fff; font-weight: 600; font-size: 18px; line-height: 21px; padding: 18px 30px; border-radius: 2px 2px 0 0; }
.hero__text { padding: 10px 30px 25px; }
.hero__text p { line-height: 1.8; margin: 0 0 20px; }

.button-dunkel { display: block; text-align: center; background: var(--navy); color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 600; font-size: 16px; line-height: 21px; padding: 15px 10px; border-radius: 3px; }
.button-dunkel:hover { background: #26323f; }
.button-hell { display: inline-block; background: var(--grau-hell); color: #585858; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 19px; padding: 7px 20px; border-radius: 2px; }
.button-hell:hover { background: #dcdcdc; }

.kacheln { padding: 50px 0; }
.kacheln__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.kachel { padding: 0 10px; color: var(--text-weich); }
.kachel__icon { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 50%; background: var(--icon-bg); color: var(--rot); transition: transform .2s ease; }
.kachel:hover .kachel__icon { transform: translateY(-3px); }
.kachel__icon img { width: 56px; height: 56px; object-fit: contain; }
.ausrichtung-links .kachel__icon { margin-left: 0; }
.kachel__link { color: var(--rot); font-weight: 600; font-size: 15px; text-decoration: none; }
.kachel__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.kachel h2 { font-family: var(--font-titel); font-weight: 500; font-size: 20px; line-height: 22px; text-transform: uppercase; margin: 0 0 15px; }
.kachel h2 a { text-decoration: none; color: var(--text-weich); }
.kachel p { line-height: 1.8; margin: 0 0 15px; }
.ausrichtung-mitte .kachel { text-align: center; }
.ausrichtung-links .kachel { text-align: left; }

/* ---------- Broschüre ---------- */
.broschuere { background: var(--navy); color: #fff; padding: 75px 0; }
.broschuere__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.broschuere h2 { font-family: var(--font-titel); font-weight: 300; font-size: 30px; line-height: 30px; text-transform: uppercase; margin: 0 0 25px; }
.broschuere p { font-family: var(--font-titel); font-weight: 500; font-size: 20px; line-height: 28px; margin: 0; max-width: 475px; }
.button-download { flex-shrink: 0; background: var(--sand); color: #fff; text-decoration: none; font-weight: 600; font-size: 20px; line-height: 27px; padding: 20px 40px; border-radius: 3px; }
.button-download:hover { background: #c99e6c; }

/* ---------- Fußbereich ---------- */
.fuss { background: var(--grau); color: #fff; }
.fuss__links { padding-top: 40px; padding-bottom: 20px; }
.fuss__links ul { list-style: none; margin: 0; padding: 0; }
.fuss__links a { color: #fff; text-decoration: none; font-size: 14px; line-height: 20px; }
.fuss__links a:hover { text-decoration: underline; }
.copyright { background: var(--sand); padding: 12px 0; font-size: 15px; }

/* ---------- Unterseiten ---------- */
.seitentitel { background: var(--grau); color: #fff; padding: 20px 0; text-align: center; }
.seitentitel h1 { margin: 0; font-family: var(--font-titel); font-weight: 300; font-size: 20px; line-height: 24px; text-transform: uppercase; }
.seite { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; padding-top: 30px; padding-bottom: 30px; }
.seite__inhalt { min-width: 0; }
.baustein { margin: 0 0 25px; }
.baustein p { margin: 0 0 20px; }
.baustein h2 { font-family: var(--font-titel); font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--ueberschrift); margin: 10px 0 15px; }
.baustein h3, .baustein h4 { font-family: var(--font-titel); font-weight: 500; color: var(--ueberschrift); margin: 10px 0 12px; }
.baustein h3 { font-size: 19px; }
.baustein h4 { font-size: 17px; }
.baustein a { color: var(--rot); }
.baustein ul, .baustein ol { padding-left: 22px; margin: 0 0 20px; }
.baustein li { margin-bottom: 4px; }
.baustein table { border-collapse: collapse; margin-bottom: 20px; }
.baustein td { padding: 2px 16px 2px 0; }
.baustein--trenner { border: 0; border-top: 1px solid #dedede; margin: 30px 0; }

.baustein--bild figcaption { font-style: italic; font-size: 14px; margin-top: 6px; }
.baustein--bild.breite-mittel img { max-width: 300px; }
.baustein--bild.breite-klein img { max-width: 200px; }

.baustein--bild-text::after { content: ""; display: block; clear: both; }
.baustein--bild-text img { margin-bottom: 10px; }
.bild-rechts img { float: right; margin-left: 20px; }
.bild-links img { float: left; margin-right: 20px; }
.breite-klein img { width: 200px; }
.breite-mittel img { width: 300px; }
.breite-gross img { width: 50%; }
.breite-logo img { width: auto; max-width: 160px; }

.baustein--zitat blockquote { margin: 10px 0; background: var(--zitat-bg); border-left: 5px solid var(--rot); padding: 15px; display: flex; gap: 20px; align-items: flex-start; font-style: italic; }
.baustein--zitat figure { margin: 0; flex: 0 0 188px; font-style: normal; }
.baustein--zitat figcaption { font-size: 14px; font-style: italic; margin-top: 6px; }
.baustein--zitat .baustein__text { padding-top: 10px; }

.team-grid { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px 16px; }
.team-grid li { margin: 0; }
.team-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.team-grid p { font-size: 14px; line-height: 1.4; font-style: italic; margin: 8px 0 0; }
.team-grid strong { font-weight: 600; }
.team-platzhalter { display: block; aspect-ratio: 3 / 4; background: var(--grau-hell); }

/* Seitenleiste */
.seitenleiste { color: #2d2d2d; }
.widget { margin-bottom: 35px; }
.widget p { margin: 0 0 16px; line-height: 1.4; padding: 0 18px; }
.widget a { color: #2d2d2d; }
.widget__titel { background: var(--rot); color: #fff; border-left: 15px solid var(--sand); font-family: var(--font-titel); font-weight: 500; font-size: 20px; line-height: 20px; text-transform: uppercase; padding: 10px 15px; margin: 0 0 20px; }
.widget--info h2 { font-family: var(--font-titel); font-weight: 700; font-size: 20px; margin: 0 0 22px; }
.widget--info h3 { font-family: var(--font-titel); font-weight: 500; font-size: 16px; text-transform: uppercase; color: var(--text-weich); margin: 0 0 22px; }
.widget--info p { padding: 0; }
.widget--info ul { list-style: none; padding: 0; margin: 0; }
.widget--info li { margin-bottom: 18px; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .hauptmenu a { padding: 7px 9px; font-size: 13px; }
}
@media (max-width: 767px) {
  .kopf__inner { align-items: center; padding-top: 15px; }
  .logo img { max-width: 60vw; }
  .menu-toggle { display: block; }
  .hauptmenu { display: none; position: absolute; top: 100%; right: 15px; width: 240px; background: #fff; border: 1px solid #d1d1d1; border-radius: 3px; padding: 6px 0; }
  .hauptmenu.offen { display: block; }
  .hauptmenu > ul { flex-direction: column; }
  .hauptmenu a { white-space: normal; }
  .untermenu { position: static; display: block; width: auto; box-shadow: none; padding: 0 0 0 12px; }
  .untermenu li + li { border-top: 0; }
  .untermenu a { padding: 6px 10px; }
  .hero__inner, .kacheln__grid, .seite { grid-template-columns: 1fr; }
  .broschuere { padding: 45px 0; }
  .broschuere__inner { flex-direction: column; align-items: flex-start; }
  .bild-rechts img, .bild-links img { float: none; margin: 0 0 15px; }
  .baustein--zitat blockquote { flex-direction: column; }
  .baustein--zitat figure { flex-basis: auto; max-width: 188px; }
}
