/*
 Theme Name:   Hello Theme Child
 Description:  Child theme for Hello Elementor
 Template:     hello-elementor
 Version:      1.0.0
*/

/* Montserrat und Open Sans liefert Elementor lokal aus (Einstellungen → Leistung → „Google Fonts lokal laden“).
   Kein @import von fonts.googleapis.com, damit ohne Einwilligung keine Daten an Google gehen. */

/* ============================================================================
 * 0. GLOBALE TYPOGRAFIE — Titel = Montserrat, Text = Open Sans
 *    (Kicker/Eyebrows bleiben von dieser Regel ausgenommen)
 * ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

body,
p,
li,
a,
blockquote {
  font-family: 'Open Sans', sans-serif;
}

.aim-ah-eyebrow,
.ah-cta-kicker,
.ah-aimh-eyebrow {
  font-family: revert;
}

/* ============================================================================
 * 1. FLOATING CONTACT BUTTONS
 * ========================================================================== */

.aimhigher-floating-contact {
  bottom: -125px;
  position: fixed;
  right: 22px;
  transform: translateY(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.ah-contact-btn {
  width: 64px;
  height: 64px;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 8px 2px rgba(219, 25, 52, 0.4);
  transition: width .32s ease, transform .25s ease, box-shadow .25s ease;
}

.ah-contact-btn:hover {
  width: 300px;
  transform: translateX(-4px);
  box-shadow: 0 0 16px 4px rgba(219, 25, 52, 0.55);
}

.ah-red {
  background: linear-gradient(135deg, #de0b2d 0%, #bd1232 65%, #009ee0 160%);
}

.ah-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 0 8px 2px rgba(37, 211, 102, .35);
}

.ah-whatsapp:hover {
  box-shadow: 0 0 16px 4px rgba(37, 211, 102, .45);
}

.ah-icon {
  width: 64px;
  min-width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  line-height: 1;
  color: #fff;
}

.ah-icon svg {
  display: block;
  color: #fff;
}

.ah-label {
  opacity: 0;
  transform: translateX(8px);
  padding-right: 24px;
  font-size: 19px;
  font-weight: 600;
  transition: opacity .22s ease, transform .25s ease;
}

.ah-contact-btn:hover .ah-label {
  opacity: 1;
  transform: translateX(0);
}


/* ============================================================================
 * 2. WHATSAPP-WIDGET OVERRIDES
 * ========================================================================== */

.eapp-whatsapp-chat-root-layout-component,
[id^="portal-"] {
  z-index: 1000000 !important;
}

.Bubble__BubbleComponent-sc-83hmjh-2,
[type="bubble"],
.eapp-whatsapp-chat-root-layout-component [role="button"][type="bubble"] {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ============================================================================
 * 3. FULLSCREEN NAV MENU (BURGER)
 * ========================================================================== */

@keyframes ah-nav-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.elementor-nav-menu--burger .elementor-nav-menu__container {
  transition: opacity .4s ease, visibility .4s ease;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:rgba(20, 20, 20, 0.95); 
  backdrop-filter: blur(1px) saturate(120%);
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
  padding: 60px 24px;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] ul.elementor-nav-menu {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li {
  margin: 0 !important;
  opacity: 0;
  transform: translateY(16px);
  animation: ah-nav-item-in .5s ease forwards;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li:nth-child(1) { animation-delay: .05s; }
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li:nth-child(2) { animation-delay: .1s; }
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li:nth-child(3) { animation-delay: .15s; }
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li:nth-child(4) { animation-delay: .2s; }
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li:nth-child(5) { animation-delay: .25s; }
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li:nth-child(6) { animation-delay: .3s; }
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li:nth-child(7) { animation-delay: .35s; }
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li:nth-child(8) { animation-delay: .4s; }
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li:nth-child(9) { animation-delay: .45s; }
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-nav-menu > li:nth-child(n+10) { animation-delay: .5s; }

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-item {
  position: relative;
  display: inline-block;
  padding: 21px 6px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: color .2s ease;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-item::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  transition: width .28s ease, left .28s ease;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-item:hover::after,
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-item.elementor-item-active::after {
  left: 0;
  width: 100%;
}

/* Menüpunkt mit Unterseiten: Ausklapp-Pfeil rechts neben dem Text, gleiche Farbe wie der Text */
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-item.has-submenu {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .35em;
  outline: none !important;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-item.has-submenu:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5) !important;
  outline-offset: 4px;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .has-submenu .sub-arrow {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  font-size: .55em !important;
  line-height: 1;
  color: inherit !important;
  fill: currentColor !important;
  transition: transform .25s ease;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .has-submenu .sub-arrow svg,
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .has-submenu .sub-arrow i {
  width: 1em;
  height: 1em;
  color: inherit !important;
  fill: currentColor !important;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .has-submenu.highlighted .sub-arrow {
  transform: rotate(180deg);
}

/* Geräte mit Maus: Unterseiten bei Hover/Tastaturfokus zeigen statt per Klick
   (Klick auf den Hauptpunkt öffnet die Seite, siehe js/child.js). Touch-Geräte behalten das Antippen. */
@media (hover: hover) and (pointer: fine) {
  .elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] li.menu-item-has-children:hover > ul.sub-menu,
  .elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] li.menu-item-has-children:focus-within > ul.sub-menu {
    display: block !important;
  }

  .elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] li.menu-item-has-children:hover > .has-submenu .sub-arrow,
  .elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] li.menu-item-has-children:focus-within > .has-submenu .sub-arrow {
    transform: rotate(180deg);
  }
}

/* Unterseiten: gleicher Stil wie die Hauptpunkte, nur kleiner */
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] ul.sub-menu {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  list-style: none;
  text-align: center;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] ul.sub-menu li {
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-sub-item {
  position: relative;
  display: inline-block;
  padding: 10px 6px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: clamp(16px, 2.4vw, 22px) !important;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: color .2s ease;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-sub-item::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  transition: width .28s ease, left .28s ease;
}

.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-sub-item:hover::after,
.elementor-nav-menu--burger .elementor-nav-menu__container[aria-hidden="false"] .elementor-sub-item.elementor-item-active::after {
  left: 0;
  width: 100%;
}

.elementor-nav-menu--burger .elementor-menu-toggle[aria-expanded="true"] {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 1000001;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background .2s ease, transform .25s ease;
}

.elementor-nav-menu--burger .elementor-menu-toggle[aria-expanded="true"]:hover {
  background: rgba(255, 255, 255, .16);
  transform: rotate(90deg);
}

.elementor-nav-menu--burger .elementor-menu-toggle[aria-expanded="true"] svg {
  fill: #fff;
  width: 32px;
  height: 32px;
}

body.ah-nav-open {
  overflow: hidden;
}

/* ============================================================================
 * 4. SCORE LANDINGPAGE
 * ========================================================================== */

/* --- 4.1 Basis & Variablen ------------------------------------------------ */

.aim-ah-score-lp {
  --red: #de0b2d;
  --blue: #1a2ecc;
  --dark: #111827;
  --text: #101322;
  --muted: #5f6675;
  --card: rgba(255, 255, 255, .78);
  --border: #ffffff;
  --grad: linear-gradient(90deg, #101322 0%, #de0b2d 45%, #1a2ecc 100%);
  --grad-icon: linear-gradient(135deg, #de0b2d, #1a2ecc);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(222, 11, 45, .12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(26, 46, 204, .12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f6fa 100%);
  color: var(--text);
  font-family: Roboto-Light, Helvetica, Arial, Lucida, sans-serif;
  padding: 24px;
}

.aim-ah-score-lp * {
  box-sizing: border-box;
}

/* --- 4.2 Hintergrund-Glows ------------------------------------------------ */

.aim-ah-bg-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .18;
  pointer-events: none;
}

.aim-ah-bg-glow-1 {
  background: #de0b2d;
  top: 8%;
  left: -140px;
}

.aim-ah-bg-glow-2 {
  background: #1a2ecc;
  bottom: 12%;
  right: -160px;
}

/* --- 4.3 Header ----------------------------------------------------------- */

.aim-ah-lp-header,
.aim-ah-hero,
.aim-ah-section,
.aim-ah-final-cta {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
}

.aim-ah-lp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 42px;
}

.aim-ah-lp-header img {
  max-width: 170px;
}

/* --- 4.4 Hero ------------------------------------------------------------- */

.aim-ah-hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 36px;
  align-items: center;
  min-height: 720px;
}

.aim-ah-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(222, 11, 45, .08), rgba(26, 46, 204, .08));
  border: 1px solid #ffffff;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.aim-ah-hero h1,
.aim-ah-section h2,
.aim-ah-final-cta h2 {
  margin: 0 0 20px;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.aim-ah-hero h1 {
  font-size: clamp(46px, 7vw, 85px);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aim-grablo h2, .aim-tigrad h2 {
  font-size: clamp(46px, 7vw, 85px);
  background: linear-gradient(90deg, #101322 0%, #de0b2d 45%, #1a2ecc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 .bulletpillar {
  background: linear-gradient(90deg, #101322 0%, #de0b2d 45%, #1a2ecc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aim-ah-hero p,
.aim-ah-section p,
.aim-ah-final-cta p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 660px;
}

.aim-ah-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 24px;
}

ul.icon-list-aim {
  list-style: none;
  margin: 15px 0 0 0;
  padding: 0;
}
ul.icon-list-aim li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 18px;
}
ul.icon-list-aim li::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;        /* 900 = Solid, 400 = Regular */
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
}
ul.icon-list-aim li:nth-child(1)::before { content: "\f51c"; } /* chalkboard-teacher */
ul.icon-list-aim li:nth-child(2)::before { content: "\f0c0"; } /* users */
ul.icon-list-aim li:nth-child(3)::before { content: "\f0eb"; } /* lightbulb */
ul.icon-list-aim li:nth-child(4)::before { content: "\f2f1"; } /* sync-alt */

/* --- 4.5 Buttons ---------------------------------------------------------- */

.aim-ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: .25s ease;
}

.aim-ah-btn-main {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--blue));
  margin-top: 30px;
  box-shadow: 0 18px 45px rgba(222, 11, 45, .2) !important;
}

.aim-ah-btn-secondary {
  color: var(--text);
  border: 1px solid #ffffff;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(16, 19, 34, .07);
}

.aim-ah-btn:hover {
  transform: translateY(-2px);
}

/* --- 4.6 Trust Row -------------------------------------------------------- */

.aim-ah-trust-row {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.aim-ah-trust-row span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #343949;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #ffffff;
  font-size: 14px;
  box-shadow: 0 10px 28px rgba(16, 19, 34, .06);
}

/* --- 4.7 Cards & Karten-Basis --------------------------------------------- */

.aim-ah-hero-card,
.aim-ah-card,
.aim-ah-proof,
.aim-ah-about,
.aim-ah-final-cta {
  background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .58));
  border: 1px solid #ffffff;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(16, 19, 34, .11);
  backdrop-filter: blur(24px);
}

.aim-ah-hero-card {
  padding: 4px 20px 20px;
}

/* --- 4.8 Score-Widget / Gauge --------------------------------------------- */

.aim-ah-score-widget {
  text-align: center;
  margin-bottom: 24px;
}

.aim-ah-score-widget-left {
  text-align: left;
  margin-top: 32px;
  margin-bottom: 0;
}

.aim-ah-score-widget-left .aim-ah-score-ring {
  margin: 0 0 22px;
}

.aim-ah-score-widget-left p {
  margin: 0;
}

.aim-ah-score-ring {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 22px;
}

.aim-ah-gauge-svg {
  width: 100%;
  height: 100%;
}

.aim-ah-score-ring span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
}

.aim-ah-score-widget h3 {
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--text);
}

.aim-ah-score-widget p {
  font-size: 17px;
  margin: 0 auto;
}

/* --- 4.9 Sections & Grids ------------------------------------------------- */

.aim-ah-section {
  padding: 72px 0;
}

.aim-ah-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.aim-ah-card {
  padding: 36px;
}

.aim-ah-card h2,
.aim-ah-proof h2,
.aim-ah-about h2 {
  font-size: clamp(28px, 4vw, 32px);
  color: var(--text);
}

/* Alle Section-Titel im H1-Gradient */
.aim-ah-section h2,
.aim-ah-final-cta h2 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aim-ah-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

/* --- 4.10 Proof & About --------------------------------------------------- */

.aim-ah-proof {
  max-width: 975px;
}

.aim-ah-proof p {
  font-size: 17px;
}

.aim-ah-proof,
.aim-ah-about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 38px;
}

.aim-ah-proof-image img,
.aim-ah-about img {
  width: 100%;
  border-radius: 26px;
  object-fit: cover;
  max-height: 480px;
  box-shadow: 0 18px 45px rgba(16, 19, 34, .12);
}

.aim-ah-proof-image {
  text-align: center;
}

.aim-ah-proof-image img {
  max-width: 75%;
}

.aim-ah-about {
  margin-top: 75px;
  grid-template-columns: 1.1fr .9fr;
}

.aim-ah-proof-text h2 {
  margin-bottom: 10px;
  line-height: 1.1em;
}

.aim-ah-proof-text span {
  color: #de0b2d;
}

/* --- 4.11 Zitate (Quote) -------------------------------------------------- */

.aim-ah-quote {
  position: relative;
  margin: 15px 0 0 -2.25em;
  padding: 12px 0 0 56px;
  font-size: 17px;
  line-height: 1.65;
  font-style: italic;
  color: var(--text);
  max-width: 660px;
}

.aim-ah-quote::before {
  width: 60px;
  content: "\201C";
  position: absolute;
  left: 0;
  top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 100px;
  line-height: .9;
  background: var(--grad-icon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aim-ah-quote-center {
  text-align: center;
  padding: 50px 16px 0;
  margin-left: auto;
  margin-right: auto;
  font-size: 21px;
}

.aim-ah-quote-center::before {
  left: 5%;
  transform: translateX(-50%);
  top: 0;
}

blockquote {
  border: none;
}

/* --- 4.12 Testimonial ----------------------------------------------------- */

.aim-ah-testimonial {
  display: flex;
  justify-content: center;
}

.aim-ah-testimonial-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .58));
  border: 1px solid #ffffff;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(16, 19, 34, .11);
  backdrop-filter: blur(24px);
  padding: 48px 40px;
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.aim-ah-testimonial-img {
  width: 180px;
  height: 180px;
  border-radius: 50% !important;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  margin: 0 auto 8px;
  display: block;
  box-shadow: 0 14px 36px rgba(16, 19, 34, .16) !important;
}

.aim-ah-testimonial-author {
  margin: 18px auto 0;
  color: var(--text);
  font-size: 16px;
}

/* --- 4.13 Logos ----------------------------------------------------------- */

.aim-ah-logos {
  text-align: center;
  margin: 25px auto 125px;
}

.aim-ah-logos h2 {
  font-size: 32px;
  margin-bottom: 28px;
}

.aim-ah-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.aim-ah-logo-grid img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ffffff;
  box-shadow: 0 16px 40px rgba(16, 19, 34, .08);
}

/* --- 4.14 Final CTA ------------------------------------------------------- */

.aim-ah-final-cta {
  display: none;
  text-align: center;
  padding: 58px 28px;
  margin-bottom: 40px;
}

.aim-ah-final-cta h2 {
  font-size: clamp(34px, 5vw, 64px);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.aim-ah-final-cta p {
  margin-left: auto;
  margin-right: auto;
}

/* --- 4.15 Use Cases ------------------------------------------------------- */

.aim-ah-usecases {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.aim-ah-usecase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.aim-ah-usecase-reverse .aim-ah-usecase-img {
  order: 2;
}

.aim-ah-usecase-reverse .aim-ah-usecase-content {
  order: 1;
}

.aim-ah-usecase-img img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.aim-ah-usecase-content h3 {
  color: #de0b2d;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 15px;
  font-weight: 700;
}

.aim-ah-usecase-content h2 {
  margin-bottom: 24px;
}

.aim-ah-usecase-content p {
  margin-bottom: 5px;
}

.aim-ah-result-cards {
  margin-top: 40px;
}

/* --- 4.16 Check-List ------------------------------------------------------ */

.aim-ah-check-list li {
  position: relative;
}

.aim-ah-check-list li::before {
  opacity: 1;
  content: "✓";
  position: absolute;
  left: -20px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--grad-icon);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- 4.17 Footer Links ---------------------------------------------------- */

.aim-footerlinks {
  font-size: 11px;
  margin-top: 125px;
  text-align-last: center;
}

.aim-footerlinks a {
  color: black;
  margin-top: 75px;
  text-align-last: center;
}


/* ============================================================================
 * 5. CTA FULLWIDTH BLUE V3
 * ========================================================================== */

.ah-hero-cta-v3 {
  position: relative;
  width: 100vw;
  min-height: 680px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #0b1020;
  padding-top: 60px;
}

/* --- Bild ----------------------------------------------------------------- */

.ah-hero-image-wrap {
  position: absolute;
  min-width: 1500px;
  height: 100% !important;
  inset: 0;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ah-hero-image-wrap img {
  flex-shrink: 0;
  object-fit: none;
  transform: none;
}

.ah-hero-fade {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
  transform: scaleY(-1);
}

/* --- Overlay -------------------------------------------------------------- */

.ah-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(10, 14, 32, 0.98) 0%,
    rgba(10, 14, 32, 0.94) 22%,
    rgba(10, 14, 32, 0.82) 36%,
    rgba(26, 46, 204, 0.52) 52%,
    rgba(204, 26, 26, 0.14) 66%,
    rgba(0, 0, 0, 0.02) 82%
  );
}

/* --- Content -------------------------------------------------------------- */

.ah-hero-content-v3 {
  position: relative;
  z-index: 3;
  width: 42%;
  padding: clamp(40px, 6vw, 90px) clamp(30px, 5vw, 90px);
}

.ah-hero-content-v3 span {
  display: inline-flex;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(5px);
}

.ah-hero-content-v3 h2 {
  margin: 0 0 22px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -2px;
  font-weight: 800;
  color: #fff;
}

.ah-hero-content-v3 p {
  margin: 0 0 34px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}

/* --- Buttons -------------------------------------------------------------- */

.ah-hero-buttons-v3 {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ah-hero-buttons-v3 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: .25s ease;
}

.ah-hero-buttons-v3 a:hover {
  transform: translateY(-2px);
}

.ah-hero-buttons-v3 a:first-child {
  border: 1px solid white;
  background: linear-gradient(90deg, #cc1a1a 0%, #ff3131 100%);
  color: #fff;
}

.ah-hero-buttons-v3 a:nth-child(2) {
  background: #fff;
  color: #1a2ecc;
}

.ah-hero-buttons-v3 a:last-child {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(5px);
}


/* ============================================================================
 * 6. CTA LIGHTGREY
 * ========================================================================== */

.ah-cta-section {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
}

.ah-cta-card {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.ah-cta-card.stil {
     border: 1px solid white;
    backdrop-filter: blur(7.5px);
}

.ah-cta-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: linear-gradient(90deg, #cc1a1a 0%, #1a2ecc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  text-shadow: none;
}

.ah-cta-content h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 800;
}

.ah-cta-contentstil h2 {
    font-family: 'Montserrat';
    margin: 0 0 16px;
    color:#fff;;
    font-size: 54px;
    line-height: 1.05;
    font-weight: 500;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, .425);
}

.ah-cta-content p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  line-height: 1.6;
}

.ah-cta-contentstil p {
  margin-top: 15px;
  color: #fff;
}

.ah-cta-actions {
  display: flex;
  gap: 14px;
  min-width: 240px;
}

.ah-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  backdrop-filter: blur(14px);
  transition: all .25s ease;
}

.ah-cta-btn-primary {
  background: rgba(222, 11, 45, .82);
  border-color: rgba(255, 255, 255, .45);
}

.ah-cta-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .24);
}

.ah-cta-btn-primary:hover {
  background: #de0b2d;
}

.cta-divider {
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, #cc1a1a 0%, #1a2ecc 100%);
  border-radius: 2px;
}

.aim-bugrad .aim-ter {
  background: linear-gradient(90deg, #de0b2d 0%, #1a2ecc 100%);
  color: #fff !important;
}

/* ============================================================================
 * 7. SINGLE BLOG / ARCHIV / ELEMENTOR
 * ========================================================================== */

.single-post h1, .blog h1,
.elementor_library-template-default h1, h1.training-grad {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(32px, 4vw, 54px);
  background: linear-gradient(90deg, #101322 0%, #de0b2d 45%, #1a2ecc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.elementor_library-template-default h3.elementor-post__title {
  font-family: 'Montserrat', sans-serif !important;
}

.et_post_meta_wrapper img {
  display: none;
}

/* ============================================================================
 * 8. GLASMORPHISM
 * ========================================================================== */

.aim-glasmor {
  position: relative;
  padding: 3rem 2.5rem;
  border-radius: 25px;
}

.aim-glasmor::before {
  content: "";
  position: absolute;
  border-radius: 25px;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(222, 11, 45, .12), transparent 10%),
    radial-gradient(circle at bottom right, rgba(26, 46, 204, .12), transparent 17%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(245, 246, 250, 0.85) 100%
    );
  z-index: 1;
}

.aim-glasmor > * {
  position: relative;
  z-index: 2;
}

.aim-glasmor.nopa {
  padding: 3rem 0;
}

.aim-glasmor.aim-arch {
  backdrop-filter: blur(5px);
}


/* ============================================================================
 * 9. FAQ
 * ========================================================================== */

.ah-faq {
  padding: 0;
}

.ah-faq-container {
  max-width: 1100px;
  margin: 0 auto;
}

.ah-faq-header {
  margin-bottom: 30px;
}

.ah-faq-header h2 {
  margin: 0 auto;
  font-size: clamp(30px, 5vw, 36px);
  line-height: 1.75;
  font-weight: 500;
  text-align: center;
}

.ah-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ah-faq-item {
  background:
    radial-gradient(circle at top left, rgba(222, 11, 45, .08), transparent 40%),
    radial-gradient(circle at bottom right, rgba(26, 46, 204, .08), transparent 40%),
    rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: all .3s ease;
}

.ah-faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(16, 19, 34, .06);
}

.ah-faq-question {
  position: relative;
  cursor: pointer;
  padding: 28px 32px;
  padding-right: 90px;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #333;
}

.ah-faq-question::after {
  content: "+";
  position: absolute;
  right: 32px;
  top: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #de0b2d, #1a2ecc);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  transform: translateY(-50%) scale(1);
  transition: all .25s ease;
}

.ah-faq-item:hover .ah-faq-question::after {
  transform: translateY(-50%) scale(1.1);
}

.ah-faq-item.active .ah-faq-question::after {
  content: "−";
  transform: translateY(-50%) scale(1.1);
}

.ah-faq-answer {
  height: 0;
  overflow: hidden;
  transition: height .35s ease;
}

.ah-faq-answer-inner {
  padding: 0 32px 32px;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: #324A6D;
  line-height: 1.8;
  font-size: 16px;
}

/* ============================================================================
 * 10. Pillar Page Hero / CTA
 * ========================================================================== */

  .ahtrh-section {
    --ahtrh-red: #d81f26;
    --ahtrh-red-dark: #b5171d;
    --ahtrh-ink: #1c1c1e;
    --ahtrh-muted: #5f5f66;
    --ahtrh-bg: #ffffff;
    --ahtrh-pattern: url("https://dev.aim-higher.de/wp-content/uploads/2026/08/aimhigher_arrows_final_thicker-e1786513517929.png");

    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: var(--ahtrh-bg);
    color: var(--ahtrh-ink);
    box-sizing: border-box;
  }
  .ahtrh-section *,
  .ahtrh-section *::before,
  .ahtrh-section *::after { box-sizing: border-box; }

  /* ---------- Pfeil-Grafik links ---------- */
  .ahtrh-pattern {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 42%;
    margin: 0;
    background: var(--ahtrh-pattern) left center / auto 110% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 40%, transparent 100%);
    pointer-events: none;
    z-index: 0;
  }

  /* ---------- Layout ---------- */
  .ahtrh-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    min-height: clamp(420px, 48vw, 560px);
  }

  /* ---------- Text ---------- */
  .ahtrh-copy {
    margin: 0;
    padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
    max-width: 640px;
    text-align: left;
  }

  .ahtrh-kicker {
    margin: 0 0 14px;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ahtrh-red);
  }

  .ahtrh-title {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--ahtrh-ink);
    text-wrap: balance;
  }

  .ahtrh-sub {
    margin: 18px 0 0;
    padding: 0;
    font-family: inherit;
    font-size: 1.0625rem;
    line-height: 1.5;
    font-weight: 400;
    color: #324A6D;
  }

  .card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    box-sizing: border-box;
  }
  .card * { box-sizing: border-box; }
  .card .number {
    color: #de0b2d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }
  .card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px 0;
  }
  .card .description {
    font-size: 15px;
    line-height: 1.5;
    color: #4a4a58;
    margin-bottom: 24px;
  }
  .card .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #9a9aa5;
    margin-bottom: 12px;
  }
  .card ul.trainings {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }
  .card ul.trainings li {
    padding: 0;
  }
  .card ul.trainings li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #2b2b38;
    text-decoration: none;
    padding: 10px 14px;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .card ul.trainings li a .arrow {
    flex-shrink: 0;
    font-size: 15px;
    color: #de0b2d;
    transition: transform 0.15s ease;
  }
  .card ul.trainings li a:hover {
    background: #fdeaec;
    border-color: #de0b2d;
    color: #de0b2d;
  }
  .card ul.trainings li a:hover .arrow {
    transform: translateX(3px);
  }
  @media (max-width: 767px) {
  .card ul.trainings {
    grid-template-columns: 1fr;
  }
}

  /* ---------- Aktionen ---------- */
  .ahtrh-actions { margin: 32px 0 0; padding: 0; }

  .ahtrh-btn,
  .ahtrh-btn:link,
  .ahtrh-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 22px;
    border: 0;
    border-radius: 6px;
    background: var(--ahtrh-red, #d81f26);
    color: #ffffff;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
  }
  .ahtrh-btn:hover,
  .ahtrh-btn:focus { background: var(--ahtrh-red-dark, #b5171d); color: #ffffff; text-decoration: none; }
  .ahtrh-btn:active { transform: translateY(1px); }
  .ahtrh-btn:focus-visible { outline: 3px solid var(--ahtrh-red); outline-offset: 3px; }

  .ahtrh-btn-label { display: inline; }
  .ahtrh-btn-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
  }

  .ahtrh-hint {
    margin: 12px 0 0;
    padding: 0;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 400;
    color: #324A6D;
  }
  .ahtrh-hint-link,
  .ahtrh-hint-link:link,
  .ahtrh-hint-link:visited {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: 0;
    padding: 0;
  }
  .ahtrh-hint-link:hover,
  .ahtrh-hint-link:focus { color: var(--ahtrh-ink); text-decoration: underline; }

  /* ---------- Bild ---------- */
  .ahtrh-media {
    width: 1000px;
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: inherit;
  }
  .ahtrh-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: 60% center;   /* Bildausschnitt – bei Bedarf anpassen */
  }

  .ahtrh-fade {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, var(--ahtrh-bg) 0%, rgba(255,255,255,0) 32%);
    pointer-events: none;
  }

 .ah-training-cta {
  text-align: center;
  margin: 72px 0;                          /* Abstand zu umgebenden Sektionen */
  padding: clamp(56px, 8vw, 65px) 24px;    /* mehr Luft innen, responsiv */
  border-radius: 16px;
}

.ah-training-cta-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border: 1px solid #cfcfd6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;                         /* passt jetzt in den Kreis */
  font-weight: 600;
  color: var(--ahtrh-ink);
}

.ah-training-cta h2 {
  margin: 0 auto;
  max-width: 22ch;
  font-family: inherit;
  font-size: clamp(28px, 4.2vw, 35px);     /* ca. doppelt so groß wie vorher */
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ahtrh-ink);
}

.ah-training-cta p {
  margin: 16px auto 0;
  max-width: 52ch;
  font-family: inherit;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.5;
  color: #45454c;                          /* dunkler = mehr Kontrast */
}

.ah-training-cta .ahtrh-actions {
  margin: 32px 0 0;
}

.ah-training-cta .ahtrh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 240px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ah-training-cta .ahtrh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.ah-training-cta .ahtrh-btn:focus-visible {
  outline: 3px solid var(--ahtrh-ink);
  outline-offset: 3px;
}

.ah-training-cta .ahtrh-hint {
  margin-top: 12px;
  font-size: 13px;
  color: #6b6b73;                          /* vorher #8a8a92, unter WCAG AA */
}

@media (max-width: 480px) {
  .ah-training-cta {
    margin: 48px 0;
    border-radius: 12px;
  }
  .ah-training-cta .ahtrh-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================================
 * MEDIA QUERIES
 * ========================================================================== */

/* --- max-width: 900px ----------------------------------------------------- */

@media (max-width: 900px) {

  section.aim-ah-score-lp p {
    font-size: 16px;
  }

  .aim-ah-hero-card {
    padding: 5px 15px 0;
  }

  .aim-ah-score-lp {
    padding: 18px;
  }

  .aim-ah-hero,
  .aim-ah-grid-2,
  .aim-ah-proof,
  .aim-ah-about {
    grid-template-columns: 1fr;
  }

  .aim-ah-logos {
    text-align: center;
    margin: -65px 0 0;
  }

  .aim-ah-hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .aim-ah-lp-header {
    padding-bottom: 30px;
  }

  .aim-ah-header-cta {
    display: none;
  }

  .aim-ah-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aim-ah-trust-row span {
    white-space: nowrap;
    font-size: 13px;
  }

  .aim-ah-usecase {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .aim-ah-usecase-reverse .aim-ah-usecase-img,
  .aim-ah-usecase-reverse .aim-ah-usecase-content {
    order: initial;
  }

  .aim-ah-usecase-img img {
    height: 320px;
  }

  .aim-ah-score-widget-left {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .aim-ah-trust-row {
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: space-around;
  }

  .aim-ah-usecases {
    margin-top: -100px;
  }

  .aim-ah-proof {
    display: flex;
    flex-direction: column;
  }

  .aim-ah-about {
    display: flex;
    flex-direction: column-reverse;
  }

}

/* --- max-width: 860px (CTA Lightgrey) ------------------------------------- */

@media (max-width: 860px) {

  .ah-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
  }

  .ah-cta-content h2, .ah-cta-contentstil h2 {
    font-size: 24px !important;
  }

  .ah-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .ah-cta-btn {
    width: 100%;
  }

}

/* --- max-width: 768px (Floating Contact) ---------------------------------- */

@media (max-width: 768px) {

  .aimhigher-floating-contact {
    right: 3px;
    top: auto;
    bottom: 18px;
    transform: none;
    gap: 10px;
  }

  .ah-contact-btn,
  .ah-contact-btn:hover {
    justify-content: center;
    width: 48px;
    height: 48px;
    transform: none;
  }

  .ah-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .ah-label {
    display: none;
  }

  button#dvmd_acsb_button {
    left: 5px !important;
    bottom: 17px !important;
    width: 40px;
    height: 40px;
  }

}

/* --- max-width: 767px (Hero V3 / Glasmor / FAQ) --------------------------- */

@media (max-width: 767px) {

  .ah-hero-cta-v3 {
    align-items: flex-start;
  }

  .ah-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 14, 32, .96) 0%,
      rgba(10, 14, 32, .88) 36%,
      rgba(10, 14, 32, .54) 58%,
      rgba(10, 14, 32, .08) 100%
    );
  }

  .aim-glasmor::before {
    background:
      radial-gradient(circle at top left, rgba(222, 11, 45, .12), transparent 50%),
      radial-gradient(circle at bottom right, rgba(26, 46, 204, .12), transparent 41%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(245, 246, 250, 0.85) 100%) !important;
  }

  .aim-glasmor.aim-arch::before {
    background:
      radial-gradient(circle at top left, rgba(26, 46, 204, .075), transparent 10%),
      radial-gradient(circle at bottom right, rgba(222, 11, 45, .075), transparent 17%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(245, 246, 250, 0.85) 100%) !important;
  }

  .aim-glasmor.aim-arch {
    backdrop-filter: blur(1.5px) !important;
  }

  .aim-ah-score-widget.aim-ah-score-widget-left p {
    padding: 10px 30px;
  }

  .ah-hero-content-v3 {
    width: 100%;
    padding: 36px 24px 260px;
  }

  .ah-hero-content-v3 h2 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .ah-hero-buttons-v3 {
    flex-direction: column;
  }

  .ah-hero-buttons-v3 a {
    width: 100%;
  }

  .ah-hero-image-wrap img {
    object-position: 181% -5%;
  }

  .ah-hero-fade {
    height: 250px !important;
  }

  .ah-faq-question {
    font-size: 18px;
    padding: 24px;
    padding-right: 75px;
  }

  .ah-faq-answer-inner {
    padding: 0 24px 24px;
    font-size: 16px;
  }

  .ah-faq-question::after {
    right: 20px;
  }

}

/* --- min-width: 768px (Single Blog Title size) ------------------------------------- */

@media (max-width: 767px) {
   .singletits h2, .singletits h3 {
    font-size: 21px;
   }
}

/* ============================================================================
 * 10. WAS UNSERE KUNDEN SAGEN
 * (jetzt inline im Shortcode [aimhigher_testimonials] in functions.php)
 * ========================================================================== */

/* ============================================================================
 * 11. COVERFLOW GALERIE
 * (jetzt inline im Shortcode [aimhigher_coverflow] in functions.php)
 * ========================================================================== */

.aim-alink a, .aim-alink p {
  color:#324A6D !important;
}

.aoe-faq h3 {
  font-size: 16px;
}

/* ============================================================================
 * 12. TEAM CTA (Elementor Custom HTML Widget)
 * ========================================================================== */

.ah-teamcta {
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)),
    url('https://aim-higher.de/wp-content/uploads/2019/12/Steffen_Moll_Portrait_2.jpg') center / cover no-repeat;
  text-align: center;
  color: #fff;
  padding: 155px 20px;
  z-index: 1 !important;
}

.ah-teamcta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        #fff
    );
    pointer-events: none;
    z-index: 3;
}

.ah-teamcta__title {
  margin: 0 0 8px;
  font-size: 2.4rem;
  text-shadow:
    0 0 2px  rgba(255, 255, 255, 1),
    0 0 8px  rgba(255, 255, 255, .8),
    0 0 20px rgba(255, 255, 255, .5),
    0 0 45px rgba(255, 255, 255, .3);
}

.ah-teamcta__subtitle {
  margin: 0 0 24px;
  font-size: 1.3rem;
  font-weight: 500;
}

.ah-teamcta__text {
  margin: 0 0 32px;
  line-height: 1.7;
  text-shadow:
    0 0 2px  rgba(255, 255, 255, 1),
    0 0 8px  rgba(255, 255, 255, .8),
    0 0 20px rgba(255, 255, 255, .5),
    0 0 45px rgba(255, 255, 255, .3);
}

.ah-teamcta__btn {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid #fff;
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all .25s ease;
  box-shadow:
    0 0 2px  rgba(255, 255, 255, 1),
    0 0 8px  rgba(255, 255, 255, .8),
    0 0 20px rgba(255, 255, 255, .5),
    0 0 45px rgba(255, 255, 255, .3);
}

.ah-teamcta__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  transform: translateY(-3px);
  box-shadow:
    0 0 2px  rgba(255, 255, 255, 1),
    0 0 12px rgba(255, 255, 255, .9),
    0 0 28px rgba(255, 255, 255, .6),
    0 0 55px rgba(255, 255, 255, .4);
}

@media (max-width: 767px) {
  .ah-teamcta {
    padding: 45px;
  }

  .ah-teamcta h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

/* ============================================================================
 * 13. HERO CTA V4 (Basis, seitenübergreifend)
 *     Elementor Custom HTML Widget. Pro Seite werden nur das Bild (src im HTML)
 *     und die Bildposition/-offset über einen kleinen, gescopeten <style>-Block
 *     mit Modifier-Klasse (.ah-cta--<seite>) überschrieben.
 * ========================================================================== */

.ah-hero-cta-v4,
.ah-hero-cta-v4 *,
.ah-hero-cta-v4 *::before,
.ah-hero-cta-v4 *::after {
  box-sizing: border-box;
}

.ah-hero-cta-v4 {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 680px;
  display: flex;
  background: #ffffff;
}

/* --- CONTENT BLOCK --- */
.ah-hero-v4-content {
  position: relative;
  z-index: 2;
  width: 36%;
  min-width: 440px;
  flex-shrink: 0;
  background: #ffffff;
  padding: clamp(36px, 5vw, 72px);
  display: flex;
  flex-direction: column;
}

.ah-hero-v4-text-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ah-hero-v4-content h2 {
  color: #333;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .15),
    0 2px 12px rgba(0, 0, 0, .08);
}

.ah-hero-v4-content h2 .ah-title-line {
  display: inline-block;
  white-space: nowrap;
}

.ah-hero-v4-content p {
  font-family: "Open Sans", sans-serif;
  color: #333;
}

/* --- BILD --- */
.ah-hero-v4-image-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.ah-hero-v4-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center; /* Default – pro Seite überschreibbar */
  display: block;
}

.ah-hero-v4-fade {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.ah-hero-v4-mobile-overlay {
  display: none;
}

/* --- BUTTONS --- */
.ah-hero-v4-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.ah-hero-v4-buttons .ah-cta-btn-primary,
.ah-hero-v4-buttons .ah-cta-btn-primary:hover {
  color: #fff;
}

.ah-hero-v4-buttons .ah-cta-btn:not(.ah-cta-btn-primary) {
  color: #111;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, .15);
}

.ah-hero-v4-buttons .ah-cta-btn:not(.ah-cta-btn-primary):hover {
  color: #111;
  background: #f5f5f5;
}

/* --- MOBILE --- */
@media (max-width: 767px) {
  .ah-hero-cta-v4 {
    display: block;
    position: relative;
    min-height: 850px;
    overflow-x: hidden;
  }

  .ah-hero-v4-image-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .ah-hero-v4-image-wrap img {
    object-position: center; /* Default mobil – pro Seite überschreibbar */
  }

  .ah-hero-v4-fade {
    display: none;
  }

  .ah-hero-v4-mobile-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, .55) 15%,
        rgba(255, 255, 255, 0) 25%
      ),
      linear-gradient(
        0deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, .7) 18%,
        rgba(255, 255, 255, 0) 35%
      );
  }

  .ah-hero-v4-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: transparent;
    padding: 32px 10px;
    justify-content: flex-start;
  }

  .ah-hero-v4-text-group {
    gap: 10px;
    margin-top: -45px !important;
    margin-bottom: auto;
    padding: 15px;
    border: 1px solid #fff;
    border-radius: 20px;
    background-color: #FFFFFF70;
  }

  .ah-hero-v4-content h2 .ah-title-line {
    white-space: normal;
  }

  .ah-hero-v4-buttons {
    flex-direction: column;
    margin-top: auto;
    padding-top: 32px;
  }

  .ah-hero-v4-buttons a {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================================
 * 14. PILLAR PAGE HERO / CTA - MOBILE
 * ========================================================================== */

@media (max-width: 767px) {

  .ahtrh-grid {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .ahtrh-pattern {
    top: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    background: var(--ahtrh-pattern) left center / auto 100% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 60%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0%, #000 60%, transparent 100%);
  }

  .ahtrh-copy {
    order: 1;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 48px 24px 70px;
    text-align: right;
  }

  .ahtrh-copy::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    z-index: 3;
  }

  .ahtrh-media {
    order: 2;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .ahtrh-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 30%;
  }

  .ahtrh-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 130px;
    z-index: 2;
    background: linear-gradient(
      to bottom,
      #ffffff 0%,
      rgba(255,255,255,0.92) 15%,
      rgba(255,255,255,0.70) 35%,
      rgba(255,255,255,0.40) 55%,
      rgba(255,255,255,0.16) 75%,
      rgba(255,255,255,0) 100%
    );
    pointer-events: none;
  }

  .ahtrh-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
    line-height: 1.12;
  }

  .ahtrh-sub {
    margin-top: 16px;
  }

  .ahtrh-actions {
    margin-top: 28px;
  }
}

/* ============================================================================
 * GLOBAL: Grid-Container dürfen nicht an der Bildbreite wachsen
 * Ohne min-width:0 weiten sich Grid-Spalten auf die Originalbreite der Bilder
 * (z. B. Footer-Logos 1200px) und erzeugen horizontales Scrollen auf Mobil.
 * ========================================================================== */

.e-con.e-grid > .elementor-element {
  min-width: 0;
}

.e-con.e-grid .elementor-widget-image a {
  display: block;
  max-width: 100%;
}

.e-con.e-grid .elementor-widget-image img {
  max-width: 100%;
  height: auto;
}


/* Randabfallende 100vw-Elemente (z. B. Coverflow) dürfen kein horizontales Scrollen erzeugen */
html,
body {
  overflow-x: clip;
}
