/* =========================
   SPD – Mobile & Tablet
   Datei: css/spd-index-mobile.css
   ========================= */

@media (max-width: 1100px){

  .spd-page .layout{
    grid-template-columns: 1fr;
    padding: 0;
    gap: 14px;
  }

  /* Sidebar auf Handy/Tablet aus */
  .spd-page .sidebar{
    display: none;
  }

  .spd-page .content{
    max-width: none;
    margin: 0;
    padding: 12px;
  }

  /* Mobile Titel (wenn du ihn auf manchen Seiten nicht willst,
     unten gibt es Extra-Regeln pro Seite) */
  .spd-page .mobile-title{
    display: block;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
  }

  /* ===== Hero ===== */
  .spd-page .hero{
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .spd-page .hero img{
    width: 100%;
    height: auto;
    max-height: 75vh;
    margin: 0 auto;
  }

  /* ===== Mobile Grid ===== */
  .spd-page .mobile-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .spd-page .mobile-nav a,
  .spd-page .mobile-actions a{
    display: block;
    padding: 7px 10px;
    margin-bottom: 5px;
    border-radius: 10px;
    text-decoration: none;
    background: #eaf4ff;
    border: 1px solid #9bbce0;
    font-size: 14px;
    color: inherit;
  }

  .spd-page .mobile-actions{
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  /* =========================================
     Letzter Button auf Handy (mobile-nav):
     rot + weiß + Bild rechts
     ========================================= */
  .spd-page .mobile-nav a:last-child{
    background: #c62828;
    color: #ffffff;
    border-color: #c62828;
    font-weight: 900;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-right: 12px;
  }

  .spd-page .mobile-nav a:last-child::after{
    content: "";
    width: 100px;
    height: 100px;

    /* Empfohlen: Datei umbenennen auf img/Moellmann_3.png */
    background-image: url("../img/Moellmann_3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 50%;
    border: 2px solid #ffffff;
    flex-shrink: 0;
  }

  .spd-page .mobile-nav a:last-child:hover,
  .spd-page .mobile-nav a:last-child:focus-visible{
    background: #b71c1c;
    color: #ffffff;
  }
}

/* ===== Optional: Mobile-Titel auf bestimmten Seiten ausblenden =====
   (weil du "SPD-Ortsverein Aßling" am Handy dort nicht willst) */
@media (max-width: 1100px){
  .spd-page.kreistag-page .mobile-title,
  .spd-page.gemeinde-page .mobile-title{
    display: none;
  }
}
