/* Mobile-first responsive design for Kita profile pages */
:root { 
  --ka-pink: #ea3891;
  --ka-text: #2a3340;
  --ka-muted: #6b7785;
  --ka-border: #e5e7eb;
}

/* Mobile: No card - edge to edge */
.ka-wrap { 
  padding: 0;
  margin: 0;
}
.ka-wrap.my-12 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.ka-wrap.py-12 { 
  padding-top: 0.5rem !important;
  padding-bottom: 1rem !important;
}

.k-card { 
  background: #fff;
}

.k-container { 
  padding: 1rem;
}

/* Title and button stack on mobile */
.kp-title-row { 
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.kp-title-row h1 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.5rem !important;
  line-height: 1.3;
}

/* "Alle Kitas" button in title row - hidden on mobile */
.kp-title-row .kp-button--outline { 
  display: none !important;
}

/* Tables stack on mobile */
.k-table-2 { 
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.k-table-2 *, .k-table-3 * { 
  text-wrap: wrap;
}

/* Utility classes */
.fs-16 { font-size: 1rem; }
.fs-18 { font-size: 1.125rem; }
.fs-20 { font-size: 1.25rem; }
.fs-28 { font-size: 1.75rem; }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.pb-2 { padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }
.border-b { border-bottom: 1px solid var(--ka-border); }

/* Buttons */
.kp-button { 
  appearance: none;
  background: var(--ka-pink);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  width: 100%;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.kp-button:focus { 
  outline: 2px solid rgba(234, 56, 145, 0.3);
  outline-offset: 2px;
}

.kp-cta { 
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

/* Map */
.kp-map {
  position: relative;
  width: 100%;
  margin: 0 0 1rem;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.kp-map__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.kp-map--ratio {
  aspect-ratio: 16/9;
}

.kp-map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  width: 30px;
  height: 48px;
  z-index: 10;
}

.kp-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top-color: #ea3891;
  border-radius: 50%;
  animation: kp-spin 1s linear infinite;
}

@keyframes kp-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sections */
.kp-section {
  display: grid;
  grid-template-columns: 1fr;
}

.kp-grid { 
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.kp-kv { 
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.kp-contact { 
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  font-size: 14px;
}

/* Mobile bottom "Alle Kitas" button - outline style */
.kp-area-link-mobile {
  display: block;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ka-border);
}

.kp-area-link-mobile .kp-button--outline {
  display: block !important;
  background: transparent;
  color: #888888;
  border: 1px solid #888888;
  width: 100%;
}

/* Desktop: Card styling appears */
@media (min-width: 768px) {
  .ka-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
  }
  
  .ka-wrap.my-12 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }
  
  .ka-wrap.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .k-card {
    border: 1px solid var(--ka-border);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    overflow: hidden;
  }
  
  .k-container {
    padding: 2rem;
  }
  
  .kp-title-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
  }
  
  .kp-title-row h1 {
    font-size: 1.75rem !important;
  }
  
  .kp-title-row .kp-button--outline {
    display: inline-block !important;
    background: transparent;
    color: #888888;
    border: 1px solid #888888;
    width: auto;
    padding: 14px 24px;
    line-height: 1.2;
  }
  
  .kp-area-link-mobile {
    display: none;
  }
  
  .k-table-2 {
    grid-template-columns: 200px 1fr;
    column-gap: 3rem;
    row-gap: 0.5rem;
  }
  
  .k-table-2 * {
    text-wrap: nowrap;
  }
  
  .k-table-2 .val {
    margin-bottom: 0;
  }
  
  .kp-button {
    width: auto;
    padding: 14px 24px;
  }
  
  .kp-map {
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
  }
  
  .kp-map--ratio {
    aspect-ratio: 2/1;
  }
  
  .kp-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px 32px;
  }
  
  .kp-kv {
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
  }
  
  .kp-contact {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px 24px;
  }
}
