/* ============================================================
   CTLS COMPONENT: SEGMENTS
   ============================================================ */
.ctls-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 3rem;
    margin-bottom: 2rem;
}
/* Mobile: zweispaltiges Grid wird einspaltig */
@media (max-width: 995px) {
  .ctls-two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important; /* etwas mehr Abstand für bessere Lesbarkeit */
  }
}
.spec-block h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.spec-block p {
    margin-top: 0;
}

@media (max-width: 900px) {
    .ctls-special-grid {
        grid-template-columns: 1fr;
    }
}
/* 1) Segment ist full-bleed (Hintergrund bis Rand), vertikale Abstände einheitlich */
.segment {
  width: 100%;
  position: relative;
  display: block;
  padding: 5em 0;
}

/* Hintergrundvarianten */
.segment:nth-of-type(odd)  { background: #ffffff; }
.segment:nth-of-type(even) { background: #f2f5f7; }
.segment.white { background: #ffffff; }
.segment.gray  { background: #f2f5f7; }
.segment.fullwidth { padding: 0; }

/* 2) Innerer Container – KEIN Padding hier (kommt zentral aus base.css) */
.segment-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  box-sizing: border-box;
}

/* 3) Text/Bild-Layout */
.segment .text-left,
.segment .text-right,
.segment .image-left,
.segment .image-right {
  float: left;
  width: calc(48% - 10px);
  box-sizing: border-box;
}
.segment .image-right,
.segment .text-right { float: right; }
.text-left,
.text-right { text-align: left !important; }

/* 4) Schattenbild */
.segment-image-shadow {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: bottom;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  margin-bottom: 2em;
  
}
.segment-image-shadow.segment-image-original {
  width: auto !important;
  max-width: 100% !important;
  height: 450px !important;
  object-fit: contain !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.segment-image-shadow.segment-image-crop {
  width: 100% !important;
  height: 450px !important;
  object-fit: cover !important;
}

/* Text full-width wenn kein Bild */
.segment .text-left:only-child,
.segment .text-right:only-child {
  width: 100% !important;
  float: none !important;
  padding-right: 0 !important;
}

/* 5) Utilities */
.award-hero-img { width: 410px !important; height: auto !important; }
.no-shadow { box-shadow: none !important; border-radius: 0 !important; }
.contain { object-fit: contain !important; background: #000; }

/* 6) Mobile */
@media (max-width: 768px) {
  .segment { padding: 2.5em 0; }

  .segment-inner {
    display: flex;
    flex-direction: column; /* kein Padding hier! */
  }

  .text-left, .text-right { order: 1; }
  .image-left, .image-right { order: 2; }

  .segment .text-left,
  .segment .text-right,
  .segment .image-left,
  .segment .image-right {
    float: none; width: 100%;
  }

  .segment-image-shadow { height: 250px; }
  .segment-image-shadow.segment-image-crop { height: 250px!important; }
.segment-image-shadow.segment-image-original { height: auto; max-height: 300px!important; }
}

/* ==========================================
   CTLS MINI-TILES (Training & Events)
   ========================================== */

.ctls-mini-tiles-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    margin-top: 1.5em;
}

/* TILE – auto width, aber flexible Struktur */
.ctls-mini-tile {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(25% - 1.2em);   /* 4 Tiles pro Reihe */
    min-width: 200px;              /* verhindert zu kleine Kacheln */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all .2s ease;
    position: relative;
}

/* Hover */
.ctls-mini-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Bild oben – ohne Padding */
.ctls-mini-tile-img {
    width: 100%;
    height: 90px;                 /* fixe Höhe */
    overflow: hidden;
}

.ctls-mini-tile-img-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Content-Bereich – bekommt Padding */
.ctls-mini-tile-content {
    padding: 0.9em 1em 1em;
}

/* Text */
.ctls-mini-tile-title {
    font-weight: 600;
    margin-bottom: .3em;
    color: #1a1a1a;
    line-height: 1.3;
}

.ctls-mini-tile-date {
    color: #666;
    font-size: .95em;
    margin-bottom: 0em;
}

.ctls-mini-tile-cat {
    font-size: .85em;
    color: #004f9e;
    font-weight: 500;
    margin-bottom: .4em;
}

.ctls-mini-tile-ort {
    font-size: .85em;
    color: #555;
    margin-bottom: .4em;
}

.ctls-mini-tile-linktext {
    margin-top: .6em;
    font-size: .95em;
    font-weight: 600;
    color: #004f9e;
}

/* Klickfläche */
.ctls-mini-tile-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 3;
    text-indent: -9999px;
}

/* ============================================================
   CTLS SEGMENT: Ansprechpartner (Statement + Kreisakzent)
   ============================================================ */

.segment-ansprechpartner {
  position: relative;

}

.segment-ansprechpartner .ansprechpartner-wrapper {
  display: flex;
  align-items: center;
  gap: 3em;
  flex-wrap: wrap;
}

.segment-ansprechpartner .ansprechpartner-image {
  position: relative;
  flex: 1 1 250px;
  text-align: center;
}

.segment-ansprechpartner .ansprechpartner-image img {
  width: 260px;
  height: auto;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Blauer Kreis hinter dem Bild */
.segment-ansprechpartner .blue-circle {
position: absolute;
top: -20px;
left: 10px;
width: 120px;
height: 120px;
background: #0077cc;
border-radius: 50%;
opacity: 0.09;
z-index: 1;
}

.segment-ansprechpartner .ansprechpartner-text {
  flex: 2 1 420px;
  position: relative;
}

.segment-ansprechpartner blockquote {
  font-style: italic;
  font-size: 1.25em;
  color: #333;
  border-left: 4px solid #0077cc;
  padding-left: 1em;
  margin-bottom: 1.2em;
  line-height: 1.5;
}

.segment-ansprechpartner .person {
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.segment-ansprechpartner .contact a {
  color: #0077cc;
  text-decoration: none;
}

.segment-ansprechpartner .contact a:hover {
  text-decoration: underline;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
  .segment-ansprechpartner .ansprechpartner-wrapper {
    flex-direction: column;
    text-align: left;
  }

  .segment-ansprechpartner .ansprechpartner-text {
    margin-top: 1.5em;
  }

  .segment-ansprechpartner blockquote {
    border-left: none;
    border-top: 4px solid #0077cc;
    padding-top: 0.8em;
  }

  .segment-ansprechpartner .blue-circle {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 768px) {

  /* Abstand des Textbereichs mobil entfernen */
  .segment-ansprechpartner .ansprechpartner-text {
    margin-top: 0em !important;
  }

  /* Blockquote mobil kleiner + linksbündig */
  .segment-ansprechpartner blockquote {
    font-size: 1rem !important;
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* Person mobil kleiner + linksbündig */
  .segment-ansprechpartner .person {
    font-size: 1rem !important;
    text-align: left !important;
  }

  /* Kontakt mobil kleiner + linksbündig */
  .segment-ansprechpartner .contact {
    font-size: 1rem !important;
    text-align: left !important;
  }

}
@media (max-width: 768px) {
  .segment-ansprechpartner .ansprechpartner-image img {
    margin-top: 1rem;
  }
}
@media (max-width: 768px) {
  .segment-ansprechpartner .blue-circle {
    display: none !important;
  }
}
/* --- Schatten darf nicht abgeschnitten werden --- */
.segment .image-left,
.segment .image-right {
  overflow: visible !important; /* Schatten kann außerhalb gerendert werden */
  position: relative;
  z-index: 1;
}
/* ============================================================
   4b) Zentrierte Segmente (align="center")
   ============================================================ */
.segment .segment-inner.text-center {
  text-align: center !important;
}

.segment .segment-inner.text-center .segment-text {
  float: none !important;
  width: 100% !important;
  max-width: 900px;       /* Optional, für bessere Lesbarkeit */
  margin: 0 auto !important;
}

.segment .segment-inner.text-center h2,
.segment .segment-inner.text-center p,
.segment .segment-inner.text-center a {
  margin-left: auto !important;
  margin-right: auto !important;
}
/* ============================================================
   FIX: Normale Segmentbilder auf 16:9 Verhältnis setzen
   ============================================================ */

.segment-image-shadow.segment-image-crop {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover !important;
}

.segment-image-shadow.segment-image-original {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
/* Zweispaltige Listen in Segmenten */
.segment .ctls-two-col-list {
  -webkit-columns: 2;
  -moz-columns: 2;
  columns: 2;
  column-gap: 2.5rem;
  padding-left: 1.2rem;
}

/* Mobil wieder einspaltig */
@media (max-width: 768px) {
  .segment .ctls-two-col-list {
    -webkit-columns: 1;
    -moz-columns: 1;
    columns: 1;
  }
}
/* CEO Segment */
.ceo-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

.ceo-box {
  flex: 1 1 300px;
  max-width: 500px;
}

.ceo-img {
  width: 100%;
  max-width: 260px;
  border-radius: 6px;
  display: block;
  margin-bottom: 1rem;
}

.ceo-box h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
}

.ceo-box p {
  line-height: 1.55;
}

/* Mobil 1 Spalte */
@media (max-width: 768px) {
  .ceo-wrapper {
    flex-direction: column;
  }
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.specialization-item {
    text-align: center;
    padding: 1rem;
}

.specialization-item strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.specialization-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.45;
}

/* Placeholder icon – wird später durch echte SVGs ersetzt */
.spec-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.8rem;
}

.placeholder-icon {
    background: #ddd;
    border-radius: 8px;
}
/* ============================================================
   MOBILE: Ansprechpartner-Text soll kein Flex mehr nutzen
   ============================================================ */
@media (max-width: 995px) {
  .segment-ansprechpartner .ansprechpartner-text {
    flex: none !important;       /* Flex deaktivieren */
    width: 100% !important;      /* volle Breite */
    max-width: 100% !important;  /* Sicherheit */
  }
}