/* =========================================
   Team Cards
   class="team-cards"
   TYPO3 3 Columns
   Pro Spalte: 1x Text & Medien
   Aufbau im RTE:
   H2 = Name
   H5 (1) = Rolle
   P  (1) = Telefon
   H5 (2-4) + P = Feature-Zeilen
   ========================================= */

.team-cards {
  --team-bg: #fcfbfa;
  --team-card-bg: #ffffff;
  --team-text: #2f2925;
  --team-green: #164633;
  --team-green-soft: #eef3e8;
  --team-border: rgba(47, 41, 37, 0.10);
  --team-line: rgba(47, 41, 37, 0.12);
  --team-shadow: 0 10px 28px rgba(47, 41, 37, 0.08);

  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: clamp(1.5rem, 2vw, 4rem) 0;
  transform: translateX(-50%);
  background: var(--team-bg);
  color: var(--team-text);
  overflow-x: clip;
}

/* TYPO3 Wrapper ruhigstellen */
.team-cards .frame,
.team-cards .frame-group-container,
.team-cards .frame-group-inner,
.team-cards .frame-container,
.team-cards .frame-inner {
  margin: 0;
  padding: 0;
}

/* Container neutralisieren */
.team-cards > .container,
.team-cards .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Grid außen */
.team-cards .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.5vw, 1.25rem);

  width: min(100% - 2rem, 1280px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* Bootstrap-Spalten neutralisieren */
.team-cards .row > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  display: flex;
}

/* Card */
.team-cards .row > [class*="col-"] > .frame {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0.9rem;

  border: 1px solid var(--team-border);
  border-radius: 0.95rem;
  background: var(--team-card-bg);
  box-shadow: var(--team-shadow);
  overflow: hidden;
}

/* =========================================
   Text & Medien Grundlayout
   ========================================= */

.team-cards .textmedia,
.team-cards .textmedia.textmedia-above,
.team-cards .textmedia.textmedia-below {
  display: flow-root;
  width: 100%;
}

/* Bild links oben */
.team-cards .textmedia-gallery,
.team-cards .textmedia-item.textmedia-gallery {
  float: left;
  width: 7.7rem;
  height: 7.7rem;
  margin: 0 1rem 1rem 0;
  padding: 0;

  border-radius: 0.7rem;
  overflow: hidden;
  background: #f7f6f2;
}

.team-cards .gallery-row,
.team-cards .gallery-item,
.team-cards figure,
.team-cards picture {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.team-cards figure {
  display: block;
}

.team-cards img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Textbereich */
.team-cards .textmedia-text,
.team-cards .textmedia-item.textmedia-text,
.team-cards .ce-bodytext {
  display: block;
  margin: 0;
  padding: 0;
}

/* =========================================
   Einheitliche H2-Formatierung
   Team Cards + Rebecca About
   ========================================= */

.team-cards .textmedia-text h2,
.team-cards .ce-bodytext h2,
.rebecca-about .row > [class*="col-"]:nth-child(2) h2 {
  margin: 0 0 0.35rem;
  padding: 0;

  color: #164633;
  font-size: clamp(1.2rem, 1.25vw, 1.45rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.team-cards .textmedia-text h2::before,
.team-cards .textmedia-text h2::after,
.team-cards .ce-bodytext h2::before,
.team-cards .ce-bodytext h2::after,
.rebecca-about .row > [class*="col-"]:nth-child(2) h2::before,
.rebecca-about .row > [class*="col-"]:nth-child(2) h2::after {
  content: none;
  display: none;
}

/* kleine grüne Rollen-Zeile */
.team-cards .textmedia-text h5:first-of-type,
.team-cards .ce-bodytext h5:first-of-type {
  margin: 0 0 0.9rem;
  padding: 0;

  color: #6b8e4b;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
  text-transform: none;
}

/* Telefon */
.team-cards .textmedia-text p:first-of-type,
.team-cards .ce-bodytext p:first-of-type {
  position: relative;
  display: flex;
  align-items: center;

  min-height: 1.7rem;
  margin: 0 0 1rem;
  padding: 0 0 0.95rem 2rem;

  color: var(--team-text);
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: 400;
  white-space: nowrap;
}

.team-cards .textmedia-text p:first-of-type::before,
.team-cards .ce-bodytext p:first-of-type::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.02rem;

  width: 1.55rem;
  height: 1.55rem;

  border-radius: 999px;
  background-color: var(--team-green-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.8rem 0.8rem;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.2 5.4L9.55 8.5C9.76 8.98 9.63 9.55 9.23 9.88L8.18 10.75C8.98 12.35 10.3 13.68 11.92 14.48L12.8 13.43C13.13 13.03 13.7 12.9 14.18 13.11L17.28 14.46C17.83 14.7 18.13 15.29 18 15.88L17.62 17.62C17.48 18.27 16.9 18.74 16.24 18.72C10.18 18.55 5.45 13.82 5.28 7.76C5.26 7.1 5.73 6.52 6.38 6.38L8.12 6C8.71 5.87 9.3 6.17 9.54 6.72' stroke='%23164633' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.team-cards .textmedia-text p:first-of-type::after,
.team-cards .ce-bodytext p:first-of-type::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1px;
  background: var(--team-line);
}

/* =========================================
   Feature-Zeilen
   ========================================= */

/* ab erstem Feature unter dem Bild anfangen */
.team-cards .textmedia-text h5:not(:first-of-type),
.team-cards .ce-bodytext h5:not(:first-of-type) {
  clear: both;
  position: relative;

  margin: 0.75rem 0 0.08rem;
  padding: 0.15rem 0 0 3rem;

  color: var(--team-text);
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: none;
}

.team-cards .textmedia-text h5:not(:first-of-type)::before,
.team-cards .ce-bodytext h5:not(:first-of-type)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;

  width: 2.35rem;
  height: 2.35rem;

  border-radius: 999px;
  background-color: var(--team-green-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.2rem 1.2rem;
}

/* Beschreibung direkt darunter */
.team-cards .textmedia-text h5:not(:first-of-type) + p,
.team-cards .ce-bodytext h5:not(:first-of-type) + p {
  margin: -0.15rem 0 0.9rem;
  padding: 0 0 0 3rem;

  color: var(--team-text);
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 400;
}

/* =========================================
   Icons Standard Klemens / Heike
   ========================================= */

/* Persönliche Beratung */
.team-cards .textmedia-text h5:nth-of-type(2)::before,
.team-cards .ce-bodytext h5:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='3' stroke='%23164633' stroke-width='1.9'/%3E%3Ccircle cx='18' cy='10' r='3' stroke='%23164633' stroke-width='1.9'/%3E%3Cpath d='M5.5 21C6.1 17.6 7.8 15.8 10 15.8C12.2 15.8 13.9 17.6 14.5 21' stroke='%23164633' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M13.5 21C14.1 17.6 15.8 15.8 18 15.8C20.2 15.8 21.9 17.6 22.5 21' stroke='%23164633' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Kundenbetreuung */
.team-cards .textmedia-text h5:nth-of-type(3)::before,
.team-cards .ce-bodytext h5:nth-of-type(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14' cy='9' r='3.6' stroke='%23164633' stroke-width='1.9'/%3E%3Cpath d='M7.5 22C8.3 17.9 10.65 15.7 14 15.7C17.35 15.7 19.7 17.9 20.5 22' stroke='%23164633' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Organisation */
.team-cards .textmedia-text h5:nth-of-type(4)::before,
.team-cards .ce-bodytext h5:nth-of-type(4)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='6' y='7.5' width='16' height='14' rx='2' stroke='%23164633' stroke-width='1.9'/%3E%3Cpath d='M10 5.5V9.5' stroke='%23164633' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M18 5.5V9.5' stroke='%23164633' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M9.5 13H18.5' stroke='%23164633' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M10 17L12 19L18 14' stroke='%23164633' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* =========================================
   Rebecca: andere Icons in Spalte 3
   ========================================= */

/* Qualitätssicherung */
.team-cards .row > [class*="col-"]:nth-child(3) .textmedia-text h5:nth-of-type(2)::before,
.team-cards .row > [class*="col-"]:nth-child(3) .ce-bodytext h5:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 5.5L21 8.5V13.2C21 17.6 18.1 21.4 14 22.5C9.9 21.4 7 17.6 7 13.2V8.5L14 5.5Z' stroke='%23164633' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M11 14L13 16L17.5 11.5' stroke='%23164633' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Anleitung & Delegation */
.team-cards .row > [class*="col-"]:nth-child(3) .textmedia-text h5:nth-of-type(3)::before,
.team-cards .row > [class*="col-"]:nth-child(3) .ce-bodytext h5:nth-of-type(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='3' stroke='%23164633' stroke-width='1.9'/%3E%3Ccircle cx='18' cy='10' r='3' stroke='%23164633' stroke-width='1.9'/%3E%3Cpath d='M5.5 21C6.1 17.6 7.8 15.8 10 15.8C12.2 15.8 13.9 17.6 14.5 21' stroke='%23164633' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M13.5 21C14.1 17.6 15.8 15.8 18 15.8C20.2 15.8 21.9 17.6 22.5 21' stroke='%23164633' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Fachliche Unterstützung */
.team-cards .row > [class*="col-"]:nth-child(3) .textmedia-text h5:nth-of-type(4)::before,
.team-cards .row > [class*="col-"]:nth-child(3) .ce-bodytext h5:nth-of-type(4)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 17.5C7.4 16.2 6.5 14.7 6.5 13.2C6.5 11.4 7.8 10 9.5 10C10.6 10 11.5 10.55 12 11.35C12.5 10.55 13.4 10 14.5 10C16.2 10 17.5 11.4 17.5 13.2C17.5 16.5 12 20 12 20C12 20 10.7 19.15 9 17.5Z' stroke='%23164633' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M7.5 21.5H17.8C19.4 21.5 20.8 20.55 21.4 19.1L22.5 16.5' stroke='%23164633' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M5.5 15.5L8.5 18.5' stroke='%23164633' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* =========================================
   Team Cards Responsive
   ========================================= */

@media (max-width: 1199.98px) {
  .team-cards .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-cards .row > [class*="col-"]:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 40rem;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .team-cards .row {
    grid-template-columns: 1fr;
    width: min(100% - 1.5rem, 34rem);
    gap: 1rem;
  }

  .team-cards .row > [class*="col-"]:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 479.98px) {
  .team-cards {
    padding: 2.5rem 0;
  }

  .team-cards .textmedia-gallery,
  .team-cards .textmedia-item.textmedia-gallery {
    width: 6.6rem;
    height: 6.6rem;
    margin-right: 0.85rem;
  }

  .team-cards .textmedia-text h2,
  .team-cards .ce-bodytext h2 {
    font-size: 1.1rem;
  }

  .team-cards .textmedia-text h5:first-of-type,
  .team-cards .ce-bodytext h5:first-of-type {
    font-size: 0.8rem;
  }

  .team-cards .textmedia-text p:first-of-type,
  .team-cards .ce-bodytext p:first-of-type {
    font-size: 0.78rem;
    white-space: normal;
  }

  .team-cards .textmedia-text h5:not(:first-of-type),
  .team-cards .ce-bodytext h5:not(:first-of-type),
  .team-cards .textmedia-text h5:not(:first-of-type) + p,
  .team-cards .ce-bodytext h5:not(:first-of-type) + p {
    padding-left: 2.9rem;
  }

  .team-cards .textmedia-text h5:not(:first-of-type)::before,
  .team-cards .ce-bodytext h5:not(:first-of-type)::before {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* =========================================
   Rebecca About Box
   class="rebecca-about"
   TYPO3 3 Columns:
   Column 1 = Bild
   Column 2 = Text mit H2
   Column 3 = Blockquote
   ========================================= */

.rebecca-about {
  --rebecca-bg: #fcfbfa;
  --rebecca-card: #ffffff;
  --rebecca-text: #2f2925;
  --rebecca-green: #164633;
  --rebecca-soft: #f8f5ee;
  --rebecca-green-soft: #eef3e8;
  --rebecca-border: rgba(47, 41, 37, 0.1);
  --rebecca-shadow: 0 10px 28px rgba(47, 41, 37, 0.08);

  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  transform: translateX(-50%);
  background: var(--rebecca-bg);
  color: var(--rebecca-text);
  overflow-x: clip;
}

/* TYPO3 Wrapper ruhigstellen */
.rebecca-about .frame,
.rebecca-about .frame-group-container,
.rebecca-about .frame-group-inner,
.rebecca-about .frame-container,
.rebecca-about .frame-inner {
  margin: 0;
  padding: 0;
}

/* Container neutralisieren */
.rebecca-about > .container,
.rebecca-about .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Äußere Card */
.rebecca-about .row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: clamp(1.6rem, 2.5vw, 2.4rem);
  align-items: center;

  width: min(100% - 2rem, 1280px);
  max-width: 1280px;
  min-height: 220px;
  margin: 0 auto;
  padding: clamp(1.2rem, 1.8vw, 1.6rem);

  border: 1px solid var(--rebecca-border);
  border-radius: 0.95rem;
  background: var(--rebecca-card);
  box-shadow: var(--rebecca-shadow);
}

/* Bootstrap-Spalten neutralisieren */
.rebecca-about .row > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}

/* =========================================
   Column 1: Bild
   ========================================= */

.rebecca-about .row > [class*="col-"]:nth-child(1) {
  width: 220px;
}

.rebecca-about .row > [class*="col-"]:nth-child(1) .frame,
.rebecca-about .row > [class*="col-"]:nth-child(1) .frame-group-container,
.rebecca-about .row > [class*="col-"]:nth-child(1) .frame-group-inner,
.rebecca-about .row > [class*="col-"]:nth-child(1) .frame-container,
.rebecca-about .row > [class*="col-"]:nth-child(1) .frame-inner,
.rebecca-about .row > [class*="col-"]:nth-child(1) .textmedia,
.rebecca-about .row > [class*="col-"]:nth-child(1) .textmedia-item,
.rebecca-about .row > [class*="col-"]:nth-child(1) .textmedia-gallery,
.rebecca-about .row > [class*="col-"]:nth-child(1) .gallery-row,
.rebecca-about .row > [class*="col-"]:nth-child(1) .gallery-item,
.rebecca-about .row > [class*="col-"]:nth-child(1) figure,
.rebecca-about .row > [class*="col-"]:nth-child(1) picture {
  width: 100%;
  height: 100%;
}

.rebecca-about .row > [class*="col-"]:nth-child(1) .textmedia,
.rebecca-about .row > [class*="col-"]:nth-child(1) .textmedia-gallery,
.rebecca-about .row > [class*="col-"]:nth-child(1) figure,
.rebecca-about .row > [class*="col-"]:nth-child(1) picture {
  display: block;
}

.rebecca-about .row > [class*="col-"]:nth-child(1) figure {
  margin: 0;
}

.rebecca-about .row > [class*="col-"]:nth-child(1) .textmedia-gallery {
  width: 220px;
  height: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--rebecca-green-soft);
}

.rebecca-about .row > [class*="col-"]:nth-child(1) img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}

/* Falls beim Bildtext noch Text mitkommt */
.rebecca-about .row > [class*="col-"]:nth-child(1) .textmedia-text,
.rebecca-about .row > [class*="col-"]:nth-child(1) .ce-bodytext {
  display: none;
}

/* =========================================
   Column 2: Text
   ========================================= */

.rebecca-about .row > [class*="col-"]:nth-child(2) {
  min-width: 0;
}

.rebecca-about .row > [class*="col-"]:nth-child(2) p {
  margin: 0;
  max-width: 680px;

  color: var(--rebecca-text);
  font-size: clamp(0.88rem, 0.9vw, 1rem);
  line-height: 1.55;
  font-weight: 400;
}

/* =========================================
   Rebecca About - Blockquote wie Zielbild
   ========================================= */

.rebecca-about .row > [class*="col-"]:nth-child(3) {
  min-width: 0;
  align-self: center;
  display: flex;
  justify-content: center;
}

.rebecca-about blockquote {
  position: relative;

  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;

  width: 100%;
  max-width: 320px;
  min-height: 7.25rem;

  margin: 0;
  padding: 1rem 1.15rem;

  border: 0;
  border-radius: 0.75rem;
  background: #f8f5ee;
  color: var(--rebecca-green);
  box-shadow: none;
}

/* Quote-Kreis links */
.rebecca-about blockquote::before {
  content: "❜❜";

  width: 2.65rem;
  height: 2.65rem;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid var(--rebecca-green);
  border-radius: 999px;

  color: var(--rebecca-green);
  font-family: Georgia, serif;
  line-height: 1;
  font-weight: 700;
  font-style: normal;

  padding-top: 0.8rem;
}

/* Zitattext */
.rebecca-about blockquote p {
  margin: 0;
  padding: 0;

  color: var(--rebecca-green);
  font-size: clamp(0.82rem, 0.86vw, 0.95rem);
  line-height: 1.55;
  font-weight: 500;
  font-style: italic;
}

/* keine Standard-Blockquote-Striche oder extra Abstände */
.rebecca-about blockquote::after {
  content: none;
  display: none;
}

.rebecca-about blockquote p:last-child {
  margin-bottom: 0;
}

/* =========================================
   Rebecca About Responsive
   ========================================= */

@media (max-width: 991.98px) {
  .rebecca-about .row {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
      "image text"
      "quote quote";
    gap: 1.25rem;
  }

  .rebecca-about .row > [class*="col-"]:nth-child(1) {
    grid-area: image;
    width: 220px;
  }

  .rebecca-about .row > [class*="col-"]:nth-child(2) {
    grid-area: text;
  }

  .rebecca-about .row > [class*="col-"]:nth-child(3) {
    grid-area: quote;
  }

  .rebecca-about blockquote {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .rebecca-about {
    padding: 2.5rem 0;
  }

  .rebecca-about .row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text"
      "quote";

    width: min(100% - 1.5rem, 34rem);
    min-height: 0;
    padding: 1rem;
  }

  .rebecca-about .row > [class*="col-"]:nth-child(1) {
    width: 100%;
  }

  .rebecca-about .row > [class*="col-"]:nth-child(1) .textmedia-gallery {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .rebecca-about .row > [class*="col-"]:nth-child(1) img {
    min-height: 0;
  }

  .rebecca-about blockquote {
    max-width: none;
    min-height: 0;
    padding: 1rem;
  }
}

/* =========================================
   Team Values / Qualitätsleiste
   class="team-values"
   TYPO3 4 Columns
   Aufbau pro Spalte:
   H3 = Überschrift
   P  = Text
   ========================================= */

.team-values {
  --values-bg: #fcfbfa;
  --values-card-bg: #ffffff;
  --values-text: #2f2925;
  --values-green: #164633;
  --values-green-soft: #eef3e8;
  --values-border: rgba(47, 41, 37, 0.1);
  --values-line: rgba(47, 41, 37, 0.13);
  --values-shadow: 0 10px 28px rgba(47, 41, 37, 0.08);

  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: clamp(1.2rem, 2vw, 2rem) 0 clamp(2.5rem, 4vw, 4rem);
  transform: translateX(-50%);
  background: var(--values-bg);
  color: var(--values-text);
  overflow-x: clip;
}

/* TYPO3 Wrapper ruhigstellen */
.team-values .frame,
.team-values .frame-group-container,
.team-values .frame-group-inner,
.team-values .frame-container,
.team-values .frame-inner {
  margin: 0;
  padding: 0;
}

/* Container neutralisieren */
.team-values > .container,
.team-values .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Äußere weiße Box */
.team-values .row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  width: min(100% - 2rem, 1280px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(0.9rem, 1.4vw, 1.15rem);

  border: 1px solid var(--values-border);
  border-radius: 0.95rem;
  background: var(--values-card-bg);
  box-shadow: var(--values-shadow);
}

/* Bootstrap-Spalten neutralisieren */
.team-values .row > [class*="col-"] {
  position: relative;
  width: auto;
  max-width: none;
  flex: none;
  padding: 0 clamp(1rem, 1.5vw, 1.45rem);
  display: flex;
  align-items: center;
}

/* Trennlinien zwischen den Spalten */
.team-values .row > [class*="col-"]:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  right: 0;
  bottom: 0.35rem;
  width: 1px;
  background: var(--values-line);
}

/* Inhalt pro Spalte */
.team-values .row > [class*="col-"] > .frame {
  width: 100%;
}

.team-values .ce-bodytext,
.team-values .textmedia-text {
  position: relative;
  min-height: 4.2rem;
  padding-left: 4.4rem;
}

/* Überschrift */
.team-values h3 {
  margin: 0 0 0.25rem;
  padding: 0;

  color: var(--values-green);
  font-size: clamp(0.95rem, 0.95vw, 1.08rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
}

.team-values h3::after {
  content: none;
  display: none;
}

/* Icon-Kreis */
.team-values h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;

  width: 3.5rem;
  height: 3.5rem;
  transform: translateY(-50%);

  border-radius: 999px;
  background-color: var(--values-green-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 2rem 2rem;
}

/* Text */
.team-values p {
  margin: 0;
  padding: 0;

  color: var(--values-text);
  font-size: clamp(0.78rem, 0.78vw, 0.88rem);
  line-height: 1.35;
  font-weight: 400;
}

/* =========================================
   Icons pro Spalte
   ========================================= */

/* =========================================
   Team Values - bessere Icon-Auswahl
   ========================================= */

/* 1: Qualität, die man spürt - Diamant / Wertigkeit */
.team-values .row > [class*="col-"]:nth-child(1) h3::before {
  background-size: 2.1rem 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.2 9.5H27.8L34 16.8L20 31.5L6 16.8L12.2 9.5Z' stroke='%23164633' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M6 16.8H34' stroke='%23164633' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M12.2 9.5L16.2 16.8L20 31.5L23.8 16.8L27.8 9.5' stroke='%23164633' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M16.2 16.8L20 9.5L23.8 16.8' stroke='%23164633' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 2: Persönlich - Person mit Sprechblase */
.team-values .row > [class*="col-"]:nth-child(2) h3::before {
  background-size: 2.05rem 2.05rem;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='17' cy='14' r='4.4' stroke='%23164633' stroke-width='2.2'/%3E%3Cpath d='M8.5 29.5C9.5 23.8 12.5 21.2 17 21.2C20.1 21.2 22.5 22.5 24 25.2' stroke='%23164633' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M25.5 11.5H30.2C32.1 11.5 33.5 12.9 33.5 14.8V19.1C33.5 21 32.1 22.4 30.2 22.4H28L24.5 25.7V22.4H23.8C21.9 22.4 20.5 21 20.5 19.1V18.5' stroke='%23164633' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M25.2 16.8H29.2' stroke='%23164633' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 3: Erfahren - Medaille / Auszeichnung */
.team-values .row > [class*="col-"]:nth-child(3) h3::before {
  background-size: 2.1rem 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='15.5' r='7.5' stroke='%23164633' stroke-width='2.2'/%3E%3Cpath d='M16.5 22.2L13.5 31.5L20 28.2L26.5 31.5L23.5 22.2' stroke='%23164633' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M20 11.5L21.2 14L24 14.4L22 16.4L22.5 19.2L20 17.8L17.5 19.2L18 16.4L16 14.4L18.8 14L20 11.5Z' stroke='%23164633' stroke-width='1.9' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 4: Verlässlich - Schloss / Sicherheit */
.team-values .row > [class*="col-"]:nth-child(4) h3::before {
  background-size: 2.05rem 2.05rem;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='17' width='20' height='15' rx='3' stroke='%23164633' stroke-width='2.2'/%3E%3Cpath d='M14.5 17V13.5C14.5 10.2 16.9 8 20 8C23.1 8 25.5 10.2 25.5 13.5V17' stroke='%23164633' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='24' r='2' stroke='%23164633' stroke-width='2.2'/%3E%3Cpath d='M20 26V28.5' stroke='%23164633' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1199.98px) {
  .team-values .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
  }

  .team-values .row > [class*="col-"]:nth-child(2)::after {
    display: none;
  }

  .team-values .row > [class*="col-"] {
    padding: 0 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .team-values {
    padding: 2rem 0 3rem;
  }

  .team-values .row {
    grid-template-columns: 1fr;
    width: min(100% - 1.5rem, 34rem);
    gap: 1.15rem;
    padding: 1rem;
  }

  .team-values .row > [class*="col-"] {
    padding: 0;
  }

  .team-values .row > [class*="col-"]::after {
    display: none;
  }

  .team-values .ce-bodytext,
  .team-values .textmedia-text {
    min-height: 3.8rem;
    padding-left: 4rem;
  }

  .team-values h3::before {
    width: 3.15rem;
    height: 3.15rem;
    background-size: 1.8rem 1.8rem;
  }
}