/* ==========================================================================
   Autohaus Moser – Igel-Base-Theme
   Optische 1:1-Umsetzung von ah-moser.de (Stand 11/2026)
   ========================================================================== */

/* Roboto lokal gehostet (DSGVO – keine Verbindung zu Google-Servern) */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/roboto-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --am-blau: #0070a7;
  --am-blau-75: rgba(0, 112, 167, .75);
  --am-grau: #e1e1e1;
  --am-text: #333333;
  --am-weiss: #ffffff;
  --am-font: "Roboto", Helvetica, Arial, sans-serif;
  --am-gutter: 50px;
  --am-header-h: 119px;
  --am-header-h-sticky: 54px;
}

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--am-font);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--am-text);
  background: var(--am-weiss);
  -webkit-font-smoothing: antialiased;
}
.am-site *, .am-site *::before, .am-site *::after { box-sizing: border-box; }
.am-site img { max-width: 100%; height: auto; display: block; border: 0; }
.am-site a { color: inherit; text-decoration: none; transition: color .3s; }
.am-site h1, .am-site h2, .am-site h3, .am-site h4, .am-site p { margin: 0; font-family: var(--am-font); }
.am-site ul { list-style: none; margin: 0; padding: 0; }
.am-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Top-Bar
   ========================================================================== */
.am-topbar {
  background: var(--am-weiss);
  border-bottom: 1px solid var(--am-grau);
  padding: 8px var(--am-gutter);
}
.am-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.am-topbar__logos img { width: auto; height: 38px; max-width: none; }
.am-topbar__kontakt { display: flex; align-items: center; font-size: 12px; font-weight: 400; line-height: 21.6px; }
.am-topbar__kontakt a { display: inline-flex; align-items: center; gap: 13px; color: var(--am-text); }
.am-topbar__kontakt a:hover { color: var(--am-blau); }
.am-topbar__kontakt svg { width: 14px; height: 14px; fill: currentColor; }
.am-topbar__trenner { margin: 0 10px; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.am-header {
  position: relative;
  z-index: 100;
  background: var(--am-weiss);
  transition: box-shadow .3s;
}
.am-header.is-sticky { position: fixed; top: 0; left: 0; right: 0; }
.admin-bar .am-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .am-header.is-sticky { top: 46px; } }
.am-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--am-header-h);
  padding: 25px var(--am-gutter) 20px 45px;
  transition: height .3s, padding .3s;
}
.am-header__logo img { width: 400px; max-width: 400px; transition: width .3s; }
.am-nav__liste { display: flex; }
.am-nav__liste a {
  display: block;
  padding: 0 10px;
  line-height: 74px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .6px;
  color: var(--am-text);
  transition: color .3s, line-height .3s;
}
.am-nav__liste a:hover,
.am-nav__liste .is-aktiv > a { color: var(--am-blau); }

/* Sticky/geschrumpft */
.am-header.is-sticky { box-shadow: 0 2px 5px rgba(0, 0, 0, .1); }
.am-header.is-sticky .am-header__inner { height: var(--am-header-h-sticky); padding-top: 0; padding-bottom: 0; padding-left: var(--am-gutter); }
.am-header.is-sticky .am-header__logo img { width: 256px; }
.am-header.is-sticky .am-nav__liste a { line-height: 54px; }

/* Burger */
.am-burger {
  display: none;
  width: 40px; height: 40px;
  padding: 10px;
  margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  color: var(--am-text);
}
.am-burger span { display: block; height: 2px; background: currentColor; margin: 4px 0; transition: transform .3s, opacity .3s; }

/* Off-Canvas-Menü (mobil) */
.am-mobilnav {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 300;
  width: 300px; max-width: 85vw;
  background: var(--am-weiss);
  box-shadow: 0 0 12px rgba(0, 0, 0, .15);
  transform: translateX(105%);
  transition: transform .35s ease;
  overflow-y: auto;
  padding: 60px 0 30px;
}
.am-mobilnav.is-offen { transform: none; }
.am-mobilnav li { border-bottom: 1px solid rgba(0, 0, 0, .035); }
.am-mobilnav li:first-child { border-top: 1px solid rgba(0, 0, 0, .035); }
.am-mobilnav a { display: block; padding: 16px 25px; font-size: 14px; font-weight: 400; letter-spacing: .6px; }
.am-mobilnav .is-aktiv > a, .am-mobilnav a:hover { color: var(--am-blau); }
.am-mobilnav__schliessen {
  position: absolute; top: 14px; right: 16px;
  width: 36px; height: 36px; border: 0; background: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--am-text);
}
.am-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.am-overlay.is-offen { opacity: 1; visibility: visible; }
body.am-nav-offen { overflow: hidden; }

/* ==========================================================================
   Button-Effekt (OceanWP Elementor Widgets „Effect 30“)
   ========================================================================== */
.am-btn {
  position: relative;
  display: inline-block;
  color: var(--am-text);
  transition: all .3s;
}
.am-btn span { position: relative; z-index: 2; transition: letter-spacing .3s; }
.am-btn:hover span { letter-spacing: 2px; }

.am-btn--box {
  font-size: 28.8px;
  font-weight: 300;
  line-height: 18.2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid var(--am-blau);
  border-radius: 15px 0;
}
/* Hover wie Original (OceanWP Elementor Widgets „Effect 6“): blaue Fläche zieht von der Mitte auf */
.am-btn--box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: rgba(0, 112, 167, .18);
  opacity: 0;
  transform: scale(.5, 1);
  transition: opacity .4s, transform .4s;
}
.am-btn--box:hover::before { opacity: 1; transform: scale(1, 1); }
.am-btn--box:hover span { letter-spacing: 1px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.am-hero {
  position: relative;
  padding-top: 27%;
  overflow: hidden;
}
.am-hero__bild { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 50%; }
.am-hero__box {
  position: relative;
  background: var(--am-blau-75);
  padding: 80px 0 140px;
  text-align: center;
  animation: am-fadein 1.5s ease both;
}
.am-hero__titel {
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .5px;
  color: var(--am-weiss);
}
.am-hero__logo { width: 432px; margin: 14px auto 0; animation: am-fadeinup 1.5s ease both; }
.am-hero__cta { margin-top: 43px; animation: am-fadeinup 1s ease 1.5s both; }
.am-hero__cta .am-btn { color: var(--am-weiss); font-size: 16.8px; font-weight: 400; line-height: 18.2px; }

@keyframes am-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes am-fadeinup { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Claim-Band
   ========================================================================== */
.am-claim {
  background: var(--am-grau);
  padding: 5.4% 0 9%;
  text-align: center;
}
.am-claim h2 {
  font-size: 25.92px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .6px;
  color: var(--am-text);
}

/* ==========================================================================
   Feature-Reihen (Bild / Text im Wechsel)
   ========================================================================== */
.am-feature {
  position: relative;
  display: flex;
  height: 550px;
}
.am-feature + .am-feature { margin-top: -26px; }
.am-feature__bild,
.am-feature__text { width: 50%; position: relative; }
.am-feature__bild { overflow: hidden; background: var(--am-grau); }
.am-feature__bild img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.am-feature__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.am-feature__text h2 {
  font-size: 22.4px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--am-text);
  margin-bottom: 19px;
}
.am-feature__text p {
  font-size: 19.6px;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 28px;
  padding-right: 46.8px;
}
.am-feature .am-btn--box { display: block; white-space: nowrap; }

/* Text links, Bild rechts */
.am-feature--text-links .am-feature__text { padding-left: calc(50vw * .35); padding-right: 0; }
.am-feature--text-links .am-btn--box { width: calc(100% + 98px); padding: 23.4px 20px 23.4px 47px; }

/* Bild links, Text rechts */
.am-feature--text-rechts { flex-direction: row-reverse; }
.am-feature--text-rechts .am-feature__text { padding-left: calc(50vw * .10); padding-right: calc(50vw * .35); }
.am-feature--text-rechts .am-feature__text p { padding-right: 0; }
.am-feature--text-rechts .am-btn--box { width: calc(100% + 165px); margin-left: -166px; padding: 24.4px 20px 24.4px 168px; }

.am-feature__abstand { height: 36px; }

/* ==========================================================================
   Elektromobilität
   ========================================================================== */
.am-elektro {
  background: var(--am-grau);
  padding: 100px var(--am-gutter) 350px;
  text-align: center;
}
.am-elektro__titel {
  font-size: 44.8px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.6px;
  color: var(--am-blau);
  margin-bottom: 13px !important;
}
.am-elektro__titel a:hover { color: var(--am-text); }
.am-elektro__text { font-size: 32.2px; font-weight: 400; line-height: 1.4; color: var(--am-text); }
.am-elektro-bild { padding: 0 var(--am-gutter); margin-top: -249px; position: relative; }
.am-elektro-bild img { width: 100%; }

/* ==========================================================================
   Innovation
   ========================================================================== */
.am-innovation { padding: 100px var(--am-gutter); text-align: center; background: var(--am-weiss); }
.am-innovation__inner { max-width: 840px; margin: 0 auto; }
.am-innovation h2 {
  font-size: 32.2px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.6px;
  color: var(--am-blau);
  margin-bottom: 20px;
}
.am-innovation h2 a:hover { color: var(--am-text); }
.am-innovation p { font-size: 28px; font-weight: 300; line-height: 1.4; margin-bottom: 20px; }

/* ==========================================================================
   Bild + Karte
   ========================================================================== */
.am-standort { display: flex; height: 30vh; }
.am-standort__bild { width: 50%; position: relative; overflow: hidden; }
.am-standort__bild img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }

/* ==========================================================================
   Footer
   ========================================================================== */
.am-footer {
  background: var(--am-grau);
  border-top: 25px solid var(--am-blau);
  padding: 50px;
}
.am-footer__inner { display: flex; align-items: flex-start; }
.am-footer__spalte--logo { width: 20%; }
.am-footer__spalte--kontakt { width: 40%; }
.am-footer__spalte--menue,
.am-footer__spalte--info { width: 20%; }
.am-footer__logo img { width: 228px; }
.am-footer h4 { font-size: 19.6px; font-weight: 500; line-height: 1.3; color: var(--am-text); margin-bottom: 15px; }
.am-footer__adresse { font-size: 15.4px; line-height: 1.6; margin-bottom: 15px !important; }
.am-footer__iconliste li { font-size: 14.7px; line-height: 25px; }
.am-footer__iconliste a { display: inline-flex; align-items: center; gap: 8px; }
.am-footer__iconliste svg { width: 14px; height: 14px; fill: var(--am-blau); flex: 0 0 auto; }
.am-footer__menue li { font-size: 14px; line-height: 26px; }
.am-footer__menue .is-aktiv a { color: var(--am-blau); }
.am-footer a:hover { color: var(--am-blau); }
.am-footer__cookie { margin-top: 15px; font-size: 14px; line-height: 19px; }

.am-copyright {
  display: flex; align-items: center;
  min-height: 50px;
  padding: 0 var(--am-gutter);
  background: var(--am-weiss);
  font-size: 14px;
  font-weight: 300;
}

/* Nach-oben-Button */
.am-nachoben {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .4);
  border-radius: 2px;
  color: var(--am-weiss);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, background .3s;
}
.am-nachoben.is-sichtbar { opacity: 1; visibility: visible; }
.am-nachoben:hover { background: rgba(0, 0, 0, .7); }
.am-nachoben svg { width: 14px; height: 14px; fill: currentColor; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .am-nav { display: none; }
  .am-burger { display: block; }
  .am-hero { padding-top: 28%; }
  .am-header__logo img { width: 300px; }
}

@media (max-width: 1024px) {
  :root { --am-gutter: 30px; }
  .am-feature { height: 460px; }
  .am-feature__text h2 { font-size: 19px; }
  .am-feature__text p { font-size: 17px; padding-right: 20px; }
  .am-btn--box { font-size: 22px; }
  .am-feature--text-links .am-feature__text { padding-left: 8%; padding-right: 4%; }
  .am-feature--text-rechts .am-feature__text { padding-left: 8%; padding-right: 8%; }
  .am-feature--text-links .am-btn--box { width: calc(100% + 60px); }
  .am-feature--text-rechts .am-btn--box { width: calc(100% + 60px); margin-left: -60px; padding-left: 60px; }
  .am-hero__titel { font-size: 34px; }
  .am-hero__logo { width: 340px; }
  .am-hero__box { padding: 50px 0 80px; }
  .am-elektro__titel { font-size: 36px; }
  .am-elektro__text { font-size: 26px; }
  .am-innovation p { font-size: 22px; }
  .am-footer__inner { flex-wrap: wrap; row-gap: 30px; }
  .am-footer__spalte--logo { width: 100%; }
  .am-footer__spalte--kontakt { width: 50%; }
  .am-footer__spalte--menue, .am-footer__spalte--info { width: 25%; }
}

@media (max-width: 767px) {
  :root { --am-gutter: 20px; }
  .am-topbar { padding: 4px 20px; }
  .am-topbar__inner { min-height: 52px; }
  .am-topbar__logos img { height: 26px; }
  .am-header__inner { height: 74px; padding: 10px 20px; }
  .am-header__logo img { width: 170px; }
  .am-header.is-sticky .am-header__logo img { width: 150px; }

  .am-hero { padding-top: 0; }
  .am-hero__bild { position: relative; height: 200px !important; }
  .am-hero__box { position: absolute; inset: auto 0 0; padding: 18px 20px 22px; }
  .am-hero__titel { font-size: 18px; }
  .am-hero__logo { width: 170px; margin-top: 8px; }
  .am-hero__cta { margin-top: 12px; }
  .am-hero__cta .am-btn { font-size: 13px; }

  .am-claim { padding: 20px 20px 50px; }
  .am-claim h2 { font-size: 15px; }

  .am-feature,
  .am-feature--text-rechts { flex-direction: column-reverse; height: auto; }
  .am-feature__text { position: static; }
  .am-feature + .am-feature { margin-top: 0; }
  .am-feature__bild, .am-feature__text { width: 100%; }
  .am-feature__bild { height: 150px; overflow: visible; }
  .am-feature__text,
  .am-feature--text-links .am-feature__text,
  .am-feature--text-rechts .am-feature__text { padding: 17px 20px 40px; text-align: center; }
  .am-feature__text h2 { font-size: 15px; margin: 0 auto 7px; max-width: 263px; }
  .am-feature__text p { font-size: 15px; margin-bottom: 0; padding-right: 0; }
  .am-feature .am-btn--box,
  .am-feature--text-links .am-btn--box,
  .am-feature--text-rechts .am-btn--box {
    position: absolute; left: 50%; top: 73px; transform: translateX(-50%); z-index: 3;
    width: auto; min-width: 180px; margin: 0; padding: 10px 20px; font-size: 15px; text-align: center;
  }
  .am-feature__abstand { height: 16px; }

  .am-elektro { padding: 31px 20px 110px; }
  .am-elektro__titel { font-size: 18px; margin-bottom: 6px !important; }
  .am-elektro__text { font-size: 14px; }
  .am-elektro-bild { margin-top: -90px; }
  .am-innovation { padding: 35px 20px; }
  .am-innovation h2 { font-size: 16px; margin-bottom: 12px; }
  .am-innovation p { font-size: 14px; margin-bottom: 0; }

  .am-standort { flex-direction: column; height: auto; }
  .am-standort__bild { width: 100%; height: 190px; }

  .am-footer { padding: 30px 20px; border-top-width: 15px; }
  .am-footer__spalte--kontakt { width: 100%; }
  .am-footer__spalte--menue, .am-footer__spalte--info { width: 50%; }
  .am-footer h4 { font-size: 18px; }
  .am-copyright { padding: 12px 20px; font-size: 12px; }
}

/* ==========================================================================
   UNTERSEITEN
   ========================================================================== */

/* ---------- Seitenkopf (Bild links, blaue Fläche rechts) ---------- */
.am-seitenkopf { display: flex; height: 550px; }
.am-seitenkopf--klein { height: 400px; }
.am-seitenkopf__bild { position: relative; width: 50%; overflow: hidden; background: var(--am-grau); }
.am-seitenkopf__bild img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.am-seitenkopf__inhalt {
  position: relative; z-index: 2;
  width: 50%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: var(--am-blau);
  padding: 0 calc(50vw * .35) 0 calc(50vw * .10);
  color: var(--am-weiss);
}
.am-site .am-seitenkopf__label {
  display: inline-block;
  margin: 0 0 0 -166px;
  padding: 24.4px 89.5px 24.4px 166.8px;
  font-size: 28.8px;
  font-weight: 500;
  line-height: 18.2px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--am-weiss);
  background: rgba(255, 255, 255, .66);
  border: 1px solid var(--am-blau);
  border-radius: 15px 0;
}
.am-site .am-seitenkopf__label--blau { color: var(--am-blau); }
.am-site .am-seitenkopf__label--breit { padding-right: 252.2px; }
.am-site .am-seitenkopf__label--normal { text-transform: none; }
.am-seitenkopf__titel {
  margin-top: 21.6px !important;
  font-size: 20.16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1px;
  color: var(--am-weiss);
}
.am-seitenkopf__titel a { color: inherit; }
.am-seitenkopf__titel a:hover { color: var(--am-weiss); text-decoration: underline; }
.am-seitenkopf__text {
  margin-top: 14.4px !important;
  font-size: 17.28px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .2px;
  color: var(--am-weiss);
}
.am-seitenkopf__text--adresse { line-height: 1.4; }
.am-seitenkopf--weit .am-seitenkopf__titel { margin-top: 28.8px !important; }
.am-seitenkopf--eng .am-seitenkopf__text { margin-top: 0 !important; }
.am-seitenkopf__text--klein { font-size: 19.6px; letter-spacing: 0; margin-top: 0 !important; }
.am-seitenkopf__text u { text-decoration: underline; }

/* ---------- Kacheln (Service) ---------- */
.am-kacheln {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 107px;
  row-gap: 214px;
  padding: 195px var(--am-gutter) 169px;
  align-items: start;
}
.am-kachel { text-align: center; }
.am-kachel__bild { display: block; margin-bottom: 19px; aspect-ratio: 3 / 2; overflow: hidden; }
.am-kachel__bild img { width: 100%; height: 100% !important; object-fit: cover; }
.am-kachel h3 { font-size: 20.16px; font-weight: 600; line-height: 1.4; color: var(--am-blau); margin-bottom: 12px; }
.am-kachel p { font-size: 17.28px; font-weight: 300; line-height: 1.3; }

/* Slider (Zubehör) */
.am-slider { position: relative; overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 19px; }
.am-slider__spur { display: flex; height: 100%; transition: transform 1s ease; }
.am-slider__spur img { flex: 0 0 100%; width: 100%; height: 100% !important; object-fit: cover; }

/* Lightbox */
.am-lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .87);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  padding: 40px;
}
.am-lightbox.is-offen { opacity: 1; visibility: visible; }
.am-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 0 30px rgba(0, 0, 0, .4); }
.am-lightbox__zu {
  position: absolute; top: 16px; right: 20px;
  width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  font-size: 36px; line-height: 1; color: #fff; opacity: .8;
}
.am-lightbox__zu:hover { opacity: 1; }

/* ---------- Leistungsliste (Economy-Service) ---------- */
.am-leistungen { padding: 64.8px 5% 0; }
.am-leistungen__inner { max-width: 800px; margin: 0 auto; }
.am-leistung { margin-bottom: 4vh; }
.am-leistung:last-child { margin-bottom: 8vh; }
.am-leistung h2 { font-size: 20.16px; font-weight: 500; line-height: 1.4; color: var(--am-blau); margin-bottom: 8px; }
.am-leistung p { font-size: 15.84px; font-weight: 300; line-height: 1.3; }

/* ---------- Grauer Band-Bereich mit Link (Neuwagen) ---------- */
.am-band { background: var(--am-grau); padding: 64.8px 120px 51.8px; text-align: center; }
.am-band__link {
  display: inline-block;
  height: 60px;
  padding: 30px 40px;
  margin-bottom: 24px;
  border-radius: 15px 0;
  font-size: 20.16px;
  font-weight: 500;
  line-height: 0;
  color: var(--am-blau);
  transition: background .3s, color .3s;
}
.am-band__link:hover { background: var(--am-blau); color: var(--am-weiss) !important; }
.am-band__hinweis { font-size: 15.84px; font-weight: 300; line-height: 1.3; letter-spacing: .2px; }

/* ---------- Schachbrett (Bild/leer) ---------- */
.am-schachbrett { display: flex; height: max(350px, 15vh); }
.am-schachbrett--bild-links { flex-direction: row-reverse; }
.am-schachbrett__leer { width: 50%; background: var(--am-weiss); }
.am-schachbrett__bild { position: relative; width: 50%; overflow: hidden; background: var(--am-grau); }
.am-schachbrett__bild img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }

/* ---------- Text + Bild (Gebrauchtwagen, Kontakt, Impressum) ---------- */
.am-textbild { display: flex; min-height: 330px; }
.am-textbild--niedrig { min-height: 224px; }
.am-textbild__text { width: 50%; padding: 64.8px 108px 64.8px calc(50vw * .35); }
.am-textbild__text--rechts { padding: 64.8px 72px 64.8px calc(50vw * .10); }
.am-textbild__leer { width: 50%; }
.am-textbild__grau { width: 50%; background: var(--am-grau); }
.am-textbild__bild { position: relative; width: 50%; overflow: hidden; background: var(--am-grau); }
.am-textbild__bild img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.am-extern + .am-extern { margin-top: 5vh; }
.am-extern a { font-size: 20.16px; font-weight: 500; line-height: 18.2px; color: var(--am-blau); }
.am-extern a:hover { color: var(--am-text); }
.am-extern p { margin-top: 14px !important; font-size: 17.28px; font-weight: 300; line-height: 1.3; letter-spacing: .2px; }
.am-mailliste__titel { font-size: 15.84px; font-weight: 300; line-height: 1.3; letter-spacing: .2px; margin-bottom: 17px !important; }
.am-mailliste li { font-size: 15.84px; line-height: 18.2px; }
.am-mailliste li + li { margin-top: 10px; }
.am-mailliste a { display: inline-flex; align-items: center; gap: 10px; }
.am-mailliste a:hover { color: var(--am-blau); }
.am-mailliste svg { width: 18px; height: 18px; fill: var(--am-text); flex: 0 0 auto; margin-right: 5px; }

/* ---------- Stellenkarten ---------- */
.am-stellen {
  display: grid;
  grid-template-columns: 37.13% 37.13%;
  column-gap: 10.62%;
  padding: 207px 0 258px 10.42%;
  align-items: start;
}
.am-stelle { text-align: center; }
.am-stelle__bild { display: block; margin-bottom: 24px; aspect-ratio: 3 / 2; overflow: hidden; }
.am-stelle__bild img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .4s; }
.am-stelle__bild:hover img { transform: scale(1.03); }
.am-stelle h2 { font-size: 21.6px; font-weight: 400; line-height: 1.4; color: var(--am-blau); margin-bottom: 8px; }
.am-stelle h2 a:hover { color: var(--am-text); }
.am-stelle p { font-size: 17.28px; font-weight: 300; line-height: 1.3; margin-bottom: 20px; }
.am-pille {
  display: inline-block;
  padding: 6px 50px;
  font-size: 19.6px;
  font-weight: 300;
  line-height: 25.48px;
  color: var(--am-weiss) !important;
  background: var(--am-blau);
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 50px;
  transition: background .3s;
}
.am-pille:hover { background: #005a86; }

/* ---------- Stellenanzeige ---------- */
.am-stellentitel { background: var(--am-grau); padding: 38.9px 64.8px 13px; }
.am-stellentitel h1 { max-width: 800px; margin: 0 auto; font-size: 46.08px; font-weight: 500; line-height: 1.5; color: var(--am-blau); }
.am-stellentitel--zweizeilig { padding-top: 25.9px; padding-bottom: 25.9px; }
.am-stellentitel--zweizeilig h1 { line-height: 1.3; }
.am-anzeige { padding: 64.8px 5% 0; }
.am-anzeige__inner { max-width: 800px; margin: 0 auto; }
.am-eckdaten { margin-bottom: 15px !important; }
.am-eckdaten li { display: flex; align-items: center; gap: 8px; padding-bottom: 2px; font-size: 20.16px; font-weight: 400; line-height: 31px; color: var(--am-blau); }
.am-eckdaten svg { width: 17px; height: 20px; fill: #939393; flex: 0 0 auto; }
.am-eckdaten b { font-weight: 600; }
.am-anzeige__text { font-size: 15.84px; font-weight: 300; line-height: 1.4; margin-bottom: 15px !important; }
.am-anzeige__block { padding: 13px 0; }
.am-anzeige__block::before { content: ""; display: block; width: 224px; margin-top: 15px; border-top: 1px solid var(--am-grau); }
.am-anzeige__block h2 { font-size: 20.16px; font-weight: 400; line-height: 1.4; color: var(--am-blau); margin: 46px 0 23px; text-transform: uppercase; }
.am-anzeige__block .am-anzeige__text { line-height: 1.3; }
.am-anzeige__block ul { list-style: disc; margin: 38px 0 15px 20px; padding: 0; }
.am-anzeige__block p + ul { margin-top: 30px; }
.am-anzeige__block li { font-size: 15.84px; font-weight: 300; line-height: 1.5; }
.am-bewerben { padding: 51.8px 0 194.4px; }
.am-bewerben h2 { font-size: 20.16px; font-weight: 500; line-height: 1.4; color: var(--am-blau); margin-bottom: 56px; }
.am-bewerben__btn {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 20.16px;
  font-weight: 500;
  line-height: 30.24px;
  letter-spacing: 1.4px;
  color: var(--am-blau);
  background: var(--am-grau);
  border-radius: 50px;
  transition: background .3s, color .3s;
}
.am-bewerben__btn:hover { background: var(--am-blau); color: var(--am-weiss) !important; }

/* ---------- Rechtstexte (eRecht24) ---------- */
.rechtstext { padding: 64.8px var(--am-gutter) 100px; }
.rechtstext__inner { max-width: 72ch; margin: 0 auto; font-size: 15.84px; font-weight: 300; line-height: 1.5; color: var(--am-text); }
.rechtstext__inner > h1 { font-size: 32px; font-weight: 500; line-height: 1.3; color: var(--am-blau); margin-bottom: 24px; }
.rechtstext__erecht24 h1, .rechtstext__erecht24 h2 { font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--am-blau); margin: 32px 0 12px; }
.rechtstext__erecht24 h3 { font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--am-text); margin: 24px 0 8px; }
.rechtstext__erecht24 h4 { font-size: 16px; font-weight: 500; margin: 20px 0 6px; }
.rechtstext__erecht24 p, .rechtstext__erecht24 ul { margin: 0 0 12px; }
.rechtstext__erecht24 ul { list-style: disc; padding-left: 20px; }
.rechtstext__erecht24 a, .rechtstext__individuell a { color: var(--am-blau); word-break: break-word; }
.rechtstext__individuell { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--am-grau); }

/* ---------- Unterseiten responsiv ---------- */
@media (max-width: 1279px) {
  .am-site .am-seitenkopf__label, .am-site .am-seitenkopf__label--breit { margin-left: -12vw; padding: 3% 6% 3% 12vw; font-size: 2.5vw; line-height: 1.2; }
  .am-seitenkopf__inhalt { padding-right: 8%; }
  .am-seitenkopf__titel { font-size: 2vw; }
  .am-seitenkopf__text { font-size: 1.8vw; }
  .am-kacheln { column-gap: 40px; row-gap: 100px; padding: 100px 30px; }
  .am-kachel h3 { font-size: 2vw; }
  .am-kachel p { font-size: 1.8vw; }
  .am-stellen { padding: 120px 30px 150px; grid-template-columns: 1fr 1fr; column-gap: 60px; }
}

@media (max-width: 1024px) {
  .am-textbild__text { padding: 50px 40px 50px 8%; }
  .am-textbild__text--rechts { padding: 50px 40px 50px 8%; }
  .am-stellentitel h1 { font-size: 36px; }
}

@media (max-width: 767px) {
  .am-seitenkopf, .am-seitenkopf--klein { flex-direction: column; height: auto; }
  .am-seitenkopf__bild { width: 100%; height: 200px; }
  .am-seitenkopf__inhalt { width: 100%; align-items: center; text-align: center; padding: 0 0 6%; }
  .am-site .am-seitenkopf__label, .am-site .am-seitenkopf__label--breit { margin: -55px auto 0; padding: 5% 8% 4%; font-size: 5.5vw; max-width: 90%; white-space: normal; }
  .am-seitenkopf__titel { margin-top: 12px !important; padding: 0 5%; font-size: 5vw; }
  .am-seitenkopf__text { margin-top: 6px !important; padding: 0 15%; font-size: 4.5vw; }
  .am-seitenkopf__inhalt > :only-child { margin-bottom: 20px; }

  .am-kacheln { grid-template-columns: 1fr; row-gap: 50px; padding: 40px 20px 60px; }
  .am-kachel__bild, .am-kachel .am-slider { width: 75%; margin-left: auto; margin-right: auto; margin-bottom: 14px; }
  .am-kachel h3 { font-size: 5vw; margin-bottom: 7px; }
  .am-kachel p { font-size: 4.5vw; }

  .am-leistungen { padding: 30px 20px 10px; }
  .am-leistung { margin-bottom: 28px; }
  .am-leistung:last-child { margin-bottom: 40px; }
  .am-leistung h2 { font-size: 17px; }
  .am-leistung p { font-size: 15px; }

  .am-band { padding: 30px 20px; }
  .am-band__link { height: auto; padding: 16px 20px; margin-bottom: 10px; font-size: 18px; line-height: 1.3; }

  .am-schachbrett, .am-schachbrett--bild-links { height: 200px; }
  .am-schachbrett__leer { display: none; }
  .am-schachbrett__bild { width: 100%; }

  .am-textbild { flex-direction: column; min-height: 0; }
  .am-textbild__text, .am-textbild__text--rechts { width: 100%; padding: 30px 20px; text-align: center; }
  .am-textbild__leer, .am-textbild__grau { display: none; }
  .am-textbild__bild { width: 100%; height: 200px; }
  .am-mailliste a { justify-content: center; }

  .am-stellen { grid-template-columns: 1fr; row-gap: 60px; padding: 50px 20px 70px; }

  .am-stellentitel { padding: 20px; }
  .am-stellentitel h1, .am-stellentitel--zweizeilig h1 { font-size: 26px; line-height: 1.3; }
  .am-anzeige { padding: 30px 20px 0; }
  .am-eckdaten li { font-size: 16px; line-height: 24px; }
  .am-bewerben { padding: 30px 0 70px; }
  .am-bewerben__btn { font-size: 17px; }
  .rechtstext { padding: 40px 20px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .am-site *, .am-site *::before, .am-site *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
