/* ===========================
   COMPONENTS.CSS – Premium Unified Components
   Manger Transporte GmbH & Co. KG (Final 2025)
   =========================== */

/* ===== SECTION BOXEN ===== */
.section-box {
  max-width: 1000px;
  margin: 0px auto 40px; /* oben weniger, unten normal */
  background: var(--clr-bg-light);
  border-radius: var(--radius);
  padding: 30px 38px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
  text-align: center;
  color: var(--clr-accent);
  font-size: 1.9em;
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 0.4px;
  text-transform: none;
}

/* ===========================
   ACCORDION (native <details>)
   =========================== */

details {
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  background: #fafafa;
  margin-bottom: 18px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
details:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c7d2e0;
}

/* ----- Header (summary) ----- */
details > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--clr-accent);
  padding: 18px 24px;
  background: linear-gradient(90deg, #f5f7fb, #eef3fa);
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-bottom 0.3s ease;
}
details > summary:hover {
  background: linear-gradient(90deg, #edf3ff, #f8faff);
}
details[open] > summary {
  background: linear-gradient(90deg, #eaf2ff, #f5f8ff);
  border-bottom: 1px solid #d0d8e5;
}

/* Pfeil-Symbol (▸) */
details > summary::-webkit-details-marker {
  display: none;
}
details > summary::before {
  content: "▸";
  font-size: 18px;
  color: var(--clr-accent);
  transition: transform 0.25s ease;
}
details[open] > summary::before {
  transform: rotate(90deg);
}

/* ----- Inhalt ----- */
details .flex-row,
details .accordion-content {
  padding: 22px 24px 26px;
  background: var(--clr-bg-light);
  border-top: 1px solid #e0e5ee;
  animation: fadeIn 0.35s ease forwards;
}

/* Listen */
details ul {
  list-style-type: disc;
  padding-left: 22px;
  margin: 0;
}
details li {
  margin-bottom: 6px;
  line-height: 1.6;
  color: var(--clr-text);
}

/* Bilder (in Accordion & Sections) */
details img,
.section-box img {
  width: 100%;
  max-width: 380px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
details img:hover,
.section-box img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* ===========================
   INFO-BOX & CTA (optional)
   =========================== */

/* Info-Box */
.info-box {
  background: #f1f5fb;
  border-left: 4px solid var(--clr-accent-light);
  padding: 10px 15px;
  border-radius: 6px;
  color: #333;
  font-size: 0.95em;
  margin: 16px 0;
}

/* CTA-Bereich (Call to Action) */
.cta {
  text-align: center;
  background: linear-gradient(90deg, #0041c4, #4f8bff);
  color: white;
  padding: 35px 25px;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: var(--shadow-md);
}
.cta h3 {
  margin-bottom: 12px;
  font-size: 1.5em;
  font-weight: 700;
}
.cta a {
  display: inline-block;
  margin-top: 12px;
  background: white;
  color: var(--clr-accent);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cta a:hover {
  background: var(--clr-accent);
  color: white;
}

/* ===========================
   ANIMATION
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 800px) {
  details .flex-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 18px 16px 22px;
  }

  details img {
    margin-top: 12px;
    max-width: 90%;
  }

  details > summary {
    font-size: 1em;
    padding: 14px 18px;
  }

  .section-box {
    margin: 55px auto;
    padding: 24px 22px;
  }

  .cta {
    padding: 30px 18px;
  }
}


/* ===========================
   MAP-PLACEHOLDER (Kontaktseite)
   =========================== */
.map-placeholder {
  position: relative;
  background: #f9f9f9;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease;
}

.map-placeholder:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Innerer Hinweis mit Button */
.map-placeholder .map-inner {
  text-align: center;
  padding: 40px 20px;
}

.map-placeholder p {
  color: #333;
  font-size: 1.05em;
  margin-bottom: 20px;
}

.map-placeholder .btn-primary {
  background: #002c6f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 20px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.map-placeholder .btn-primary:hover {
  background: #0040c8;
  transform: translateY(-2px);
}
