/*
Theme Name: Blocksy Child - Afge
Template: blocksy
Version: 1.0.0
*/

.afge-map {
  width: 100%;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
}

.afge-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .afge-grid {
    grid-template-columns: 1fr;
  }
}

.afge-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 18px;
}

.afge-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.afge-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.afge-list li:last-child {
  border-bottom: 0;
}

.afge-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  font-size: 13px;
  line-height: 1.3;
}


/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

/* =========================
   AFgE Steckbrief (Single Schule)
   ========================= */

.afge-steckbrief {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px 48px;
}

.afge-hero {
    position: relative;
    height: 320px;
    margin: 0 -18px;
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    overflow: hidden;
}

.afge-hero--fallback {
    background: linear-gradient(135deg, #e9eef3, #f6f8fb);
}

.afge-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.10) 40%, rgba(255,255,255,0.85) 100%);
}

/* Card */
.afge-card {
    margin-top: -90px;
    position: relative;
    z-index: 2;
}

.afge-card__inner {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
    padding: 22px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
}

/* Left */
.afge-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.afge-logo img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.afge-box {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.afge-box__title {
    font-size: 14px;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.afge-box__text {
    margin: 0;
    line-height: 1.5;
}

.afge-box__rich p {
    margin: 0 0 10px;
}
.afge-box__rich p:last-child {
    margin-bottom: 0;
}

.afge-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.afge-links li {
    margin: 8px 0;
}
.afge-links a {
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}
.afge-links a:hover {
    border-bottom-color: rgba(0,0,0,0.40);
}

.afge-meta {
    list-style: none;
    margin: 0;
    padding: 0;
}
.afge-meta li {
    margin: 8px 0;
    line-height: 1.45;
}
.afge-meta strong {
    font-weight: 700;
}

/* Map */
.afge-map {
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f4f7;
    border: 1px solid rgba(0,0,0,0.08);
}
.afge-map__hint {
    margin: 10px 0 0;
    font-size: 12px;
    opacity: 0.75;
}
.afge-map__empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    font-size: 13px;
    opacity: 0.75;
}

/* Right */
.afge-right {
    min-width: 0;
}

.afge-header {
    margin-bottom: 18px;
}

.afge-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
}

.afge-lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    opacity: 0.9;
    max-width: 70ch;
}

/* Content typography */
.afge-content {
    line-height: 1.7;
    font-size: 16px;
}
.afge-content h2,
.afge-content h3 {
    margin-top: 22px;
    margin-bottom: 10px;
    line-height: 1.25;
}
.afge-content p {
    margin: 0 0 14px;
}
.afge-content p:last-child {
    margin-bottom: 0;
}
.afge-content ul {
    margin: 0 0 14px 18px;
}

/* Gallery band */
.afge-gallery {
    margin-top: 18px;
}
.afge-gallery__inner {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.afge-gallery__item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
}
.afge-gallery__item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 980px) {
    .afge-card__inner {
        grid-template-columns: 1fr;
    }
    .afge-hero {
        height: 260px;
    }
    .afge-gallery__inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .afge-title {
        font-size: 26px;
    }
    .afge-gallery__inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .afge-gallery__item img {
        height: 120px;
    }
}
