/* =========================================
   Krippenbewertung – separate CSS
   (benötigt coaching.css als Basis)
   ========================================= */

.kb-area{
  /* breiter als content-box, aber schön zentriert */
  width: min(1360px, calc(100% - 48px));
  margin: 22px auto 0;
}

.kb-header{
  margin: 0 auto 16px;
  padding: 22px 26px;
  border-radius: 22px;
  background:
    radial-gradient(40% 40% at 50% 52%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.55) 55%, rgba(255,255,255,0) 70%),
    radial-gradient(120% 120% at 30% 30%, #ffffff 0%, #eef7ff 40%, #dbeeff 70%, #cfe6ff 100%);
  border: 2px solid rgba(70,130,180,0.25);
  box-shadow:
    inset 0 2px 8px rgba(255,255,255,0.9),
    inset 0 -10px 20px rgba(70,130,180,0.12),
    0 10px 24px rgba(17,63,102,0.16);
  color: #0f2542;
}

.kb-header h2{
  margin: 0 0 6px 0;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  line-height: 1.1;
}

.kb-header p{
  margin: 0;
  color: rgba(15,37,66,0.82);
}

/* =========================================
   Grid: 3 Karten nebeneinander
   ========================================= */
.kb-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* =========================================
   Einzelne Bewertungskarte (eigene Box)
   ========================================= */
.kb-card{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;

  border-radius: 18px;
  border: 1.5px solid rgba(18,58,99,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,252,255,0.94));
  box-shadow:
    0 10px 24px rgba(12,28,50,0.10),
    inset 0 1px 0 rgba(255,255,255,0.85);
  padding: 10px;
  color: #0f2542;
}

/* =========================================
   Oberer Bereich: Unternehmen + Logo
   ========================================= */
.kb-top{
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .95fr);
  border: 1px solid rgba(18,58,99,0.18);
  border-radius: 12px;
  overflow: hidden;
  min-height: 190px;
  background: #fff;
}

.kb-company{
  padding: 12px 14px;
  border-right: 1px solid rgba(18,58,99,0.14);
  background: rgba(255,255,255,0.92);
}

.kb-company p{
  margin: 0 0 6px 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.kb-company p:last-child{
  margin-bottom: 0;
}

.kb-company-name{
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 10px !important;
}

.kb-company a{
  color: #4b2bb8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kb-logo-box{
  padding: 10px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(23,154,105,.05), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(18,58,99,.06), transparent 45%),
    linear-gradient(180deg, rgba(247,251,255,.95), rgba(241,247,253,.95));
}

.kb-logo-box img{
  display: block;
  max-width: 100%;
  max-height: 165px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.kb-logo-placeholder{
  width: 100%;
  min-height: 145px;
  border: 2px dashed rgba(18,58,99,0.20);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: rgba(15,37,66,0.75);
  background: rgba(255,255,255,0.82);
}

/* =========================================
   Besucht / Durch
   ========================================= */
.kb-visit{
  border: 1px solid rgba(18,58,99,0.18);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.kb-visit-row{
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.kb-visit-row:last-child{
  margin-bottom: 0;
}

.kb-visit-label{
  font-weight: 700;
  color: #0f2542;
}

.kb-fill{
  display: inline-block;
  min-height: 1.35em;
  border-bottom: 1.5px solid rgba(15,37,66,0.42);
  line-height: 1.25;
  padding: 0 2px 1px 2px;
  color: #0f2542;
}

/* =========================================
   Bewertungsblöcke (4 Felder)
   ========================================= */
.kb-block{
  border: 1px solid rgba(18,58,99,0.18);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.kb-block h3{
  margin: 0 0 8px 0;
  font-size: 1.02rem;
  line-height: 1.1;
  color: #0f2542;
}

/* 4 "Linien" zum Beschriften / Befüllen */
.kb-line{
  margin: 0;
  min-height: 1.55em;
  line-height: 1.3;
  padding: 2px 2px 3px 2px;
  border-bottom: 1px solid rgba(15,37,66,0.20);
  overflow-wrap: anywhere;
}

.kb-line + .kb-line{
  margin-top: 4px;
}

.kb-block .kb-line:last-child{
  margin-bottom: 0;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1250px){
  .kb-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px){
  .kb-area{
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .kb-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .kb-header{
    padding: 16px 18px;
    border-radius: 16px;
  }

  .kb-card{
    border-radius: 14px;
    padding: 8px;
  }

  .kb-top{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .kb-company{
    border-right: 0;
    border-bottom: 1px solid rgba(18,58,99,0.14);
  }

  .kb-logo-box{
    min-height: 150px;
  }

  .kb-logo-placeholder{
    min-height: 120px;
  }
}

/* =========================================
   Optional: Druckansicht (sauber)
   ========================================= */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body{
    background: #fff !important;
  }

  .site-header,
  .header-actions,
  .back-link{
    display: none !important;
  }

  .page-main{
    padding: 0 !important;
  }

  .content-box.info-box{
    box-shadow: none !important;
    background: #fff !important;
    border: 1px solid #999 !important;
    border-radius: 0 !important;
    margin: 0 0 8mm 0 !important;
    max-width: none !important;
  }

  .kb-area{
    width: 100% !important;
    margin: 0 !important;
  }

  .kb-header{
    box-shadow: none !important;
    background: #fff !important;
    border: 1px solid #999 !important;
    border-radius: 0 !important;
    margin-bottom: 6mm !important;
  }

  .kb-grid{
    grid-template-columns: 1fr !important;
    gap: 6mm !important;
  }

  .kb-card,
  .kb-top,
  .kb-visit,
  .kb-block{
    box-shadow: none !important;
    background: #fff !important;
    border-color: #777 !important;
  }

  *{
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}