/* ALICE 2027 – Kundenstimmen. Vollständig gekapselt, ohne globale Resets. */
.agref {
  --agref-text: #414141;
  --agref-gray: #494B4C;
  --agref-petrol: #4C7778;
  --agref-petrol-soft: #D7E1E1;
  --agref-gold: #E7C98A;
  --agref-gold-soft: #EDDEBC;
  --agref-white: #FFFFFF;
  --agref-font-body: "Trebuchet MS", Trebuchet, Arial, sans-serif;
  --agref-font-title: "Poiret One", "Trebuchet MS", sans-serif;
  --agref-font-hand: "Shadows Into Light Two", "Shadows Into Light", "Segoe Print", cursive;
  color: var(--agref-text);
  font-family: var(--agref-font-body);
  width: 100%;
  min-width: 0;
}
.agref, .agref * { box-sizing: border-box; }
.agref :where(p, blockquote, figure) { margin: 0; }
.agref :where(img) { max-width: 100%; }
.agref--petrol { --agref-surface: #D7E1E1; }
.agref--weiss { --agref-surface: #FFFFFF; }
.agref-grid {
  column-count: 3;
  column-gap: clamp(18px, 2.4vw, 30px);
}
.agref-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  width: 100%;
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid var(--agref-gold);
  border-radius: 24px;
  background: var(--agref-surface);
  box-shadow: 0 13px 35px rgba(65,65,65,.075), 0 2px 8px rgba(65,65,65,.025);
  position: relative;
  overflow-wrap: anywhere;
}
.agref-card-mark {
  display: block;
  font-family: var(--agref-font-title);
  color: var(--agref-gold);
  font-size: 92px;
  line-height: .78;
  font-weight: 400;
  margin: 0 0 18px;
  user-select: none;
}
.agref-fulltext {
  color: var(--agref-gray);
  font-family: var(--agref-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  flex: 1 1 auto;
}
.agref-fulltext :where(p, ul, ol) { margin: 0 0 1em; }
.agref-fulltext :where(p, ul, ol):last-child { margin-bottom: 0; }
.agref-fulltext a { color: var(--agref-petrol); text-decoration: underline; }
.agref-person {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  text-align: left;
}
.agref-card .agref-person {
  margin-top: 32px;
  padding-top: 19px;
  border-top: 1px solid var(--agref-gold-soft);
}
.agref-portrait {
  flex: 0 0 54px;
  display: block;
  width: 54px !important;
  height: 54px !important;
  max-width: 54px !important;
  min-height: 54px;
  border: 2px solid var(--agref-gold);
  border-radius: 18px;
  object-fit: cover;
}
.agref-person-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.agref-person-name {
  color: var(--agref-petrol);
  font-family: var(--agref-font-body);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}
.agref-person-role {
  color: var(--agref-gray);
  font-size: 13px;
  line-height: 1.55;
}
/* Zitat und Karussell verwenden dieselbe Typografie. Keine automatische Bewegung. */
.agref-carousel, .agref-single { position: relative; }
.agref-rail {
  display: flex;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 24px;
}
.agref-rail::-webkit-scrollbar { display: none; }
.agref-slide, .agref-single {
  background: var(--agref-surface);
  border: 1px solid var(--agref-gold);
  border-radius: 24px;
  padding: clamp(30px, 4vw, 62px);
  text-align: center;
  margin: 0;
  box-shadow: 0 13px 38px rgba(65,65,65,.06);
}
.agref-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.agref-slide::before, .agref-single::before {
  content: "";
  display: block;
  margin: 0 auto 22px;
  width: 72px;
  height: 2px;
  background: var(--agref-gold);
}
.agref-handwriting {
  color: var(--agref-petrol);
  font-family: var(--agref-font-hand) !important;
  font-size: clamp(24px, 3vw, 37px) !important;
  line-height: 1.48 !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  font-style: normal !important;
  text-align: center !important;
  transform: none !important;
  max-width: 900px;
  margin: 0 auto;
  overflow-wrap: anywhere;
}
.agref-slide figcaption, .agref-single figcaption { margin-top: 26px; }
.agref-slide .agref-person, .agref-single .agref-person { justify-content: center; }
.agref-slide .agref-person-copy, .agref-single .agref-person-copy { text-align: left; }
.agref-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.agref-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--agref-gold);
  border-radius: 14px;
  background: var(--agref-white);
  color: var(--agref-petrol);
  font-family: var(--agref-font-body);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.agref-arrow:hover, .agref-arrow:focus-visible {
  background: var(--agref-petrol-soft);
  border-color: var(--agref-petrol);
}
.agref-arrow:focus-visible, .agref-rail:focus-visible { outline: 2px solid var(--agref-petrol); outline-offset: 3px; }
.agref-arrow:disabled { opacity: .38; cursor: default; }
.agref-count {
  color: var(--agref-gray);
  font-family: var(--agref-font-body);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  text-align: center;
}
.agref-empty {
  font: 14px/1.6 "Trebuchet MS", Arial, sans-serif;
  padding: 14px 18px;
  border-left: 3px solid #E7C98A;
  color: #494B4C;
  background: #D7E1E1;
}
@media (max-width: 1024px) {
  .agref-grid { column-count: 2; }
}
@media (max-width: 747px) {
  .agref-grid { column-count: 1; column-gap: 20px; }
  .agref-card { padding: 26px; border-radius: 20px; }
  .agref-card-mark { font-size: 72px; margin-bottom: 12px; }
  .agref-slide, .agref-single { padding: 28px 20px; border-radius: 20px; }
  .agref-rail { border-radius: 20px; }
  .agref-handwriting { font-size: 25px !important; }
  .agref-portrait { width: 48px !important; height: 48px !important; max-width: 48px !important; min-height: 48px; flex-basis: 48px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .agref-arrow { transition: none; }
  .agref-rail { scroll-behavior: auto !important; }
}
