/* --- Basis-Styling --- */

/* --- Seitentitel im Backend reduzierter darstellen --- */
.edit-post-visual-editor__post-title-wrapper .editor-post-title {
  font-size: 24px !important;
  color: rgba(0, 0, 0, 0.436) !important;
}

/*--- Block deaktivieren: Frontend-Anzeige -> Backend-Anzeige wird in functions.php geandelt ---*/
.is-style-block-deactivated {
	display:none;
}

/* --- Abstand Navi zum Seitenrand --- */
#header {
  margin-top: 2rem;
}

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

/* --- Header 1 --- */
.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);
}
@media (max-width: 768px) {
  .header-1 figure.wp-block-pullquote {
    position: relative;
    bottom: 0;
    left:  0   
  }
}

/* --- Dienstleistungskacheln --- */
/* Container: flex mit Umbruch */
.dienstleistungen {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}
/* Kacheln: exakt 2 pro Zeile */
.dienstleistungen .wp-block-group {
  flex: 0 1 calc(50% - 1rem); /* 2 Spalten mit Abstand */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Mobile: 1 pro Zeile */
@media (max-width: 768px) {
  .dienstleistungen .wp-block-group {
    flex: 0 1 100%;
  }
}

/* --- 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 .is-layout-flex > :is(*, div) {
  background-color: red;
  max-width: 440px;
  border-radius: 25px;
  padding: 1rem;
}

/* --- Call to Action --- */
.call-to-action {
  padding: 50px 50px;
  border-radius: 25px;
  background-color: var(--theme-palette-color-1);
  color:white;
}


/*--- 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);
}

/* --- Standard-Bullet-Points --- */
ul.standard_bullets {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
ul.standard_bullets li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}
ul.standard_bullets li::before {
    content: "–";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--theme-palette-color-1);
    font-weight: bold;
}

li a {
	text-decoration: underline;
}