.de-overview { position: relative; }
.de-section { margin-bottom: 2.5rem; position: relative; display: grid; }
.de-section > .de-back { grid-area: 1 / 1; }
.de-section > .de-fore { grid-area: 1 / 1; position: relative; z-index: 1; }
.de-section--with-back { min-height: 3.5rem; }
.de-section--with-back .de-back { pointer-events: none; }
.de-section--with-back .de-word { opacity:.08; font-weight:600; font-size: clamp(10rem, 7.5455rem + 10.9091vw, 25rem); line-height:1; }
.ka-backword-gradient { 
  background-image: linear-gradient(var(--backword-grad-start, rgb(244, 243, 241)), var(--backword-grad-end, rgb(236, 233, 230)));
  color: transparent; 
  -webkit-text-fill-color: transparent; 
  background-clip: text; 
  -webkit-background-clip: text;
}
.de-quote { font-size: 1.6rem; line-height: 1.5; font-weight: 300; margin: 0 0 2rem; font-family: monospace; }
.de-text { line-height: 1.65; }
.de-text.small { font-size: .95rem; }
.de-list { margin: .25rem 0 0; padding-left: .8rem; list-style-type: square; list-style-position: outside; }
.de-list > p { padding-bottom: 1rem !important; }
.de-list > li { padding-left: .6rem; }
.de-links-stack { margin:1.5rem 0 0; padding:0; list-style:none; display:grid; gap:.25rem; }
.de-links-stack a { text-decoration: underline; font-weight: 300; }
.anmelde-table {
  margin: 2rem 0;
}
.anmelde-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr;
  gap: 0;
  border-bottom: 2px solid var(--line, #ddd);
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}
.anmelde-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr;
  gap: 0;
  border-bottom: 1px solid var(--line-light, #eee);
  padding: .75rem 0;
}
.anmelde-row:last-child {
  border-bottom: none;
}
.anmelde-cell {
  padding: 0 1rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anmelde-cell--bundesland {
  font-weight: 600;
}
.anmelde-header .anmelde-cell {
  font-weight: 600;
  color: var(--text, #333);
}
.anmelde-label {
  display: none;
}
/* Insights Styles */
.kita-insights {
  margin: 3rem 0 2rem;
}
.kita-insight {
  margin-bottom: 2rem;
}
.kita-insight h4 {
  margin-bottom: 1rem;
}
.insight-list {
    margin: .25rem 0 0;
    padding-left: .8rem;
    list-style-type: square;
    list-style-position: outside;
}
.insight-list li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  padding-left: .6rem;
}
.konzepte-section {
  margin: 2rem 0;
}
.konzepte-intro {
  margin: 1.5rem 0 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text, #666);
}
.konzepte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.konzept-card {
  border: 1px solid var(--line, #eee);
  border-radius: 2px;
  padding: 1.5rem;
}
.konzept-header {
  margin-bottom: 1.5rem;
}
.konzept-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary, #2563eb);
  margin: 0 0 0.5rem 0;
}
.konzept-headline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text, #333);
  margin: 0;
}
.konzept-beschreibung {
  margin: 1rem 0;
  line-height: 1.6;
  color: var(--text, #333);
}
.konzept-gut-fuer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light, #eee);
}
.gut-fuer-title {
  font-weight: 600;
  color: var(--text-dark, #222);
  margin: 0 0 0.75rem 0;
}
.gut-fuer-list {
  margin: 0;
  padding-left: 1.2rem;
  list-style-type: disc;
}
.gut-fuer-list li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
  color: var(--text, #333);
}
.konzept-link {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light, #eee);
}
.konzept-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary, #2563eb);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.konzept-link-button:hover {
  color: var(--primary-dark, #1d4ed8);
  text-decoration: underline;
}
.konzept-link-button:focus {
  outline: none;
}
.konzept-link-button:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
}
.link-icon {
  flex-shrink: 0;
}
/* Responsive Design */
.wiki-page-menu {
    margin: 2rem 0rem;
    padding: 0;
}
.wiki-menu-list {
    list-style: none;
    margin: 0;
    padding: .5rem 0rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.wiki-menu-item {
    margin: 0;
}
.wiki-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    text-decoration: none;
    color: var(--text-secondary, #666);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}
.wiki-menu-link:hover {
    color: var(--text, #333);
}
.wiki-menu-arrow {
    font-size: 0.8rem;
    opacity: 0.8;
    transition: all 0.2s ease;
}
.wiki-menu-link:hover .wiki-menu-arrow {
    opacity: 1;
}
html {
    scroll-behavior: smooth;
}
.wiki-menu-link:focus {
    outline: 2px solid var(--primary, #2196f3);
    outline-offset: 2px;
}
.states-overview { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; gap: 1.5rem; }
.states-overview__empty { margin: 1rem 0; }
.states-overview__item { margin: 0; }
.state-block{ position: relative; overflow: visible; }
.state-block > .ka-fore{ position: relative; z-index: 1; }
/* SEO blocks and lists */
.ka-seo-card{
  border:1px solid #ECE9E6;
  border-radius:2px
}
.ka-seo-summary{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 16px
}
.ka-seo-summary .ka-seo-arrow{
  margin-left:auto;color:#ea3891;
  transition:transform .2s ease
}
.ka-seo-summary:focus, .ka-seo-summary:focus-visible, .ka-seo-card:focus, .ka-seo-card:focus-visible,.ka-seo-card:focus-within { 
  outline: none !important; 
  box-shadow: none !important; 
}
details.ka-seo-card[open] .ka-seo-arrow{
  transform:rotate(180deg)
}
.ka-seo-body{
  padding:12px 16px;
  background:transparent
}
.ka-seo-list{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr; row-gap:8px }

/* stop the old border from competing */
.ka-seo-card{
  border-color: transparent;  /* keep layout/radius if you want */
}

/* draw the border ON TOP of the backword */
.ka-seo-summary{
  position: relative;
  --summary-pad: 1rem;        /* keep in sync with your padding */
  padding: 0 var(--summary-pad);
  min-height: 3rem;
}
.ka-seo-summary::after{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid var(--line, #eee);
  border-radius:2px;
  z-index: 2;                 /* above ::before + text */
  pointer-events:none;
}
.ka-seo-summary > *{ position: relative; z-index: 3; }

/* backword, tied to summary and left-aligned to the border */
.ka-seo-summary::before{
  content: attr(data-word);
  position: absolute;
  z-index: 1;                 /* under ::after border, over card bg */
  pointer-events: none;

  /* start exactly at the border on the left… */
  left: calc(-1 * var(--summary-pad));
  /* …and bleed to the viewport’s right edge */
  right: calc(50% - 50vw);

  /* center to SUMMARY only */
  top: 50%;
  transform: translateY(-50%);
  height: max(12rem, 40vh);

  display: flex;
  align-items: center;
  justify-content: flex-start;

  /* no extra left padding; we already offset the box */
  margin-left: 1.1rem;

  white-space: nowrap;
  line-height: 1;
  font-weight: 800;
  font-size: 5.5rem;

  background: linear-gradient(180deg, #f4f3f1, #ece9e6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.state-grid-2col{ display:grid; grid-auto-rows:auto; row-gap:1.25rem; }
.state-row-2col{ display:grid; grid-template-columns:minmax(300px,1fr) 2fr; column-gap:2rem; }
.state-col-2col--label{ color:#3b3b3b; font-weight:600; padding-top:.2rem; }
.state-col-2col--text{ line-height:1.65; }
.state-col-2col--text p{ margin:0 0 .75rem; }
.state-links-inline{ margin:.25rem 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:.5rem; }
.state-links-inline li a{ word-break:break-word; text-decoration:underline; }
.state-list{ margin:.25rem 0 0; padding-left:1.25rem; }
.state-list li{ margin:0 0 .5rem; }
.ka-seo-summary{ display:grid; grid-template-columns:1fr; grid-template-rows:1fr; align-items:center; justify-content:space-between; padding:0 1rem; cursor:pointer; background:transparent; position:relative; min-height:3rem; overflow-x:clip; }
.ka-seo-summary > *{ grid-column:1; grid-row:1; max-width:100%; }
.ka-seo-title{ position:relative; z-index:1; }
svg.ka-seo-arrow{ position:relative; z-index:1; transition:transform .2s ease; }
details[open] .ka-seo-arrow{ transform:rotate(180deg); }
.ka-seo-body{ padding:1.5rem; background:transparent !important; border-radius:2px; }
@media (max-width:900px){
  .state-row-2col{ grid-template-columns:1fr; }
  .state-col-2col--label{ padding-top:0; }
}
@media (max-width: 768px) {
    /* Anmelde table */
    .anmelde-header { display:none; }
    .anmelde-row { grid-template-columns:1fr; gap:.5rem; border-bottom:1px solid var(--line-light, #eee); }
    .anmelde-cell--bewerbung { display:none; }
    .anmelde-cell { white-space:normal; padding:0; }
    .anmelde-label { display:none; }
  
    /* Konzepte grid */
    .konzepte-grid { grid-template-columns:1fr; gap:1rem; }
    .konzept-card { padding:1.25rem; }
    .konzept-name { font-size:1.1rem; }
  
    /* Wiki page menu */
    .wiki-menu-list { gap:1.5rem; padding:1.25rem 1.5rem; }
    .wiki-menu-link { font-size:.85rem; }
    .wiki-menu-arrow { font-size:.75rem; }
  }
  @media (max-width: 480px) {
    .wiki-page-menu { margin:1.5rem 0 2rem; }
    .wiki-menu-list { flex-direction:column; gap:.25rem; align-items:flex-start; padding:1rem 0; }
    .wiki-menu-link { font-size:.9rem; }
  }