/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
automatische Silbentrennungen, nur bei Absätzen (p)
------------------------------------------------------------------------------------------*/
p {
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
}
a {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  overflow-wrap: normal;
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Abstand Navi zum Seitenrand -> komisch, dass der nicht im Backend eingestellt werden kann
------------------------------------------------------------------------------------------*/
#header {
  margin-top: 2rem;
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Abstand "nach" bei Paragraph
------------------------------------------------------------------------------------------*/
p {
  margin-block-end: 0.7rem !important;
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Hero-Header
------------------------------------------------------------------------------------------*/
.header-1 .headline {
  max-width: 900px;
  margin-left: 300px;
  margin-bottom: 7%;

}
.header-1 h1 {
  position: relative;
  display: inline;
  box-shadow: inset 0 -0.35em 0 var(--theme-palette-color-8); /* fetter Balken unter Text */
}
/* Mobil: kein Einzug */
@media (max-width: 768px) {
  .header-1 h1 {
    margin-left: 0;
  }
}
/* Header-Bild */
.header-1 img {
  border-radius: 2rem;
  aspect-ratio: 2.19;
}
@media (max-width: 768px) {
  .header-1 img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: auto;
  }
}
/* Byline im Bild */
.header-1 {
  position: relative;
}
.header-1 figure.wp-block-pullquote {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    background-color: white;
    padding: 2.5rem 2.5rem;
    border-radius: 1rem;
    border: none;
    max-width: 500px;
    z-index: 2;
    color: var(--theme-palette-color-1);
}
.header-1 figure.wp-block-pullquote p {
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
  }
@media (max-width: 768px) {
  .header-1 figure.wp-block-pullquote {
    position: relative;
    bottom: 0;
    left:  0   
  }
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Intro-Text
------------------------------------------------------------------------------------------*/
.intro {
  margin-top: 5rem !important;
  margin-bottom: 5rem !important;
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Kacheln für Dienstleistungen
------------------------------------------------------------------------------------------*/
.dienstleistungen {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  align-items: stretch; /* gleiche Höhe für alle Kacheln */
}

.dienstleistungen .wp-block-group {
  flex: 1 1 calc((100% - 4rem) / 3);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;     /* Inhalt oben ausrichten */
  justify-content: flex-start; /* Inhalt oben ausrichten */
}

/* Tablet: 2 Spalten */
@media (max-width: 1024px) {
  .dienstleistungen .wp-block-group {
    flex: 1 1 calc((100% - 2rem) / 2);
  }
}

/* Mobile: 1 Spalte & individuelle Höhe */
@media (max-width: 768px) {
  .dienstleistungen {
    display: block; /* Flex auflösen, damit Kacheln wieder normal fließen */
  }

  .dienstleistungen .wp-block-group {
    display: block; /* Kein Flex → Inhalt bestimmt Höhe */
    width: 100%;
    margin-bottom: 2rem; /* Optionaler Abstand */
  }
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Block-Stil Schmaler Container
------------------------------------------------------------------------------------------*/
.block-editor-block-list__block.is-style-container-narrow, .wp-block-group.is-style-container-narrow {
  max-width: 720px;
 	border-radius: 30px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Ansprechpartner-Kacheln
------------------------------------------------------------------------------------------*/
.ansprechpartner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: #fff;
  padding: 2rem;
  align-items: stretch;
}

.ansprechpartner .wp-block-group {
  flex: 1 1 calc((100% - 4rem) / 3); 
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Responsive */
@media (max-width: 1024px) {
  .ansprechpartner .wp-block-group {
    flex: 1 1 calc((100% - 2rem) / 2);
  }
}

@media (max-width: 768px) {
  .ansprechpartner {
    display: block;
  }
  .ansprechpartner .wp-block-group {
    width: 100%;
    margin-bottom: 2rem;
  }
}

/* Bild */
.ansprechpartner img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  max-width: 160px;
}

.ansprechpartner h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Accordion */
.ansprechpartner details {
  width: 100%;
  border: none;
  padding: 0;
  margin-top: 1rem;
  transition: max-height 1.5s ease-in-out;
  overflow: hidden;
  border-radius: 0;
}

.ansprechpartner summary {
  margin: 0;
  list-style: none;
  cursor: pointer;
  padding: 0;
  font-weight: bold;
  color: var(--theme-link-initial-color);
  transition: color 0.3s ease;
}

.ansprechpartner summary::after {
  content: none;
}

.ansprechpartner summary:hover {
  color: var(--theme-link-hover-color, #13191f);
}

/* Animation beim Öffnen */
.ansprechpartner details[open] > div {
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Call to Action
------------------------------------------------------------------------------------------*/
.call-to-action {
  padding: 50px 50px;
  border-radius: 25px;
  background-color: var(--theme-palette-color-1);
  color:white;
  height: 100%;
  align-content: center;
}
.call-to-action p {
  font-size: 1.5rem;
}
.call-to-action a {
  color: white;
  text-decoration: underline;
} 


/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Standard-Akkordeon
------------------------------------------------------------------------------------------*/
details {
  border: 1px solid var(--theme-border-color);
	border-radius: 50px;
	padding: 1.5rem 2rem;
}
summary {
	margin:0 !important;
  list-style: none;       /* Entfernt ::marker */
  cursor: pointer;
  position: relative;
  padding-right: 1.5em;   /* Platz für eigenen Pfeil */
	font-weight:800;
}
details[open] > summary {
	padding-bottom:10px;
}
summary::marker {
  display: none; /* Standard-Pfeil ausblenden*/
}
summary::after { /* Pfeil rechts einbauen zum Öffnen */
  content: '';
  position: absolute;
  top: calc(50% - 2px);
  right: 0;
  width: 0.75rem;
  height: 0.75rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}
.wp-block-details[open] summary::after {
  transform: translateY(-50%) rotate(-135deg);
}

/* Animation beim Öffnen */
details[open] > p {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Standard-Bullet-Points
------------------------------------------------------------------------------------------*/

ul.wp-block-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
ul.wp-block-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}
ul.wp-block-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--theme-palette-color-1);
    font-weight: bold;
}
li a {
	text-decoration: underline;
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
PDF-Download
------------------------------------------------------------------------------------------*/
/* Grid-Layout für PDFs */
.pdf-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}
/* Datei-Block Styling */
.pdf-downloads .wp-block-file {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}
/* PDF-Icon als Background */
.pdf-downloads .wp-block-file::before {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 2H14L20 8V22H4V2Z' fill='%234d6074'/%3E%3Cpath d='M14 2V8H20' fill='none' stroke='white' stroke-width='1'/%3E%3Ctext x='5' y='17' font-size='7' font-family='Arial, sans-serif' font-weight='bold' fill='white'%3EPDF%3C/text%3E%3C/svg%3E");
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Statement 
------------------------------------------------------------------------------------------*/
.statement {
  max-width: 1000px;
  /* padding: 3rem; */
  padding-bottom: 3rem;
  gap: 0;
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}
.statement .wp-block-quote {
  border-left: none;
  max-width: 700px;
}
.statement figure {
  width: 100px;
  aspect-ratio: 1;
}
.statement img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.statement p {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  font-size: clamp(20px, 24px, 24px);
  line-height: 1.5;
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
Media-Text
------------------------------------------------------------------------------------------*/
.wp-block-media-text {
  gap: 3rem;
}
.wp-block-media-text img {
  border-radius: 1.5rem;
}
.wp-block-media-text .wp-block-media-text__content {
  padding: 0 !important;
}

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------------------------------------------------------------------------------------
2er-Spalten
------------------------------------------------------------------------------------------*/
.wp-block-group.zweispaltig {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch; /* ➜ gleiche Höhe */
}
.wp-block-group.zweispaltig > .wp-block-group {
  flex: 1 1 100%;
}
@media (min-width: 768px) {
  .wp-block-group.zweispaltig > .wp-block-group {
    flex: 1 1 calc(50% - 1rem);
  }
}