/* =========================
   SPD – Desktop/Basis
   Datei: css/spd-index.css
   ========================= */

.spd-page * { box-sizing: border-box; }

.spd-page{
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #111;
}

.spd-page img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Layout ===== */
.spd-page .layout{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 18px;
  align-items: start;
  min-height: 100dvh;
}

.spd-page .sidebar{
  position: sticky;
  top: 12px;
  text-align: center;
  align-self: start;
}

.spd-page .logo{
  max-width: 180px;
  margin: 0 auto 14px auto;
}

/* ===== Menü ===== */
.spd-page .menu{
  display: grid;
  gap: 10px;
}

.spd-page .menu1{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #cfcfcf;
  text-decoration: none;
  font-weight: 700;
  color: inherit;
}

.spd-page .menu1:hover,
.spd-page .menu1:focus-visible{
  filter: brightness(1.03);
  outline: 2px solid rgba(0,0,0,0.15);
  outline-offset: 2px;
}

/* ===== Content / Hero ===== */
.spd-page .content{
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;

  /* Schutz gegen alte globale Regeln */
  height: auto !important;
  overflow: visible !important;
}

.spd-page .hero{
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.spd-page .hero img{
  width: 100%;
  height: auto; /* NIE verzerren */
}

/* Mobile-spezifische Elemente (werden in mobile.css aktiviert) */
.spd-page .mobile-title,
.spd-page .mobile-grid{
  display: none;
}

/* ===== Feintuning Bildhöhe (Tablet / 24") ohne Verzerrung ===== */
@media (min-width: 901px) and (max-width: 1599px){
  .spd-page .hero img{
    max-height: 66vh;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
}

@media (min-width: 1600px) and (max-width: 2099px){
  .spd-page .hero img{
    max-height: 78vh;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
}

@media (min-width: 2100px){
  .spd-page .layout{
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 24px;
  }

  .spd-page .content{
    max-width: 1700px;
  }
}

/* =========================
   Möllmann-Box (Desktop)
   ========================= */
.spd-page .moellmann-card{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;

  padding: 10px 12px;
  border-radius: 12px;

  text-decoration: none;
  background: #eaf4ff;
  border: 1px solid #9bbce0;
  color: #111;
}

.spd-page .moellmann-card:hover,
.spd-page .moellmann-card:focus-visible{
  outline: 2px solid rgba(0,0,0,0.15);
  outline-offset: 2px;
}

.spd-page .moellmann-text{
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.spd-page .moellmann-img{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid rgba(0,0,0,0.1);
}

/* ===== Sehr große Screens (z.B. 32") ===== */
@media (min-width: 1600px){
  .spd-page .layout{
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 24px;
  }

  .spd-page .content{
    max-width: 1700px;
  }

  .spd-page .moellmann-img{
    width: 64px;
    height: 64px;
  }
}
