.footer-bttm ul
{
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.footer-bttm ul li
{
    margin-bottom: 0 !important;
}

.liebe-text
{
    max-width: unset;
    width: 100%;
}

.contact-form form .checkbox input
{
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.checkbox label:before
{
    display: none !important;
}

div.wpforms-container-full:not(:empty)
{
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

div.wpforms-container-full:not(:empty) form
{
    border: none !important;
}

.wpforms-field-email
{
    margin: 0 !important;
    padding: 0 !important;
}

.wpforms-container .wpforms-submit-container button
{
    min-width: 146px !important;
    min-height: 46px !important;
}

.contact-form form input
{
    /* width: calc( - 123px) !important; */
}

.news-text h6,
.contact-form h6
{
    border-bottom: none;
}

.vc_btn3-inline
{
    margin-right: 0;
}

.vc_row.wpb_row.vc_row-fluid.vc_custom_1747687819934.vc_row-has-fill
{
    background-repeat: round no-repeat !important;
}

@media (min-width: 768px) {
    .post-image-left > .wpb-content-wrapper > .vc_row:first-child > .vc_col-sm-12:only-child > .vc_column-inner > .wpb_wrapper:has(> .wpb_single_image:first-child + .wpb_text_column) {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        column-gap: 2rem;
        align-items: start;
    }

    .post-image-left > .wpb-content-wrapper > .vc_row:first-child > .vc_col-sm-12:only-child > .vc_column-inner > .wpb_wrapper > .wpb_single_image:first-child + .wpb_text_column ~ * {
        grid-column: 1 / -1;
    }
}

.custom-logo-link img {
    width: auto;
    height: 90px;
}

blockquote {
    padding-left: 10px;
    border-left: 6px solid var(--primary);

	margin-bottom: 35px;
}

body.search .maincontent article {
  margin-bottom: 35px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin: 2rem 0;
}

.news-grid .news-card {
    width: unset;
}

.pagination-wrapper {
    margin: 3rem 0;
    text-align: center;
}

@media (max-width: 991px) {
  .footer-bttm {
      margin-bottom: 60px
  }

  .banner-area .banner-img {
      max-width: 100%;
      width: 100%;
  }

  .banner-area .banner-text {
      position: relative;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      transform: unset;

      padding: 20px 0;
  }

  #menu {
      padding: 100px 0;
  }

  #menu ul li {
      padding: 0 20px;
  }

  #menu .button {
    padding: 0;
  }

  #menu .button > a {
    background-color: var(--white) !important;
    color: var(--primary) !important;
    border-color: var(--white) !important;
    display: block !important;
    text-align: left !important;
  }
}

/* Parent Page Navigation Button Styles */
.parent-page-navigation {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;

    text-align: center;
}

.parent-page-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    position: relative;

    text-decoration: none !important;
    border-bottom: 0 !important;
}

.parent-page-button:hover {
    color: var(--primary);
    text-decoration: none;
}

.parent-page-button i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.parent-page-button:hover i {
    transform: translateX(-3px);
}

.parent-page-button span {
    transition: transform 0.2s ease;
}

.parent-page-button:hover span {
    transform: translateX(2px);
}

/* Optional: Add a subtle underline animation */
.parent-page-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.2s ease;
}

.parent-page-button:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .parent-page-navigation {
        margin: 1.5rem 0;
    }

    .parent-page-button {
        font-size: 0.9rem;
    }
}

/* Schuljahresarchiv: klare Orientierung und sichtbare Tastaturbedienung. */
.fbs-archive-navigation { margin: 1.5rem 0 2rem; }
.fbs-archive-navigation ul { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; list-style: none; padding: 0; }
.fbs-archive-notice { padding: 1rem; border-left: 4px solid #526391; background: #f5f5f5; }
.fbs-archive-navigation a:focus-visible,
.pages-menu a:focus-visible,
.service-navigation a:focus-visible { outline: 3px solid #526391; outline-offset: 4px; }

/* === Flippable Postcard - Tag der offenen Tür === */
.fbs-flip-card {
  perspective: 1000px;
  max-width: 500px;
  margin: 0 auto;
  cursor: pointer;
}
.fbs-flip-card-inner {
  position: relative;
  width: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
.fbs-flip-card-inner::before {
  content: '';
  display: block;
  padding-top: 141.4%;
}
.fbs-flip-card.flipped .fbs-flip-card-inner {
  transform: rotateY(180deg);
}
@media (hover: hover) {
  .fbs-flip-card:hover .fbs-flip-card-inner {
    transform: rotateY(180deg);
  }
}
.fbs-flip-card-front,
.fbs-flip-card-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.fbs-flip-card-front img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fbs-flip-card-back {
  transform: rotateY(180deg);
  background: var(--primary, #526391);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1.6;
}
.fbs-flip-card-back h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #fff;
}
.fbs-flip-card-back p {
  color: #fff;
  margin-bottom: 0.75rem;
}
.fbs-flip-hint {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #888;
}
@media (max-width: 768px) {
  .fbs-flip-card { max-width: 350px; }
  .fbs-flip-card-back { padding: 1.25rem; font-size: 0.85rem; }
}

/* TdoT Program Placeholder */
.fbs-program-placeholder {
  border: 2px dashed var(--primary, #526391);
  background: #e8edf5;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin: 1rem 0;
}
.fbs-program-placeholder h3 {
  margin-bottom: 0.5rem;
  color: var(--primary, #526391);
}
