/*
Theme Name: Mantix 3.2
Theme URI:  https://example.com/mantix-simple
Author: Tilmann Klein
Description: A lightweight WordPress theme
Version: 1.1.1
License: GNU GPL v2 or later
Text Domain: mantix-simple
*/

/* 1. Google Font – Barlow (ESV München CI) */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Barlow+Condensed:wght@600;700&display=swap');
*{

}
.hide{
	display: none !important;
}
html {
    height: 100%;
}
body {
    margin: 0;
    padding-top: 0;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 17px;
    color: #0e2f61;
    line-height: 1.6;
    background-color: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
#page-wrap {
    flex: 1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0e2f61;
    padding: 14px 0;
    border-bottom: none;
    z-index: 10000;
}
#main-page-container{
  min-height: 900px;
}
.nav-container {
    max-width: 99960px;
    margin: 0 auto;
    padding: 0 80px !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.logo{
    top: 0px !important;
    position: relative !important;
}
.logo a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.2rem;
}
.logo img {
    max-height: 132px;
    height: auto;
    width: auto;
}

/* Links und Navigation */
a,
.nav-menu a {
    color: #1e5faa;
    text-decoration: none;
    font-weight: 500;
}
a:hover,
.nav-menu a:hover {
    text-decoration: underline;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', Arial, sans-serif;
    font-weight: 600;
    padding-bottom: 0;
    margin-bottom: 0.4em;
    margin-top: 1.2em;
}
h1, h2 { color: #0e2f61; }
h3, h4  { color: #1e5faa; }
h5, h6  { color: #4a85c2; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.1rem; }
h1:first-child, h2:first-child, h3:first-child {
    margin-top: 0;
}
.image-caption-block{
  
}
.image-caption-block figure {
  border: none;
  position: relative;
  padding: 20px 4%;
  background: #e2ebf3;
  min-height: 400px;
  display: flex;
  border-radius: 3px;
  margin-bottom: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.image-caption-block figcaption {
  background: #8aae9e;
  min-height: 180px;
  padding: 10px;
  font-size: 14px;
  width: 100%;
  margin: 0;
  border-radius: 3px;
  box-sizing: border-box;
  color: #ffffff;
}
/* Hero-Bereich */
.hero {
    background-color: #fff;
    padding: 100px 20px;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Button-Hintergründe */
.button-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #8b0d3a;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-family: 'Barlow', Arial, sans-serif;
    font-weight: 600;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.17);
}
.jumbo-image>*{
      border-radius: 0px;
    overflow: hidden;
    background: #e2ebf3;
    padding: 50px;
}
.startpage-hl{
color: #0e2f61;
    top: -10px;
    background: #ffffff;
    border: 0px solid gray;
}


.button-primary:hover {
   
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
/* White card look only for page content containers */
#page-wrap > .container,
.bak-boxes {
    background: #fff;
    border-radius: 6px;
}
/* Remove card look from footer containers */
.site-footer .container {
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.footer {
    background-color: #fff;
    padding: 0 40px !important;
    text-align: center;
    font-size: 0.9rem;
    color: #0e2f61;
    font-family: 'Barlow', Arial, sans-serif;
}

/* Ende style.css */
.boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 960px;

  }
  
  .box {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 7px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
  }
  
  .box img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .box h3 {
    margin: 16px;
    font-size: 1.25rem;
    color: #0e2f61;
  }
  
  .box p {
    margin: 0 16px 16px;
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .box:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  }
  .site-header {
    background-size: cover;
    background-position: 50% center;
  }
.container{
		 padding: 100px 50px 50px 20px;
}
/* Gallery Styles */
.gallery-container {

  position: relative;
  width: 100%;
  height: calc(100dvh - 0px);
  overflow: hidden;
}
.site-header {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 110px;
  box-sizing: border-box;
}
.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.gallery-slide.active {
  opacity: .5;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 9999;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.5);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-nav svg {
  fill: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* ------------------------------
   Front page: transparent header, hero logo card
------------------------------ */
.home .header {
  background: transparent !important;
  box-shadow: none;
  border-bottom: none;
}
.home .header .logo {
  display: none;
}
.home .header .nav-container {
  justify-content: flex-end;
}

body:not(.home) {
  padding-top: 80px;
}

/* Hero logo: no background, floats over photo */
.hero-logo {
  position: absolute;
  top: 35px;
  left: 24px;
  z-index: 100;
}
.hero-logo img {
  display: block;
  width: 140px;
  height: auto;
}
@media (max-width: 600px) {
  .hero-logo {
    top: 10px;
    left: 10px;
  }
  .hero-logo img {
    width: 100px;
  }
}

/* ------------------------------
   Hero Photo + Overlay + News Strip
------------------------------ */
.hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.hero-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}
.hero-news-strip {
  width: 100%;
  background: linear-gradient(120deg, #7a0a30 0%, #8b0d3a 55%, #9e1545 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 14px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  flex-wrap: wrap;
}
.hero-news-title {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  flex: 1 1 300px;
  letter-spacing: -0.01em;
}
.hero-news-link {
  display: inline-block;
  background: rgb(255 255 255 / 0%);
  border: 1px solid rgb(138 13 58);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 22px;
  top: 8px;
  position: relative;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.hero-news-link:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
  text-decoration: none;
}
.news-tag {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: center;
}
@media (max-width: 768px) {
  .hero-news-strip {
    padding: 18px 20px;
  }
  .hero-news-title {
    font-size: 1.2rem;
  }
}



/* ------------------------------
   SVG-Wellenanimation (Hero-Trenner)
------------------------------ */
	:root {
  --wave-speed: 15s;
}

.parallax > use:nth-child(1) {
  animation-delay: calc(var(--wave-speed) * -0.4);
  animation-duration: var(--wave-speed);
}
.parallax > use:nth-child(2) {
  animation-delay: calc(var(--wave-speed) * -0.6);
  animation-duration: calc(var(--wave-speed) * 1.4);
}
.parallax > use:nth-child(3) {
  animation-delay: calc(var(--wave-speed) * -0.8);
  animation-duration: calc(var(--wave-speed) * 1.8);
}
.parallax > use:nth-child(4) {
  animation-delay: calc(var(--wave-speed) * -1);
  animation-duration: calc(var(--wave-speed) * 2.5);
}
	
	
	
	
.waves {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 200px;
  min-height: 100px;
  max-height: 150px;
  margin-bottom: -7px; /* Safari-Fix */
  border: 0 solid red;
}
.parallax > use {
  animation: move-forever 300s cubic-bezier(.55,.5,.45,.5) infinite;
}


@keyframes move-forever {
  0%   { transform: translate3d(-90px,0,0); }
  100% { transform: translate3d(85px,0,0); }
}

/* Mobile-Fallback */
@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }
}

/* ------------------------------
   Hero-Overlay (Textbox mit CTA)
------------------------------ */
.hero-overlay {
  position: relative !important;
  z-index: 50;
  max-width: 860px;
  min-width: 320px;
  width: 90%;
}
.hero-overlay > div {
  background: rgb(255 255 255 / 28%);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 44px 52px 15px;
  margin-top: -100px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
}

/* Überschrift */
.hero-title {
  margin: 0 0 16px 0;
  background: linear-gradient(180deg, #3a7fc1 0%, #0e2f61 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: left;
  font-weight: 800;
  line-height: 1.15;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

/* Unterzeile */
.hero-subtitle {
  margin: 0 0 32px 0;
  text-align: left;
  font-size: 1.1rem;
  color: #3a4a60;
  line-height: 1.55;
}

/* CTA-Buttons */
.hero-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Mobile hero overlay: hidden by default, shown only on small screens */
.hero-overlay-mobile {
  display: none;
  padding: 24px 20px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  width: 100%;
  box-sizing: border-box;
}
.hero-overlay-mobile .hero-title {
  font-size: 44px;
  margin-bottom: 12px;
  color: #fff;
}
.hero-overlay-mobile .hero-subtitle {
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.hero-overlay-mobile .hero-cta {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

@media (max-width: 768px) {
  .hero-overlay { display: none; }
  .hero-overlay-mobile { display: block; }
}

@media (max-width: 480px) {
  .site-header {
    padding-top: 70px;
  }
  .hero-overlay > div {
    padding: 22px 18px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}
.btn {

	  display: block;

  gap: 0.5rem;
  min-width: 160px !important;

  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background-color 0.3s, color 0.3s, transform 0.15s ease;
}
.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
#page-id-374 h2{
  color: #fff !important;
}
.wpforms-field-container{
background: #0e2f61 !important;
border-radius: 3px !important;
padding: 0px !important;
}
.wpforms-field-container input[type="email"],
.wpforms-field-container input[type="text"],
.wpforms-field-container textarea {
    color: #fff !important;
    border: 1px solid #ffffff !important;
    background: #0e2f61 !important;
}




.wpforms-field-container label{
  color: #fff !important;
}
.btn-primary,
#wpforms-submit-483
{
  min-width: 120px;
  padding: 12px 20px;
  color: #fff;
  font-size: 24px;
  transition: transform 0.15s ease, background-color 0.2s ease;
  background: linear-gradient(120deg, #7a0a30 0%, #8b0d3a 55%, #9e1545 100%);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.17);
  border: 0px !important;
  border-radius: 3px;
  text-align: center;
}
.btn-special{
  background: #8b0d3a;
  color: #fff;
}

.btn-primary:hover,
#wpforms-submit-483:hover {
  filter: brightness(1.2);
  transform: scale(1.03);
}

.btn-special:hover{
  filter: brightness(1.2);
  color: #fff;
}
.btn-secondary {
  background-color: #ffffff;
  color: #0e2f61;
  border: 1px solid #cfd5dd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.btn-secondary:hover {
  background-color: #e2ebf3;
  color: #0e2f61;
}

/* Pfeil-/Link-Icons */
.icon-arrow-right,
.icon-external-link {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.btn-primary:hover .icon-arrow-right,
.btn-secondary:hover .icon-external-link {
  transform: translateX(4px) scale(1.05);
}

/* Responsive Titel & CTA */
@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.25rem; }
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 4rem; }
}
/*550*/
	@media (min-width: 1200px) {
		.container{
		 padding: 50px 20px !important;
		}


}

/* ------------------------------
   Burger Menu
------------------------------ */

/* Page wrap transition for slide effect */
#page-wrap {
  position: relative;
  transition: transform 0.3s ease;
}
#page-wrap.menu-open {
  transform: translateX(-280px);
}

/* Header buttons wrapper */
.header-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  z-index: 1100;
  position: relative;
  padding: 10px 15px 15px;
}

/* Header Anmeldung button — same style as burger, red bg */
.header-anmeldung-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(120deg, #7a0a30 0%, #8b0d3a 55%, #9e1545 100%);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 7px rgba(0,0,0,0.17);
  transition: filter 0.15s ease;
}
.header-anmeldung-btn:hover {
  filter: brightness(1.2);
  color: #fff;
}

/* Burger toggle button */
#burger-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  z-index: 1100;
  position: relative;
}
#burger-toggle .burger-label {
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
#burger-toggle .burger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#burger-toggle .burger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Burger → X animation */
#burger-toggle.is-active .burger-lines .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#burger-toggle.is-active .burger-lines .burger-line:nth-child(2) {
  opacity: 0;
}
#burger-toggle.is-active .burger-lines .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Off-canvas menu panel */
#burger-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #0e2f61 0%, #1a4a8a 100%);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 164px 0 40px;
  box-sizing: border-box;
}
#burger-menu.is-open {
  transform: translateX(0);
}

.burger-menu-inner {
  padding: 0 24px;
}

/* Menu list styling */
.burger-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.burger-menu-list li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.burger-menu-list li a {
  display: block;
  padding: 14px 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.burger-menu-list li a:hover {
  color: #cfd5dd;
  text-decoration: none;
}

/* Nested sub-menu */
.burger-menu-list .sub-menu {
  list-style: none;
  padding-left: 16px;
  margin: 0;
}
.burger-menu-list .sub-menu li a {
  font-size: 0.95rem;
  padding: 10px 0;
}

/* Overlay behind the menu when open */
#burger-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
}
#burger-overlay.is-visible {
  display: block;
}

/* ------------------------------
   Hero animated SVG background
------------------------------ */
.hero-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.site-header .hero-overlay {
  z-index: 10;
}

/* ------------------------------
   Table styles – wie Boxen, responsiv
------------------------------ */

/* Wrapper: scrollbar nur wenn nötig, kein seitliches Page-Scrollen */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.8em 0;
  border-radius: 12px;
  border: 1px solid #d0d8e8;
}

.table-wrap table,
.container table,
.entry-content table,
.bak-boxes table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  margin: 0;
  border: none;
}

/* Header */
.table-wrap table thead th,
.container table thead th,
.entry-content table thead th,
.bak-boxes table thead th {
  background: #e6ecf5;
  color: #0e2f61;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 1rem;
  line-height: 2.2rem;
  text-align: left;
  border: none;
  white-space: nowrap;
}
.table-wrap table thead th:first-child,
.container table thead th:first-child,
.entry-content table thead th:first-child,
.bak-boxes table thead th:first-child { border-radius: 5px 0 0 5px; }
.table-wrap table thead th:last-child,
.container table thead th:last-child,
.entry-content table thead th:last-child,
.bak-boxes table thead th:last-child  { border-radius: 0 5px 5px 0; }

/* Tbody */
.table-wrap table tbody td,
.container table tbody td,
.entry-content table tbody td,
.bak-boxes table tbody td {
  padding: 0.65rem 1rem;
  border: none;
  border-bottom: 1px solid #e4e8ef;
  vertical-align: top;
}
.table-wrap table tbody td:first-child,
.container table tbody td:first-child,
.entry-content table tbody td:first-child,
.bak-boxes table tbody td:first-child {
  font-weight: 600;
  color: #1e5faa;
}
.table-wrap table tbody tr:hover td,
.container table tbody tr:hover td,
.entry-content table tbody tr:hover td,
.bak-boxes table tbody tr:hover td    { background: #f5f8fc; }
.table-wrap table tbody tr:last-child td,
.container table tbody tr:last-child td,
.entry-content table tbody tr:last-child td,
.bak-boxes table tbody tr:last-child td { border-bottom: none; }

/* ── Mobiles Stacking (< 560 px) ── */
@media (max-width: 560px) {
  .table-wrap {
    border: none;
    box-shadow: none;
    background: transparent;
    overflow-x: visible;
  }

  .table-wrap table thead { display: none; }

  .table-wrap table,
  .table-wrap table tbody,
  .table-wrap table tr,
  .table-wrap table td {
    display: block;
    width: 100%;
  }

  .table-wrap table tbody tr {
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid #d0d8e8;
    overflow: hidden;
  }

  .table-wrap table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #d0d8e8;
    text-align: right;
  }
  .table-wrap table tbody tr:last-child td:last-child { border-bottom: none; }

  /* Spaltenbezeichnung links */
  .table-wrap table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #0e2f61;
    text-align: left;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* ==============================
   Aufgelockertes Design
   ============================== */

/* Mehr Weißraum im Content-Bereich */
#page-wrap > .container,
.bak-boxes {
  padding: 48px 56px;
}
@media (max-width: 768px) {
  #page-wrap > .container,
  .bak-boxes {
    padding: 32px 24px;
  }
}

/* Absätze: mehr Luft */
.bak-boxes p,
.entry-content p {
  margin-bottom: 1.1em;
  line-height: 1.8;
}

/* Listen: mehr Luft */
.bak-boxes ul,
.bak-boxes ol,
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}
.bak-boxes li,
.entry-content li {
  margin-bottom: 0.55em;
  line-height: 1.75;
}

/* H1/H2: Normal blue headlines */
.bak-boxes h1,
.entry-content h1,
.bak-boxes h2,
.entry-content h2 {
  display: block;
  margin-bottom: 0.6em;
  padding: 0;
  line-height: 1.3;
  border-bottom: none;
  color: #0e2f61;
  border-radius: 0;
  background: none;
}

.bak-boxes h1,
.entry-content h1 {
  margin-top: 0.4em;
  margin-bottom: 40px;
}

.bak-boxes h2,
.entry-content h2 {
  margin-top: 2em;
}
.bak-boxes h2:first-child,
.entry-content h2:first-child {
  margin-top: 0.4em;
}

/* ── Innenseiten: kompakter Header, Logo ragt nach unten heraus ── */
body:not(.home) .header {
  height: 64px;
  padding: 0;
  overflow: visible;
  display: flex;
  align-items: stretch;
  border-bottom: none !important;
}
body:not(.home) .nav-container {
  align-items: center;
  width: 100%;
}
body:not(.home) .logo {
  display: flex;
  align-items: flex-start;
  background: #0e2f61;
  padding: 12px 28px 22px;
  margin-right: 20px;
  border-radius: 0 0 12px 12px;
  align-self: flex-start;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  position: relative;
  z-index: 10001;
}
body:not(.home) .logo img {
  max-height: 110px;
  filter: none;
  position: relative;
  z-index: 10001;
}
@media (min-width: 681px) {
  body:not(.home) .logo {
    padding: 10px 22px 18px;
    margin-right: 16px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.28);
  }
  body:not(.home) .logo img {
    max-height: 88px;
  }
}
@media (max-width: 680px) {
  /* Align nav to content left edge */
  body:not(.home) .nav-container {
    padding-top: 6px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Logo badge: 20% × 1.15 bigger, 12px margin-top, logo vertically centered */
  body:not(.home) .logo {
    padding: 12px 16px;
    margin-top: 12px;
    margin-left: 20px;
    margin-right: 0;
    align-items: center;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  }

  body:not(.home) .logo img {
    max-height: 61px;     /* 53px × 1.15 */
  }
}

/* Spalten-Boxen: farbig hinterlegt, gerundet, Abstand */
.wp-block-columns {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 18px !important;
  margin-top: 1.2em;
  margin-bottom: 2em;
}

/* ── Basis: alle Spalten-Boxen ── */
.wp-block-column {
  flex: 1 1 200px !important;
  border-radius: 12px;
  padding: 22px;
  line-height: 1.75;
  background: #fff;
  position: relative;
  box-shadow: 0 2px 10px rgba(14, 47, 97, 0.07);
  overflow: hidden;
  border: 1.5px solid #d0d8e8;
}

/* H3 als erstes Kind → normale blaue Überschrift */
.wp-block-column > .wp-block-heading:first-child,
.wp-block-column > h3:first-child {
  color: #0e2f61;
  margin-bottom: 0.6em;
  font-size: 1.2rem;
}

/* H3 nicht als erstes Kind → normal (z.B. Team-Cards nach Foto) */
.wp-block-column h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  color: #0e2f61;
  font-size: 1.1rem;
}

/* ── Team-Cards: Foto oben, kein farbiger Header ── */
.team-cards .wp-block-column {
  padding: 0;
}
.team-cards .wp-block-column::before {
  display: none !important;
}
.team-cards .wp-block-column figure {
  margin: 28px auto 0;
  width: 140px;
  height: 140px;
}
.team-cards .wp-block-column figure img {
  width: 140px;
  height: 140px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid #d0d8e8;
}
.team-cards .wp-block-column h3,
.team-cards .wp-block-column .wp-block-heading {
  color: #0e2f61 !important;
  margin: 0 !important;
  padding: 14px 18px 4px !important;
  height: auto !important;
  display: block !important;
  text-align: center !important;
  font-size: 1.15rem !important;
  position: static !important;
  z-index: auto !important;
}
.team-cards .wp-block-column p {
  padding: 0 18px 20px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

/* ── Crew Grid ── */
.kib-crew-wrap {
  background: #e6ecf5;
  padding: 32px 28px 28px;
  margin: 1.5em 0 2em;
}
.kib-crew-wrap__title {
  color: #0e2f61;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
}
.kib-crew-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.kib-crew-card {
  background: #fff;
  border-radius: 0;
  border-top: 3px solid #0e2f61;
  padding: 28px 18px 20px;
  text-align: center;
}
.kib-crew-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #d0d8e8;
  display: block;
  margin: 0 auto 16px;
  object-fit: cover;
}
.kib-crew-card h4 {
  color: #0e2f61;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.kib-crew-card p {
  color: #a7a7a5;
  font-size: 0.92rem;
  margin: 0;
}
@media (max-width: 600px) {
  .kib-crew-grid { grid-template-columns: 1fr; }
}

/* CTA-Button: etwas mehr Luft oben */
.bak-boxes .wp-block-buttons,
.entry-content .wp-block-buttons {
  margin-top: 2.4em;
}
.wp-block-button__link,
.wp-element-button {
  padding: 13px 30px !important;
  font-size: 1rem;
  border-radius: 8px !important;
}

/* Intro-Absatz: leicht hervorgehoben */
.bak-boxes p:first-of-type,
.entry-content p.intro-text {
  font-size: 1.08rem;
  color: #0e2f61;
  line-height: 1.85;
}

/* ==============================
   Hero Bottom: Stats + News Strip
   ============================== */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 15;
  /* small buffer so overflow:hidden never clips the bottom edge */
  transform: translateY(0);
}
.hero-stat-strip {
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: transparent;
  padding: 18px 80px;
  box-sizing: border-box;
}
.hero-stat-strip .stat-item {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 4px 20px;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.hero-stat-strip .stat-item:last-child {
  border-right: none;
}
@media (max-width: 768px) {
  .hero-stat-strip {
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  .hero-stat-strip .stat-item {
    flex: 1 1 50%;
    max-width: 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 6px 8px;
  }
  .hero-stat-strip .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.15);
  }
  .hero-stat-strip .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .stat-num {
    font-size: 2.2rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
}

/* ==============================
   News Box (Startseite)
   ============================== */
.news-section {
  background: #fff;
  border-top: 4px solid #8b0d3a;
  padding: 32px 20px;
}
.news-section-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
}
.news-tag {
  display: inline-block;
  background: #8b0d3a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: center;
}
.news-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: #0e2f61;
  flex: 1 1 300px;
}
.news-title a {
  color: #0e2f61;
  text-decoration: none;
}
.news-title a:hover {
  text-decoration: underline;
}
.news-excerpt {
  flex: 1 1 100%;
  color: #0e2f61;
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 6px 0 10px;
  opacity: 0.85;
}
.news-excerpt p { margin: 0; }
.news-more {
  color: #8b0d3a;
  font-weight: 500;
  font-size: 0.93rem;
  text-decoration: none;
}
.news-more:hover {
  text-decoration: underline;
  color: #6b0a2e;
}

/* ==============================
   Stats Strip (Startseite)
   ============================== */
.stat-strip {
  background: linear-gradient(120deg, #0c2650 0%, #0e2f61 50%, #1a4a8a 100%);
  padding: 36px 20px;
}
.stat-strip-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.stat-item {
  flex: 1 1 160px;
  padding: 12px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  display: block;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 3.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.stat-label {
  display: block;
  color: #fff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
@media (max-width: 600px) {
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    flex: 1 1 50%;
    padding: 16px 12px;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.12);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
}

/* ==============================
   CTA Strip (Startseite)
   ============================== */
.cta-strip {
  padding: 0 20px 40px;
  text-align: center;
  background: none;
}
.cta-strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  background: #8b0d3a;
  padding: 52px 40px;
  border-radius: 12px;
}
.cta-strip-text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}
.btn-cta-strip {
  display: inline-block;
  background: #fff;
  color: #8b0d3a;
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-cta-strip:hover {
  background: #f5e6ec;
  color: #6b0a2e;
  text-decoration: none;
  transform: scale(1.03);
}

/* ==============================
   Fröhlicheres Design – KiBelino
   Mehr Farbe, mehr Energie
   ============================== */

:root {
  --kib-sun:      #f0b429;  /* Sonnengelb        */
  --kib-mint:     #8aae9e;  /* Mint              */
  --kib-red:      #8b0d3a;  /* Rot / CTA         */
  --kib-blue:     #0e2f61;  /* Primärblau bold   */
  --kib-blue-mid: #1e5faa;  /* Mittleres Blau    */
  --kib-blue-lt:  #4a85c2;  /* Helles Blau       */
  --bg-blue:      #e6ecf5;  /* Blau Tint BG      */
  --bg-mint:      #e8f3f0;
  --bg-red:       #f5e6ec;
}

/* ── Stat-Zahlen: Weiß ── */
.stat-num {
  color: #fff;
}

/* ── Spalten-Boxen: Header-Farben (dezent) – via ::before in Basisstil ── */

/* H3 in Spalten: Farbe via Basisstil geregelt */

/* ── Buttons ── */
.btn,
.btn-primary,
.btn-special,
.btn-secondary,
.btn-cta-strip,
.wp-block-button__link,
.wp-element-button {
  border-radius: 6px !important;
}

/* ── Burger-Nav: Sonnengelb beim Hover ── */
.burger-menu-list li a:hover {
  color: var(--kib-sun) !important;
  text-decoration: none;
}

/* ── Aktiver Menüpunkt: Mint ── */
.burger-menu-list .current-menu-item > a,
.burger-menu-list .current-page-item > a {
  color: var(--kib-mint);
  font-weight: 700;
}

/* ── Inner-Page Header: Mint-Balken unten ── */
.header {
  border-bottom: 3px solid var(--kib-mint);
}
.home .header {
  border-bottom: none !important;
}

/* ── Hero Stat Strip: transparent wie zuvor ── */
.hero-stat-strip {
  background: transparent;
}

/* ── News-Tag: Pill-Form ── */
.news-tag {
  border-radius: 20px;
}


/* ── Innenseiten: farbiger Akzentbalken oben am Inhalt ── */
#page-wrap > .container,
.bak-boxes {
  border-top: 4px solid var(--kib-mint);
  border-radius: 0 0 8px 8px;
}

/* ── CTA Strip: Gradient auf inner-Box ── */
.cta-strip-inner {
  background: linear-gradient(120deg, #6b0a2e 0%, #8b0d3a 50%, #9e1040 100%);
}

/* ==============================
   Startseite: Programme + Vorteile
   ============================== */

/* ── Gemeinsame Section-Basis ── */
.fp-programs {
  padding: 80px 20px;
  box-sizing: border-box;
}
.fp-benefits {
  padding: 0 20px 60px;
  box-sizing: border-box;
  background: none;
}

.fp-section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--kib-blue);
  margin: 0 0 0.5em;
  padding-bottom: 0;
  border: none;
  background: none;
}
.fp-section-title--light {
  color: #fff;
}

.fp-section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: #5a6a80;
  margin: 0 auto 3rem;
  max-width: 560px;
  line-height: 1.6;
}

/* ── Programme ── */
.fp-programs {
  background: #f5f8ff;
}
.fp-programs-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.fp-program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2.5rem;
}
@media (max-width: 960px) {
  .fp-program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .fp-program-grid { grid-template-columns: 1fr; }
  .fp-programs { padding: 52px 20px; }
}

.fp-program-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 2px 12px rgba(14, 47, 97, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fp-program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(14, 47, 97, 0.14);
  text-decoration: none !important;
}

/* Colored visual area per program */
.fp-program-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}
.fp-program-card--workshops .fp-program-card__visual { background: linear-gradient(135deg, #0e2f61, #1e5faa); }
.fp-program-card--sommer    .fp-program-card__visual { background: linear-gradient(135deg, #d4860a, #f0b429); }
.fp-program-card--oster     .fp-program-card__visual { background: linear-gradient(135deg, #7a0a30, #8b0d3a); }

.fp-program-card__icon {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.9);
}

/* Card body */
.fp-program-card__body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fp-program-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--kib-blue);
  margin: 0 0 0.5em;
}
.fp-program-card__desc {
  font-size: 0.92rem;
  color: #5a6a80;
  line-height: 1.55;
  margin: 0 0 auto;
  padding-bottom: 1.2em;
}
.fp-program-card__link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--kib-red);
  margin-top: auto;
}
.fp-program-card:hover .fp-program-card__link {
  text-decoration: underline;
}

/* ── Benefits ── */
.fp-benefits-inner {
  max-width: 1160px;
  margin: 0 auto;
  background: linear-gradient(150deg, #0e2f61 0%, #1a4a8a 55%, #1e5faa 100%);
  padding: 64px 60px;
  border-radius: 12px;
}

.fp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  margin-top: 3rem;
}
@media (max-width: 860px) {
  .fp-benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 480px) {
  .fp-benefits-grid { grid-template-columns: 1fr; }
  .fp-benefits { padding: 0 12px 40px; }
  .fp-benefits-inner { padding: 48px 28px; border-radius: 8px; }
}

.fp-benefit {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fp-benefit__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0.2em 0 0;
}
.fp-benefit__text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin: 0;
}

/* ==============================
   Seiten-Headline Banner
   ============================== */

/* ── Seiten-Headline: Speech Bubble (gelb, Pfeil Mitte unten) ── */
.page-header {
  margin-top: 0;
  padding: 28px 20px 72px;
  background: transparent;
}

.page-header-inner {
  display: inline-block;
  background: var(--kib-sun);
  border-radius: 16px;
  padding: 22px 48px;
  position: relative;
  margin-left: max(20px, calc((100vw - 1200px) / 2 + 52px));
}

/* Pfeil unten Mitte */
.page-header-inner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border: 11px solid transparent;
  border-top-color: var(--kib-sun);
  border-bottom: 0;
}

.page-header-inner::before { display: none; }

.page-header-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0e2f61;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

/* Abstand zum Content */
.page-header + .container {
  padding-top: 16px;
}
.page-header + .container > .bak-boxes {
  border-top: none;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .page-header { padding: 54px 20px 20px; }
  .page-header-inner { padding: 20px 32px; margin-left: 16px; }
  .page-header-title { font-size: 1.45rem; white-space: normal; }
}
@media (max-width: 480px) {
  .page-header-title { font-size: 1.25rem; }
}

/* ==============================
   Großzügigere Raumaufteilung
   ============================== */

/* Content-Container */
#page-wrap > .container,
.bak-boxes {
  padding: 64px 72px;
}
@media (max-width: 1024px) {
  #page-wrap > .container,
  .bak-boxes { padding: 52px 48px; }
}
@media (max-width: 768px) {
  .container { padding: 60px 50px 50px 20px; }
  #page-wrap > .container,
  .bak-boxes { padding: 40px 16px; }
}
@media (max-width: 480px) {
  #page-wrap > .container,
  .bak-boxes { padding: 24px 2%; }
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }

.bak-boxes h2,
.entry-content h2 {
  margin-top: 3.2em;
  margin-bottom: 1.3em;
}
.bak-boxes h2:first-child,
.entry-content h2:first-child { margin-top: 0.4em; }

/* Absätze */
.bak-boxes p,
.entry-content p {
  margin-bottom: 1.4em;
}

/* Listen */
.bak-boxes ul,
.bak-boxes ol,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.8em;
  padding-left: 1.6em;
}
.bak-boxes li,
.entry-content li {
  margin-bottom: 0.65em;
}

/* Spalten-Boxen */
.wp-block-columns {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 28px !important;
  margin-top: 2em;
  margin-bottom: 3em;
  align-items: flex-start !important;
}
.wp-block-column {
  padding: 28px;
}
.wp-block-column:has(> .wp-block-heading:first-child),
.wp-block-column:has(> h3:first-child) {
  padding-top: 0;
}
/* Negative Ränder des H3-Headers anpassen */
.wp-block-column > .wp-block-heading:first-child,
.wp-block-column > h3:first-child {
  margin-left: -28px;
  margin-right: -28px;
  margin-bottom: 22px;
  padding-left: 28px;
  padding-right: 28px;
}

/* Tabellen */
.table-wrap {
  margin: 2.2em 0;
}

/* CTA-Buttons */
.bak-boxes .wp-block-buttons,
.entry-content .wp-block-buttons {
  margin-top: 2.8em;
}

/* Startseite: Programme + Vorteile */
.fp-programs {
  padding: 80px 20px;
}
.fp-benefits {
  padding: 0 20px 60px;
  background: none;
}
.fp-program-grid {
  gap: 28px;
  margin-top: 3rem;
}
.fp-program-card__body {
  padding: 26px 26px 30px;
}
.fp-benefits-grid {
  gap: 36px 48px;
  margin-top: 3.5rem;
}

@media (max-width: 768px) {
  .fp-programs     { padding: 48px 20px; }
  .fp-benefits     { padding: 0 20px 40px; }
  .fp-benefits-inner { padding: 48px 28px; border-radius: 8px; }
}


/* ==============================
   Harmonisches Design – KiBelino
   Strukturierte Flächenaufteilung
   ============================== */

/* ── Helle Hintergrundflächen ── */
:root {
  --bg-blue: #eef3fb;   /* helles Primärblau  */
  --bg-mint: #ecf5f1;   /* helles Mint        */
  --bg-red:  #fdf0f4;   /* helles Rosa        */
  --bg-sun:  #fef9ee;   /* helles Gelb        */
  --bg-warm: #f7f9fc;   /* warmes Seiten-Grau */
}

/* ── Innenseiten: warmer Seitenhintergrund ── */
body:not(.home) {
  background: var(--bg-warm);
}
body:not(.home) #page-wrap > .container {
  background: transparent;
}

/* ── bak-boxes: weiße Karte mit Schatten ── */
.bak-boxes {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 28px rgba(14, 47, 97, 0.08);
}

/* ── Programme: weißer Hintergrund ── */
.fp-programs {
  background: #fff;
}

/* ── News-Section: helles Mint ── */
.news-section {
  background: var(--bg-mint);
  border-top-color: var(--kib-mint);
}

/* ── Benefits: etwas wärmer ── */
.fp-benefits-inner {
  background: linear-gradient(150deg, #0a2350 0%, #0e2f61 40%, #1a4a8a 100%);
}
.fp-benefit__text {
  color: rgba(255, 255, 255, 0.82);
}

/* ── Spalten-Boxen: helle Tints, kein dunkler Balken ── */
.wp-block-column {
  background: var(--bg-blue);
  border: none;
  border-top: 4px solid var(--kib-blue);
  box-shadow: 0 2px 14px rgba(14, 47, 97, 0.07);
}

/* Farbigen Kopfbalken entfernen */
.wp-block-column::before {
  display: none !important;
}
/* Kein Padding-top-Offset mehr nötig */
.wp-block-column:has(> .wp-block-heading:first-child),
.wp-block-column:has(> h3:first-child) {
  padding-top: 28px;
}
/* Negative H3-Ränder zurücksetzen */
.wp-block-column > .wp-block-heading:first-child,
.wp-block-column > h3:first-child {
  color: var(--kib-blue) !important;
  background: none !important;
  position: static !important;
  height: auto !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  display: block !important;
  text-align: left !important;
  font-size: 1.15rem !important;
}

/* Tintfarbe + Akzentborder per Spaltenposition */
.wp-block-columns .wp-block-column:nth-child(1) { background: var(--bg-blue); border-top-color: var(--kib-blue); }
.wp-block-columns .wp-block-column:nth-child(2) { background: var(--bg-mint); border-top-color: var(--kib-mint); }
.wp-block-columns .wp-block-column:nth-child(3) { background: var(--bg-red);  border-top-color: var(--kib-red);  }
.wp-block-columns .wp-block-column:nth-child(4) { background: var(--bg-sun);  border-top-color: var(--kib-sun);  }

/* Team-Cards: Tint entfernen, neutral */
.team-cards .wp-block-column {
  background: #fff;
  border-top: 3px solid var(--kib-blue);
}

/* ── Seiten-Headline: schlicht, weiß ── */
.page-header {
  margin-top: 0;
  padding: 32px 24px 28px;
  background: #fff;
  border-bottom: 1px solid #d0d8e8;
}
.page-header::after { display: none; }
.page-header-inner {
  display: block;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 32px;
  position: static;
  margin: 0 auto;
  max-width: 1160px;
}
.page-header-inner::after,
.page-header-inner::before { display: none !important; }
.page-header-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0e2f61;
  margin: 0;
  line-height: 1.3;
  white-space: normal;
}
/* Subseiten: Container + bak-boxes + page-header-inner auf einheitliche Box (outer 1160,
   inner content 1096 mit 32px Innenabstand). H1 und Body-Inhalt teilen dieselbe Content-Linie.
   !important nötig, weil Zeile 716-722 eine generische @media-Regel mit !important setzt. */
.page-header + .container {
  max-width: 1160px !important;
  padding: 40px 0 50px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.page-header + .container > .bak-boxes {
  border-top: none;
  box-sizing: border-box;
  padding-left: 32px !important;
  padding-right: 32px !important;
}
/* page-header-inner außen 1160px (statt 1224) — damit die Kante mit .container/.bak-boxes
   bündig ist und die H1 an derselben Content-Linie steht wie der Body-Inhalt. */
.page-header-inner {
  box-sizing: border-box;
  max-width: 1160px;
}
@media (max-width: 768px) {
  .page-header { padding: 54px 20px 20px; }
  .page-header-inner { padding: 0 16px; }
  .page-header-title { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .page-header-title { font-size: 1.2rem; }
}

/* ── Programm-Karten: subtiler visueller Bereich ── */
.fp-program-card__visual {
  padding: 44px 20px;
}

/* ── Abschnittstrennungen (Startseite) ── */
.fp-programs + .fp-benefits,
.fp-programs + section,
section + .cta-strip {
  position: relative;
}

/* ── CTA Strip: minimal aufgehellt ── */
.cta-strip-inner {
  background: linear-gradient(120deg, #7a0a30 0%, #8b0d3a 55%, #9e1545 100%);
}

/* ── Startseite: einheitliche Breite ─────────────────────────────────────────
   fp-content-wrap hat dieselben 20px outer-padding wie fp-programs, fp-benefits
   und cta-strip → .container darin ist immer min(1160px, viewport-40px) breit. */
.fp-content-wrap {
  padding: 0 20px;
}
.fp-content-wrap > .container {
  max-width: 1160px;
  margin: 0 auto;
}

/* ── Footer: CI-konform ── */
.site-footer {
  background: linear-gradient(150deg, #0a2555 0%, #0e2f61 60%, #1a4a8a 100%) !important;
  color: rgba(255,255,255,0.75) !important;
  border-top: 4px solid var(--kib-mint) !important;
}
.site-footer a {
  color: var(--kib-mint) !important;
}
.site-footer a:hover {
  color: var(--kib-sun) !important;
}
.footer-legal p,
.footer-legal a {
  color: rgba(255,255,255,0.7) !important;
}

/* ── H2-Akzentlinie: feiner Gradient bleibt ── */
/* (bereits in Basisstil definiert) */

/* ── Kein oberer Rahmen an Inhaltsboxen ── */
#page-wrap > .container,
.bak-boxes,
.page-header + .container > .bak-boxes {
  border-top: none !important;
}

/* ==============================
   Bildgalerie – kib-gallery
   ============================== */
.kib-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 2.4rem 0;
}

.kib-gallery__item {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-blue);
}

.kib-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.kib-gallery__item:hover img {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .kib-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================
   Keine abgerundeten Ecken an Inhaltsboxen
   ============================== */
.bak-boxes,
#page-wrap > .container,
.page-header + .container > .bak-boxes,
.wp-block-column,
.wp-block-column::before,
.table-wrap,
.table-wrap table thead tr:first-child th:first-child,
.table-wrap table thead tr:first-child th:last-child,
.table-wrap table tbody tr:last-child td:first-child,
.table-wrap table tbody tr:last-child td:last-child,
.table-wrap table tbody tr,
.fp-program-card,
.box,
.image-caption-block figure,
.image-caption-block figcaption,
.wpforms-field-container {
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* ── Gallery margin ── */
.wp-block-gallery {
  margin-top: 60px;
}

/* =============================================================================
   Startseite: Partner & Anfahrt
   ============================================================================= */

/* Partner section */
.fp-partner {
  background: #f5f7fa;
  padding: 3rem 0 3.5rem;
  border-top: 1px solid #e0e6ef;
}

.fp-partner__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a7a7a5;
  text-align: center;
  margin: 0 0 1.75rem;
}

.fp-partner__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.fp-partner__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  padding: 2rem 3rem;
  min-width: 240px;
  min-height: 144px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

a.fp-partner__tile:hover {
  border-color: #0e2f61;
  box-shadow: 0 2px 12px rgba(14,47,97,0.10);
}

.fp-partner__logo {
  max-height: 96px;
  max-width: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
}

a.fp-partner__tile:hover .fp-partner__logo {
  filter: grayscale(0%);
  opacity: 1;
}

.fp-partner__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

/* Anfahrt bar */
.fp-anfahrt {
  background: #0e2f61;
  padding: 1rem 0;
}

.fp-anfahrt__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.fp-anfahrt__text {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fp-anfahrt__icon {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
}

.fp-anfahrt__link {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.fp-anfahrt__link:hover {
  border-color: #fff;
}

/* ── Startseite: einheitliche Abstände zwischen Sektionen ──────────────────────
   Ziel: ~80px zwischen allen Abschnittsgrenzen (entspricht fp-programs 80px Innenabstand).
   Problem: fp-benefits bottom (60px) + bak-boxes top (64px) = 124px → zu viel.
   Fix: fp-benefits gibt keinen unteren Abstand; fp-content-wrap übernimmt den Sektionsabstand. */
.fp-benefits { padding-bottom: 0 !important; }

.fp-content-wrap { padding-top: 48px; }

/* Inhalt der Startseite in voller Box-Breite (1160px) wie fp-benefits etc. */
.fp-content-wrap .bak-boxes { padding: 32px 0 48px; }

@media (max-width: 768px) {
  .fp-content-wrap { padding-top: 32px; }
  .fp-content-wrap .bak-boxes { padding: 24px 0 32px; }
}
@media (max-width: 480px) {
  .fp-content-wrap { padding-top: 24px; }
  .fp-content-wrap .bak-boxes { padding: 20px 0 24px; }
}

/* ==============================
   Responsive Fixes – Mobile
   ============================== */

/* ── Startseite: .container-Padding in Section-Wrappern korrigieren ──
   Das generische .container erbt 100px 50px 50px 20px (< 1200 px).
   Für fp-interne Wrapper ist das zu groß und asymmetrisch. */
@media (max-width: 1199px) {
  .fp-content-wrap > .container { padding: 0; }
  .fp-partner__inner            { padding: 0 20px; }
  .fp-anfahrt__inner            { padding: 0 20px; }

  /* Hero: Box unter Logo schieben, Titel skalieren */
  .site-header {
    padding-top: 250px;
  }
  .hero-title  { font-size: 44px; }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .hero-overlay { width: 85%; }
}

/* ── Sektions-Titel: Schriftgröße auf kleinen Screens skalieren ── */
@media (max-width: 768px) {
  .fp-section-title    { font-size: 1.9rem; }
  .fp-section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
}
@media (max-width: 480px) {
  .fp-section-title { font-size: 1.55rem; }
}

/* ── CTA Strip: Padding und Text auf kleinen Screens ── */
@media (max-width: 768px) {
  .cta-strip-inner { padding: 36px 24px; }
  .cta-strip-text  { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .cta-strip       { padding: 0 12px 28px; }
  .cta-strip-inner { padding: 28px 20px; gap: 16px; }
  .cta-strip-text  { font-size: 1.05rem; }
}

/* ── Hero News Strip: vertikal stapeln auf kleinen Screens ── */
@media (max-width: 480px) {
  .hero-news-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero-news-title {
    font-size: 1rem;
    flex: 0 0 auto; /* prevent 300px height in column direction */
  }
  .hero-news-link  { align-self: flex-start; }
}

/* ── Startseite: Burger-Button und Logo immer hinterlegen ── */
.home #burger-toggle {
  background: rgba(14, 47, 97, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 8px 14px;
}
.home .hero-logo {
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
}

/* ── Mobile Hero Fixes ── */
@media (max-width: 900px) {
  .hero-stat-strip { display: none; }
}

@media (max-width: 480px) {
  .hero-overlay > div {
    border-radius: 0;
    position: relative;
    top: 45px;
  }
  /* Compact CTA buttons */
  .hero-cta .btn {
    padding: 12px 18px;
    font-size: 0.92rem;
  }
  /* News strip: AKTUELL ohne Rand, linksbündig; Link zentriert */
  .hero-news-strip .news-tag {
    border: none;
    background: transparent;
    padding: 0;
    align-self: flex-start;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
  .hero-news-link {
    align-self: center;
  }
}

/* ── Gutenberg tables: mobile stacked ── */
@media (max-width: 680px) {
    .wp-block-table table,
    .wp-block-table tbody,
    .wp-block-table tr,
    .wp-block-table td,
    .wp-block-table th {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .wp-block-table thead {
        display: none;
    }
    .wp-block-table tr {
        border: 1px solid #d0d8e8;
        border-radius: 4px;
        margin-bottom: 0.6rem;
        padding: 0.5rem 0.75rem;
    }
    .wp-block-table td {
        border: none;
        border-bottom: 1px solid #eef1f7;
        padding: 0.35rem 0;
        font-size: 0.88rem;
    }
    .wp-block-table td:last-child {
        border-bottom: none;
    }
}

/* ── Startseite: einheitliche Block-Breite (1160px outer) alle Viewports ──────
   Problem 1: `.container` hat in Zeile 718 ein `padding: 50px 20px !important`
   für ≥1200px, das spezifischere Regeln schlägt — ohne !important unbezwingbar.
   Problem 2: fp-benefits-inner und cta-strip-inner sind content-box (outer =
   1160 + padding), während andere Inner border-box sind (outer = 1160). Das
   führt zu unterschiedlichen Außenbreiten (1280 vs 1240 vs 1160).
   Fix: ALLE Homepage-Inner auf border-box + max-width:1160px zwingen →
   einheitlich 1160px outer width, perfekt zentriert. Für die Boxen mit
   innerem Padding (benefits, cta-strip) bleibt das Padding innen, der
   sichtbare Kasten ist 1160 wide.
   Partner- und Anfahrt-Section bekommen 20px horizontales Section-Padding
   wie die anderen fp-Sections. */
.fp-programs-inner,
.fp-benefits-inner,
.fp-content-wrap > .container,
.cta-strip-inner,
.fp-partner__inner.container,
.fp-anfahrt__inner.container {
  box-sizing: border-box !important;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.fp-content-wrap > .container,
.fp-partner__inner.container,
.fp-anfahrt__inner.container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.fp-partner {
  padding-left: 20px;
  padding-right: 20px;
}

.fp-anfahrt {
  padding-left: 20px;
  padding-right: 20px;
}

/* Jobs-Seite: Job-Kacheln (CSS aus Inline-<style> ins Theme verschoben,
   weil wpautop dort <br /> zwischen alle Regeln injiziert hatte und damit
   den Inline-Style zerschießt). */
.kb-jobs-intro {
  background: #eef2f9;
  border-radius: 8px;
  padding: 32px 36px;
  margin-bottom: 36px;
}
.kb-jobs-intro h2 {
  color: #0e2f61;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
}
.kb-jobs-intro p {
  color: #333;
  line-height: 1.75;
  margin-bottom: 1em;
  font-size: 0.95rem;
}
.kb-jobs-intro p:last-child { margin-bottom: 0; }
.kb-jobs-intro a { color: #1e5faa; }

.kb-jobs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .kb-jobs-grid { grid-template-columns: 1fr; }
}
.kb-job-card {
  border: 1px solid #d0d8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.kb-job-card__header { padding: 18px 24px 16px; }
.kb-job-card__title {
  color: #1e5faa;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.kb-job-card__body {
  padding: 0 24px 24px;
  border-top: 1px solid #eef1f7;
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Der <p> selbst ist normaler Body-Text — der Markup-Fehler im Post mischt
   Section-Title und Body in einen einzigen <p>. Nur das einleitende <strong>
   wird als Section-Title behandelt (eigene Zeile, klein, rot, Caps).
   .bak-boxes p hat höhere Spezifität (0,0,1,1) — daher hier auch .bak-boxes drauf. */
.bak-boxes p.kb-job-card__section-title,
p.kb-job-card__section-title {
  color: #444;
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.65;
  text-transform: none;
  letter-spacing: normal;
  margin: 14px 0 0;
  text-align: left;
}
.bak-boxes p.kb-job-card__section-title:first-child,
p.kb-job-card__section-title:first-child { margin-top: 0; }
.kb-job-card__section-title strong {
  display: block;
  color: #8b0d3a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.kb-job-card__text {
  color: #444;
  line-height: 1.7;
  margin: 0;
  font-size: 0.93rem;
}
.kb-job-card__btn {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
}
.kb-job-card__btn a {
  background: #8b0d3a;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.85rem;
}
.kb-job-card__btn a:hover { background: #6b0a2e; }

/* Media+Text Block: rechtes Innen-Padding entfernen, links bleibt (Abstand zum Bild).
   Außerdem Textspalte oben bündig statt vertikal zentriert.
   Bildspalte schmaler (400px), damit Bildhöhe ≈ Texthöhe → kein Überhang. */
.wp-block-media-text {
  align-items: start;
  grid-template-columns: 280px 1fr;
}
.wp-block-media-text .wp-block-media-text__content {
  padding-right: 0;
  align-self: start;
}
