.mc-panel {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.mc-panel h1,
.mc-panel h2,
.mc-panel h3 {
  color: #0e1d31;
  margin: 0 0 0.75rem;
}

.mc-panel h1 {
  font-size: 1.75rem;
}

.mc-panel h2 {
  font-size: 1.25rem;
}

.mc-panel p {
  margin: 0 0 1rem;
}

.mc-panel p:last-child {
  margin-bottom: 0;
}

.mc-panel ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.mc-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .mc-two-col {
    grid-template-columns: 1fr;
  }
}

.mc-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.mc-service-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.mc-service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #0e1d31;
}

.mc-service-card p {
  margin: 0;
  font-size: 0.95rem;
}

.mc-service-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.mc-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mc-tag-list li {
  background: #0e1d31;
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.mc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.mc-gallery figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.mc-gallery img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.mc-gallery figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #475569;
}

.mc-legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.mc-legal-page {
  padding: 20px 16px;
}

.mc-legal-page h1 {
  margin-top: 0;
}

.mc-legal-two-col .main-col-container {
  padding: 10px 14px;
}

@media (max-width: 768px) {
  .mc-legal-two-col .main-col-container {
    width: 100% !important;
    float: none !important;
  }
}

/* Portfolio – Accordion */

.mc-portfolio-card {
  padding: 20px 16px;
}

.mc-portfolio-layout .main-col-container {
  padding: 10px 14px;
}

.mc-portfolio-intro h1 {
  margin-top: 0;
}

.mc-portfolio-accordion-heading {
  margin-top: 0;
  font-size: 1.2rem;
}

.mc-accordion {
  margin-top: 0.25rem;
}

.mc-accordion-item {
  border: 1px dashed #b8b8b8;
  margin-bottom: -1px;
  background: #ffffff;
}

.mc-accordion-item:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.mc-accordion-item:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  margin-bottom: 0;
}

.mc-accordion-trigger {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  cursor: pointer;
}

.mc-accordion-trigger::before {
  content: "+ ";
  font-weight: 700;
}

.mc-accordion-item.is-open .mc-accordion-trigger::before {
  content: "- ";
}

.mc-accordion-panel {
  padding: 0 14px 14px 28px;
}

.mc-accordion-panel[hidden] {
  display: none;
}

.mc-accordion-panel p {
  margin: 0 0 0.75rem;
  color: #333;
}

.mc-accordion-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #333;
}

.mc-accordion-panel li {
  margin-bottom: 0.35rem;
}

@media (max-width: 768px) {
  .mc-portfolio-layout .main-col-container {
    width: 100% !important;
    float: none !important;
  }
}

/* Impressionen – Video-Grid */

.mc-impressionen-card {
  padding: 20px 16px;
}

.mc-impressionen-title {
  margin-top: 0;
}

.mc-impressionen-intro {
  margin-bottom: 1.25rem;
}

.mc-impressionen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mc-impressionen-item {
  margin: 0;
  aspect-ratio: 9 / 16;
  background: #111827;
  overflow: hidden;
  border-radius: 4px;
}

.mc-impressionen-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

@media (max-width: 1024px) {
  .mc-impressionen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mc-impressionen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .mc-impressionen-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ==================================================
   WordPress Custom CSS (my-cars24.com)
   .entry-content-wrap → .mc-page-card
   ================================================== */

.mc-page-card {
  max-width: none;
  margin: 0;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.mc-content-bg:not(:has(.mc-hero-wrap)) > .mc-page-card {
  margin: 30px auto 0;
  max-width: 1240px;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.82);
}

.mc-page-card section,
.mc-page-card .main-content,
section.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.main-content .col-content {
  flex: 1 1 300px;
  box-sizing: border-box;
  padding: 30px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.main-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 22px;
  color: #1f1f1f;
}

.main-content h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 18px;
  color: #ff0000;
}

.main-content h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 14px;
  color: #444444;
}

.main-content p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 18px;
  color: #555555;
}

.content-header {
  padding: 30px;
  border-bottom: none;
  width: 100%;
  box-sizing: border-box;
}

.content-header h1 {
  margin: 0 0 10px;
  font-size: 2.1rem;
  font-weight: 700;
  color: #1f1f1f;
}

.content-header p {
  margin: 0;
  font-size: 1.05rem;
  color: #666666;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.content-grid .col-content {
  flex: 1 1 300px;
  padding: 30px;
  box-sizing: border-box;
}

.main-content ul {
  margin: 0;
  padding-left: 20px;
}

.main-content li {
  margin-bottom: 10px;
  line-height: 1.55;
  color: #444444;
}

.content-gallery {
  width: 100%;
  flex: 0 0 100%;
  padding: 20px 30px 30px;
  box-sizing: border-box;
}

.content-gallery .gallery {
  margin-top: 10px;
}

.main-content .button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 26px;
  background-color: #c62828;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.main-content .button:hover {
  background-color: #a61f1f;
  transform: translateY(-1px);
  color: #ffffff;
}

@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
  }

  .main-content {
    flex-direction: column;
  }

  .main-content .col-content {
    padding: 24px;
  }

  .content-gallery {
    padding: 20px;
  }
}

/* CTA WhatsApp */
.cta-box {
  margin-top: 32px;
}

.cta-whatsapp-inline {
  display: none;
}

.wa-inline-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.wa-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: #25d366;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.wa-inline-text {
  font-size: 16px;
  font-weight: 500;
  color: #111111;
}

.cta-whatsapp-desktop img {
  width: 160px;
  margin-top: 10px;
  padding: 8px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-label,
.cta-subline {
  margin: 0;
}

.cta-subline {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #666666;
}

@media (max-width: 768px) {
  .cta-whatsapp-inline {
    display: block;
  }

  .cta-whatsapp-desktop {
    display: none;
  }

  .cta-whatsapp-mobile {
    display: inline-flex;
  }
}

/* Footer grid (WordPress legacy – falls im Markup verwendet) */
.footer-container {
  width: 100%;
  margin: 30px auto;
  padding: 0;
  border-top: 1px solid #999999;
}

.footer-logo {
  width: 110px;
  height: auto;
  max-width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .footer-logo {
    width: 90px;
  }
}

@media (max-width: 480px) {
  .footer-logo {
    width: 80px;
  }
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 30px;
}

.footer-col-header {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: left;
}

.footer-col-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  text-align: left;
}

.footer-col-link {
  font-size: 14px;
  color: #555555;
  text-decoration: none;
  font-weight: 500;
  text-align: left;
}

.footer-col-link:hover {
  color: #ff0000;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Photo grid (ersetzt FooGallery – eine Zeile, volle Breite) */
.mc-photo-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.mc-photo-grid a {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.mc-photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Lightbox */
body.mc-lightbox-open {
  overflow: hidden;
}

.mc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mc-lightbox.is-open {
  opacity: 1;
}

.mc-lightbox[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mc-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.mc-lightbox__count {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}

.mc-lightbox__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.mc-lightbox__close-x {
  display: block;
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  transform: translateY(-0.04em);
}

.mc-lightbox__close:hover,
.mc-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.65);
  transform: scale(1.04);
}

.mc-lightbox__close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.mc-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.mc-lightbox__arrow:hover,
.mc-lightbox__arrow:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.mc-lightbox__arrow--prev {
  left: max(0.5rem, env(safe-area-inset-left));
}

.mc-lightbox__arrow--next {
  right: max(0.5rem, env(safe-area-inset-right));
}

.mc-lightbox__arrow[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .mc-lightbox {
    padding: 3.25rem 0.5rem;
  }

  .mc-lightbox__close {
    width: 3.75rem;
    height: 3.75rem;
  }

  .mc-lightbox__close-x {
    font-size: 2.35rem;
  }

  .mc-lightbox__arrow {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 2rem;
  }
}

/* Price table */
.Price-table {
  --pt-border: rgba(0, 0, 0, 0.12);
  --pt-bg: #ffffff;
  --pt-bg-alt: rgba(0, 0, 0, 0.03);
  --pt-head-bg: rgba(0, 0, 0, 0.06);
  --pt-text: #111111;
  --pt-muted: rgba(0, 0, 0, 0.7);
  --pt-radius: 14px;

  color: var(--pt-text);
  background: var(--pt-bg);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  overflow: hidden;
}

.Price-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.Price-table__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.Price-table__caption {
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--pt-text);
  border-bottom: 1px solid var(--pt-border);
  background: var(--pt-bg);
}

.Price-table__head th {
  background: var(--pt-head-bg);
  text-align: left;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pt-border);
  white-space: nowrap;
}

.Price-table__body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pt-border);
  vertical-align: top;
}

.Price-table__body tr:nth-child(even) td {
  background: var(--pt-bg-alt);
}

.Price-table__body td:nth-child(2),
.Price-table__body td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .Price-table__table {
    min-width: 0;
  }

  .Price-table__head {
    display: none;
  }

  .Price-table__body,
  .Price-table__body tr,
  .Price-table__body td {
    display: block;
    width: 100%;
  }

  .Price-table__body tr {
    border-bottom: 1px solid var(--pt-border);
  }

  .Price-table__body td {
    border-bottom: 0;
    background: var(--pt-bg);
  }

  .Price-table__body td:first-child {
    font-weight: 700;
    padding-bottom: 6px;
  }

  .Price-table__body td[data-label] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
    color: var(--pt-text);
  }

  .Price-table__body td[data-label]::before {
    content: attr(data-label);
    color: var(--pt-muted);
    font-weight: 600;
  }

  .Price-table__scroll {
    overflow-x: visible;
  }
}
